android

creating cache folder

Hi, I'm trying to cache an image obtain from a webside. However, CacheManager.getCacheFileBaseDir() always returns null. Do I need to create the cache folder in the android emulator? if yes, how can I do it? in which directory i need to create it in? Thanks in advance for helping. ...

Is there a library like RPX for Android?

Does someone know of a library that is fairly "drop in" and allows you to easily put together multiple authentication options in an Android app to services like Facebook, OpenID, Twitter, etc. much like RPX does? ...

GpsStatus.Listener and GPS_EVENT_FIRST_FIX event

Hi: When I register a GpsStatus.Listener i do not get the event GPS_EVENT_FIRST_FIX. I do get the GPS_EVENT_SATELLITE_STATUS event. Does anybody already noticed this behavior? ...

Is there a way to connect Wifi using PPPoE on Android?

Hi, Since I am newbie in Android, I don't know how to connect Android (2.1 on HTC Desire) with PPPoE using wifi connection. So Please anybody know solution, then kindly help me. ...

java.lang.SecurityException: Permission Denial:

Hi All I use Instrumentation to test PhoneApp I wrote my test application via Instrumentation I created apk and installed it on Nexus One - Android Phone - this passed In my code I am using internal classes that are not a part of standard SDK. I build it not in Eclipse but in my embedded env. I am eng in company that developing for...

Serial number of device that presented upon adb devices

Hi All Iam using a command: adb devices and get this: C:>adb devices List of devices attached HT9CTP820385 device My question is: where this serial number comes from? Does it burned on flash of device one time during a manufectoring or adb drivers assignes it dynamically or it comes with release that is burned on device? ...

How to store canvas line in activity?

Hi there. I'm trying to draw a line on canvas and project it into a map in android. I'm also using tabs for my app. When I'm flipping around tabs back and forward I'm losing the lines I drew. Is there a way to store them somehow so they will stay there all the time? MyLocationOverlay class looks like this: class MyLocationOverlay extend...

Android efficient matrix library

Hi Is there any efficient linear algebra library for android? I need to compute matrices of different sizes(also bigger than 4x4) and rectangular too. Thanks. ...

How to resize (stretch) Android RatingBar without adding more Stars

Is there any way to resize an Android RatingBar. When I specify larger size for the RatingBar in my XML-Layout, it just gets stretched showing more Stars. ...

Backwards-compatible BackupAgent

I am looking into using the new Backup API that available since Android 2.2, but need to maintain backwards compatibility (to 1.5 to be exact). The docs state: The backup service and the APIs you must use are available only on devices running API Level 8 (Android 2.2) or greater, so you should also set your android:minSdkVersion att...

Cross-compiling for Android

I'm trying to cross-compile dropbear for android. The files appear to compile find, but when executed give "program : not found." I did a find and the libraries marked NEEDED appear to be located in the cross-compile environment. I have compiled other programs with this toolchain. arm-none-linux-gnueabi-readelf -d dropbear Dynamic sect...

can't find the mistake with the app in android

hi,for long i am trying to develop an app which would inform the user of any incoming message via speech, i have three classes, TextSpeaker, Receiver and SpeakerService. When i start the app and click on Start button, i get runtime error: 06-21 13:54:36.088: ERROR/AndroidRuntime(528): Uncaught handler: thread main exiting due to uncaugh...

SQLite android NDK

I'm trying to use a custom function in sqlite3. I found no way in Java to do that so I moved on android-ndk, but now I'm having troubles integrating sqlite3 sources in my project. Compiler give me an error 'sqlite3_api' was note declared in this scope. In my source "sqlite3ext.h" is included (sqlite3 amalgamation is also included in...

Ant build script: cannot find android.jar.

Hallo, I cannot compile my project using an ant build script. The error message: Ant cannot find symbol... I read about creating build.xml, but it seems it is not enough. My project directory has the following layout: poject src gen ... libarie_with_needed_java.file src clients helper How do I work with external refere...

Suggested video settings for progressive download. (android)

My app uses streaming (i think the correct term is progressive download) for videos. To be able to do that, the mp4 file must be hinted and I manage to do that. Now, is there a suggested or advisable settings for the mp4 like the bit rates, resolution, frame rate etc so that the playback is smooth? ...

Audio/Video codecs for Android platform

Hi, I'm looking for, either open-source or commercially available, Audio and Videl encoder & decoder for Android for an application I want to write for Android. For audio, I want to be able to both encode-decode the AMR/AD-PCM/AAC formats and for Video H.263/H.264 & MPEG4 formats. I can see from Android documentation that encoding & d...

Matrix stack capacity is a little in Android NDK.

I created renderer and loader of DirectX8 retained mode on iPhone/iPod/iPad/MacOSX/Windows. DirectX8 retained mode format is scene graph style, and hierarchy so deep. So, only Android NDK OpenGLES was occurred GL error code 0x503,0x0504(command stack over flow or under flow). Is stack capacity of android a little? Who tried to check cap...

Android - reference the value of an attribute in the currently-applied theme from code

Hi there, the Android devGuide explains how it is possible to reference the value of an attribute in the currently-applied theme, using the question-mark (?) instead of at (@). Does anyone know how to do this from code, e.g. in a customized component? ...

vertical scroll of views in a custom GalleryView android

i have individual pages as views of my custom gallery view. Individual pages have imageviews and textview and each gallery item covers entire screen and on one fling only one item in flinged. thats what i have achieved till now But how do i scroll vertically if there are more contents inside individual pages? ...

Is it possible to display a DialogPreference without showing a PreferenceScreen?

I'm currently writing a live wallpaper for Android and it has a PreferenceScreen which currently contains only one preference - a DialogPreference to set various properties of animation. User workflow to configure it currently looks like this: Settings... => (shows the preferences list with only one title ) Animation speed => MyDialogPr...