Pages

Thursday, March 31, 2016

Kumpulan Lengkap Aplikasi Tebak Judul Lagu di HP Android

Cara Mengetahui Judul Lagu dan Penyanyi di HP Android - Selamat malam, Lingkaran Anda akan pada kesematan kali ini memberikan Kumpulan Aplikasi yang dapat menebak judul lagu dan penyanyi di HP android. Aplikasi ini tersedia di Google Playstore.

Memang saat kita sedang pergi untuk berjalan-jalan di mall atau supermarket kita sering mendengar lagu, namun terkadang kebanyakan dari kita semua sering lupa dengan judul lagunya. Nah sekarang anda tidak akan khawatir lagi saya akan memberikan aplikasi yang dapat membantu anda menebak judul lagunya.

1. Aplikasi Shazam

download aplikasi yang bisa Menebak Judul Lagu/MP3 di Android

Download App Shazam.

2. App ShoudHound

App android yang bisa ditek lagu mp3

Download Aplikasi SoundHound.

3. Apk Google Ears/Sound

app Menebak Judul Lagu MP3 via Android

Download Aplikasi Google Ears.

4. Aplikasi Track ID

applikasi yang berguna untuk Menebak Judul Lagu

Download TrackID .
Note : Cara menggunakan Aplikasi unik dan cerdas diatas anda di haruskan untuk mendekatkan Android anda dengan Media Suara lainnya seperti Radio, TV dan lain-lain.
Sampai disini dulu postingan tentang aplikasi menarik yang bisa saya Share untuk para pembaca blog ini, sekian semoga Artikel Kumpulan Aplikasi  yang Dapat Menebak Judul Lagu/MP3 di Android ini dapat berguna dan mampu menambah wawasan anda khususnya dalam media Gadget android.
Read More..

Poweramp Music Player 2 0 10 build 573 Android Obb No Root Unlocker Latest Download

Poweramp Music Player 2.0.10 build 573 Full MOD Apk Latest Unlocker Download

Poweramp Music Player 2.0.10 build 573 Full MOD Apk Latest Unlocker Download iAndroGames 

Note:
  •  Install PowerAMP APK
  •  Install PowerAMP Unlocker APK
  •  Run PowerAMP then force close (Use TB / app manager)
  •  Run lucky patcher > Custom patch by SanX
  •  If not full, patch again and reboot
Non Rooted user Can Try Unlocker Apk Given in the links.

DOWNLOAD LINKS

 

Download From PlayStore
Click Here For APK+Data Files Download
Read More..

Egg Fight Unlimited Gold Gems Android Game Moded


Salam blogger :)
Selamat siang, kita mau share mod lagi nih. Game ini tentang pertarungan menggunakan telur, haha. dan semua semua nya adalah telur telur telur. setiap telur punya kemampuan yg berbeda2. dan ini bsa online jg. :)  buat yg suka telur jgn main ini dah. kasian telurnya pecah2 nnti. klo pecah ga bsa di masak. eh apa dah, oke lngsung cek it aja dahhhh..

Details Game: 
Name      : Egg Fight 
Genre      : Laga
Platform  : Android 
Requires  : Android 2.3  and up

Modification on Game: 
- Unlimited Gold
- Unlimited Gems




Review Modif:

Screenshoot:



Tutorial Instal : 
1. Download game. 
2. Pindahkan Game ke Androidmu.
3. Uniinstal Version originalnya, jika ada.
4. Instal MOD apk & Play
5. Enjoyyy 



|DOWNLOAD|
Egg Fight - Unlimited Gold & Gems [Android Game : Moded]

|Download Original game|
On Playstore

#Salam Blogger
#Semoga bermanfaat :)
#Ask? comment :)
Read More..

Alien Bugs Defender Mod Money Android Game Moded


Salam Blogger :)
Hey Malam yg cukup indah karena malam ini ketmu temen2 lama dan bercerita hal dulu ketika SMA. haha oke lah . malam ini ane mau share mod lg, mod malam ini adalah Game tentang Defends dari Alien. gunakanlah senjata2 tangguhmu agar bumi tetap aman dari para Alien yg jahat. oke cet ittt..

Details Game: 
Name       : Alien Bugs Defender
Genre       : Action
Platform  : Android 
Requires  : Android 4.0  and up

Modification on Game: 
- MOD Money

Review Modif:


Screenshoot:


Tutorial Instal : 
1. Download game. 
2. Pindahkan Game ke Androidmu.
3. Uniinstal Version originalnya, jika ada.
4. Instal MOD apk & Play
5. Enjoyyy 

|DOWNLOAD|
Alien Bugs Defender - Mod Money[Android Game : Moded]

|Download Original game|
On Playstore

#Salam Blogger
#Semoga bermanfaat :)
#Ask? comment :)
Read More..

Install Android Studio on 64 bit Ubuntu 15 10 with Ubuntu Make umake

Ubuntu Make is a command line tool which allows you to download the latest version of popular developer tools (include Android Studio) on your installation, installing it longside all the required dependencies (which will only ask for root access if you dont have all the required dependencies installed already), enable multi-arch on your system if you are on a 64 bit machine, integrate it with the Unity launcher… Basically, one command to get your system ready to develop with!


To install Android Studio on Ubuntu:

- Add the Ubuntu Make ppa:
$ sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
$ sudo apt-get update

- Install Ubuntu Make:
$ sudo apt-get install ubuntu-make

- Install android-studio:
$ umake android

Once finished, it will also install Java 7 (1.7.0_85 currently) on your system.

This video show how to install Android Studio on 64-bit Ubuntu-GNOME (run on VirtualBox) with Ubuntu Make.


Next:
- Setup Hardware Devices debugging for Android Studio on Ubuntu 15.10

Read More..

Wednesday, March 30, 2016

DialogFragment example something wrong on Android 6 Marshmallow emulator

Its a example to implement DialogFragment. Please check the screenshots of running on Android Emulators of Android 4.1 Jelly Bean with API 16, Android 5.1 Lollipop with API 22 and Android 6.0 Marshmallow with API 23. If the emulator of Android 6.0 Marshmallow work properly, DialogFragment display wrong on Marshmallow.



Check this video:


layout/fragment_dialog.xml, DialogFragment layout.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout

android_padding="10dp"
android_orientation="vertical"
android_layout_width="match_parent"
android_layout_height="match_parent">

<ImageView
android_layout_width="wrap_content"
android_layout_height="wrap_content"
android_src="@mipmap/ic_launcher"/>

<TextView
android_id="@+id/dialogtext"
android_layout_width="match_parent"
android_layout_height="wrap_content"
android_textSize="20dp"
android_textStyle="italic|bold"/>

</LinearLayout>

MainActivity.java with DialogFragment.
package com.blogspot.android_er.androiddialogfragment;

import android.app.DialogFragment;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

EditText inputTextField;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

inputTextField = (EditText)findViewById(R.id.inputtext);
Button btnOpen = (Button)findViewById(R.id.opendialog);
btnOpen.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
showDialog();
}
});
}

void showDialog() {
FragmentTransaction ft = getFragmentManager().beginTransaction();
Fragment prev = getFragmentManager().findFragmentByTag("dialog");
if (prev != null) {
ft.remove(prev);
}
ft.addToBackStack(null);

String inputText = inputTextField.getText().toString();

DialogFragment newFragment = MyDialogFragment.newInstance(inputText);
newFragment.show(ft, "dialog");

}

public static class MyDialogFragment extends DialogFragment {

String mText;

static MyDialogFragment newInstance(String text) {
MyDialogFragment f = new MyDialogFragment();

Bundle args = new Bundle();
args.putString("text", text);
f.setArguments(args);

return f;
}

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mText = getArguments().getString("text");

}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View dialogView = inflater.inflate(R.layout.fragment_dialog, container, false);
TextView dialogText = (TextView)dialogView.findViewById(R.id.dialogtext);
dialogText.setText(mText);

return dialogView;
}
}
}


layout/activity_main.xml, main layout.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout


android_layout_width="match_parent"
android_layout_height="match_parent"
android_padding="16dp"
android_orientation="vertical"
tools_context=".MainActivity"
android_background="#808080">

<TextView
android_layout_width="wrap_content"
android_layout_height="wrap_content"
android_layout_gravity="center_horizontal"
android_autoLink="web"
android_text="http://android-er.blogspot.com/"
android_textStyle="bold" />

<EditText
android_id="@+id/inputtext"
android_layout_width="match_parent"
android_layout_height="wrap_content"
android_hint="Type something"/>
<Button
android_id="@+id/opendialog"
android_layout_width="match_parent"
android_layout_height="wrap_content"
android_text="Open DialogFragment"
android_textAllCaps="false"/>
</LinearLayout>


reference: http://developer.android.com/reference/android/app/DialogFragment.html


To fixed it, edit layout/fragment_dialog.xml, modify android:layout_width of <ImageView> from "wrap_content" to "match_parent".

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout

android_padding="10dp"
android_orientation="vertical"
android_layout_width="match_parent"
android_layout_height="match_parent">

<ImageView
android_layout_width="match_parent"
android_layout_height="wrap_content"
android_src="@mipmap/ic_launcher"/>

<TextView
android_id="@+id/dialogtext"
android_layout_width="match_parent"
android_layout_height="wrap_content"
android_textSize="20dp"
android_textStyle="italic|bold"/>

</LinearLayout>

android:layout_width="wrap_content"

android:layout_width="match_parent"

Read More..

The Pyraplex v1 0 8 Full

Transcend the boundaries of space and time to construct a colossal new wonder of the world in this pyramid-building adventure!
Make history with the Pyraplex, a desert oasis of commerce and culture far ahead of its time. You may attract visitors ranging from Aztec chiefs to Roman centurions to wayfarers even further from home. Cultivate trade with these civilizations and more to enrich your culture as well as your coffers.
Keep your bazaar buzzing by adding amenities and making handicrafts. While quarrying building stones, youll also unearth hidden treasures with a variety of uses.
Of course, building a new wonder of the world is no easy task, so expect an annual evaluation by the Pyramid Association to keep you on track! Youll have to design with both form and function in mind if you want to tower above the rest!

Read Here: How to Install APK

Requirements: Android 2.2+
File Size: 5 MB
Download Link: Mediafire
Read More..

Infectonator Mod Money Unlocked Android Game Moded


Salam Blogger :) 
Hari yang amat melelahkan, sampai2 baru inget makan sejam yg lalu duh... Oke pada kesempatan malam ini ane mau share game mod lgi. Game ini ceritanya kita adalah seseorang yng berambisi ingin membuat seluruh dunia menjadi zombie. dari mulai negara satu ke negara lain. oke langsung saja cek it versi modnya :) 

Details Game: 
Name      : Infectonator
Genre      : Casual
Platform  : Android 
Requires  : Android 2.2  and up

Modification on Game: 
- Mod Money
- Unlocked



Review Modif:

Screenshoot:


Tutorial Instal : 
1. Download game. 
2. Pindahkan Game ke Androidmu.
3. Uniinstal Version originalnya, jika ada.
4. Instal MOD apk & Play
5. Enjoyyy 



|DOWNLOAD|
Infectonator - Mod Money&Unlocked[Android Game : Moded]

|Download Original game|
On Playstore

#Salam Blogger
#Semoga bermanfaat :)
#Ask? comment :)
Read More..

Android Developers Backstage Episode 10 ART pART 1

Tor and Chet may not know ART, but they know what they like. In this episode, the first in a two-pART series, they talk with Anwar Ghuloum from the ART, or Android Runtime team. ART is the new runtime for Android, which came online in the KitKat release as an alternative to Dalvik. Now ART is not only enabled by default: it’s the only runtime. We’ll talk about what it is, how it works, why it’s better, and the future and very meaning of ART in modern society.

Subscribe to the podcast feed or download the audio file directly.

ARTicles:
Introducing ART: http://source.android.com/devices/tech/dalvik/art.html
Verifying App Behavior: http://developer.android.com/guide/practices/verifying-apps-art.html

Google I/O 2014 Session:
The ART Runtime: https://www.youtube.com/watch?v=EBlTzQsUoOw

Other Resources:
Systrace: http://developer.android.com/tools/help/systrace.html

Tor: google.com/+TorNorbye
Chet: google.com/+ChetHaase
Read More..

BEAST BUSTERS feat KOF Unlimited Medals Coins Android Game Moded


Salam blogger :) 
Sakit lagi sakit lagi, -____- . Ah sudahlah harus banyak istirahat ini. back to topic. “BEAST BUSTERS” and “THE KING OF FIGHTERS”, adalah legendary dari SNK. Bagaimana jika keduanya di gabung dalam 1 game ? haha ya jadilah seperti game ini. oke cek it versi mod nya, enjoyyy ... 

Details Game: 
Name      :BEAST BUSTERS feat.KOF
Genre      : Action, RPG
Platform  : Android 
Requires  : Android 4.4  and up

Modification on Game: 
- Unlimited Medals
- Unlimited Coins

Review Modif:



Screenshoot:


Tutorial Instal : 
1. Download game. 
2. Pindahkan Game ke Androidmu.
3. Uniinstal Version originalnya, jika ada.
4. Instal MOD apk, jangan di play terlebih dahulu
5. Pindahkan "com.snkplaymore.android008" ke SDCard/Android/OBB (Internal stroge/Android/Obb) Pindahkan bersama Foldernya bukan hanya Filenya. 
6. Jika sudah, baru Play Game, Tunggu hingga prosses Data selesai & Enjoyyy.. 


|DOWNLOAD|
(APK)
BEAST BUSTERS feat.KOF - Unlimited Medals&Coins[Android Game : Moded]
(OBB)
BEAST BUSTERS feat.KOF - Unlimited Medals&Coins[Android Game : Moded]


|Download Original game|
On Playstore

#Salam Blogger
#Semoga bermanfaat :)
#Ask? comment :)
Read More..

Easy Todo Task To do List v1 3 1 Free

EasyTodo is a simple todo list that aims to make your life easier by helping you get things done. Use EasyTodo to remember things, tell it to remind you at time or at a place, manage your grocery list and use as your task manager. Sync with the Google Tasks account on cloud. Manage and organize your tasks and todo items in the most innovative and intuitive way.

*** Details of permissions explained below ***
EasyTodo is loaded with some of the most innovative and exciting qualities -
? Simple and sleek - Arguably the most professional looking todo / GTD app out there, EasyTodo brings you the ultimate Android™ experience, wherever you are.
? Everything at your fingertips - EasyTodo automatically detects the action you want to take like calling, texting or emailing someone, or visiting a place with someone and presents it as an action with the task.
? Three more dimensions for you - With EasyTodo, you can set reminder at a place, so that it can remind you of the task whenever youre just there!
? Type less, do more - EasyTodo suggests most relevant keywords detected from you tasks.
? Command - Adds your tasks by voice!
? Stay on the cloud - Sync your tasks with Google™ Tasks seamlessly with various flexible timing options. Control how often tasks are synchronized for each account.
? Stay connected - EasyTodo helps you with suitable suggestions from your contact book while typing.
? (Dont) Forget to remember - EasyTodo is really smart. It will add a task when you miss a call from someone, so that you never forget to call back your boss or dear one. It will also remind your friends birthday on time!
? Cross it off - Swipe your finger to mark tasks as complete or incomplete. And you can configure this action to navigate among task lists too.
? Find anything here - Search all your tasks with EasyTodo.
? Experience the ease - Quickly switch between your Local and Cloud (Google™ Tasks) accounts.
? No ads - We understand the value of your time. EasyTodo is an ad-free application.
? And yes, feel at home ? EasyTodo supports the basic todo stuff too - 
- Manage your tasks and todo list
- Prioritize your tasks GTD
- Categorize your tasks in Task Lists
- Sort tasks according to date / list / priority
- Set reminders for your tasks, once or repeated
- Share individual tasks and task lists
- Use home screen widgets
- Get things done :)
And many more innovative features to come in the next version!

Permissions explained -
Your accounts - To allow you to add your Google Tasks account, and to prompt you to add one if you already dont have one on your phone.
Services that cost you money - Yes, you can directly make a call from EasyTodo. Add a task Call ABCD and EasyTodo will show you a button clicking which ABCD will be called if he / she is in your contact book.
Your personal information - Your contact list is scanned when you type specific words like call or text.
Run at startup - Allows us to set the reminder alarms when the phone boots up
Read call log - To find out who called you last when you have a missed call. Of course you can disable the scanning in the app preference.
Your location - So that it can remind you when you are at any particular place.
Common permissions are not explained.

Whats New
04-Apr-2013
- Solved the latest version crashing on some Gingerbread devices
29-Mar-2013
- Task attachments
- UI improvements
07-Mar-2013
- Location based reminder
- Crash and bug fixes
- Improvements in home screen widget, reminder popup and contact suggestions
22 January, 2013
- App installation size reduced by 4 Mb
- Crash and bug fixes

Read Here: How to Install APK

Requirements: Android 2.3.3+
File Size: 4.32 MB
Download Link: Mediafire.com
Read More..

Tuesday, March 29, 2016

Angry Birds Space 1 30 Free Full Version Download

Angry Birds Space

 

Kali ini para burung murka berpindah dari planet bumi yang membosankan menuju luar angkasa yang lebih menantang!
Para babi nakal pun siap membuat kacau mereka di angkasa dengan mencuri asteroid berbentuk telur yang mereka sayangi, EGGSTEROID.
Pasukan burung! Serang!!

Read More..

Uninstall Tool Full Version 3 3 3 53 Free Download


Salam blogger :) 
pernah kalian ingin menguninstal tetapi masih ada sisa2 nya alhasil laptop menjadi lemot, kadang masih ada ad-ware2 yg mengganggu, dan lain sebagainya. nah coba tools ini, Dengan tool ini ketika kita menguninstal software, tool ini akan mencari sisa2 dari software yang di uninstal tersebut. alhasil, ketika teruninstal pc/laptop seperti semula, sblm kita menginstal software tersebut. oke cek itt... 

Uninstall Tool :
Uninstall Tool adalah software yang dapat membantu kita ketika meng-uninstall sebuah software yang terpasang di PC kita. Tapi sebenarnya kita dapat meng-uninstall software melalui fitur pada Control Panel, namun cara atau fitur tersebut kurang efektif, karena biasanya menyisakan file-file atau registry yang tidak terhapus sepenuhnya, sehingga akan menjadi file sampah di PC kita. Jadi software Uninstall Tool 3.3.3.53 Full Crack ini dapat membantu kita untuk meng-uninstall software tanpa menyisakan file sampah di PC kita.


|Screenshoot|


Tutorial Instal : 
1. Download Uninstall Tool & Crack nya
2. Instal Uninstall Tool, seperti biasa anda menginstal software (Next" aja)
3. Jika proses instalasi sudah selesai, Copy dan paste kan File Crack nya ke dalam Folder "Uninstall Tool
4. Uninstal Tool siap di Jalankan dengan sempurna :) 



|Download|
(Setup)
Uninstall Tool Full Version 3.3.3.53 - Free Download

(Crack File)
Crack X86
Crack X64


#Salam Blogger
#Semoga bermanfaat :)
#Ask? comment :)
Read More..

Minecraft Portable Full Free Download for PC Packed with Java v1 5 2




Minecraft Portable gratis download full

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas

Minecraft






Logo Official dari Minecraft
Pengembang Mojang
4J Studios (Xbox 360)
Penerbit Mojang
Microsoft Studios (Xbox 360)
Perancang Markus Persson
Versi 1.6.2
Patch versions[tampilkan]
Platform Java platform, Java applet, Android, iOS, Xbox 360
Tanggal rilis PC (Java)
November 18, 2011
Android
October 7, 2011
iOS
November 17, 2011
Xbox 360
May 9, 2012
Genre First-person, sandbox
Mode Single-player, multiplayer
Media digital/distribusi Download, in-browser


Minecraft adalah permainan sandbox. Permainan ini awalnya diciptakan oleh pencipta asal Swedia, Markus "Notch" Persson, dan sekarang dikembangkan oleh perusahaannya, Mojang. Pada tahun 2011, Jens Bergensten, juga dikenal dengan nama samaran Jeb, mengambil alih kontrol Minecraft.
Minecraft difokuskan pada kreativitas dan pembangunan, yang memungkinkan pemain untuk membangun konstruksi dari kubus bertekstur dalam dunia 3D. Gameplay dalam rilis komersial memiliki dua mode utama: Survival, yang mengharuskan pemain untuk mendapatkan sumber daya sendiri dan memiliki poin nyawa dan lapar. Dan creative, di mana pemain memiliki sumber daya yang tak terbatas, kemampuan untuk terbang, dan tidak ada poin nyawa maupun lapar. Sebuah modus gameplay ketiga, bernama Hardcore, sama seperti survival, hanya saja tingkat kesulitan terkunci pada pengaturan paling sulit dan tidak dapat hidup kembali, memaksa pemain untuk menghapus dunianya setelah mati. Versi klasik juga tersedia secara gratis, meskipun sudah tidak dikembangkan lagi. Mode creative menyerupai klasik, tetapi dengan lebih banyak fitur.
Minecraft dirilis dari alpha pada 17 Mei 2009, dengan versi beta pada tanggal 20 Desember 2010. Resmi versi untuk iOS dan Android telah dirilis dan versi lengkap dari PC permainan ini dirilis pada 18 November 2011 di MineCon 2011. Dan juga tersedia di android Market. Pada tanggal 9 Mei 2012, Minecraft dirilis pada Xbox 360 sebagai permainan Xbox Live Arcade,dikembangkan oleh 4J Studios. saat tanggal 25 Mei 2012, permainan ini telah terjual lebih dari tujuh juta penjualan pada PC dan lebih dari sembilan juta kopi di semua platform.

Read More..

Monday, March 28, 2016

Using Android Preferences

We saw before that we can persist an applications data using SQLite database. Android offers another way to store users data through using preferences.

Android preferences is a key/value entries that store data that can be specific to a certain activity or shared among all activities within the application.
the data are stored in a xml file.

Saving Preferences

We can save preferences in three ways:

  1. Preferences can be retrieved only by a single activity.
  2. Preferences can be shared and retrieved among all activities within the application.
  3. Preferences can be shared and retrieved through all applications on the device.
Saving Activity-level preferences:
to save preferences that are accessed only from a single activity, we do it like this:
SharedPreferences prefs=getPreferences(Context.MODE_PRIVATE);
SharedPreferences.Editor editor=prefs.edit();
editor.putString("pref 1", "some text");

editor.commit();

we get a SharedPreferences object by calling getPreferences(int mode) method which takes an integer value as a parameter, the mode value can be one of the following:

  1. Context.MODE_PRIVATE (0): a file creating mode that makes the created file only accessible by applications with the same user ID (access the file from the same application context, will desctribe later).
  2. Context.MODE_WORLD_READABLE (1): file mode makes the file readable from other applications.
  3. Context.MODE_WORLD_WRITEABLE (2): file mode allows other applications to write to the file.
then we get an instance of SharedPreferences.Editor and write the preference value with editor.putString(String key, String value) method.
shared preferences allows you to insert preferences using the following methods:
  1. editor.putBoolean(String key, boolean value).
  2. editor.putFloat(String key,float value).
  3. editor.putInt(String key, int value).
  4. editor.putLong(String key, long value)
  5. editor.putString(String key, String value)
then we call edit.commit() to save the preferences to the file. commit returns a boolean indicating the result of saving, true if successful and false if failed.

Reading preferences values:
To read preferences values:
SharedPreferences prefs=getPreferences(Context.MODE_PRIVATE);
String val=prefs.getString("pref 1", "some text");
we use sharedpreferences.getString(String key, String defaultValue) (or get boolean/float/int) to return the value stored with a specific key or defaultValue if not found.

Saving Application-level preferences:
to save preferences that can be retrieved from all activities in the application we do it like this:
SharedPreferences prefs= getSharedPreferences("demopref", Context.MODE_WORLD_READABLE);
SharedPreferences.Editor editor=prefs.edit();
editor.putString("demostring", "hello");
editor.commit();

same as the code above, but the difference is that we give our preferences file a name (demopref in this case) so that other activities can reference that preferences file.
Sharing preferences across applications:


We can store preferences in one application and read them in another application, this is done reading the preferences file by loading them through the first applications context.

lets assume we have two applications:

  1. Application 1 with package name "com.mina.prefdemo".
  2. Application2 with package name "com.mina.demoapp".
If application1 creates a preferences file with the name "demopref" and inserts a String preference with the key/value "demostring/hello".

now we access this file and value from application 2 like this:
Context con;
try {
con = createPackageContext("com.minasamy.prefdemo", 0);
SharedPreferences pref=con.getSharedPreferences("demopref", Context.MODE_PRIVATE);
String x=pref.getString("demostring", "not found");
txt.setText(x);
} catch (NameNotFoundException e) {
Log.e(Tag, e.toString());
}

Creating Preferences Activities:
android provides another nice way of presenting and saving preferences. you can create Activities that extend PreferenceActivity.
PreferenceActivity is an activity that displays a set of built-in preferences related widgets that are defined in xml file.

the preference activity can be divided to several PreferenceCategory each containing a set of related preferences.
The preferences widgets that Android provide are:

  1. CheckBoxPreference: displays a check box widget.
  2. EditTextPreference: displays an EditText widget to save user prefs.
  3. RingtonePreference: displays a list with the  ringtones on the device.
  4. ListPreference: displays a list of key/value items.
each one of these preferences widgets is associated with a preference key. its value is persisted instantly as the widget selection changes.

we can construct our preferences screen xml (saved in res/xml directory) layout like this:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
>
<PreferenceCategory
android_title="Catogory one"
android_summary="sample summary">
<CheckBoxPreference
android_title="Enable"
android_key="pref_enable"
android_summary="enables a preference"/>
<EditTextPreference
android_summary="Edit text prefrence"
android_title="Edit"
android_key="pref_edit"/>


</PreferenceCategory>
<PreferenceCategory
android_title="Category2"
android_summary="sample summary">
<RingtonePreference
android_key="pref_ring"
android_title="Ringtones preference"/>

<ListPreference
android_key="pref_list"
android_title="List Preference"
android_dialogTitle="List Pref Dialog"
android_entries="@array/pref_items"
android_entryValues="@array/pref_items_values"/>
</PreferenceCategory>


then from our activity:
public class PrefActivity extends PreferenceActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.prefs);

}
}

and the activity will look like this:





the ListPreference can be associated with String array resources as its key/value entries
<string-array name="pref_items">
<item>Item1</item>
<item>Item2</item>
<item>Item3</item>
<item>Item4</item>
<item>Item5</item>
</string-array>

<string-array name="pref_items_values">
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
</string-array>


to reference the preference widgets programmatically:
EditTextPreference pref_edit=(EditTextPreference)findPreference("pref_edit");
Read More..