When I develop an Android map application, I want to draw a circle on the map whose radius is 1 meter. As you known, I can't draw 1 meter directly, I should convert 1 meter to the distance of two pixels depend on the zoom level. How to I convert it, is there anything API I can use.
Canvas.draw(x, y, radius), what value should I put to t...
Hi Folks
how can i make gallery view as circular.i am able to done left to right infinite when i drag right to left.it is showing end point.Please help me its very urgent to me
Thanks in advance
Aswan
...
Hi,
I am writing my own packageInstaller application with some customization but getting some error in the java file because of packageManager i.e (com.pk.content.pm.PackageManager mPm = mContext.getPackageManager();) seems error
Type Mismatch:cannot convert from
android.content.pm.PackageManager to
com.pk.content.pm.PackageManager
...
Hi,
I'm trying to set a system property in Android 2.2. Using Android for eclipse plug-in. The line that's causing the exception is:
Settings.Secure.putString(getContentResolver(),
Settings.Secure.HTTP_PROXY, "127.0.0.1:8099")
And while running in the emulator I'm getting:
08-01 22:48:44.338: ERROR/Datab...
Embedded Application (GUI) written in QT and communicating (Via IPC, SPI some other mechanism) with an Android based application (the primary application). Would like to know
1. The overall pros and cons of such design
2. Re usability of the GUI (would it be better to write your GUI on Android?)
3. Consider the two apps will be running...
hi everyone,
I have a main class which has edittext box. And i have another class in the same source folder. Now i want to use the text typed in main class accessible to the another class.
any help is greatly appreciated
...
Android: i am using twitter authentication by launching webview
Intent authIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(authUrl));
startActivity(authIntent);
after successfull authentication onNewintent get call and control returns to my activity.
problem is webview still remain open after control return to my activity and if us...
In my Android app, I call both startService and bindService:
Intent intent = new Intent(this, MyService.class);
ServiceConnection conn = new ServiceConnection() { ... }
startService(intent)
bindService(intent, conn, BIND_AUTO_CREATE);
Later, I attempt to both unbindService andstopService`:
unbindService(conn);
stopService(intent);
...
How to restrict the special characters in android EditText field?
...
I'm trying to schedule my AlarmManager to wake up every day with a diffrent random time which occurs between 22:00 - 06:00.
I've tried this technic, but it doesnt seems to work:
public class AlarmReciver extends BroadcastReceiver
{
@Override
public void onReceive(Context context, Intent intent)
{
try
{
...
I want to build a search widget. Clicking on the widget should open search activity inside my app. Here is the code from widget provider's onUpdate().
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds)
{
/* as their may be many widget instances for this widget. we get an array. */
for(i...
I use the following manifest file:
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/calendar" />
<data android:pathPattern="\\*.ics" />
</intent-filter>
<uses-permission android:name="android.permission.IN...
I am new to android and I want to read a binary file extension .AMF file.
I really need your help this is really urgent.
Thanks in advance.
I made a folder in RES named raw. Here is the code I tried, it says file not found.
FileInputStream in = new FileInputStream("R.raw.hello.txt");
StringBuffer inLine = new StringBuffer();
In...
I'm trying to decide on whether to primarily use floats or ints for all 3D-related elements in my app (which is C++ for the most part). I understand that most ARM-based devices have no hardware floating point support, so I figure that any heavy lifting with floats would be noticeably slower.
However, I'm planning to prep all data for th...
I'm currently playing around with 2D graphics in android and have been using a plain old SurfaceView to draw Drawables and Bitmaps to the screen. This has been working alright, but there's a little stutter in the sprite movement, and I'm wondering the feasibility to do a real time (but not terrible fast) game with this.
I know GLSurfac...
hi,all,when i open jumpNote project in eclipse,i encounter some mistakes like the following description.
many variables related with c2dm like
Config.C2DM_ACCOUNT_EXTRA,
Config.C2DM_MESSAGE_SYNC,
Config.C2DM_SENDER etc
*cannot be resolved.*
i uses the latest sdk(2.2).
any one konws the reasons, i think that if i miss some jar files?
any...
I am using overridePendingTransition method to do custom Activity animations, i would like to know when the animation ends ( a callback/listener ). Is there any direct way of achieving this, if not please suggest me some work around.
Thanks
...
I'm writing a widget that pulls data from a web page every 5 minutes, using a timer. This works fine for an hour or two, then the process is killed.
I/ActivityManager(81): No longer want bellander.android.widget (pid 1118): hidden #16
and the system kills of the process. How do I prevent this? Is the use of a timer wrong?
...
After entering some symbols in EditText of application on actual device, not Android Virtual Device, cursor became less and less precise. After I fill almost whole EditView's line, the the cursor is shifted by the width of the character! Impossible to figure out real position of cursor...
How can I resolve this?
...
I want my arrows to continuously move left and right with a delay of certain milliseconds dynamically. Any clue?
Here's my code:
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.widget.ImageView;
public class PlayWithGraphics extends Activity {
/** Cal...