Found this nice blog in Android weekly newsletter
ptrprograms.blogspot.com.es
This blog is about technology, mainly Linux and Android. Mostly I shall share my own learning experience here. Tips and tricks, tutorials etc. I can't promise to be accurate here and welcomes all suggestions. I am getting these information from people and I am sharing it with you, so feel free to comment and spread this knowledge in rest of the world. Please experiment all advice on test systems, no guarantees :)
Found this nice blog in Android weekly newsletter
ptrprograms.blogspot.com.es
Recentaly Android L had been in news a lot. There are many posts on net which describes the features coming in. The one which I like the most is android runtime or ART. Originally android uses dalvik runtime which converts the instructions at the time of running the app which had been a major reason of android being slow. In ART app code gets converted into executable ones and for ever. After that there is no conversion of code while running the app. This results in approximately 30% faster execution, hence a fast device and memory saving too. What few people know is that this feature is present in current kitkat version also. Only that its not the default setting. Goto settings, developer options, default runtime; and select ART and reboot the device.
It will take a while in upgrading apps. After that you will notice a faster device. Please keep in mind that at present some apps might not work properly. If that's a major issue you will need to revert back to dalvik runtime. At present I only had issue with one app which I can live with. Please also note that if you are not running kitkat you may have more issues or won't have the option of ART which depends on the version of Android you are running.
PS:
a nice intro of ART
http://www.anandtech.com/show/8231/a-closer-look-at-android-runtime-art-in-android-l
Look no further, moon+ reader pro is the best. What's more is that currently you can get it for 50 percent off. So if you are looking for reader for your pdf and epub files grab it from Google play store.
Here is a nice introduction of how to develop android apps using Java
Please copy paste the link given below.
www.linuxuser.co.uk/tutorials/android-development-with-java
Hi,
I used to have this phenomenon that I reinstall line after I take a backup change ROM and restore. Line always used to misbehave after restore and I used to reinstall it. Later I learned that a cleanup of data in settings is almost as good as reinstall and it saves time if app is a huge one.
Try it out next time if any of your app misbehave.
Thanks
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Spinner
android:id="@+id/spinner1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:entries="@array/application_array"
android:prompt="@string/app_prompt" />
<Button
android:id="@+id/btnSubmit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Submit"
android:onClick="btnSubmitOnClick"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">callingsystemapps</string>
<string name="app_prompt">Choose a application</string>
<string-array name="application_array">
<item>Browser</item>
<item>Dialler</item>
<item>Map</item>
<item>Contacts</item>
</string-array>
</resources>
public void btnSubmitOnClick (View v)
{
Spinner spinner1 = (Spinner) findViewById(R.id.spinner1);
if (spinner1.getSelectedItem().toString().equals("Browser")){
Intent i = new
Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("http://www.google.com"));
startActivity(i);
}
else if (spinner1.getSelectedItem().toString().equals("Dialler")){
Intent i = new
Intent(android.content.Intent.ACTION_DIAL);
startActivity(i);
}
else if (spinner1.getSelectedItem().toString().equals("Map")) {
Intent i = new
Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("geo:37.827500,-122.481670"));
startActivity(i);
}
else if (spinner1.getSelectedItem().toString().equals("Contacts")) {
Intent i = new
Intent(android.content.Intent.ACTION_PICK);
i.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE);
startActivity(i);
}
ACTION_VIEW
ACTION_DIAL
ACTION_PICK
// Initialize member TextView so we can manipulate it later
mTextView = (TextView) findViewById(R.id.edit_message);
// Make sure we're running on Honeycomb or higher to use ActionBar APIs
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
// For the main activity, make sure the app icon in the action bar
// does not behave as a button
ActionBar actionBar = getActionBar();
actionBar.setHomeButtonEnabled(false);
}
PS. Bye no means this is an Android tutorial, nor I am a pro. To know about ABI etc follow any Android programming tutorial.android create avd -n avd-jelly-bean -t 11 -c 32M -s WVGA800 --abi x86Android 4.1 is a basic Android platform.Do you wish to create a custom hardware profile [no]Process android exited with code 0Created AVD 'avd-jelly-bean' based on Android 4.1, Intel Atom (x86) processor,with the following hardware config:hw.lcd.density=240vm.heapSize=48hw.ramSize=512
export PATH=${PATH}:/home/ashish/android-sdk-linux/tools/Install jEdit from here (I am using jEdit 5.0pre1)