What a title, I know but thats exactly what it is.
This issue is happening on Android 1.6 so it might already been fixed. Just as per documentation i have implemented my GLSurfaceView as GameGLSurfaceView and overridden public boolean onTouchEvent(final MotionEvent event) method as so.
/**
* Capture touch event and delegate it to o...
Hi
I'm generally coming from the C# Windows and Web development background, and I really want to start creating applications for the Android operating system.
I have succeed to install Eclipse with the Android 2.2 SDK and to run the default Hello World application.
Best way to learn is probably to do. What some applications can I cr...
I've defined a private class that extends WebViewClient and set my WebView's client to an instance of that class (webView01.setWebViewClient(new Callback());).
The class definition is as follows:
private class Callback extends WebViewClient {
public void onLoadResource (WebView view, String url) {
}
public void onPageStarte...
Hi all.
I've been working on an application for the past week or so, and when I went to test it the other day, my console read the following to me:
[2010-06-08 17:13:36 - CellSafe2] ------------------------------
[2010-06-08 17:13:36 - CellSafe2] Android Launch!
[2010-06-08 17:13:36 - CellSafe2] adb is running normally.
[2010-06-08 17:...
Alright, I'm a little new to the Android SDK, so forgive me if my question doesn't make sense or is very trivial. I'd like to add a custom field for contacts, that contains the contacts username on a website I'm doing this app for. And, with this custom field, I'd like to have the ability to click it (like "Send message" or "Call mobile...
I need to update the location through GPS in the background even when the phone is in sleep. I am thinking to use AlarmManager to broadcast an Intent and then a receiver will call requestLocationUpdates() on LocationManager. But I am not sure whether it's guaranteed that the GPS location will be updated when the phone is in sleep and an ...
I'm looking for a way to implement a minimum value in my SeekBar and also have the option to increment decimal numbers. For example, currently my SeekBar's minimum is set to 0, but I need it to start at the value 0.2. Also, I would like to have the functionality to be able to have the user select a number from 0.2 to 10.0 at a .1 precisi...
I get a list of contacts in a given group id by id
Cursor cur = ctx.managedQuery(ContactsContract.Data.CONTENT_URI,
new String[] { GroupMembership.GROUP_ROW_ID,
GroupMembership.CONTACT_ID },
GroupMembership.GROUP_ROW_ID + "=" + String.valueOf(id),
null, null);
if (cur.moveToFirst()) {
...
I have seen the below log message when navigating to the Account & sync settings screen but I am confused as to how to create an Intent to navigate there.
INFO/ActivityManager(53): Starting activity: Intent { cmp=com.android.providers.subscribedfeeds/com.android.settings.ManageAccountsSettings }
I dont seem to have access to the Manage...
I would like to access a web service provided by one of the machines on my LAN from the android emulator.
If the service was running on the same machine where the emulator is running (called host), I could add a network redirection and access the 10.0.2.2 (host loopback interface in the emulator) with the correct port.
However it is ru...
How to calculate the speed with which android mobile is moving, i.e user with mobile in his pocket/hand. Basically I would like to invoke some activity based on the user's speed, how will I calculate? based on what parameters in mobile.
Thank you.
...
Question: How do you programmatically distinguish between directories and regular files in the assets folder?
When using AssetManager to access files in the assets folder, it seems impossible to determine if a file is in fact a file or a directory. You get the list of files from the list method and then open the file using the open meth...
Specifically some that may cater to an experienced developer (C#) but not necessarily familiar with Java/Eclipse?
I have seen a couple vids on YouTube but they are either short (not much you can learn in 3mins or patronizing)
...
OK, so I'm playing around with an android app.
The 90% use case is that users want to go straight to the primary list screen to find what they're looking for. That's what I want as my default screen.
The first time a user loads the app however, some configuration is required before their list screen is of any value to them.
So my que...
Hey Guys,
I'm using a Nexus One and the Camera displays horizontal when it should be vertical and vice versa. I've no idea what's wrong. The code works fine on a HTC tattoo. Anyone have any idea what's wrong?
class Preview extends SurfaceView implements SurfaceHolder.Callback {
SurfaceHolder mHolder;
Camera mCamera;
Preview(Context c...
I have to dynamically add a list of views (the views use RelativeLayout). Can I do this by specifying the view definition in xml and instantiate multiple objects off it? This gives the usual benefits of separating the view part from the code (for e.g., making it easy for the UI guys to alter things) or Is going the ArrayAdapter the sugge...
The Android docs indicate that I should ship with different icons for different resolution phone screens. http://developer.android.com/guide/practices/screens_support.html#qualifiers
res/drawable-ldpi/my_icon.png // icon image for low density
res/drawable-mdpi/dpi/my_icon.png // icon for medium density
res/drawable-hdpi/my_ico...
I used the tutorial on this website but i dont really understand how to get the file that i wont to be loaded into it. Does anyone know what i have to do to get a file in my res folder to show up in the webview through the content provider or even another way to do it?
http://www.techjini.com/blog/2009/01/10/android-tip-1-contentprovide...
I know with Android 2.x there is the ability to tap into Microsoft Exchange, for at least email, if not calendar and contacts. I would like to see how this was accomplished. Particularly because Microsoft Exchange exposes SOAP web services, and I understand there is no native Android support for SOAP. Since this is open source, should...
How to dynamically create a button in ANDROID?
...