In an Android app I'm developing, I've got a need for LocationManager to give me location fixes. That part is all nice and good; it's working, it has been for quite some time, and all is happy there.
However, now that I've also recently added a feature that allows the location tracking part to go to the background, I also want to allow...
I'm trying to write a wrapper around Android's AdbWinApi.dll.
I've run dumpbin on the DLL and found a number of entry points. The problem is I don't really understand how to use those entry points and tie them up to the ADB API.
What is a good starting point to write this wrapper?
...
I am able to create, write and read an SQLite Database in my Android App. I have a copy of the Database that is fully populated with data, and I want to get that data into the App's Database. Is it possible to access my pouplaed database from inside my App? Or can I at least create a copy of the populated database and then use that copy?...
Hi all,
I have setUp an observer which gets called when a new image is captured by Camera.
I have two problems,
1) onChange is getting called three times, when i capture one image
2) Is it possible to get the Uri which caused this update.
3) How do i get the row number (media Id), if a row is deleted.
Please find my code below
pu...
I am attempting to learn how to develop on the Android platform but do not quite understand the relationship between Activities and Views, because according to the documentation an Activity is almost always linked to a UI object that the user can interact with, but if this is the case where does the whole idea of Views come in?
There is...
Hi all,
I need to have a drawable which is basically a triangle (or any polygon of choice), within this triangle i need to show an image exactly fitting the boundaries of the triangle.
Can anyone please tell me how to go about it
I have a basic draw code below
public class Square extends Drawable
{
private final Paint mPaint;
...
I have a listview with two labels, title and subtitle. I want to have dark and light background as user options. Title has textAppearanceMedium and subtitle has textAppearanceSmall. I want the style, MyTheme.Dark to have white color text and MyTheme.Light to have black color text. Is there a way to define multiple textAppearance attribut...
I'm working on an Android project that focuses on knowing how close you are to buildings. I wanted to know if there is some way to extract the geographic information about the outlines of buildings out of the Google Maps API. Thanks.
EDIT: The functionality I'm looking for is similar to what's going on in this app. (Click the link near ...
Hey,
We have been using XMLRPC for android and it was working well until we got our hands dirty with Base64 encoding for byte[] (images) -- (we did base64_string.replace("/","$$") for transmission). We have tried undoing the changes and its looking like an XMLRPC error.
We are getting the following error in the DDMS:
06-10 23:27:02.97...
I have looked at the Android API and other posts here on stackoverflow, but have not been able to figure this out.
My app downloads files to the sd card. I would like to pop a "loading..." dialog while the file is downloading and then have it disappear when the download is finished. This is what i came up with using the android API:
Pr...
I'm really hoping someone can help me out with this one. I've been stuck on it forever. Occasionally, when someone is using my app, it'll force close with this exception:
java.lang.ArrayIndexOutOfBoundsException
at android.widget.AbsListView$RecycleBin.addScrapView(AbsListView.java:3572)
at android.widget.AbsListV...
I'm having troubles using AudioRecord.
An example using some of the code derived from the splmeter project:
private static final int FREQUENCY = 8000;
private static final int CHANNEL = AudioFormat.CHANNEL_CONFIGURATION_MONO;
private static final int ENCODING = AudioFormat.ENCODING_PCM_16BIT;
private int BUFFSIZE = 50;
private AudioRec...
I get a .apk does not exist error when exporting Android project in Eclipse using android-sdk_r06-mac_86.
I never got the error in the previous version of the SDK.
Off course the .apk file doesn't exist. I'm trying to build and sign it.
How do I fix this problem?
I prefer to getting it to work in Eclipse again.
...
So I have 2 layout files (main.xml, featured.xml) and both each have a single WebView. When the application starts "main.xml" loads a html file into it's WebView. In this html file I have a link that calls javascript that runs code in the Activity that loaded the html. Once back in this Activity code though I try running setContentVie...
So, I've been doing android application tutorials and everytime I create a package, for example the helloAndroid tutorial is com.example.android. When it saves this to src it creates a folder for com, another for example and one last one for android. So it gives me the error "class com.example.android does not exist" because its broken ...
I have added a menu to ListView Activity and wanted to allow the user to select the information that would be displayed in the ListView. So for example:
The ListView is populated in the onCreate method.
The user selects an option in the menu.
Upon the user making this selection the ListView would be populated with a different array.
...
I'm trying to figure out how to embed things, other than Drawables, inside an EditText widget. Specifically the example I'm thinking of is from the Google Buzz widget:
screenshot
(no inline image, sorry, I'm a newb)
It appears to the casual observer that there's an entire layout object pinned to the bottom of the EditText, containing a...
I have a class A which extends TabActivity and creates Activities B, C and D as tabs in its onCreate() function. Also, class A initializes another service handler class S which is responsible for establishing a connection to a service and implementing callback handlers for the service. Any of the Activities B, C and D should be able to r...
Hey everyone,
I'm writing an android application that maintains a lot of "state" data...some of it I can save in the form of onSaveInstanceState but some of it is just to complex to save in memory.
My problem is that sliding the phone open destroys/recreates the app, and I lose all my application state in the process. The same thing h...
I am trying to set the class for an intent to the address listed in a string value, so that I can launch a given activity. The string is composed dynamically during runtime.
Is there anyway to make something like the code below run:
String target=com.test.activity1.class;
Intent intent=new intent();
intent.setClass(this, target);
Th...