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. Fwd: Looking for bride,Latest jobs in Dubai,and Internships

http://www.weeklyjobs.tk


   - COMMERCIAL SUPERVISOR ,
Dubai<http://jobsweek.blogspot.com/2009/05/commercial-supervisor-dubai.html>
   - MANAGER OF OPERATIONS,
Gulf<http://jobsweek.blogspot.com/2009/05/manager-of-operations-gulf.html>
   - PROFESSIONAL SERVICE ENGINEERS ,
Dubai<http://jobsweek.blogspot.com/2009/05/professional-service-engineers-dubai.html>
   - PARTS & SERVICES MARKETING MANAGER ,
Duba<http://jobsweek.blogspot.com/2009/05/parts-services-marketing-manager-duba.html>
   - Electrician ,
Dubai<http://jobsweek.blogspot.com/2009/05/electrician-dubai.html>
   - Oracle Database
Administrator<http://jobsweek.blogspot.com/2009/05/oracle-database-administrator.html>
   - SEO Article
writer<http://jobsweek.blogspot.com/2009/05/seo-article-writer.html>
   - Web/Graphic
Designer<http://jobsweek.blogspot.com/2009/05/webgraphic-designer.html>
   - Jobs @ Engro
Foods<http://jobsweek.blogspot.com/2009/05/jobs-engro-foods.html>
   - ORACLE 
Developer<http://jobsweek.blogspot.com/2009/05/oracle-developer.html>
   - JOB OPENINGS @
Palmchip<http://jobsweek.blogspot.com/2009/05/job-openings-palmchip.html>
   - Intern @ CAST <http://jobsweek.blogspot.com/2009/05/intern-cast.html>
   - INTERNSHIPS @
NADRA<http://jobsweek.blogspot.com/2009/05/internships-nadra.html>
   - Jobs In Dubai <http://jobsweek.blogspot.com/2009/05/jobs-in-dubai.html>
   - NASA <http://jobsweek.blogspot.com/2009/05/nasa.html>
   - Internship Opportunities @ Green
Belt<http://jobsweek.blogspot.com/2009/05/internship-opportunities-green-belt.html>
   - Branch Manager - Rental Solutions &
Services<http://jobsweek.blogspot.com/2009/05/branch-manager-rental-solutions.html>
   - Manager 
Electrical<http://jobsweek.blogspot.com/2009/05/manager-electrical.html>
   - Jobs in HPL : Engineer Vacancies in Hindustan
Pref...<http://jobsweek.blogspot.com/2009/05/jobs-in-hpl-engineer-vacancies-in.html>
   - Jobs in ARMY : Engineer Vacancies in INDIA
ARMY<http://jobsweek.blogspot.com/2009/05/jobs-in-army-engineer-vacancies-in.html>
   - Youth Internship
Program<http://jobsweek.blogspot.com/2009/05/youth-internship-program.html>

Apnay Classified Ads

   - Good Condition Flat For
Sale<http://apnayads.blogspot.com/2009/05/good-condition-flat-for-sale.html>
   - Apartment For
Rent<http://apnayads.blogspot.com/2009/05/apartment-for-rent.html>
   - Marriage <http://apnayads.blogspot.com/2009/05/marriage.html>
   - Looking for a
Groom<http://apnayads.blogspot.com/2009/05/looking-for-groom.html>
   - Looking for
wife<http://apnayads.blogspot.com/2009/05/looking-for-wife.html>
   - LOOKING FOR
BRIDE<http://apnayads.blogspot.com/2009/05/looking-for-bride.html>
   - HOME TUTIONS <http://apnayads.blogspot.com/2009/05/home-tutions.html>
   - yamha 100 
endoro<http://apnayads.blogspot.com/2009/05/yamha-100-endoro.html>
   - Charade 1984,91 for sale Pkr
150,000<http://apnayads.blogspot.com/2009/05/charade-198491-for-sale-pkr-150000.html>
   - TOYOTA STARLET 1000 CC.1979
MODEL<http://apnayads.blogspot.com/2009/05/toyota-starlet-1000-cc1979-model.html>
   - Cool chiller/ fridge
Pkr15,000<http://apnayads.blogspot.com/2009/05/cool-chiller-fridge-pkr15000.html>
   - Radio Controlled
Aeroplane<http://apnayads.blogspot.com/2009/05/radio-controlled-aeroplane.html>
   - FOR SALE LG
KG-288<http://apnayads.blogspot.com/2009/05/for-sale-lg-kg-288.html>
   - Need a tutor for
matric<http://apnayads.blogspot.com/2009/05/need-tutor-for-matric.html>
   - Tutor available in North Nazimabad
Town<http://apnayads.blogspot.com/2009/05/tutor-available-in-north-nazimabad-town.html>
   - CAR FOR SALE <http://apnayads.blogspot.com/2009/05/car-for-sale.html>

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

2. How can I listen for MApView page load completed event Options

Hi
In my application to load the map its taking time
so how can I detect when the map got loaded completely
plz help me ??
--~--~---------~--~----~------------~-------~--~----~

3. Run Android with Eee PC resolution using grub2+915resolution

4. Run Android with Eee PC resolution using grub2+915resolution

5. Do non-US locale DateFormats not work in the 1.5 SDK?

6. Error creating an Android Virtual Device

7. bug in android.intent.action.PHONE_STATE