android

Can I temporarily disable automatic orientation changes in my Activity?

Can I temporarily disable automatic orientation changes in my Activity? I want to do this when my app does some background internet communication. ...

SurfaceView and Menu created

Hello~ It seems that android Menu doesn't work on SurfaceView. Menu cannot render when the view is the SurfaceView. Anybody have the same problems ? Thank you~~ ...

ListView not getting updated on calling notifyDataSetChanged()

I've created a custom listview which looks the twitter timeline and contains posts. The following function gets a list of posts from server, parses them and adds them to the list used to populate the listview. public void populateTimeline(){ Thread populate = new Thread(){ public void run(){ Looper.pr...

android: what is INSTALL_PARSE_FAILED_NO_CERTIFICATES error?

I was trying to change my default/main/startup (whatever you call it) activity by editing the androidmanifest.xml file. All i did was change the android:name property. however, this completely broke the entire app. when i try to install it fails and reads Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES when i tried to chan...

Datagram Transport Layer Security (DTLS) on Android/Java

Hi, Has anyone used DTLS on Android or is there an open source Java implementation that supports DTLS? What are my other options for securing UDP traffic on Android ? Thanks. ...

How can i measure steps while walking or jogging with Android?

Is it the SensorManager API that i have to use to measure steps? Any sample code or tutorial? ...

MIDI on Android: Java and/or AIR libraries

I've been contemplating (re)building an app on iPad for some time, where I would use objective-C and DSMI to send MIDI signals to a host computer. This is not bad (I mean, except for actually writing the app). Now I'm contemplating perhaps developing the app for Android tablets (TBA). In Java, what options are available for MIDI messa...

Is there a way to use features in Android 2.1/2.2 while keeping a minSDK version to 3?

I have a project that is just using Android 1.5 for programming, but with the proliferation of other handsets and some cool features in Android 2.2, we'd like to support the features without losing support for 1.5 or forking a new code base. Is it possible to do with Android SDK? I do have some sense of the "ugly" way to do it, as in ke...

phantom error "error parsing XML: unbound prefix"

The error "error parsing XML: unbound prefix" shows up on my main layout: main.xml when I first open Eclipse. To make the error go away, all I have to do is make a modification to the file, then undo it, then hit save (have to make a change in order to be able to save file and thus trigger the new syntax check). My environment is: F...

How big is interval between taking pictures in Android phone?

I'm wondering how fast I can take pictures one after another withoud surprises from the phone (like fx: 'force close;) Does any of you know that time? I know that 500 milisec is safe time. When i experiment with 100, 200, 300 milisec there is error but who knows, maybe i do sth wrong. ...

Android - Get Notified when a new access point is added?

I was wondering is it possible to get a notification of when a new configured network is added to the WifiManager in Android? I know you can get the current list of configured networks getConfiguredNetworks But is it possible to get notification of when a new one is added? I dont see anything in the WifiManager that would be helpful....

Google Map only showing Grey Blocks on load - Debug Cert has been obtained

I am attempting to follow the Google Map View under the views tutorial for the Android. I have followed step by step but still only see grey blocks when viewed. First: I created a Virtual Device using "Google API's(Google Inc.) Platform 2.2 API Level 8" Second: When creating my project I selected "Google API's Google Inc. Platform 2.2 ...

Passing Activity Context to constructors to use internally - is this bad

Is is bad practice to pass the Context to a constructor and save it as a private variable for internal use? The other option is to pass the Context as a parameter to methods that need it. Which is the better option? I have a feeling that passing to the constructor might result in memory leaks accidentally. ...

how do i tell the android launcher to reload its icons?

while testing, if i load a new version of my application onto my phone, the icon shown in the launcher isn't refreshed. is there any way to tell the launcher to reload its icons? ...

How do you send a long press from an InstrumentationTestCase?

In Android, how can I send a long press from an InstrumentationTestCase? I'd like for instance to do a sendKeys(KEYCODE_DPAD_CENTER) but make that a long click. ...

Android layout issue - relative widths in percent using weight

I am trying to assign relative widths to columns in a ListView that is in a TabHost, using layout_weight as suggested here: <?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_paren...

Android implicit intents VS explicit intents

Working with android I realized that implicit intents are good choice in most of cases due to their's flexibility. But what's about explicit intents? What are benefits of using them? What are common cases when it's a good practice to use them? ...

Android Context.bindService always returns false and ServiceConnection object is never triggered

I have followed the Local Service example provided by Google, but my Context::bindService(...) always returns false and there is ServiceConnection::onServiceConnected is also never called. I understand that Context::bindService() returns immediately, but my ServiceConnection object is never triggered. I don't know if these apply My a...

Android Market Publishing Issues

I have an app which I have just updated to froyo to take advantage of the move to SD card feature. I am now trying to upload the update to the market but I keep getting the following error: "The file is invalid: W/ResourceType( 7193): Bad string block: last string is not 0- terminated ERROR getting 'android:label' attribute: attribut...

log4j support in Android

I am attempting to shoehorn an existing SDK onto an android device and one of the dependencies of said SDK is Apache log4j. I am able to load my test program onto the android emulator but when the log4j object "PropertySetter" is called the program fails with a verification exception. Is there a way to ameliorate this issue? ...