Unable To Start Activity

Apr 21, 2012

I got a error message "04-21 18:02:01.448: E/AndroidRuntime(328): java.lang.RuntimeException: Unable to start activity Component Info {pac.bib/ pac.bib.LivroBibliaActivity}: java.lang.NullPointerException" when click ListView. when try startActivity

Code:
private AdapterView.OnItemClickListener onListClick=new AdapterView.OnItemClickListener() {
public void onItemClick(AdapterView<?> parent,
View view, int position,
long id)
{
[code]....

Unable to start activity


Error - Unable To Start Activity ComponentInfo

Mar 4, 2012

I am getting this and can't seem to find out why?

Code:
03-04 14:04:41.565: E/AndroidRuntime(742): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ondrovic.boombozzpassport/com.ondrovic.boombozzpassport.BeerForm}: java.lang.IllegalStateException: get field slot from row 0 col -1 failed

Here is the code where I am trying to start the activity

Code:
private AdapterView.OnItemClickListener onListClick = new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View v, int pos, long id) {
Intent intent = new Intent(getApplicationContext(), BeerForm.class);

[Code] ....

Also the activity will start if I take out the intent.putExtra(BeerForm.INTENT_BEER_ID, String.valueOf(id));

View 1 Replies View Related

Android :: Activity Is Unable To Start Service In Same Package / What I Am Missing?

Jun 9, 2009

I have a service class my.app.MyService that I'm attempting to launch from my.app.MyActivity as follows:

Intent svc = new Intent( this, MyService.class );

The manifest contains the entries:

<uses-permission android:name="android.permission.ACCESS_BACKGROUND_SERVICE" />

<service android:name =".MyService" />

LogCat gives the message:

"Unable to start service Intent { comp={"my.app/ my.app.MyService" } } : not found"

Could someone kindly let me know what I am missing?

View 3 Replies View Related

Android :: Java.lang.RuntimeException: Unable To Start Activity ComponentInfo

Nov 8, 2010

I wrote an android app and so far it works perfect except for on one phone. It is the exact phone that I have with 2.2 on both phones and mine works perfect. The other phone is getting force close all the time but only when opening an activity that queries my image DB and tries to show a gallery. Every activity crashes in the same place, the viewimages. At first I thought it was the intent that was doing it but one of the activitys does not have the intent, it opens the images below the gallery. This works on the emulator, on my moto droid and on a few other different droids. Here is the code for the gallery and my bitmap decoder.

The error is below that.

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

Here is the error

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

View 1 Replies View Related

Android :: Unable To Start Activity - Load Home Screen Or Show Notification During Calls

Dec 18, 2009

Has anyone been successful showing a notification, starting an activity, or loading the home screen *during* a call on the Droid? All three of these actions can be done with the emulator running 2.0, but will not run from the Droid. I don't receive any type of notification that these actions fail on the Droid. Although, every action works when a call is *not* active. Missed calls during a call *do* show up in the notification bar, so I am hoping there is a way.

I understand that the notification bar can not be accessed by users during calls, but it would be nice if a notification could at least be delivered. I also understand the security and usability concerns of displaying a window or action during phone calls. Although, there are a lot of users who would like actionable functionality based on calls.

View 2 Replies View Related

Android :: Start An Activity And Return Back To Original Activity

Jan 26, 2009

I have an application with contains multiple activities. The main activity will start the others ( use startActivity() ) depends on user event, when an activity close, it calls finish() and return back to main activity. It appears to behavior like that.

However, the "problem" I see is main activity's onCreate function is called every time. I think the the main activity should be placed in the activity stack and simply push to front when others exit, therefore only onResume, onStart are called. Is there some flag I need to set or I misunderstand the activity behaviro?

In child activity, besides calling finish() or startActivity for main activity, what is other way to move main activity to front?

View 2 Replies View Related

Android :: Start Activity When Main Activity Is Running In Background

Jan 10, 2010

I created an application which enables the user to set whether he wants to receive notification while the application runs in background mode. If the notifications are enabled an activity should be started (the dialog should appear on the screen).

I tried to enabled it the following way:

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

This is the method from main activity. When onPause() is executed isRunningInBackground is set true.
When I tried to debug it when the main application was running in the background the line

startActivity(intent) had no effect (the activity didn't appear).

Does anyone know how to midify the logic in order to start an activity from the main activity when the main activity is running in the background (after onPause() is called)?

View 1 Replies View Related

Android :: Start An Activity In Different Apk Using StartActivity - Using The Activity Name Or Similar

Apr 20, 2010

I have tried to write an Android application with an activity that should be launched from a different application. It is not a content provider, just an app with a gui that should not be listed among the installed applications. I have tried the code examples here and it seems to be quite easy to launch existing providers and so on, but I fail to figure out how to just write a "hidden" app and launch it from a different one.

The basic use case is:

App A is a normal apk launchable from the application list.

App B is a different apk with known package and activity names, but is is not visible or launchable from the application list.

App A launches app B using the package and class names (or perhaps a URI constructed from these?).

I fail in the third step. Is it possible to do this?

View 3 Replies View Related

Android :: Activity Check Service To Start Another Activity

Sep 10, 2010

I need to made an activity (without layout) that on start check if a service is running. if it is true it starts Activity2, if it false it starts Activity1.

I tried with this code:

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

Enter code here

But when I check, in the onCreate method, if serviceConnect!=null I receive sometime a NullPointerExcption.

I tried also to insert the operation in the method onCreate in an Async Task:

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

View 2 Replies View Related

Android :: Start Activity And Clear Activity History

Apr 22, 2010

I have a huge maze of activities in my application. What I need to do, is that when the user logs in into the system, the activity history should be cleared. I cant just use finish() when I start a new activity, because I want the activities to have a history until the user logs in. I have experimentet with the different flags when starting an activity, but I have had no success.

View 1 Replies View Related

Android :: Start A New Activity From Anther Activity

Nov 19, 2010

I want to start a new activity from ab activity that (extends from Linearlayout) .. but this code is not right

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

public class SearchResultForm extends LinearLayout{ ...

And i get this error ..

No enclosing instance of the type SearchResultForm is accessible in scope.

View 4 Replies View Related

Android :: Start An Activity From Non Activity Class

Aug 19, 2009

An activity can be called from existing activity through *startActivity(intent); *

Is t possible to call an activity from non Activity class ? and how?

View 2 Replies View Related

Android :: Start A Map Activity From Other Activity

Apr 8, 2010

I am developing an aplication. This one is designed to login a user, then select how find a place, using simple data or using a map. When I try to set in the event OnClick for select the "Map way" (using intent):

startActivity(new Intent(getApplicationContext(), MapviewController.class));

I have problems and didn't work.

My class and manifest are:

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

Do you know any way to call the MapActivity from other?

View 3 Replies View Related

HTC Desire :: Unable To Start Wi-fi

Jun 10, 2010

Had a wi-fi problem on my htc desire for a while now..

One time I went to turn wi-fi on and it just said "Unable to start wi-fi". It had worked totally fine up until that point.

I've tried doing a factory reset, rooted, updated rom but it's still not working.

When the problem happened I had not rooted the phone or changed anything really.. it just happened.

In logcat it says:

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

View 6 Replies View Related

Android :: Unable To Start Service

Sep 4, 2009

My service is not in the same package namespace as my application / activities.

I have

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

The issue is that my service is in -- package com.myco.service.myservice and my activity is in -- package com.myco.test.myactivity

My questions are:

1. does my service *have* to be in the com.myco.test namespace?

2. if it doesn't, how do I specify the android:name for my activity and my service to work?

View 8 Replies View Related

Android :: Unable To Start Emulator - 1.5

Apr 23, 2010

I got this trace when I tried to launch android 1.6 or 2.1. Android 1.5 is working fine. I tried to reinstall each SDK, but there is no way to get it working. I created those AVD with Eclipse plugin.

.............

View 1 Replies View Related

Sprint HTC Hero :: Unable To Start Tethering, Please Try Again!

Jun 25, 2010

I recently flashed to the Fresh 2.1.2 rom, and i'm having trouble using the "Wireless Tether". I've uninstalled the one that came with the rom, and i've installed a fresh new copy from the Marketplace. But every time I've tried hitting the "tether" button, it says "Unable to start tethering, please try again!"

My superuser app isn't doing anything, this might be the problem. Whenever I open the superuser app, it's a complete blank screen.

View 21 Replies View Related

HTC Legend : Unable To Start Wifi - Don't See MAC Address / How To Fix?

Jun 23, 2010

Well i have bought 2 month ago new, sim free Legend. After that i had like 2 firmware updates,and well after the second one i cant get wifi working. Its like "unable to start wifi" and after that i cant switch this process off, it shows "unable to turn wifi off". So to get rid of this i need to restart phone. So now i cant use wifi. I cant even turn off wifi notification, i don't see MAC address etc. Are there ways to fix that?

View 2 Replies View Related

Sprint HTC Hero :: Unable To Start Wireless Tether

Jun 7, 2010

I get an error saying Unable to start tether. Iam using fresh 2.1.

View 22 Replies View Related

HTC Hero :: Unable To Start WiFi - Intermittent Error

Nov 24, 2009

I seem to have an intermittent error when trying to start WiFi. Mostly (>95%) of the time I get "unable to start WiFi". Occasionally it works but this is rare and usually when it has been switched off for a few days. The problem occurs when I try to start via the wi-fi widget or via the MenuSettingsWireless controls path. I'm reluctant to do a factory reset unless I really have no other option.

HTC Hero
on Vodafone UK
Firmware version 1.5
Build# 2.73.405.5

View 2 Replies View Related

HTC Desire :: Install OTA It Works Except - Says Unable To Start WIFI

Jun 24, 2010

I have a Orange (UK) Desire which i have gold carded and unbranded with no problems.

Software info below

Firm Ver 2.1-update 1
Baseband 32.30.00.28u_4.05.00.11
Kernel version 2.6.29-97da29ed
htc-kernel@and18-2#1
Build Number 1.15.405.3 CL150129 release-keys
Software number 1.15.405.3
Browser Webkit 3.1

There is now a software update available (1.15.405.4) which i have tried to install OTA it all works except it says unable to start WIFI. I have tried to install it with both my Goldcard and normal SD card (not sure if that would make any difference)

View 5 Replies View Related

Android :: Start New Activity In TAB

Jan 5, 2010

I am working on a travelling application and i am using tabs and each tab has an activity i.e world clock in one tab ,weather data in another tab and so on with in the weather tab i am displaying the users selected cities and the scenario is that when the user selects a city that city's forecast is to be displayed and later to view details as well which is in another activity . how can i launch this new activity from the already started activity with in the same tab ?

View 4 Replies View Related

Android :: Why Won't Activity Start

Sep 13, 2010

I'm trying to start an Activity with startActivityForResult, but I keep getting an ActivityNotFound exception, and I can't work out why. I've looked through the code multiple times, and it seems to be identical to some other, working code. Any suggestions?

The newNoteButton that starts the Activity:

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

And the beginning of the TypyEdit Activity:

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

View 1 Replies View Related

Android :: How To Start An Activity

Sep 15, 2010

I have created two classes: Example1 and Example2, which extends activity.

Example1 contains a UI of buttons, while Example2 contains UI of TextEdit.

I want to call Example2 when a button is clicked, so this code is in an onclick method

Intent i = new Intent();
i.setClassName("com.a.ui", "com.a.ui.Example2");
startActivity(i);

So I am able to get the UI of Example2 successfully.

What's an alternate way of calling intent?

Is there any alternate way to start an activity?

View 2 Replies View Related

Android :: Can Start New Activity That's Not Specified

Jun 25, 2010

I'm trying to do some dynamic code and I load a new class that's supposed to be an Activity and I want to start it, but using the regular startActivity(Intent) wants the Activity to be "Declared" in the AndroidManifest.xml file.

View 1 Replies View Related

How To Start Activity From Where It Stops

Oct 28, 2012

I have 2 activity...suppose i name it activity A and activity B.When the application starts it shows activity A.Then after 5 seconds,it automatically switch to activity B.Activity B contains a listview and checkboxes with each item of listview.If user checks something then he press back button and returns to activity 1 page.All these works correctly.

Now my problem is,activity A has a button to go again activity B page.When user press this button i want to start activity B from where it stops..that means the user will see what items he had checked earlier.Is it possible to view the activity B page from where it stops?

View 1 Replies View Related

Sony Ericsson Xperia X10 :: Unable To Start Wifi/Bluetooth

Oct 18, 2010

I'm getting this problem where I can connect to WiFi the first time with no problem but once I disconnect and the phone sleeps, it can't connect to the network again and says "Unable to Start WiFi", I can't even get to Wireless settings because it can't start the WiFi.

It's the same story with Bluetooth. It'll work once.

If I turn the phone off and then on again, it will work once more but only ONCE before doing the same thing again.

View 15 Replies View Related

General :: HTC Desire HD Unroot Process - Phone Unable To Start

Nov 3, 2012

i tried to unroot my htc desire hd via htcdev.com's unlock bootloader process...it was successfull..

gradual steps/mistakes...

1. installed clockworkmod from playstore
2. tried to access superuser...but there was some issue with that..
3. when i restarted my phone using vol- key and power button i entered into hboot mode, from where i enter clockworkmod...
4. full wiped the phone, cache and everything that was given in instruction of icecold sandwich..
5. icecold sandwich was there in sd card as zip file....so i chose the "install zip from memory card option"..
6. then there is message of installation completed..

but my phone is unable to start.... there is htc logo and no further process..

View 5 Replies View Related

Android :: PopupWindow On Activity Start

Feb 21, 2010

I am trying to make a PopupWindow show straight away when an activity has started.

when calling public void showAtLocation (View parent, int gravity, int x, int y)

I get the exception ERROR/AndroidRuntime(2500): Caused by: android.view.WindowManager $BadTokenException: Unable to add window -- token null is not valid; is your activity running?

At the moment I am calling from onCreate, but when calling from onStart or onResume it still gives the same error.

The activity api says the activity is supposed to be running after onResume is called. Where is the best place to load up the PopupWindow if it needs to be done straight away?

At the moment It looks like Activity.onWindowFocusChanged() is the best place.

View 2 Replies View Related

Android :: Start Activity Without Manifest

Jan 22, 2009

I create my Network provider and I want to start Activity from it. Is it necessary to create separate Activity with Manifest and then launch it using startActivity? Can I launch unregistered Activity directly from my provider?

View 5 Replies View Related







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