Android :: How To Call Map Activity From Another?

Jul 26, 2010

I get a class not found exception. I have included the required entry in manifest file.The code...

Android :: How to Call map activity from another?


Android :: How To Call Activity Wait For Sub-activity To Return & Proceed?

Apr 15, 2010

Experts: My MainActivity launches a SubActivity by calling: startActivityForResult(intent, REQ_CODE); The SubActivity shows a dialog that has two buttons: Yes, No For the dialog, I've the following code: public void onClick(DialogInterface dialog, int whichButton) {/* User clicked OK */setResult(DialogInterface. BUTTON_POSITIVE) ;finish();

View 2 Replies View Related

Android :: How Can Call One Activity To Other Activity Without Using Intents And Services

Mar 12, 2010

How can i call one activity to other activity without using intents and services?

View 3 Replies View Related

Android :: Android Activity Call Another Activity Method

Jun 7, 2010

A TabActivity start other activity when i click on a tab,

How to send information to parent (tabActivity) and don't finish current activity?

My tabactivity start another activity like this :

CODE:............

Inside my new Activity Option, i would like to Call method of Tabactivity, is it possible ?

View 1 Replies View Related

Android :: How To Call An Activity Of Other App From Another?

Jun 25, 2009

How can I call an activity of app A from app B.

View 6 Replies View Related

Android :: Way To Call An Activity?

Jun 23, 2009

I am developing a android application with more than four activities. i am starting a activity using startActrivity() method wherever i need to go for other activity. i feel this degrade my application performance.

View 2 Replies View Related

Android :: Way To Call Map Activity From Another?

Jul 26, 2010

When I try the above, I get a class not found exception. I have included the required entry in manifest file. The code in current activity is as follows: Intent i = new Intent(MainListingA.this, DrawTheatreMap.class); try{startActivity(i); The error I get is as follows: 07-26 23:03:20.259: WARN/dalvikvm(307): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): FATAL EXCEPTION: main 07-26 23:03:20.397: ERROR/AndroidRuntime(307): java.lang.NoClassDefFoundError: com.mobilo.movie.DrawTheatreMap 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at com.mobilo.movie.MainListingA$1.onItemClick(MainListingA.java:101) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at android.widget.AdapterView.performItemClick(AdapterView.java:284) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at android.widget.ListView.performItemClick(ListView.java:3382) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at android.widget.AbsListView$PerformClick.run(AbsListView.java:1696) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at android.os.Handler.handleCallback(Handler.java:587) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at android.os.Handler.dispatchMessage(Handler.java:92) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at android.os.Looper.loop(Looper.java:123) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at android.app.ActivityThread.main(ActivityThread.java:4627) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at java.lang.reflect.Method.invokeNative(Native Method) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at java.lang.reflect.Method.invoke(Method.java:521) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at dalvik.system.NativeStart.main(Native Method) On a standalone basis, the same map activity works fine.

View 14 Replies View Related

Android :: Back To Activity When Call Is Done

Nov 24, 2010

I am launching an activity to make a phone call, but when I pressed the 'End Call' button, it does not go back to my activity. Can you please tell me how can I launch a call activity which comes back to me when 'End Call' button is pressed?

View 5 Replies View Related

Android :: How To Call A Method From Outside An Activity?

Apr 21, 2009

I have a java class Poker.java and an Activity .GameWindow in GameWindow.Java. In the GameWindow activity i have a method...

View 2 Replies View Related

Android :: Way To Call Other Activities In An Activity?

May 8, 2010

Say I have 2 activities (ActivityOne and ActivityTwo). How would I call ActivityTwo from ActivityOne? Then how would I return to ActivityOne from ActivityTwo? For example, I have a listview with all the contacts on the host phone. When I tap on a contact, another activity shows information and allows editing of that contact. Then I could hit the back button, and I would go back to the exact state that ActivityOne was in before I called ActivityTwo. I was thinking an Intent object, but I am not sure. Could someone post some code?

View 2 Replies View Related

Android :: Call Activity From Widget?

May 30, 2009

I've read through the Application Fundamentals three times today (and I had done so before), but I still can't quite wrap my ahead around the task concept. Or I guess I thought I understood it, but usually, the results I am seeing don't match up to what I would expect to happen (maybe a tool to see the current tasks/activities etc. for debugging purposes would be a nice addition).

I have multiple widgets from my provider in the Launcher desktop, and each is using a PendingIntent with a different URI as data (so they should be separate intents) to open an Activity.

I want there to be only once concurrent instance of this Activity that the user can access. So clicking the widget (1) , pressing HOME (2), clicking a different widget (3), pressing BACK (4) should bring the user back to the Desktop.

Now I did manage to do this using launchMode="singleTask" - the existing instance is brought to the top, onNewIntent() is called and I am pretty satisfied with it.

However, supposedly there are other ways to achieve an equivalent effect (say with having the activity restarted), and I'd like to understand why I don't seem to be able to get them to work: In every case, instead of seeing the home screen after step (4) (after pressing BACK), I see the *previous* instance of the Activity.

For example, if I read this correctly:

"There's another way to force activities to be removed from the stack. If an Intent object includes the FLAG_ACTIVITY_CLEAR_TOP flag, and the target task already has an instance of the type of activity that should handle the intent in its stack, all activities above that instance are cleared away so that it stands at the top of the stack and can respond to the intent. If the launch mode of the designated activity is "standard", it too will be removed from the stack, and a new instance will be launched to handle the incoming intent." http://developer.android.com/guide/topics/fundamentals.html

Then simply using using the following code to start my Activity from my widget should do what I want, no?

CODE:............

So in (3) My activity should be launched using FLAG_ACTIVITY_NEW_TASK by the launcher, which due to process affinity would find the existing task (which would consist of a single instance of my Activity), and launch the new instance on top of it. This explains what I am seeing. Why doesn't FLAG_ACTIVITY_CLEAR_TOP cause the existing instance in the task to be replaced?

Even setting android:launchMode explicitely to "standard", as mentioned in the doc quote above, this doesn't seem to change things.

I also tried android:finishOnTaskLaunch="true", but the behaviour is the exact same was just described with FLAG_ACTIVITY_CLEAR_TOP (which seems to be the exact same as when doing neither and really starting an activity without any special attributes).

I should mention that If I click the same widget in (3) as I clicked in (1), i.e. using the same PendingIntent twice, I do get the previous instance brought to the front (not restarted), but again, regardless of whether FLAG_ACTIVITY_CLEAR_TOP or finishOnTaskLaunch are being used.

I find this especially strange since the docs about tasks don't seem to mention the intent itself being relevant at all. Application Fundamentals does at one point say "For the default "standard" mode, a new instance is created to respond to every new intent", but it's not clear what "new intent" means then. Is triggering a PendingIntent multiple times through a widget not multiple "new" intents then?

I also tried various combinations of the other related options, but pretty much got nowhere.

View 2 Replies View Related

Android :: Force Activity To Call Finalize

May 20, 2010

My application contains 2 activities A and B. B is opened with startActivity(intent) in A, when B is closed with finish(), I found the method finalize() of B is not called.

My question is: How to force Activity to call finalize() when it is closed with finish()?

View 5 Replies View Related

Android :: Call TextToSpeech In Your Class - Not In Activity

Aug 16, 2010

I wrote successfully TTS with some references in Activity.

However, I want to call this TTS in my own class as below.

CODE:............

View 3 Replies View Related

Android :: Launch Activity Like Phone Call?

Sep 27, 2009

1. i have a service that will launch an activity. How to make the activity launched like a phone call? i mean when the phone screen is locked, it will awaken.

2. how to start a service right after downloaded and installed from android market?

View 8 Replies View Related

Android :: Launch Activity At End Of Phone Call

Nov 21, 2009

I would like to launch an activity at the end of a phone call. Could not find any reference to that. How can I do it?

View 1 Replies View Related

Android :: How To Call Function Of Activity From A Service?

May 16, 2010

I have an Activity (A) and a Service (S) which gets started by A like this:
Intent i = new Intent();
i.putExtra("updateInterval", 10);
i.setClassName("com.blah", "com.blah.S");
startService(i);
A have a function like this one in A: public void someInfoArrived(Info i) Now I want to call A.someInfoArrived(i) from within S. Intent.putExtra has no version where I could pass an Object reference etc.

View 1 Replies View Related

Android :: Call ListActivity From An Activity / App Crashes

Mar 23, 2010

My app crashes when i call a ListActivity from an Activity. I have searched on Internet and many people ask the same but i have not found any response. The only person i have found that solves the problems says that he solved changing manifest but he does not say nothing else. I i put the ListAvtivity as main activity in manifest app works ok buet if a set an Activity as main activity an then call ListActivity like:
Intent searchAct = new Intent(this, SearchResult.class); startActivity(searchAct);
then my app crashes. Des anybody know what happens?

View 7 Replies View Related

Android :: Want Call Methods Of A Activity From Service

Apr 27, 2009

Is it possible to call methods of a Activity from service. I am running a thread from a service and i listening to some external event from that thread. I am not able to call methods from that thread. Is there any way to call methods from a thread.

View 3 Replies View Related

Android :: IPhone Like Tab / Need To Call Some Activity Through Intent

Aug 16, 2010

I want to create 4(four) tab, on click of each tab i need to call some activity through Intent, upto this is OK, but without replacement of whole page, I would not like to replace tab, tab will remain (unchanged) same for each a every layout/activity, i.e, only lower part (content) parts will change.

View 3 Replies View Related

Android :: How To Call Broadcast Receiver From Activity?

Jul 9, 2010

I have a broadcast class that blocks the incoming call. I want to call that broadcast receiver from the activity ? Can any one help me fix this. I appreciate your help. 1. Class A extends activity will call Class B that extends BroadcastReceiver, now I want to block calls , only based on certain requirements, which are checked in Class A, if true then call the Class B (or block the call in short)

View 3 Replies View Related

Android :: Call An Activity From Another One - Content.ActivityNotFoundException

Aug 8, 2010

I am getting this exception while I am trying to call an activity from another one.. .The complete exception is android.content.ActivityNotFoundException:Unable to find explicit activity class {com.x.y/com.x.y.class};

I am doing an intent.setClass("com.x.y","com.x.y.className") where className is the name of my activity class and com.x.y is the package it resides in.

My AndroidManifest.xml has the following content:

View 3 Replies View Related

Android :: Starting Activity On UncaughtException() Call

Jul 14, 2010

I want to start a new activity from my UncaughtExceptionHandler when an uncaught exception appears. Is this possible?

I think the current activity can't start a new child activity in its "error" state because I always get this errors:

CODE:..........

I tried to start the child activity from a new thread, because i thought the current thread might be in a state where it is not allowed to start a new activity but this didn't work too.

How do i prevent the current activity from blocking everything while in this error state? is the any way to set the exception to handled?

View 1 Replies View Related

Android :: Call One Activity From Dialog Class?

Mar 12, 2010

How to can call one activity from Dialog.

View 3 Replies View Related

Android :: Service Call Backs To Activity?

Jan 8, 2010

I have a back ground service running.I have a client which interacts with service.

When the client requests for some operation, the service performs it and it should send the result back to the activity(client).

I know how to invoke the service methods in activity and using call backs we can achive wat I wan to do. But I am not able to understa the call back mechanism and code example provided in Api demos(remoteservice).

View 2 Replies View Related

Android :: Why Restarting Activity When Call Finish()

Sep 10, 2010

I have an activity that after some user interaction calls finish() on itself. From time to time it gets into a loop where when it calls finish() it finishes but immediately restarts again. Any idea why android tries to restart my activity?

View 3 Replies View Related

Android :: Call Main Activity From BroadcastReceiver?

Oct 28, 2010

While developing an alarm based application, i have stuck in a scenario.

When my alarm is fired, i can receive the event in BroadCastReceiver::onReceive().
Within this function, i want to notify/call a function, which is located on MainActivity.

How to achieve the same?

View 1 Replies View Related

Android : Way To Call PICK_CONTACT Intent Not From An Activity?

Jul 7, 2010

So I can display Android's contact selecton activity by calling Trouble is onActivityResult is only available when I am calling from an Activity myself. If I am in a DialogPreference for instance how would i get at the selected contact because I do not have an onActivityResult to override?

View 1 Replies View Related

Android : How Can I Call An Activity Through Service In Droid?

Mar 30, 2010

I want to know if it is possible to call an activity through background service in android like..

View 2 Replies View Related

Android :: To Call Only A Single Activity On Different Button Clicks

Oct 29, 2010

i have three imagebuttons.and on clicking each buttons a new image with new screen opens.means three imagebuttons calls three different activities. it means if you have ten buttons we have to call 10 activities. i want to call the common activity on each button clicked using if else construct.

View 2 Replies View Related

Android :: OnSearchRequested - Doesn't Call Search Activity In 1.5

Oct 8, 2009

The 1.5 AVD doesn't seem to follow the documentation in: http://developer.android.com/reference/android/app/SearchManager.html

which says it's enough to call onSearchRequested() to call the search activity. I need to call startSearch() to make it work. However, when I check the source code of Activity.java, onSearchRequested() does call startSearch().

This works in 1.6.

Is this a bug in 1.5, or did I miss something?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved