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:

Android :: call an activity from another one - content.ActivityNotFoundException


Android :: Activity Group Throw ActivityNotFoundException?

Nov 13, 2009

I want to change the current activity inside a tab in a tab activity, after some research, I know that I need to use activity group to go this.

Then I created a new class extends ActivityGroup with the code below:

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

Then I run the program, the program throw the ActivityNotFoundException when the intent for the tab is launched.

View 4 Replies View Related

Android :: ActivityNotFoundException For An Activity Declared In Manifest.xml

Jul 5, 2010

I have a launched android application that works fine most of the time. However 1 in about 1000+ runs I get an android.content.ActivityNotFoundException: Unable to find explicit activity class exception. The activity is declared in my manifest and I've never seen it crash myself. It is declared like this...

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

The crash reports show it failing on all OS's from 1.5 to 2.1.

View 2 Replies View Related

Android :: Catching ActivityNotFoundException If There Was No Activity Found To Run The Given Intent

Jun 23, 2009

The JavaDoc of Context's public abstract void startActivity (Intent intent) said:

This method throws ActivityNotFoundException if there was no Activity found to run the given Intent.

But when I look at the android source code, it does not catch ActivityNotFoundException.

For example in AlarmClock.java:

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

what is the code which handles the case when there is no activity for that intent?

View 7 Replies View Related

Android :: ActivityNotFoundException: No Activity Found To Handle Intent

Nov 2, 2010

test.class type is right? How to? What should I do?

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

View 2 Replies View Related

Android :: Start A New Activity From A Menu Action - ActivityNotFoundException

Feb 28, 2010

I am trying to start a new activity from a menu action, as follows:

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

The class exists, and has the OnCreate method over-ridden, but whenever I try to perform the action in the simulator I get an ActivityNotFoundException raised. I have looked through the documents and as far as I can read, I do not need to create an Intent in the manifest.xml for this to work.

View 3 Replies View Related

Android :: Content Of Activity Doesn't Appear / Why Is So?

Nov 23, 2010

I start a new activity when clicking on a button , but the content(ui components) of the new activity doesn't appear , why ? code...

View 1 Replies View Related

Android :: Changing Content Of Activity Run Time

Jul 24, 2010

I created an activity by using a layout written in a XML file. I would like, in response to some events, to change the content of this activity. I would like to show a VideoView over the content. In response to some other event, I may want to go back to the first content. Would it be possible to switch the content of the activity this way without running another activity (I have another technical difficult in doing that)? I tried using setContentView( videoView), and then switching back with setContentView(T.layout.main), but it seems that, when going back to the main layout, all my buttons and text boxes are created again as they were new. Would it be possible to go back to the last state of all the controls?

View 4 Replies View Related

Android : Switch Activity Of Content Of Tab In Tabhost?

Dec 8, 2009

I have created a TabHost and in 1 of the tab, I have added the content using

mTabHost.addTab(mTabHost.newTabSpec("tab1")
.setIndicator(getString(R.string.dialerIconLabel),
getResources().getDrawable(R.drawable.ic_tab_dialer))
.setContent(intent));

Is it possible for me to switch the content's activity programatically after I called 'addTab of TabHost'?

View 1 Replies View Related

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 :: Use Resource Id But Didnt Set Content View In Activity?

Aug 12, 2010

May I know is it possible I use the resource id but I didnt set the Content View in the activity?

For example: abc.xml have one TextView id = "R.id.Text". Can I use the use TextView name = (TextView)findViewById(R.id.Text); method in the activity which was setContentView(R.layout.def);?

View 2 Replies View Related

Android : How Can Query The Contacts Content Provider Outside An Activity

Oct 8, 2010

I'm trying to query the Contacts content provider outside an Activity. But managedQuery is a method of Activity. Is there any other class/method that I can use instead of managedQuery?

Here's my code:........................

View 1 Replies View Related

Android : Content Provider - Activity.startManagingCursor And Simple Dao

Jun 1, 2010

I am writing simple app that will read callLog content provider transform data and write it to my own table. my app will not show data directly from calllog content provider.

1. now one problem that I have is I cannot limit how much rows query will return (by calling activity.managedQuery) but I assume that Cursor delays access to the db and I can use moveToNext as many times as desired to get few rows from table and the call will be efficient. is that good thinking?? OR am I wrong here? I really dont want to query all rows from table. is there any other way to access calllog??

2. I dont want to implement my own content provider for my app. I will use rawQuery many times and group data so contentprovider's callbacks are not enough for me. more I want my dao to be private to my application so I think there is no need to bother with conentprovider. and If I got this right I also dont need to bother with activity.startManagingCursor as long I query data inside same method call (because I need to deactivate all intermediate Cursor objects anyway)

View 5 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 :: Why Corsor Need To Call SetNotificationUri When Query From Content Provider

Apr 22, 2009

In the sample code of android developer http://developer.android.com/reference/android/content/ContentProvide...

When query the content provider, the cursor in query () call setNotificationUri(getContext().getContentResolver(), uri).

But the query is a read-data action, it doesn't need to notify uri because the database can't update when being read. is there any propose to avoid some problem adding setNotificationUri in the query function of content provider?

View 5 Replies View Related

Android :: Pause Flash Content In WebView When Activity Isn't Visible?

Aug 7, 2010

I am experimenting with using a WebView to display Flash content inside my activity. Everything is working pretty well, but when the user hits the home key to put the activity into the background, the Flash content keeps running (sound keeps playing, etc)

I have noticed that both the stock Android browser and Dolphin Browser seem to avoid this problem, and properly pause the Flash content when the browsing activity is put into the background.

Ideally I would like a solution that kills the WebView completely if the activity is finishing, but pauses it otherwise (basically copying the default behavior of the browser)

Here is a simple test I put together that loads a game on Kongregate which has some background music:

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

I took a look at the latest source for the stock browser, and it seems to be doing something similar (calling pauseTimers/resumeTimers), although I fear the code I have been looking at is out of date, because it is calling functions that don't seem to exist anymore.

I did verify that the call to pauseTimers is working by testing with a simple JavaScript setInterval which updates a counter. Is there something else obvious that I should be trying in regard to Window or View management?

The documentation for the mobile Flash player says:


Flash Player will also automatically pause SWF playback it is not in view or the foreground application, for example when a call is received or alarm goes off, to reduce CPU utilization, battery usage and memory usage.


This seems to be working perfectly in both the stock browser and Dolphin Browser, but not in my app. Any ideas/solutions would be greatly appreciated!

Update: Here is the function we ended up adding to our activity to get this to work. We call it with "onPause" in the activity's onPause function and "onResume" in the activity's onResume function:

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

View 2 Replies View Related

Android : WebView - Not Able To Go Back To My Activity Screen Once The Content Is Displayed

Apr 9, 2009

Step 1: I am subclassing WebView and rendering html content properly. The intial content is very small with a div and image /link This is displayed in a LInear Layout along with a TextView and ListView. That is my first screen/activity of the application.

Step 2: When I click on a link on this webview, it goes through the webViewclient and expands to full screen to fit the content of the requested page.

After Step 2, I am not able to go back to my activity screen once the content is displayed. When I click on the back button to getback to my activity screen close my activity and goes to the phone's applications desktop. (i.e goes out of my application).

Step 3: In order to fix this issue, I stopped setting my own subclasssed WebViewClient. After doing this, the it seems to render the clicked page in a webView as subactivity. Now When I click on backbutton, it goes back to the activity screen. But, the issue now is, I am not catch event when a link is clicked. How can I catch click events in this case.

View 2 Replies View Related

Android :: Activity To Show Directory Explorer To Browse Content Of Sdcard

Sep 20, 2010

In android, is there an activity show a directory explorer to browse content of sdcard?Like a File explorer in Java, it can show the content of current directory and I can move up to its parent by clicking '..' and move down to a child directory by clicking the name of the child directory?

View 1 Replies View Related

Android :: StartActivity And ActivityNotFoundException

Jun 29, 2009

According to the doc, if the intent in startActivity(intent) is not found, there will be an exception raised. Therefore I use a try/catch block. However, even if I use a random string as the intent, the promised exception does not occur.Instead I see a dialog that says: "No application can perform this function". I also get the same dialog if the intent is valid (picked up by an app) but apparently doesn't want to act when the extras are not what the app expects (e.g. my earlier question about Intent.ACTION_SEND and mime types). I am using the 1.5_r2 SDK on an AVD running 1.5, with the app running at version 1.1 (sdk=2). Is this a doc error, a bug or am I misunderstanding something? Can I simply delete the try/catch block?

View 3 Replies View Related

Android :: Send An MMS Causes An ActivityNotFoundException?

Sep 17, 2010

I am trying to send an MMS like this:

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

And when I do that, it throws an "ActivityNotFoundException"

However, I am looking at logcat, and when I share an image from the camera application, it sends this exact same intent. Not sure what I'm missing here.

View 3 Replies View Related

Android :: Trap In TabHost When AsyncTask Delays Set Content View At Activity Startup

Nov 3, 2009

I've got a tab host activity started from a home screen shortcut. When my application starts it downloads information from a server using an AsyncTask. In the onPostExecute method of the AsyncTask I call setContentView to display the TabHost.When I start the homescreen shortcut by tapping on the shortcut using my finger everything works as expected, I download the information from the server and display the TabHost with the information in the tabs. However starting the application by navigating to the shortcut with the mouse wheel and then clicking on the shortcut with the mouse wheel leads to a trap in the framework code as soon as my application starts. This looks like a simple fix since mCurrentView is null at the time that this method is called - can this issue be addressed? Does anyone know of any workarounds?

View 5 Replies View Related

Android :: ActivityNotFoundException On Explicit Class Declared In Manifest On G1

Sep 30, 2009

I have some code that starts another activity based on a menu item selection:

..........

I've spent quite a bit of time on this and am inclined to file a bug report at this point. I can see a reference to the allegedly missing class in the classes.dex file inside the APK and the code works properly in the emulator. I haven't been able to find anything like this, so if there is, an RTFM pointer will be humbly accepted.

View 4 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 :: 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...

View 2 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







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