2014

Wednesday, December 17, 2014

Thursday, December 4, 2014

Creating notification in android.....


This article shows how to create notification in android. public MyNotification(Context ctx){ super(); this.ctx=ctx; String ns = Context.NOTIFICATION_SERVICE; NotificationManager mNotificationManager = (NotificationManager) ctx.getSystemService(ns); long when = System.currentTimeMillis(); ...

Wednesday, December 3, 2014

Creating Custom views in a PreferenceActivity in android...


This article shows how to add custom view in PreferenceActivity in android. Create main.xml, the only necessary view is a ListView, with id: android:id="@android:id/list". <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"  ...

Sunday, September 28, 2014

Wednesday, September 3, 2014

Installing & Uninstalling Home Screen Shortcut.....


This Article shows to create installing & uninstalling home screen shortcut. 1- Create method for adding shortcut to home screen(addShortcut()). private void addShortcut() { Intent shortcut = new Intent(this, MainActivity.class); shortcut.setAction(Intent.ACTION_MAIN); Intent add...

Thursday, August 14, 2014

Creating SimpleAdapter for ListView in Android.....


This Article shows to create SimpleAdapter for ListView in Android. 1- Create row xml for ListView(row.xml). <?xml version="1.0" encoding="utf-8"?> <LinearLayout      xmlns:android="http://schemas.android.com/apk/res/android"      android:layout_width="fill_parent"  ...

Thursday, August 7, 2014

Creating ListActivity & BaseAdapter in Android.....


This article shows to create ListActivity & BaseAdapter in Android. 1- Create BaseAdapter for ListActivity(MyAdapter.java). import android.app.Activity; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; public...

Wednesday, August 6, 2014

Creating animated dialog in android…..


This article shows you to create animated dialog in android. 1- Create anim folder inside resoures(res). 2- Create xml for slide in dialog(slide_in.xml) in anim. <?xml version="1.0" encoding="utf-8"?> <translate xmlns:android="http://schemas.android.com/apk/res/android"    ...

Tuesday, August 5, 2014

Creating custom toast using xml.....


This article shows you to create custom toast in android. 1- Create xml for Toast(toast.xml). <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"               android:id="@+id/toast_layout_root"  ...

Creating custom dialog using xml.....


This tutorial show you how to create a custom dialog in Android.           1-  Create activity & custom dialog layout xml file. activity_main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"  ...