13 Replies - 1448 Views - Last Post: 03 May 2012 - 10:14 AM

#1 sgt.assassin  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 40
  • Joined: 18-March 11

Android App Not Compatible

Posted 02 May 2012 - 05:03 AM

Hi, I have created an application which is targeted for platforms of Android 2.2 (API 8). However, there are users who have phones with an API Level 15 and my application doesnt work on theirs. How do i go about fixing this issue so that it is compatible for all applications?

Thnx

This post has been edited by sgt.assassin: 02 May 2012 - 05:06 AM

Is This A Good Question/Topic? 0
  • +

Replies To: Android App Not Compatible

#2 EndLessMind  Icon User is offline

  • These are the droids you're looking for
  • member icon

Reputation: 194
  • View blog
  • Posts: 1,099
  • Joined: 13-March 09

Re: Android App Not Compatible

Posted 02 May 2012 - 06:35 AM

That depends, what errors are you getting on API 15-based devices?

I've made advanced app with API 7 or 8 as target.
But they always run on my phones, what has Android 4.0.3 (API 15)
Was This Post Helpful? 1
  • +
  • -

#3 sgt.assassin  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 40
  • Joined: 18-March 11

Re: Android App Not Compatible

Posted 02 May 2012 - 02:30 PM

The error that i am receiving is Thread.Stop. I still havent came to understand whats wrong with it.

java.lang.UnsupportedOperationException
at java.lang.Thread.stop(Thread.java:1076)
at java.lang.Thread.stop(Thread.java:1063)
at mi.ara.Splash$1.run(Splash.java:38)
Was This Post Helpful? 0
  • +
  • -

#4 EndLessMind  Icon User is offline

  • These are the droids you're looking for
  • member icon

Reputation: 194
  • View blog
  • Posts: 1,099
  • Joined: 13-March 09

Re: Android App Not Compatible

Posted 02 May 2012 - 02:47 PM

There must be more in the logcat.
Like "caused by .. "
Post everything that the logcat displays from that moment you start the app, to i crashes.
And post it between code-tags :)
Was This Post Helpful? 1
  • +
  • -

#5 sgt.assassin  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 40
  • Joined: 18-March 11

Re: Android App Not Compatible

Posted 02 May 2012 - 03:03 PM

Hi, i wouldnt know what its caused by as i have an android 2.2 phone (API 8) and not a android version 4.0.3 (API 15).
How do i go about finding out the issues for the 4.0.3 version phone as i dont have one?
Was This Post Helpful? 0
  • +
  • -

#6 EndLessMind  Icon User is offline

  • These are the droids you're looking for
  • member icon

Reputation: 194
  • View blog
  • Posts: 1,099
  • Joined: 13-March 09

Re: Android App Not Compatible

Posted 02 May 2012 - 03:24 PM

Use an emulator that runs 4.0.3
Was This Post Helpful? 1
  • +
  • -

#7 sgt.assassin  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 40
  • Joined: 18-March 11

Re: Android App Not Compatible

Posted 02 May 2012 - 03:58 PM

Hi, sorry for the previous post i completely forgot about the AVD emulator. anyway ive taken a screenshot of the errors aswell as with a few lines below.

05-02 22:49:59.228: W/NetworkManagementSocketTagger(92): setKernelCountSet(10009, 0) failed with errno -2
05-02 22:50:03.309: W/dalvikvm(502): threadid=11: thread exiting with uncaught exception (group=0x409c01f8)

Attached image(s)

  • Attached Image

Was This Post Helpful? 0
  • +
  • -

#8 EndLessMind  Icon User is offline

  • These are the droids you're looking for
  • member icon

Reputation: 194
  • View blog
  • Posts: 1,099
  • Joined: 13-March 09

Re: Android App Not Compatible

Posted 02 May 2012 - 04:23 PM

The error seams to occur at line 38 in Splash.java, do you have a file in you project called "Splash.java"?
Was This Post Helpful? 1
  • +
  • -

#9 sgt.assassin  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 40
  • Joined: 18-March 11

Re: Android App Not Compatible

Posted 02 May 2012 - 04:32 PM

oh okay. I do have a splash.java file but it doesn't show any error.
Was This Post Helpful? 0
  • +
  • -

#10 EndLessMind  Icon User is offline

  • These are the droids you're looking for
  • member icon

Reputation: 194
  • View blog
  • Posts: 1,099
  • Joined: 13-March 09

Re: Android App Not Compatible

Posted 02 May 2012 - 05:15 PM

But there are.
You don't see it in the code, it's caused in runtime.
Post the code from the Splash.java
Was This Post Helpful? 1
  • +
  • -

#11 sgt.assassin  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 40
  • Joined: 18-March 11

Re: Android App Not Compatible

Posted 03 May 2012 - 07:34 AM

Sorry for the late reply. I reside in the UK so it was my bedtime.

package kamal.uddin;

import android.app.Activity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.content.Intent;



public class Splash extends Activity {
		protected boolean _active = true;
	    protected int _splashTime = 5000;
	  
	    /** Called when the activity is first created. */
    @Override
	    public void onCreate(Bundle savedInstanceState) {
	      super.onCreate(savedInstanceState);
	    setContentView(R.layout.main);
	       	
       
        // thread for displaying the SplashScreen
        Thread splashTread = new Thread() {
            @Override
            public void run() {
                try {
                    int waited = 0;
                    while(_active && (waited < _splashTime)) {
                        sleep(100);
                        if(_active) {
                            waited += 100;
                        }
                    }
                } catch(InterruptedException e) {
                    // do nothing
                } finally {
                    finish();
                    startActivity(new Intent("com.android.splashscreen.KamalUddinIllallahActivity"));
                    stop();
                }
            }
        };
        splashTread.start();
    }
    
    @Override
    public boolean onTouchEvent(MotionEvent event) {
        if (event.getAction() == MotionEvent.ACTION_DOWN) {
            _active = false;
        }
        return true;
 
    }
    }


Was This Post Helpful? 0
  • +
  • -

#12 EndLessMind  Icon User is offline

  • These are the droids you're looking for
  • member icon

Reputation: 194
  • View blog
  • Posts: 1,099
  • Joined: 13-March 09

Re: Android App Not Compatible

Posted 03 May 2012 - 08:12 AM

Okay, you don't use "stop();" in a thread. You use " interrupt();" :)
Was This Post Helpful? 1
  • +
  • -

#13 sgt.assassin  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 40
  • Joined: 18-March 11

Re: Android App Not Compatible

Posted 03 May 2012 - 09:05 AM

Oh okay, it seems to work on the AVD. I really appreciate your help. Thank you sooo much. I have another query regarding the layout of the application. If i have created the application in 2.2 android plaform and a user who decides to download the application and has a phone which is on 4.0.3 platform the layout of the application on the 4.0.3 phone tends to mess up. how do i go about correcting this?
Was This Post Helpful? 0
  • +
  • -

#14 EndLessMind  Icon User is offline

  • These are the droids you're looking for
  • member icon

Reputation: 194
  • View blog
  • Posts: 1,099
  • Joined: 13-March 09

Re: Android App Not Compatible

Posted 03 May 2012 - 10:14 AM

Please vote the posts that are helpful.
Of you have other questions, please post a new topic.


Cheers
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1