[android-developers] CLEAR_TOP + start new activity. Hierarchy issue

2012-07-29 Thread Dmitriy F
I have a hierarchy consisting of 4 levels of depth. My profile has 2nd level of hieararchy that means that pressing back while being in profile must always return user to the 1st hierarchy level. My problem is that link to the profile is available on all levels; so, for instance, if a user

[android-developers] to start an activity

2011-11-21 Thread mohana priya
Hello android developers.I want to know whether we can start the activity life cycle manually in android.Please reply me.Thanks in Advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Start an activity without creating a new one.

2010-07-31 Thread Tim
On Jul 31, 5:26 pm, Adriano B. Godinho adri...@godinho.eng.br wrote: Hi, You can declare your activity with singleTask launch mode.  activity android:name=.YourActivity                   android:label=@string/app_name                   android:launchMode=singleTask/ More

[android-developers] Re: Start ACTION_CALL activity from service on Motorola Milestone

2010-07-15 Thread alex.tchumel
Hi! I'm sorry, looks like the problem is not related with activity or service. I have this problem if I have a running MediaRecorder in my service or some binded service. The ACTION_CALL activity doesn't appear while the MediaRecorder is running! The ACTION_CALL activity appears right after that

[android-developers] Re: Start ACTION_CALL activity from service on Motorola Milestone

2010-07-04 Thread alex.tchumel
Activity can't be started from the service without FLAG_ACTIVITY_NEW_TASK flag. Probably there is some alternative to this flag, but activity from the service doesn't started simple without this flag and without any other flag. Read about this flag here

Re: [android-developers] Re: Start ACTION_CALL activity from service on Motorola Milestone

2010-07-04 Thread Mark Murphy
On Sun, Jul 4, 2010 at 4:49 AM, alex.tchumel alex.tchu...@gmail.com wrote: Activity can't be started from the service without FLAG_ACTIVITY_NEW_TASK flag. Then do not start that activity from a service. There better be a user using the device at the time the call needs to be placed, and the

[android-developers] Re: Start ACTION_CALL activity from service on Motorola Milestone

2010-07-03 Thread alex.tchumel
Could you say more about your idea - what kind of the flags can be helpfull? Do you think an alternative to FLAG_ACTIVITY_NEW_TASK flag or some additional flag(s) to FLAG_ACTIVITY_NEW_TASK? I spent a lot of time to fix this problem without of understandig it : ( I started a simple launcher

Re: [android-developers] Re: Start ACTION_CALL activity from service on Motorola Milestone

2010-07-03 Thread Mark Murphy
On Sat, Jul 3, 2010 at 5:54 AM, alex.tchumel alex.tchu...@gmail.com wrote: Could you say more about your idea - what kind of the flags can be helpfull? Position the cursor of your editor at the end of the line containing you setFlags() call. Press the backspace key enough times to eliminate

[android-developers] Re: Start an activity WITHOUT it becoming the foreground one?

2010-05-07 Thread Ritu
Not sure if you have already resolved this. But here is one quick solution: you can set the flag, FLAG_ACTIVITY_PREVIOUS_IS_TOP when you create intent for your new activity. This would prevent bringing your new activity in the foreground. -Ritu On Apr 22, 4:13 pm, ~ TreKing treking...@gmail.com

[android-developers] Re: Start an activity WITHOUT it becoming the foreground one?

2010-04-22 Thread Ivan Greene
Activities are meant for the user to interact with, so no. You can create a service, and call it with startService(Intent). There are some nice examples of services in API Demos: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/index.html (look for

[android-developers] Re: Start new activity in TAB

2010-01-06 Thread jotobjects
Are you calling this method to set the action for the tab? http://developer.android.com/intl/fr/reference/android/widget/TabHost.TabSpec.html#setContent%28android.content.Intent%29 On Jan 5, 3:11 pm, smyl smy...@gmail.com wrote: the activites are with in the same application , but the thing is

[android-developers] Re: Start new activity in TAB

2010-01-05 Thread jotobjects
Unless the Activities that you want to show under the tabs are activities in the same application you may run into the problem described here regarding TabWidget - http://groups.google.com/group/android-beginners/msg/17c95a6881e1dfe4 On Jan 5, 5:50 am, smyl smy...@gmail.com wrote: i am working

[android-developers] Re: Start new activity in TAB

2010-01-05 Thread smyl
the activites are with in the same application , but the thing is that when the user clicks on a particular city i can start the activity which contains the forecast for that city but that new activity launches on the whole screen not within the current tab , i.e it doesn't replaces the activity

[android-developers] Re: Start another activity with a broadcast intent

2009-12-01 Thread Adeem
Did you find the solution? On Nov 30, 12:19 am, Moritzz moritz...@googlemail.com wrote: Hi! I'm trying to start an activity out of a widget so I can't use the startActivity() function. So I'm trying to create the correct intent but I don't find what I'm missing. Here's my code:

[android-developers] Re: Start an activity and return back to original activity

2009-01-27 Thread kaushik sur
yes instead of making new activity to go back to the main activity u can use a flag here screen1 is suppose to be the old activity /* Intent newIntent=new Intent(*android*.intent.action.SCREEN1); newIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(newIntent); */ if i

[android-developers] Re: Start an activity without declaring it in manifest file

2008-09-02 Thread Mark Murphy
semaka wrote: I have a project in which I have to start an activity which is not declared in AndroidManifest.xml. Is that possible to register an activity dynamically by code? Not that I'm aware of. Or is it possible to overwrite the AndroidManifest.xml from an installed .apk or to

[android-developers] Re: Start an activity without declaring it in manifest file

2008-09-02 Thread Justin (Google Employee)
As mark has said, nope, its not possible. The manifest registers your application with the system. This is the only way the system becomes aware of executable targets. Cheers, Justin Android Team @ Google On Sep 2, 7:21 am, Mark Murphy [EMAIL PROTECTED] wrote: semaka wrote: I have a project