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...
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...
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...
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;...
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...
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!
...
How can installed Adobe flash player 10.1 on Android simulator 2.2?
...
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...
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...
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...
may i know is there any way to generate external log file?
...
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...
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;
...
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
...
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="...
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...
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...
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"
...
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
...
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
...