background preloader

Android

Facebook Twitter

Android, MySQL, PHP, & JSON 4 | Register and Login PHP Scripts. In this Android Remote Databases mini series we’ll start setting up our php scripts to register a user, login, write a message, and display some JSON data. We will also be building some temporary front-end php forms to test out our scripts, but eventually we will develop the front-end code within our Android app. Part A: Learn the Basics of PHP Part B: Learn Android 2.20 B – Creating a PHP Web Service for Apps Part C: Coming soon… Developing PHP Script to Interact with our Database The core concept of developing an Android app that connects with a remote database is to have the front-end programming done within the Android application, then send the information to a PHP script to be processed, the script will then interact with the database, and last the information will be returned back to the app.

In this tutorial we will be building the PHP scripts to interact with the database. Let’s update our PHP ‘webservice’ folder to contain some new PHP scripts. Register.php v.01 register.php v.02. JSON in Android. JSON in Android - Tutorial Copyright © 2011, 2012, 2013 Lars Vogel JSON with Android This article describes how to process JSON within Android. It is based on Eclipse 3.6, Java 1.6 and Android 2.3.3 (Gingerbread). JSON is a very condense data exchange format. See JSON tutorial for details. 1.2. Twitter is a great source for JSON. Table 1. Please note that some URIs return a JSONObject object while others return a JSONArray. Create a new Android project called de.vogella.android.twitter.json with the package de.vogella.android.twitter.json and the activity called ParseJSON.

Create the following coding for the activity. /** Called when the activity is first created Warning The code example allows network access in the main thread to simplify the code snippet. To run this example assign the uses-permission to your AndroidManifest.xml for "android.permission.INTERNET". Writing JSON is very simple. 4. Maintaining high quality free online tutorials is a lot of work. 4.2. How to connect Android with PHP, MySQL. How to fetch a data from web server database in android application. Setting up ssh raspberrypi. Android accessing RESTFull Web Services using JSON | josecgomez.com. Android Client Server communication. How I rooted my Arc S and removed apps I don't need. WARNING: Here be dragons. I don't work for SE but was surprised that my Arc S came with some apps that you cannot remove without rooting your device.

Seeing as internal memory space is already a bit limited I decided to root so I could run the wonderful Titanium Backup app and remove the stuff I had no interest in. I'm posting this in case others wish to do the same but I accept no liability if you remove something important and your phone crashes or won't boot. If you do screw it up then you should be able to use the PC Companion tool to restore the stock image. FWIW I have an Xperia Arc S running the .42 firmware image. Root your phone using the Xperia 2011 Easy Rooting Toolkit v3.0 (zergRush Exploit). Your mileage may vary but I went from 320MB or storage to 420MB.

There is a more comprehensive list to be found here: How To Change, Customize & Create Android Boot Animation [Guide] The boot animation is the first thing that you see when powering on your Android phone or tablet, after the operator or manufacturer logo. Although it does not serve a purpose functionally, an eye-catching boot animation can certainly make your device stand out while booting. In this third installment of our Android customization series, we will take a look at how to change or even create your Android boot animation and will feature some of the prettiest and geekiest boot animations we have come across. This guide is a part of our series on how to customize the looks of your Android device. Other guides in this series include: Note that there may be changes in this layout as we proceed, and we will be updating the links as we keep publishing the parts. Let’s now proceed with customizing the boot animation.

The BasicsInside the bootanimation.zip fileFeatured Boot AnimationsCreate Your Own Boot AnimationApply a Boot Animation The Basics Inside the bootanimation.zip file The folders Download. App Inventor for Android - Beta. How To Make Money By Making an Android App? This is the last post of The App Series. Those who have not yet read the Tutorials, please first read them : There are two ways of making money from the Android App But for this, you must have to publish your app in Android Market . Without publishing it in Android Market, you cannot make money. Why? You will get the answer at the end of this post.Sounds Good ?

Obviously what can be better than adsense to generate some revenue. In simple words, AdMob is the Mobile version of Adsense. This is Your App's Android Market URL. Now you have your Admob Publisher Id. Now go back to ibuildapp --> My Apps ----> App Management ---- > App Settings Scroll down to Advertisement Section and choose Admob. DONE! 2 - Making Money with Direct Advertisers Now this is very difficult but can be effective if your app receives good stats. To put Direct Ads, simply add the banner and the url of the advertiser. How to make money from your Android apps. The following links lead to downloads for the ‘Developing for Andoid’ tutorial that followed Adrian’s feature. Icon Files – Click here to download the icon imagesTextEdit – Click here to download the textEdit.java With the right attitude, and some tips and tricks from industry experts, you can soon turn your homegrown Android app into a nice little earner.

Adrian Bridgwater explains how… Advisor: Adrian Bridgwater Adrian has been a technology journalist and IT communications consultant for nearly two decades. His journalistic creed is to bring forward-thinking, impartial, technology editorial to a professional and hobbyist software audience around the world. There’s a fantastic book by former Intel CEO Andy Grove called Only The Paranoid Survive, which is themed around the turning points in the technology roadmap that led Intel to switch its business model and become the microprocessor giant that we know so well today.

But enough of the basics, as most of you will know this preamble. Application Fundamentals. Android apps are written in the Java programming language. The Android SDK tools compile your code—along with any data and resource files—into an APK: an Android package, which is an archive file with an .apk suffix. One APK file contains all the contents of an Android app and is the file that Android-powered devices use to install the app. Once installed on a device, each Android app lives in its own security sandbox: The Android operating system is a multi-user Linux system in which each app is a different user.

By default, the system assigns each app a unique Linux user ID (the ID is used only by the system and is unknown to the app). The system sets permissions for all the files in an app so that only the user ID assigned to that app can access them. In this way, the Android system implements the principle of least privilege. However, there are ways for an app to share data with other apps and for an app to access system services: The core framework components that define your app. Settings. Class Overview The Settings provider contains global system-level device preferences. Summary Constants public static final String ACTION_ACCESSIBILITY_SETTINGS Activity Action: Show settings for accessibility modules.

In some cases, a matching Activity may not exist, so ensure you safeguard against this. Input: Nothing. Output: Nothing. Constant Value: "android.settings.ACCESSIBILITY_SETTINGS" public static final String ACTION_ADD_ACCOUNT Activity Action: Show add account screen for creating a new account. The account types available to add may be restricted by adding an EXTRA_AUTHORITIES extra to the Intent with one or more syncable content provider's authorities. Account types can also be filtered by adding an EXTRA_ACCOUNT_TYPES extra to the Intent with one or more account types. Constant Value: "android.settings.ADD_ACCOUNT_SETTINGS" public static final String ACTION_AIRPLANE_MODE_SETTINGS Activity Action: Show settings to allow entering/exiting airplane mode.

Output: Nothing Public Constructors. Robotium - It's like Selenium, but for Android™ Robotium is an Android test automation framework that has full support for native and hybrid applications. Robotium makes it easy to write powerful and robust automatic black-box UI tests for Android applications. With the support of Robotium, test case developers can write function, system and user acceptance test scenarios, spanning multiple Android activities. See Questions & Answers for common Robotium questions and answers. See Getting Started for instructions and examples on how to create your first Robotium tests. Join the discussions in the Robotium Developers Group. NEWS: Robotium 5.1 is released!

Robotium 5.1 is the fastest, most accurate and stable version of Robotium yet. New functionality includes: pressSoftKeyboardSearchButton(), getWebElements(), setNavigationDrawer(int status), getConfig() and more. Robotium provides the following benefits: Test Android apps, both native and hybrid. Robotium Recorder 2.0 Android is a trademark of Google Inc.

Apps