Android Community
Results 1 to 1 of 1

Thread: start activity from service?!

  1. #1
    Join Date
    Jul 2011
    Posts
    1

    Question start activity from service?!


    Hi, trying to start activity from service started at BOOT (android.intent.action.BOOT_COMPLETED), but log shows how application dies (don't know why exactly) and restarts and triees again and again..

    If I launch activity from another activity ther is no problem. Maybe reason is trying to launch activity from service started at BOOT (?).

    I've tried differents ways of starting activity, like

    Intent newUserForm = new Intent(_context, NewUserForm.class);
    newUserForm.setFlags(Intent.FLAG_FROM_BACKGROUND | Intent.FLAG_ACTIVITY_NEW_TASK );
    _context.startActivity(newUserForm);

    Why is my app dying (and restarting) and I'm not able to start activity from service who starts at BOOT??
    thank you!!!!!!
    Last edited by Mutenroshi; 07-07-2011 at 05:26 AM.

Similar Threads

  1. How to start service without srarting the device
    By kk.mca2009 in forum All About Andorid Software
    Replies: 0
    Last Post: 01-20-2011, 11:47 PM
  2. Physical activity
    By hdfbddgu in forum Developers Guild
    Replies: 13
    Last Post: 08-31-2010, 07:13 PM
  3. activity home?
    By Krak in forum General Phone Chat
    Replies: 30
    Last Post: 08-02-2010, 07:58 PM
  4. Sending intent with extra's from service to activity
    By Epimetheus_ in forum Developers Guild
    Replies: 0
    Last Post: 04-21-2010, 04:15 AM
  5. SMS Activity Log?
    By d4vyt in forum General HTC Chat
    Replies: 0
    Last Post: 07-29-2009, 03:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •