Hi,
If the version u used is before 2.2, I guess u can try this methord:
ActivityManager activityManager =
(ActivityManager)
context.getSystemService(Context.ACTIVITY_SERVICE);
activityManager.restartPackage(packagename);
If the version is 2.2 or later: u may try this:
public
Hi,
I have an activity A (a menu) that creates and start activity B (a
running game).
public void onClick(View v) {
switch(v.getId()){
case R.id.start:
Intent i = new Intent(this, GameActivity.class);
Hi,
I have an activity A (a menu) that creates and start activity B (a
running game).
public void onClick(View v) {
switch(v.getId()){
case R.id.start:
Intent i = new Intent(this, GameActivity.class);
On Wed, Aug 10, 2011 at 10:05 AM, xzoom yoni.se...@gmail.com wrote:
When I'm back into the menu (activity A) and while activity B is in the
background
If your only interaction between these two is A starting B without any funky
Activity flags, this should not be possible.
I understand that trying to capture home button clicks is a hack, but
I need to atleast close my current activity when the user clicks on
home button.
Is there anyway I can tell the system to close this activity is the
user clicks on home button? If so how can I do that?
I need to do it as I am
Achanta wrote:
I understand that trying to capture home button clicks is a hack, but
I need to atleast close my current activity when the user clicks on
home button.
snip
I need to do it as I am listening for location updates and I want to
stop the updates and also need to trash any
hi all,
for example,I have three activity now,
a, b and c,
a is start point of activity lifecycle, and can go to b or c,
and then assume go to b from a and close a,
and then go to c from b but will not close b,
and this time, I want to check whether b is start(create) or not,
if b start, I
7 matches
Mail list logo