Crash after receiving an admob ad..

by SriramKS » Tue, 12 Apr 2011 07:23:46 GMT


Sponsored Links
 4-10 04:13:53.395: INFO/Ads(6915): Received ad url: <"url": "http://
r.admob.com:80/ad_source.php?
preqs=3&u_sd=1.5&u_w=480&slotname.......................

04-10 04:13:54.739: INFO/global(6915): Default buffer size used in
BufferedReader constructor. It would be better to be explicit if an 8k-
char buffer is required.
04-10 04:13:54.895: WARN/dalvikvm(6915): threadid=17: thread exiting
with uncaught exception (group=0x400208b0)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): FATAL EXCEPTION:
AsyncTask #2
04-10 04:13:54.926: ERROR/AndroidRuntime(6915):
java.lang.RuntimeException: An error occured while executing
doInBackground()
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
android.os.AsyncTask$3.done(AsyncTask.java:200)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:
273)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
java.util.concurrent.FutureTask.setException(FutureTask.java:124)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
java.util.concurrent.FutureTask.run(FutureTask.java:137)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1068)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:561)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
java.lang.Thread.run(Thread.java:1096)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): Caused by:
android.view.ViewRoot$CalledFromWrongThreadException: Only the
original thread that created a view hierarchy can touch its views.
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
android.view.ViewRoot.checkThread(ViewRoot.java:2819)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
android.view.ViewRoot.requestLayout(ViewRoot.java:603)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
android.view.View.requestLayout(View.java:8127)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
android.view.View.requestLayout(View.java:8127)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
android.view.View.requestLayout(View.java:8127)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
android.view.View.requestLayout(View.java:8127)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
android.widget.RelativeLayout.requestLayout(RelativeLayout.java:254)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
android.view.View.requestLayout(View.java:8127)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
android.view.View.requestLayout(View.java:8127)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
android.widget.RelativeLayout.requestLayout(RelativeLayout.java:254)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
android.view.View.requestLayout(View.java:8127)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
android.view.View.setFlags(View.java:4501)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
android.view.View.setVisibility(View.java:3030)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at c.a(Unknown
Source)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
c.doInBackground(Unknown Source)
04-10 04:13:54.926: ERROR/AndroidRuntime(6915): at
android.os.Asy



Re: Crash after receiving an admob ad..

by TreKing » Tue, 12 Apr 2011 10:29:51 GMT


 What exactly do you want us to do with a giant stacktrace of your code?
Besides tell you to read it since it tells you exactly what went wrong?

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

-- 


Sponsored Links


Other Threads

1. transparent textures...

Hi all
I am using opengl for drawing 3d stuff, but so far I've been unable to
use transparent textures...


this is what I do... does anybody knows what I am missing?
Thanks a lot!

void initGL()
{

         gl.glEnable(GL10.GL_CULL_FACE);
         gl.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
         gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
         gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
         gl.glEnable(GL10.GL_TEXTURE_2D);
         gl.glDisable(GL10.GL_DITHER);
         gl.glMatrixMode(GL10.GL_PROJECTION);
         gl.glLoadIdentity();
         gl.glFrustumf(-ratio, ratio, -1, 1 , 1, 50);

         gl.glTexParameterx(GL10.GL_TEXTURE_2D,GL10.GL_TEXTURE_MIN_FILTER,
GL10.GL_LINEAR);
         gl.glTexParameterx(GL10.GL_TEXTURE_2D,GL10.GL_TEXTURE_MAG_FILTER,
GL10.GL_LINEAR);

         gl.glFrontFace(GL10.GL_CCW);
         gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);

}

void drawGL()
{
                gl.glTexImage2D(GL10.GL_TEXTURE_2D, 0, GL10.GL_RGBA, width, 
height,
0, GL10.GL_RGBA,GL10.GL_UNSIGNED_BYTE, mPixelsBuffer);
                gl.glVertexPointer(3, GL10.GL_FIXED, 0, mVertexBuffer);
                gl.glTexCoordPointer(2, GL10.GL_FIXED, 0, mTexBuffer);
                gl.glDrawElements(GL10.GL_TRIANGLES, nIndex*3,
GL10.GL_UNSIGNED_SHORT, mIndexBuffer);
}
--~--~---------~--~----~------------~-------~--~----~

2. Please help me in defining the style of my widget in my theme.

Hi,

I am tying to define the style of MyWidget in my theme.

I create a widget myself called 'MyWidget' and I want to define the
style of MyWidget in my theme.


And I have added this in my manifest file:

 <application android:label="@string/app_name" android:theme="@style/MyTheme">

This in my themes.xml file:
<resources>
  <style name="MyTheme">
   <item name="buttonStyleMyWidget">@style/MyWidget</item>
   </style>
</resources>

and this in my styles.xml file:

<?xml version="1.0" encoding="utf-8"?>
<resources>
     <style name="MyWidget">
       <item name="android:background">@drawable/btn_mywidget_bg</item>
</style>
</resources>

But android did not pick up the style of 'MyWidget' unless I
specifically put 'style='@style/MyWidget'

In other words, in my main.xml, if i specified my 'style' attribute,
my background
drawable was displayed correctly.
 <test.MyWidget android:id="@+id/mywidget" style="@style/MyWidget" />

but if I just do this:
<test.MyWidget android:id="@+id/mywidget" /> , the background drawable
is not display correctly.

Can you please tell me what am I missing?

Thank you.

--~--~---------~--~----~------------~-------~--~----~

3. How to use android:pathPattern attribute in intent filters?

4. Need some help at testing an Android game

5. seek operation during multimedia playback - opencore

6. Is there a way to make the MediaPlayer non-blocking

7. Question about defining selector drawable