How to solve the problem of launch the apps twice or more?

by Dianne Hackborn » Wed, 21 Apr 2010 11:26:25 GMT


Sponsored Links
 Make sure you aren't calling startActivity() anywhere, such as in
onCreate().

Look at the log (adb logcat) and event log (adb logcat -b events) to see
what the system is saying about launching and handling activities.

Please don't use singleTask or singleInstance to fix such problems, they are
not needed and have other repercussions you probably don't want.






> >



How to solve the problem of launch the apps twice or more?

by Dianne Hackborn » Wed, 21 Apr 2010 13:07:44 GMT


 Starting a service doesn't have anything to do with the activity stack.  It
is only needed if you actually must have a service running even after the
user leaves your app.  (And of course you must have a good plan for how you
will stop the service, so it doesn't get left running forever.)








> > > >


Sponsored Links


Other Threads

1. Kuatkah Android Samsung Tantang HTC?

Berarti Operator harus pinter-pinter memilih pabrikan ponsel android?


=====================



INILAH.COM, Jakarta Empat bulan setelah mengumumkan masuk pasar
Android, Samsung mulai memasarkan handsetnya i7500 di Taiwan. Samsung
akan menghadapi raksasa ponsel Android, HTC di kandang lawan.

Perusahaan yang bermarkas di Seoul Korea pertama kali memasarkan
smartphone i7500 di Jerman dan negara lain pada Juni 2009. Tapi kini
Samsung mulai meluaskan pasarnya dengan menargetkan konsumen Taiwan.

Masuk pasar Taiwan merupakan langkah strategis bagi Samsung. Taiwan
memiliki HTC, perusahaan pertama yang meluncurkan ponsel yang didukung
Android untuk pertama kalinya.

Masuknya i7500 di Taiwan berbarengan dengan langkah HTC mengeluarkan
handset ketiganya menggunakan platform Android, HTC Hero di Eropa dan
Asia. HTC memasarkan ponsel Android pertama G1 (juga dikenal dengan
nama HTC Dream) pada Februari dan kedua HTC Magic di April.

Perangkat Samsung i7500 menawarkan layar sentuh full 3.2-inci, Wi-Fi,
dan download kecepatan tinggi 7.2Mbps. Selain itu juga tersedia kamera
5 megapiksel, kapasitas memori hingga 40GB dan akses ke Google
Services termasuk Search, Maps, Gmail, Calendar, Talk dan YouTube.

Sedangkan HTC Hero memiliki fitur yang sama, termasuk layar sentuh 3.2
inci dan kamera lima megapiksel.

Analis menilai perangkat Samsung itu akan sukses karena distribusi
luas perusahaan itu. Selain juga Android merupakan platform yang lebih
baik di pasaran, didukung aplikasi yang banyak.

Tapi ada analis yang menyangsikan Samsung bakal cukup kuat bersaing
dengan ponsel Android HTC.

"Layar light-emitting diode merupakan tawaran menarik, tapi aku pikir
Samsung bukan pilihan sekuat HTC Magic," kata Ken Dulaney, analis
mobile Gartner. [ito]


http://www.inilah.com/berita/teknologi/2009/08/11/140376/kuatkah-android-samsung-tantang-htc/
--~--~---------~--~----~------------~-------~--~----~

2. using shape as my background never show the color I specify

Hi,

i specify the following xml as my background for my view. It shows the
oval, but the color is always white.

I have played around with the android:color field, but the color never
changes, it is always white.
I tried "#FF0000", "#ff0000", "#00ff0000"
Any idea?

Thank you.


<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="oval"
    android:color="#FF0000"
</shape>

--~--~---------~--~----~------------~-------~--~----~

3. Slow GPS updates

4. ExtractEditText and InputServiceManager's Context

5. ambiguous column name: _id when querying the contacts list

6. Sensor getting ArrayIndexOutOfBoundsException in onSensorChanged(int, float[]) from SensorListener

7. how to play video from raw folder?