Can't start ListActivity via Intent - android

I have 2 activities. First activity extends Activity and second extends ListActivity.
I need to call ListActivity from the Activity class
I have tried the following.
Intent intent = new Intent(firstclassname.this, secongclassname.class);
startActivity(intent);
I've added an entry in the manifest file but it doen't work.
That same code works for the Activity class (if the second class extends ListActivity)
I got following Logcat output
04-26 15:51:48.235: INFO/ActivityManager(52): Starting activity: Intent { cmp=android.com.testHTML/.FindFilesByType }
04-26 15:51:48.395: ERROR/ArrayAdapter(3113): You must supply a resource ID for a TextView
04-26 15:51:48.395: WARN/dalvikvm(3113): threadid=3: thread exiting with uncaught exception (group=0x4001aa28)
04-26 15:51:48.405: ERROR/AndroidRuntime(3113): Uncaught handler: thread main exiting due to uncaught exception
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:347)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.ArrayAdapter.getView(ArrayAdapter.java:323)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.AbsListView.obtainView(AbsListView.java:1273)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.ListView.makeAndAddView(ListView.java:1658)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.ListView.fillDown(ListView.java:637)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.ListView.fillFromTop(ListView.java:694)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.ListView.layoutChildren(ListView.java:1516)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.AbsListView.onLayout(AbsListView.java:1112)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.view.View.layout(View.java:6569)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1108)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.LinearLayout.onLayout(LinearLayout.java:920)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.view.View.layout(View.java:6569)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.view.View.layout(View.java:6569)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:998)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.LinearLayout.onLayout(LinearLayout.java:918)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.view.View.layout(View.java:6569)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.view.View.layout(View.java:6569)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.view.ViewRoot.performTraversals(ViewRoot.java:979)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.view.ViewRoot.handleMessage(ViewRoot.java:1613)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.os.Handler.dispatchMessage(Handler.java:99)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.os.Looper.loop(Looper.java:123)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.app.ActivityThread.main(ActivityThread.java:4203)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at java.lang.reflect.Method.invokeNative(Native Method)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at java.lang.reflect.Method.invoke(Method.java:521)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at dalvik.system.NativeStart.main(Native Method)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): Caused by: java.lang.ClassCastException: android.widget.LinearLayout
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:340)
04-26 15:51:48.414: ERROR/AndroidRuntime(3113): ... 30 more
04-26 15:51:48.436: INFO/Process(52): Sending signal. PID: 3113 SIG: 3
04-26 15:51:48.446: INFO/dalvikvm(3113): threadid=7: reacting to signal 3
04-26 15:51:48.446: ERROR/dalvikvm(3113): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
04-26 15:51:58.289: WARN/ActivityManager(52): Launch timeout has expired, giving up wake lock!
04-26 15:51:58.289: WARN/ActivityManager(52): Activity idle timeout for HistoryRecord{4391c898 android.com.testHTML/.FindFilesByType}
What am I doing wrong?

Your activity is properly started.
The problem is in ArrayAdapter that you are using. You are not providing the resource id of the TextView.
Check out which constructor you are using and provide the correct parameters.

Related

Null Pointer Exception in First Android App

I am trying to write my first Android app, and I'm having trouble. I wrote a simple Java program to find the factors of a number provided by the user, and I'd like to port it over to Java. I have an XML file for the interface, which seemed to run OK until I added the first Java class. Now it won't run, and log.cat says that there's a null pointer exception. So far, I only have stubs, but it seems like it should run OK with what I've done to this point. I'm including the log.cat text, but I'm too new it this to make much sense out of it.
There may be more than one problem. After adding the Java file I began to get run-time errors right away, but I don't think they were null pointer exceptions. I think that started when I made changes to fix what was already causing problems.
Any help is appreciated.
Here is the Java file:
import android.app.Activity; <br>
import android.os.Bundle; <br>
import android.widget.Button; <br>
import android.widget.EditText; <br>
import android.widget.TextView; <br>
public class AndroidFactoringActivity extends Activity {
// Instance Variables
EditText userNumber;
Button factorButton;
TextView resultsField;
int factorResults;
/** Called when the activity is first created. */
#Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
factorButton = (Button) findViewById(R.id.factorButton);
userNumber = (EditText) findViewById(R.id.userNumber);
factorResults = 1;
resultsField.setText(String.valueOf(factorResults));
}
}
Here is main.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:id="#+id/askField"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="#string/ask"
android:textSize="24dp" />
<EditText
android:id="#+id/userNumber"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="number" >
<requestFocus />
</EditText>
<Button
android:id="#+id/factorButton"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/click" />
<TextView
android:id="#+id/resultsField"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="#string/tell"
android:textSize="24dp" />
</LinearLayout>
Here are the log.cat results:
03-31 23:58:53.579: D/AndroidRuntime(2804): Shutting down VM
03-31 23:58:53.589: W/dalvikvm(2804): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
03-31 23:58:53.589: E/AndroidRuntime(2804): Uncaught handler: thread main exiting due to uncaught exception
03-31 23:58:53.650: E/AndroidRuntime(2804): java.lang.RuntimeException: Unable to start activity ComponentInfo{net.dave_b.factoring/net.dave_b.factoring.AndroidFactoringActivity}: java.lang.NullPointerException
03-31 23:58:53.650: E/AndroidRuntime(2804): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
03-31 23:58:53.650: E/AndroidRuntime(2804): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
03-31 23:58:53.650: E/AndroidRuntime(2804): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
03-31 23:58:53.650: E/AndroidRuntime(2804): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
03-31 23:58:53.650: E/AndroidRuntime(2804): at android.os.Handler.dispatchMessage(Handler.java:99)
03-31 23:58:53.650: E/AndroidRuntime(2804): at android.os.Looper.loop(Looper.java:123)
03-31 23:58:53.650: E/AndroidRuntime(2804): at android.app.ActivityThread.main(ActivityThread.java:4363)
03-31 23:58:53.650: E/AndroidRuntime(2804): at java.lang.reflect.Method.invokeNative(Native Method)
03-31 23:58:53.650: E/AndroidRuntime(2804): at java.lang.reflect.Method.invoke(Method.java:521)
03-31 23:58:53.650: E/AndroidRuntime(2804): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
03-31 23:58:53.650: E/AndroidRuntime(2804): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
03-31 23:58:53.650: E/AndroidRuntime(2804): at dalvik.system.NativeStart.main(Native Method)
03-31 23:58:53.650: E/AndroidRuntime(2804): Caused by: java.lang.NullPointerException
03-31 23:58:53.650: E/AndroidRuntime(2804): at net.dave_b.factoring.AndroidFactoringActivity.onCreate(AndroidFactoringActivity.java:26)
03-31 23:58:53.650: E/AndroidRuntime(2804): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-31 23:58:53.650: E/AndroidRuntime(2804): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
03-31 23:58:53.650: E/AndroidRuntime(2804): ... 11 more
03-31 23:58:53.679: I/dalvikvm(2804): threadid=7: reacting to signal 3
03-31 23:58:53.679: E/dalvikvm(2804): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
03-31 23:59:57.629: I/Process(2804): Sending signal. PID: 2804 SIG: 9
04-01 00:07:36.129: D/AndroidRuntime(3040): Shutting down VM
04-01 00:07:36.129: W/dalvikvm(3040): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
04-01 00:07:36.139: E/AndroidRuntime(3040): Uncaught handler: thread main exiting due to uncaught exception
04-01 00:07:36.159: E/AndroidRuntime(3040): java.lang.RuntimeException: Unable to start activity ComponentInfo{net.dave_b.factoring/net.dave_b.factoring.AndroidFactoringActivity}: java.lang.NullPointerException
04-01 00:07:36.159: E/AndroidRuntime(3040): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
04-01 00:07:36.159: E/AndroidRuntime(3040): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
04-01 00:07:36.159: E/AndroidRuntime(3040): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
04-01 00:07:36.159: E/AndroidRuntime(3040): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
04-01 00:07:36.159: E/AndroidRuntime(3040): at android.os.Handler.dispatchMessage(Handler.java:99)
04-01 00:07:36.159: E/AndroidRuntime(3040): at android.os.Looper.loop(Looper.java:123)
04-01 00:07:36.159: E/AndroidRuntime(3040): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-01 00:07:36.159: E/AndroidRuntime(3040): at java.lang.reflect.Method.invokeNative(Native Method)
04-01 00:07:36.159: E/AndroidRuntime(3040): at java.lang.reflect.Method.invoke(Method.java:521)
04-01 00:07:36.159: E/AndroidRuntime(3040): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-01 00:07:36.159: E/AndroidRuntime(3040): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-01 00:07:36.159: E/AndroidRuntime(3040): at dalvik.system.NativeStart.main(Native Method)
04-01 00:07:36.159: E/AndroidRuntime(3040): Caused by: java.lang.NullPointerException
04-01 00:07:36.159: E/AndroidRuntime(3040): at net.dave_b.factoring.AndroidFactoringActivity.onCreate(AndroidFactoringActivity.java:26)
04-01 00:07:36.159: E/AndroidRuntime(3040): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-01 00:07:36.159: E/AndroidRuntime(3040): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
04-01 00:07:36.159: E/AndroidRuntime(3040): ... 11 more
04-01 00:07:36.199: I/dalvikvm(3040): threadid=7: reacting to signal 3
04-01 00:07:36.199: E/dalvikvm(3040): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
04-01 00:07:40.329: I/Process(3040): Sending signal. PID: 3040 SIG: 9
resultsField.setText(String.valueOf(factorResults));
resultsField is null and you are trying to set value on null.
resultsField= (TextView ) findViewById(R.id.userNumber);
Get textview instance before setting value, otherwise resultsField will be null and all operations on null reference results in NullPointerException.
You got a null pointer because you didnt intialise the variable resultsField (you just declared it) .
As you used
userNumber = (EditText) findViewById(R.id.userNumber);
you must even initialise the reference resultsField.
This can be done using
resultsField= (TextView ) findViewById(R.id.resultsField);
in the onCreate() after the statement setContentView()
You need to initialize the userNumer and resultsFiled as follows
userNumber = (EditText) findViewById(R.id.userNumber);
resultsField= (TextView ) findViewById(R.id.resultsField);

Android SDK Emulator with OpenGL ES 2.0 Support?

recently while reading some tutorials online, I saw this video suggesting that the Android SDK now supports OpenGL ES 2.0:
http://www.youtube.com/watch?feature=player_embedded&v=T--vFtyZvc4
Enthusiastically, I added the option for 'GPU Emulation' in my emulator and tried to run a basic HelloOpenGLES20 app, however I was greeted with this error, and some null pointer exceptions which doesn't make sense:
Sorry!
The application
LessonOneActivity (process
lesson.One has stopped
unexpectedly. Please try again.
Force close
The app runs fine on a real Android phone displaying some spinning triangles, I'm wondering if anyone has encountered the problem I'm facing, I've did a fair share of googling but could find no solutions =(
Here's the log:
04-26 06:42:08.782: D/AndroidRuntime(577): Shutting down VM
04-26 06:42:08.813: W/dalvikvm(577): threadid=1: thread exiting with uncaught exception (group=0x40015560)
04-26 06:42:08.842: E/AndroidRuntime(577): FATAL EXCEPTION: main
04-26 06:42:08.842: E/AndroidRuntime(577): java.lang.RuntimeException: Unable to resume activity {lesson.One/com.learnopengles.android.lesson1.LessonOneActivity}: java.lang.NullPointerException
04-26 06:42:08.842: E/AndroidRuntime(577): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2120)
04-26 06:42:08.842: E/AndroidRuntime(577): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2135)
04-26 06:42:08.842: E/AndroidRuntime(577): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1668)
04-26 06:42:08.842: E/AndroidRuntime(577): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
04-26 06:42:08.842: E/AndroidRuntime(577): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
04-26 06:42:08.842: E/AndroidRuntime(577): at android.os.Handler.dispatchMessage(Handler.java:99)
04-26 06:42:08.842: E/AndroidRuntime(577): at android.os.Looper.loop(Looper.java:130)
04-26 06:42:08.842: E/AndroidRuntime(577): at android.app.ActivityThread.main(ActivityThread.java:3683)
04-26 06:42:08.842: E/AndroidRuntime(577): at java.lang.reflect.Method.invokeNative(Native Method)
04-26 06:42:08.842: E/AndroidRuntime(577): at java.lang.reflect.Method.invoke(Method.java:507)
04-26 06:42:08.842: E/AndroidRuntime(577): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
04-26 06:42:08.842: E/AndroidRuntime(577): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
04-26 06:42:08.842: E/AndroidRuntime(577): at dalvik.system.NativeStart.main(Native Method)
04-26 06:42:08.842: E/AndroidRuntime(577): Caused by: java.lang.NullPointerException
04-26 06:42:08.842: E/AndroidRuntime(577): at android.opengl.GLSurfaceView.onResume(GLSurfaceView.java:512)
04-26 06:42:08.842: E/AndroidRuntime(577): at com.learnopengles.android.lesson1.LessonOneActivity.onResume(LessonOneActivity.java:46)
04-26 06:42:08.842: E/AndroidRuntime(577): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150)
04-26 06:42:08.842: E/AndroidRuntime(577): at android.app.Activity.performResume(Activity.java:3832)
04-26 06:42:08.842: E/AndroidRuntime(577): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2110)
04-26 06:42:08.842: E/AndroidRuntime(577): ... 12 more
04-26 06:42:13.292: I/Process(577): Sending signal. PID: 577 SIG: 9
I have run the code, and the exception is due to the fact that the emulator still does not support GLES20. If you print more information, you'll see that supportsEs2 is false.
Why the emulator does not support GLES20 even if GPU Emulation is set to true is system-dependent. If you are developing on Linux, it may be related to the graphics card. Here is a similar question with some possible solutions. At least you can try it.
EDIT:
According to the official site, you need to set your emulator target to API 15 (rev03) or higher.

Android - why is GC suddenly removing my object?

When I'm creating object to write to output stream (size is lower than 150KB) it probably gets instantly destroyed, because of:
System.out.println("Sending object..");
Packet p = new Packet(mJpegData); // here exists
System.out.println(p); // reference exists
oos.writeObject(p); // null exception error
full error:
04-26 21:37:01.414: W/System.err(12888): java.lang.NullPointerException
04-26 21:37:01.414: W/System.err(12888): at pl.aadamczyk.webcamera.Preview$PreCallback.onPreviewFrame(Preview.java:148)
04-26 21:37:01.417: W/System.err(12888): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:583)
04-26 21:37:01.417: W/System.err(12888): at android.os.Handler.dispatchMessage(Handler.java:99)
04-26 21:37:01.417: W/System.err(12888): at android.os.Looper.loop(Looper.java:130)
04-26 21:37:01.417: W/System.err(12888): at android.app.ActivityThread.main(ActivityThread.java:3687)
04-26 21:37:01.417: W/System.err(12888): at java.lang.reflect.Method.invokeNative(Native Method)
04-26 21:37:01.417: W/System.err(12888): at java.lang.reflect.Method.invoke(Method.java:507)
04-26 21:37:01.417: W/System.err(12888): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
04-26 21:37:01.417: W/System.err(12888): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
04-26 21:37:01.417: W/System.err(12888): at dalvik.system.NativeStart.main(Native Method)
04-26 21:37:01.472: D/dalvikvm(12888): GC_FOR_MALLOC freed 1152K, 57% free 2820K/6535K, external 1596K/2108K, paused 17ms
04-26 21:37:01.472: I/System.out(12888): My Object has been GC'd. Packet#4063d908
04-26 21:37:01.523: D/dalvikvm(12888): GC_CONCURRENT freed 28K, 50% free 3311K/6535K, external 1596K/2108K, paused 3ms+10ms
"My Object has been GC'd. " is printed by Packet's finalizer.
whole code: http://pastebin.com/zc5TcSgY
Why GS is removing my object? I've got in about 120 MB free memory.
How to fix it?
I think the problem is with oos because it might be the one causing NullPointerException.
Change your code a little as below:
System.out.println("Sending object..");
Packet p = new Packet(mJpegData); // here exists
System.out.println(p); // reference exists
if(oos != null)
oos.writeObject(p);
else
Log.w("oos", "its null");

Android Adwhirl shows Unsupported Ration Type

By looking at this link i tried to implement Adwhirl in android
https://www.adwhirl.com/doc/android/AdWhirlAndroidSDKSetup.html
I created accounts in both admob and Adwhirl.
The adwhirl request in going....
But my LOG shows
: Rotating Ad
: Dart is <64.45885525893553> of <100.0>
04-26 09:01:34.164: DEBUG/AdWhirl SDK(322): Showing ad:
04-26 09:01:34.164: DEBUG/AdWhirl SDK(322): nid: c2f1ad5211f0471d84002ae595aafe37
04-26 09:01:34.164: DEBUG/AdWhirl SDK(322): name: admob
04-26 09:01:34.164: DEBUG/AdWhirl SDK(322): type: 1
04-26 09:01:34.164: DEBUG/AdWhirl SDK(322): key: a14cc177ec52af5
04-26 09:01:34.164: DEBUG/AdWhirl SDK(322): key2:
04-26 09:01:34.204: WARN/AdWhirl SDK(322): Unsupported ration type: 1
04-26 09:01:34.373: DEBUG/dalvikvm(322): GC freed 8949 objects / 767976 bytes in 155ms
04-26 09:01:34.383: WARN/AdWhirl SDK(322): Caught an exception in adapter:
04-26 09:01:34.383: WARN/AdWhirl SDK(322): java.lang.Exception: Invalid adapter
04-26 09:01:34.383: WARN/AdWhirl SDK(322): at com.adwhirl.adapters.AdWhirlAdapter.handle(AdWhirlAdapter.java:166)
04-26 09:01:34.383: WARN/AdWhirl SDK(322): at com.adwhirl.AdWhirlLayout.handleAd(AdWhirlLayout.java:222)
04-26 09:01:34.383: WARN/AdWhirl SDK(322): at com.adwhirl.AdWhirlLayout.access$3(AdWhirlLayout.java:205)
04-26 09:01:34.383: WARN/AdWhirl SDK(322): at com.adwhirl.AdWhirlLayout$HandleAdRunnable.run(AdWhirlLayout.java:390)
04-26 09:01:34.383: WARN/AdWhirl SDK(322): at android.os.Handler.handleCallback(Handler.java:587)
04-26 09:01:34.383: WARN/AdWhirl SDK(322): at android.os.Handler.dispatchMessage(Handler.java:92)
04-26 09:01:34.383: WARN/AdWhirl SDK(322): at android.os.Looper.loop(Looper.java:123)
04-26 09:01:34.383: WARN/AdWhirl SDK(322): at android.app.ActivityThread.main(ActivityThread.java:4338)
04-26 09:01:34.383: WARN/AdWhirl SDK(322): at java.lang.reflect.Method.invokeNative(Native Method)
04-26 09:01:34.383: WARN/AdWhirl SDK(322): at java.lang.reflect.Method.invoke(Method.java:521)
04-26 09:01:34.383: WARN/AdWhirl SDK(322): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-26 09:01:34.383: WARN/AdWhirl SDK(322): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-26 09:01:34.383: WARN/AdWhirl SDK(322): at dalvik.system.NativeStart.main(Native Method)
04-26 09:01:34.395: ERROR/AdWhirl SDK(322): nextRation is null!
04-26 09:01:34.395: DEBUG/AdWhirl SDK(322): Will call rotateAd() in 30 seconds
04-26 09:02:04.463: INFO/AdWhirl SDK(322): Rotating Ad
I think this is creating problem
04-26 09:01:34.204: WARN/AdWhirl SDK(322): Unsupported ration type: 1
Any solutions...plz help
Did you include the AdMob SDK in your project's build path? Check out these instructions.

Error Regarding the Title

I have got the Exception on AndroidRunTimeException. . .
It says that the You can not combine Custom titles With other title features.
Can anybudy says why it is occurs ??
My Exceptions in as below :
04-26 15:26:12.461: ERROR/BluetoothChat(455): +++ ON CREATE +++
04-26 15:26:12.616: ERROR/AndroidRuntime(455): Uncaught handler: thread main exiting due to uncaught exception
04-26 15:26:12.701: ERROR/AndroidRuntime(455): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.menu/com.menu.volunteer_management.BluetoothChatApp}: android.util.AndroidRuntimeException: You cannot combine custom titles with other title features
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at android.os.Handler.dispatchMessage(Handler.java:99)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at android.os.Looper.loop(Looper.java:123)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at java.lang.reflect.Method.invokeNative(Native Method)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at java.lang.reflect.Method.invoke(Method.java:521)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at dalvik.system.NativeStart.main(Native Method)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): Caused by: android.util.AndroidRuntimeException: You cannot combine custom titles with other title features
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:183)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2057)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2207)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:194)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at android.app.Activity.setContentView(Activity.java:1622)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at com.menu.volunteer_management.BluetoothChatApp.onCreate(BluetoothChatApp.java:74)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): ... 11 more
Thank You..
In android 4.0 and later you can not add your custom title in this way get help from this document.
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/CustomTitle.html

Categories

Resources