Android : App Starts In 1.5 Emulator But Doesn't In 1.6

Apr 29, 2010

My app works on 1.5 emulator and 1.5 device. When i try to start it on 1.6 emulator, it produces strange exceptions (doesn't even start). I don't have any 1.6 device to try this app if it works on a real device.
I get some warnings in Eclipse ( warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a broken compiler.) and get cant rid of them (i think they come from some apache jars that i need to make http multipart posts).

Is it possible that this jars are cause for my exceptions in 1.6 or is it something else?

My logacat:

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

Android : App starts in 1.5 emulator but doesn't in 1.6


Android :: Emulator Doesn't Link To Eclipse

Feb 19, 2009

I'm developing on a Mac with Eclipse and the emulator sometimes doesn't seem to link to eclipse (doesn't show anything in the logcat). I just have to close and run again and it works. I wonder why this happens. Has anybody else experienced this?

View 3 Replies View Related

Android :: OpenGL Coding - Emulator Doesn't Work

May 26, 2009

After spending the better half of this day getting my HTC Magic to work in developer mode, I've now found that some of my frist openGL coding attempts that appeared to work fine in the emulator doesn't work as expected on the device. I've narrowed this down to glColorf(r, g, b, a) not working as expected on the device itself. The provided OpenGL samples do work though. So for example, after modifying Cube.java from the samples to the below code I find that I get the expected grey square on the emulator but a blank white screen (background fill colour) on the device.

class Cube { public Cube() { int one = 0x10000; int vertices[] = { -one, -one, -one, one, one, -one, one, one, };
// Buffers to be passed to gl*Pointer() functions // must be direct, i.e., they must be placed on the // native heap where the garbage collector cannot // move them. // // Buffers with multi-byte datatypes (e.g., short, int, float) // must have their byte order set to native order
ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4); vbb.order(ByteOrder.nativeOrder()); mVertexBuffer = vbb.asIntBuffer(); mVertexBuffer.put(vertices); mVertexBuffer.position(0); }
public void draw(GL10 gl) { gl.glFrontFace(GL10.GL_CW); gl.glVertexPointer(2, gl.GL_FIXED, 0, mVertexBuffer); gl.glColor4f(0.5f, 0.5f, 0.5f, 0.5f); gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, 4); }
private IntBuffer mVertexBuffer;

View 5 Replies View Related

Android : Receiver Doesn't Receive Broadcast - When I Run It In Emulator

Feb 4, 2009

I have a service in an APK which starts a Thread which has the following in it's run method; Code...

But the receiver doesn't receive the broadcast when I run it in the emulator (or at least the log message doesn't get received). Any hints?

The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries.

View 5 Replies View Related

Android : Layout Doesn't Fit On WVGA Emulator Skin

Oct 29, 2009

I been working on default skin before, if i change my skin to WVGA , my layout displays only in a portion of the skin and the rest of screen is black.

although, i can see android's home screen in full view. do i need to change my skin settings or my layout itself?

View 2 Replies View Related

Android :: Vibrator Doesn't Work - Force Close Emulator

Aug 30, 2010

I'm still an Android & Java noob, but everything I've seen is telling me this should totally work, but it doesn't! not in the emulator, not on the phone.. I'm trying to use the vibrator using vibrate(500); ..I get an " application stopped unexpectedly " error

Code below:

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

View 1 Replies View Related

Android :: Emulator Doesn't Show Up / Command Window That Opens Up

Jul 15, 2010

I have a problem my emulator when i click on start button to run the AVD tehre is a command window that opens up and then there is nothing, the emulator window doesn't show up. I have extracted the sdk folder several time. deleted teh .android folder everytime . Can somebody tell me what is teh problem or what else can i do. Since its not running from sdk Setup.exe, in eclipse to i cant run it. Itsay launching the emulator but then there is nothing. Can someone tell me if android sdk as some log files where i can check the errors.

View 13 Replies View Related

Android :: Gsm Call - Sms Send Doesn't Work From Emulator - Ddms Perspective

Jun 23, 2010

I have problems simulating call or sms since telnet or ddms perspective on eclipse. I'm connected to the device and some commands works (window scale,...)If i try to simulate a gsm call then everything seems ok but i haven't anything on my emulator (nor incoming call nor notification) then if i launch an "gsm list" command my inbound call is listed and i can cancel it the same thing occurs with sms send everything seems ok (return OK) but there is no notification on the emulator nor sms in inbox :-(

I'm using the sdk r06 on a windows xp machine. I try with fresh avd on different platform :-(

Important : it has worked so i know it can work, but i would like to know why it doesn't work now ! Using ddms i don't see any trace on the log view.

View 1 Replies View Related

Android :: Using SetCurrentTab On A TabHost In Landscape Mode Doesn't Work - In Emulator

Aug 13, 2009

Since I only have access to the emulators, I don't know if the problem can be reproduced on real phones. I'm using setCurrentTab on a TabHost to dynamically select a tab. When I am in portrait mode, it works, but as soon as I change to landscape (ctrl + f12), it doesn't work anymore. It doesn't send an exception, it just doesn't do anything. If I switch back to portrait (ctrl + f12), it doesn't work either. That means it just works when I first am in portrait mode. As soon as I change, it stops working. In order to make it work again, I need to close the application and reopen it.

The TabHost is from the current activity, which is a TabActivity.

Can you check if this happens to you too (emulator)?

View 2 Replies View Related

Android : Finger Drag On Motorola Droid Emulator Doesn't Work

Jul 16, 2010

I am programming an android application and my "testing" device is a Motorola Milestone (Droid). I have done a grid that scroll like the iPhone home menu ( with "points").
I got two problems:

The first one : the drag only works on the Android Device Emulator and don't on the Droid! (Maybe the multi-touch screen is a problem?) The drag is too responsible, and flip views sometimes one by one (this is ok) and sometimes 2 by 2 or 3 by 3! That is clearly problematic!

Here is the code of my OnTouch method: Code...
Update : It doesn't work anymore on the Google Nexus One!

View 2 Replies View Related

General :: Android Emulator - Edit Hosts File Doesn't Resolve Custom Domain Name

Dec 20, 2010

I'm developing a mobile website and I want to see how it looks in Android Simulator.

I manage to edit my android's /etc/hosts file. Here's what I did:

1. Create an Android Virtual Device (AVD)
2. Open the AVD with this command

Code:
./emulator -avd android -partition-size 128

3. Execute the following commands

Code:
./adb remount

4. Get the android hosts file

Code:
./adb pull /etc/hosts

5. Add my mobile website into the android's hosts file. It looks like the following

Code:
127.0.0.1 localhost
172.19.14.46 m.myweb.localhost

6. Push the hosts file to the simulator

Code:
./adb push hosts /etc/hosts

7. Open the web mobile in the simulator and Host do not found. The web mobile should appear.

Btw I use Ubuntu 10.10 and android-sdk_r08-linux_86 API 7 (Android SDK 2.1)

View 3 Replies View Related

Android :: How To Run Something Only When Application Starts?

Mar 27, 2010

I have a dialog popup to indicate how long I want an activity to run.Seems simple enough, but its difficult to determine when the activity is really starting.If the user opens the keyboard on a G1 and thereby goes into landscape, that reruns the activities onCreate method.I can't have a static for the class or even create an application class, because I can't determine when the 'application' goes away. Even after destroying the only activity, the application is apparently still alive.Is there a way to determine that onCreate has been called because of the keyboard being extended or landscape mode invoked?

View 3 Replies View Related

Android :: SQLite - Works Perfect In 1.6 Emulator - Won't Work On The Phone - 2.2 - Or 2.0 - Emulator

Aug 6, 2010

I created a sqlite database to store playlists for a media player I am developing because of extended feature (rather than using the Content Provider). It works perfectly on the 1.6 emulator but FCs on anything higher than 2.0... what has changed that I need to know about as far as opening databases in SDK 2.0+? Here is the logcat.

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

Here is the dbhelper class

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

why can't stackoverflow just use tags like a normal syntax highlighter.

View 2 Replies View Related

Android :: Unable To Play Youtube Videos On SDK 1.5 Emulator - But Playing Well On SDK 1.0 Emulator

May 19, 2009

Unable to play youtube videos on SDK 1.5 emulator - but playing well on SDK 1.0 emulator. Can you update the source....

View 7 Replies View Related

Android :: Emulator - ERROR - User Data Image Is Used By Another Emulator

Apr 13, 2010

Finally strace gave me this:

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

And several other attempts to call "link" that also fail (sshfs does not support hard links).

Is it possible to change the emulator's behavior to create lock files somewhere in /tmp (using some hash of image path as lock file name)? I am OK to try this myself: which repositories from https://android.git.kernel.org/ are necessary to rebuild the emulator alone, and where in the sources is the code responsible for image locks?

View 4 Replies View Related

Android :: Emulator - SDK 1.1_r1 For Widndows XP - Crash Using Emulator -data

Apr 20, 2009

I need to run several emulator instances to test my application. When i try to run instances using emulator -data <path> option, the emulator crashes.

I got a MS Visual Studio window informing that emulator throws a "unhandled win32 exception".

The exception message in the debugger (MS Visual Studio 2008) is: "Unhandled exception at 0x77c4706c in emulator.exe: 0xC0000005: Access violation reading location 0x03216848"

The emulator runs normally without "-data" option.

View 2 Replies View Related

Android :: Emulator Error - User Data Image Is Used By Another Emulator

Nov 1, 2010

I am getting the following error when I try running my program in the emulator:

emulator: ERROR: the user data image is used by another emulator. aborting`

View 1 Replies View Related

Android :: Application Crashes Before It Starts

Nov 16, 2010

intentTest.java:
package intentTest.xyz.com;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button
public class intentTest extends Activity {
Button b;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
b = (Button) findViewById(R.id.b);
b.setOnClickListener( new View.OnClickListener() {
public void onClick(View view) {
Intent intent = new Intent(intentTest.this,seond.class );
startActivity(intent);
}});
}}
main.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="First screen"
/>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="click"
android:name="@+id/b"
/>
</LinearLayout>
seond.java:
package intentTest.xyz.com;
import android.app.Activity;
import android.os.Bundle;
public class seond extends Activity{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.second);
} }
second.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="second screen"
/>

manifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="intentTest.xyz.com"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".intentTest"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".seond"></activity>
</application>
</manifest>

I get the following error code:
11-16 01:26:07.156: ERROR/AndroidRuntime(779): Uncaught handler: thread main exiting due to uncaught exception
11-16 01:26:07.166: ERROR/AndroidRuntime(779): java.lang.RuntimeException: Unable to start activity ComponentInfo{intentTest.xyz.com/intentTest.xyz.com.intentTest}: java.lang.NullPointerException
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.app.ActivityThread.access$2100(ActivityThread.java:116)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.os.Handler.dispatchMessage(Handler.java:99)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.os.Looper.loop(Looper.java:123)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.app.ActivityThread.main(ActivityThread.java:4203)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at java.lang.reflect.Method.invokeNative(Native Method)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at java.lang.reflect.Method.invoke(Method.java:521)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at dalvik.system.NativeStart.main(Native Method)
11-16 01:26:07.166: ERROR/AndroidRuntime(779): Caused by: java.lang.NullPointerException
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at intentTest.xyz.com.intentTest.onCreate(intentTest.java:18)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
... 11 more

View 5 Replies View Related

Android :: WebView Starts With A Delay

Feb 6, 2009

I am using WebView in a number of screens in my application, and notice that it takes couple of seconds when starting up for the first time. What can I do to speed it up besides trying to create one in a separate thread beforehand?

View 3 Replies View Related

Android :: App To Choose What Starts Up At Boot

Aug 16, 2010

I have a number of app's that seem to start and run at random.

I still want these apps on the on phone, so don't want to uninstall, just want to be able to choose when they start up - rather than them starting at random and running in background.

Some of the app's running:

Music
Footprints
Stocks
FM Radio
Juiceplotter
Fake-call-me-Pro

Is there an APP similar to AUTORUNS (which I use on my Windows PC) that lets me choose what programs run at boot?

View 3 Replies View Related

Android :: IM - Always Starts - Funny SMSs

Oct 29, 2009

IM is automatically loaded when I start my phone. I don't use it, but don't see a way to uninstall or shut that off.

Also, I occssionally get these odd sms messages. I looked one up on the web and it said it had to do with IM. How can I stop all this IM stuff?

View 4 Replies View Related

Android : Email Starts Blank

Feb 2, 2010

I have a new Droid (2.0) and set-up a company non-gmail email account (which happens to be hosted by gmail). When I click on the "Email" app form Home, a blank/black screen comes up. I need to hit "Menu", "Accounts", and then select the single account in order for the Inbox to show.Is this normal? Do I have something wrong?

View 1 Replies View Related

Android :: Application In Emulator Without Restarting Emulator In Eclipse?

Apr 8, 2009

Is there a way to reload an Android application in the emulator without closing the emulator, saving any code changes, and running the emulator again? If I make even a simple change to the layout, it takes about 30 seconds by time I run it in Eclipse and Android "boots", and I can unlock the emulator to run the application. Is there any way to shorten this time when making changes, or is it something I just have to deal with?

View 3 Replies View Related

Android :: Start-emulator Task Never Gets Emulator Running

Mar 16, 2010

I downloaded the most recent version of Android for linux (android-sdk_r05-linux_86.tgz). I was trying to use the the Android Ant task(s) for packaging, building, and deploying my code. I should mention that I'm running AMD64, but have the 32-bit libraries installed. The Android Ant tasks are all broken.

First, the start-emulator task never gets the emulator running. It does get past starting adb, but then just sits there.

Second, the SDK is missing the aapt binary in the tools directory. So, the example notepad sample application will not even package correctly.

I have all the dependencies configured for Android. I can run it from the command line just fine.I assume the Ant code is out of sync with the recent SDK updates. Can anyone shed some light on this problem? At this point, I'm considering writing my own Python scripts to interact with the Android SDK. Ugh.

View 1 Replies View Related

Android :: Activity Starts Remote Service

Oct 8, 2010

My initial activity is basically a splash screen while preforming initialization and login in to network server. To save memory I want to finish() the splash activity once it starts the main menu activity. I still want the remote service to operate. Testing shows it does. But am I going to get into trouble doing this? I know I can restart the remote from the main menu activity but I am trying to save overhead by not starting it twice. The remote service is required by the splash activity.

View 1 Replies View Related

Android :: Best Way For Service That Starts Activity To Communicate With It

Feb 16, 2010

I have a service that listens to a socket. When receiving certain input it is to create an activity. When receiving other input, it is to kill this activity. I have struggled for a while to make the service communicate with the activity through AIDL (http://developer.android.com/guide/developing/tools/aidl.html), but this seems to not be effective. I think AIDL is only effective when the process that is to be talked to is a service, not when it is an activity? I would love some directions or suggestions on how to solve my problem.

View 1 Replies View Related

Android :: How To Find Out When Activity Starts Or Get Focus?

Mar 17, 2010

I would need to know when one activity starts or get's focus. I need this notification for any activity regardless of his type, name or whatever - not searching for one specific activity. Checked the ActivityMonitor and the Intent and I haven't found a generic intent for this purpose. Or I hadn't understood well the descriptions from the Intent ACTION_xxxxx.

View 7 Replies View Related

Android :: How To Start Animation When Activity Starts?

Aug 21, 2010

I need to start a animation automatically for a activity without any user clicking. I know when activity is not ready, animation could not start. I used a thread to start it, however it is still not working.

View 4 Replies View Related

Android :: Set Focus On TextView When Activity Starts?

Aug 16, 2010

There are an EditText and a TextView in my Activity. I want to set focus on the TextView when the Activity starts. I used the following code:

TextView myTextView = (TextView) findViewById(R.id.my_text_vew);
myTextView.setFocusable(true);
myTextView.setOnClickListener(this);
myTextView.requestFocus();

But the code doesn't work. The EditText always receives focus when the activity starts.

View 1 Replies View Related

Android :: Auto Complete Only Starts After Two Letters

Nov 20, 2010

The android auto complete only starts after two letters, how can I make it so the list appears when the field is just selected?

View 2 Replies View Related







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