android-emulator

canvas different on android emulator compared to phone

Should there be any difference between a canvas on the emulator and a canvas on a real device (HTC Incredible)? On my canvas for the emulator I have this: canvas.drawRect(x*cell_size + 1, y*cell_size + 1, x*cell_size+cell_size, y*cell_size+cell_size, pWalls); (this is a grid type game) and it works and looks fine but on my real device...

Launch Browser Intent with Custom Class - cannot find Activity

I want to specifically run the default Android browser for a given URL. I'm using this code: Intent i = new Intent(); i.setAction("android.intent.action.VIEW"); i.addCategory("android.intent.category.BROWSABLE"); i.setClassName("com.google.android.browser", "com.android.browser.BrowserActivity"); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TAS...

how to reach the sub activity code in debug mode.

I have a activity B that is called by activity A, I want to debug the code in B. I have set the breakpoint, however the debug control never enters B. public class A extends Activity { Intent j = new Intent(mContext, B.class); startActivity(j); } -- public class B extends Activity { some code --Break Po...

Onscreen keyboard covers up EditText on QVGA800 skin(resolution) in android 1.5

In android 1.5 sdk, with QVGA800 skin(resolution), I added 8 EditText in LinearLayout. When 8th EditText box is tapped, the onscreen appears. However, layout doesnt move up enough, I mean, it moves up however it still covers EditText box which is being typed. How to solve this ? Main Class : package com.i; import android.app.Activity;...

Problem while creating table with sqLite

Hi to All, i created one demo in android regarding the database. But while executing it facing some problem. So can any one please help me. Here is the code that i developed. package com.android; import android.app.Activity; import android.database.Cursor; import android.database.sqlite.*; import android.os.Bundle; import android.util...

AVD dont Work on my W7 pc

Hello i'd like to run my sdk Emulator on my Windows7 PC I made a emulator bu i get always this error: emulator: ERROR: no search paths found in this AVD's configuration. Weird, the AVD's config.ini file is malformed. Try re-creating it. But all paths are correct. Please help me! ...

Install Adobe flash player 10.1 on Android 2.2

How can installed Adobe flash player 10.1 on Android simulator 2.2? ...

Android Emulator Stuck Equals (=) Phantom Keypress

For some reason, and only on my Dell Vostro 1000 laptop, the Android emulator keeps thinking I have the = key pressed and continually emits a string of "=====" equal signs. This happens no matter what I'm doing in the emulator. It responds to my manual keypresses as well, interspersing them. It happens no matter which version of the A...

Android sample app not showing up

New Android developer here. I'm following a tutorial at http://www.vogella.de/. The first applications (does temperature conversion) works. The second (does preferences and uses a menu) one never shows up. I've tried using both Helios and Galileo. I've tried re-installing Android SDK. I've tried removing the test device and re-creating i...

Not Connecting To Web Page On Android

Hi, I got a code for connecting the web page but it shows always "Connection failed; Host is unresolved: www.streetcar.org:80" The code is as follows. package myapp.httpdwnd; import android.app.Activity; import java.io.InputStream; import android.os.Bundle; import android.widget.LinearLayout; import android.widget.TextV...

How to generate external logfile in android app?

may i know is there any way to generate external log file? ...

what are these permissions used for

hi, in android manifest code these permissions are used sometimes.for what these are used? <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.VIBRATE" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permissi...

Full screen preview after image is captured in camera in android

I am using android 1.5. Here is my image capture code : public class CaptureImage extends Activity implements SurfaceHolder.Callback{ private Camera camera=null; private SurfaceHolder surfaceHolder = null; private boolean previewRunning = false; private Context thisContext = this; private String imageName = null; ...

How to browse localhost on device, Android Networking

hi, I try to browse localhost on my htc magic. I have connected my device with eclipse via usb. browsing http://10.0.2.2 I get a "Page not avialable. I remember, some days ago it worked-.- but on the emulator I am able to browse localhost any ideas? regards ...

Problems with layout_height used inside RelativeLayout in android 1.5

This is my layout for an image capture program in android <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <SurfaceView android:id="@+id/surface_camera" android:layout_width="...

Programming for Android as a blind person.

Hello All, I have a friend who is quite a capable programmer, especially considering that he is blind. Now he would like to start developing for Android. But, the problem I see him running into is that there appears to be no accessibility features for the Android emulator. Ideally he would be able to have his computer read the conten...

Android emulator reports unknown virtual device

I installed all the prerequisites for Android development. I created a virtual device through Eclipse and tried to run the Hello World sample application in that device. I received the following error message. emulator: ERROR: unknown virtual device name: 'Android21Device' emulator: could not find virtual device named 'Android21Dev...

phonegap doesn't work

i have downloaded the phonegap example from its website.but it doesn't run.i can't find the reason.help me to get the solution please.when i run it shows "The Web page at file:///andriod_asset/www/index.html could not be loaded as: The requested file was not found.www/index.html" ...

How to display current playing song info from URL

Hi, Im getting radio stations list from URL and displaying them in a listview using list adapter. For each item, Im showing radio station name, song info here im facing a problem. I need to show current playing song info. bt im not getting current playing song info. So, can any one help me hw i can solve this issue. Thanks ...

How to check application works with 3G

Hi all, How can i check my application works with 3G. since in my app I need to connect to a URL to get data. Thanks ...