Android :: Unable To Resolve Activity For - Intent

Oct 11, 2010

I am having a problem in running Android unit test. I got this error when I tried to run a simple test.

Here's the log:

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

This error occurs for Android less than 2.2. It works fine for Android 2.2 emulator. Yet Android 2.2 emulator has a bug of sending a key twice even though we only press it one. Application to be tested runs on Android 2.2 platform.

Android :: Unable to resolve activity for - Intent


Android :: Unable To Launch An Activity Using Implicit Intent Specifying Only Action

Mar 5, 2010

I am trying to launch an activity by specifying only its action(custom) defined in its intent filter from an activity in other application. The activity to be launched is the main activity of its application thus have android.intent.action.MAIN & android.intent.category.LAUNCHER set as action and category in its intent filter. Now according to android doc on Intent and Intent Filter, i do not need to specify DEFAULT category at all in this case. But doing the same i am i am unable to launch the activity.

LogCat says, Activity could not be found...

Am i misinterpreting the text or is there something else missing...?

Code, used for calling the activity

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

Definition of Activity being called in the manifest file

COE:....................

View 1 Replies View Related

Android :: Unable To Resolve MapActivity To A Type?

Apr 26, 2010

I'm trying to use google maps on my android app but when i extend MapActivity instead of Activity in my activity file, there is an error that MapActivity cannot be resolved to a type...? I have <uses-permission android:name="android.permission.INTERNET"/> as a child of manifest and <uses-library android:name="com.google.android.maps" /> as a child of application too.....

Moreover, when i try to import com.google,android.maps.MapActivity, it says com.google cannot be resolved....

View 2 Replies View Related

Android : App - 1.5 Gridview - Info And Exception - Unable To Resolve Drawable

Jun 14, 2010

I used a gridview in this app.

When i run it at Verison 1.6 or newer, it's OK. But i can not get this gridview in 1.5.

I always show this info and exception:

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

This is the layout xml:

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

View 1 Replies View Related

HTC Incredible :: Unable To Logging Into Facebook / Resolve This?

Oct 6, 2010

Is anyone else having problems logging into facebook?

View 3 Replies View Related

Android :: Exclude Own Activity From Activity.startActivity - Intent

Oct 17, 2010

My app works with pictures. It can take multiple pictures as an input, process them, and send them again to another app.

As a consequence, my main Activity has declared an intent filter on ACTION_SEND_MULTIPLE for image/* mimetypes and can result in issuing a new Intent with the same action and data type using Activity.startActivity(Intent).

Is there a way to exclude my own activity from the list of apps that is displayed to the user after the startActivity() call ?

View 1 Replies View Related

Nexus :: Unable To Receive Pityrecs But I Can Send Them / Resolve This?

Jul 12, 2010

Since i upgraded to 2.2 on my AT&T nexus one i haven't been able to receive pics but i can send them. any suggestions?

View 8 Replies View Related

HTC Incredible :: Unable To Search For Skype - Handcent SMS On Phone / Resolve It?

Jun 7, 2010

I am not able to search for Skype or Handcent SMS on my Incredible what seems to be the problem?

View 11 Replies View Related

Sony Ericsson Xperia X10 Mini/pro :: Unable To Sync With SE / Resolve It?

Nov 23, 2010

Updated to 2.1 now i cant sync with SE!! Try to open the application and update from previous sync like in 1.6 does not want to know. Anyone else had that problem or know how to resolve it?

View 2 Replies View Related

HTC Hero :: Unable To Make , Receive Calls And Play Music Without Headphones / Resolve It?

Oct 25, 2009

Headphones are in but they are not and because of this i am unable to make or receive calls without putting it on loud speaker and are unable to play music without headphones.... does anyone know how to resolve the issue?

View 15 Replies View Related

Android :: Handle Existing Instance Root Activity Launching Root Activity From Intent Filter

Apr 3, 2010

I'm having difficulties handling multiple instances of my root (main) activity for my application. My app in question has an intent filter in place to launch my application when opening an email attatchment from the "Email" app. My problem is if I launch my application first through the the android applications screen and then launch my application via opening the Email attachment it creates two instances of my root activity. steps: Launch root activity A, press home Open email attachment, intent filter triggers launches root activity A Is it possible when opening the Email attachment that when the OS tries to launch my application it detects there is already an instance of it running and use that or remove/clear that instance?

View 1 Replies View Related

Android : Way To Get Activity From An Intent?

Nov 2, 2010

Is it possible to get the Activity from an Intent?

View 2 Replies View Related

Android :: Set Root Activity/intent ?

Oct 14, 2010

I'm switching between different Activities using Intents. For one Activity, I would like it to clear the history stack so when the user presses the back button, it takes them Home instead of previous activities in my application.

View 2 Replies View Related

Android : Way To Handl An Intent Without Activity UI?

Jun 9, 2009

I've searched for a few hours for a solution to this, so hopefully this isn't a repost I'm setting a shortcut on the Home screen which raises an Intent to my application - the problem is that I don't want to show my app, just run a little code and display a Toast notification. This must be possible - I just can't work out how.. Once I'm handling the shortcut Intent in onCreate() the UI has initialised and I get a little screen flicker if I then run my code and finish().

View 4 Replies View Related

Android : How To Use An Intent To Update An Activity?

Aug 24, 2009

I have a service that is downloading a file. When the download is done, I would like to update my "Downloaded files" list in my Activity, but only if the Activity is running. I do not want the Activity to start if it's not already running. I was hoping I could do this by making a new Intent with some special flag. Anyone have any idea how I can achieve this? A tiny code example maybe?

View 3 Replies View Related

Android : Way To Use Intent From Non-activity Class?

Jan 2, 2010

I have three classes one main-activity(named MainMap), one non-activity class(named MyItemizedOverlay), and one activity class(named AudioStream). I want to start AudioStream activity from non-activity class but i don't know how to.

View 1 Replies View Related

Android : How To Use Intent.getStringExtra From Within An Activity?

May 27, 2010

I am relatively new to android. I have two applications A and B. I have an activity in A, lets name it x, that would launch the application B. Now the intent sent by x contains StringExtra that I want the Starting activity in B to use. Is there a way for the activity in B to do that?

View 2 Replies View Related

Android : Way To Define Two Intent In An Activity?

Jul 6, 2010

I need to start an Activity with two different Intent, can I define two Intents In an Activity node?

View 1 Replies View Related

Android : Way To Use Intent To Update A Value In Another Activity?

Sep 1, 2010

I want to pass a value from one Activity to another to update an integer. So basically I want Activity2 to send Activity1 a value it has garnered from user input. Seems like it should be simple just not sure how. Is it possible to run a function from another Activity and give it this value as an argument?

View 1 Replies View Related

Android :: Use An Intent To Send Data To My Activity

Nov 6, 2010

I have a server running that notifies the user with a statusbar notification that opens my main activity, how can I pass data to my activity trough that intent?

View 1 Replies View Related

Android :: Want Activity / Service To Communicate With Intent

Aug 2, 2010

In the Activity I write Intent i=new Intent("IntentServiceTest"); Bundle bundle = new Bundle(); bundle.putString("abc", "def"); i.putExtra("wer", bundle); IntentTest.this.startService(i); Start Service into Service OnCreate method,but I don't know how to do get this Intent in this method.

View 11 Replies View Related

Android :: Using Intent - Application To Show Another Activity

Apr 10, 2009

In my Android application, I have two activity classes. I have a button on the first one and I want to show the second when it is clicked, but I get an error.

Here are the classes:

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

The second class that should show when the button is clicked, but never does:

CODE:........

How do I create a button that will show the second activity?

View 3 Replies View Related

Android :: Oncreate - Intent Launches My Activity

Sep 30, 2010

Android will call onCreate() of my activity whenever it is launched.

In the onCreate() of my activity can I tell what intent launches my activity?

View 1 Replies View Related

Android :: Image Intent From URL To Browser Or Other Activity

Oct 6, 2010

I want to have an image open from a URL to an intent, most likely the browser or maybe a picture previewer like the one built into twidroyd.I've gotten plain URLs to open to the browser. I just can't figure out what action or category to specify,

View 1 Replies View Related

Android :: Intent Not Opening Correct Activity

Aug 22, 2010

I'm having a struggle understanding why my intent is not working. I basically just copied paste from other examples in my code that work perfectly like this. Here it is:

Intent addIntent = new Intent(v.getContext(), thenNnowMode.class);
Bundle w = new Bundle(); String activityName = "addPic";
w.putString("activity", activityName);
w.putParcelable("bitmap", selectedDeviceImage);
//a.putString("id", picId); addIntent.putExtras(w);
startActivity(addIntent); finish();

The intent is opening a different class called thenNnow.class instead of thenNnowMode.class and I have no idea why this is happening. I've tried sending the intent to open other activities other than thenNnowMode but it always opens thenNnow. Am I missing some silly syntax mistake? It's so strange, its the same code. I am not sure if it's relevant but the thenNnowMode class uses the device camera

View 23 Replies View Related

Android :: Launching Intent Can't Find Activity

Jul 2, 2010

My program has a list of tabs that each contain a list of people.Clicking a person should edit their details, but instead, clicking a person throws an ActivityNotFoundException.

View 2 Replies View Related

Android :: Launching Intent From Class Outside An Activity

Jul 28, 2010

I've got two activities, one of them is called MyActivity. I want both of them to be able to use a function located in a class othat we may call MyClass. In MyClass, I try to use an intent to launch the activity AnotherActivity. Since the constructor takes a context as parameter, I simply tried to store a context from the activity in the constructor, and then use it when I try to create my intent.However, even thought none of the arguments are null (checked that with a simple if-statement), intent seems to be null and a NullPointerException is thrown. Why does it not work, and what can I do to solve the problem?
I'm quite new to Android and Java development, so please explain it as basic as you can.

View 2 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 :: Way To Get A Certain Activity / Service Based On A Given Intent?

Jan 31, 2010

Suppose that I installed app A and app B, app A has a main activity, and app B wants to show that activity by sending a intent. My question is that how android knows I have installed app A and is able to map the intent to its activity? Is there any windows-registry-like store saving such information?

View 1 Replies View Related

Android :: IF Statement For Intent Started Activity

Aug 25, 2010

I have a central activity that can be launched from two separate classes. I was hoping that in this central activity I could have an IF statement like

if(this.getIntent() == MainMenu.class)
{
// Do something here
}

But obviously that isn't legal so how could I structure an expression to check from what class an intent was started.

View 2 Replies View Related







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