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:
publi
On Wed, Aug 10, 2011 at 10:05 AM, xzoom 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.
-
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);
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.
> 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 locatio
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 li
6 matches
Mail list logo