free counters
Diberdayakan oleh Blogger.

Sabtu, 04 Oktober 2014

Launch only one activity in android

by Unknown  |  in Tutorial at  Sabtu, Oktober 04, 2014

If we have two or more different activity in an android application, there is a probability that more than one different activity are shown when we launch one specific activity from android widget (of course we must had have created the widget for launching it).

We only need to add this code in AndroidManifest.xml:

 android:launchMode="singleInstance"  
Remember that I have only test this on android ICS 4.0.4.

0 comments:

Silahkan tinggalkan komentar anda: