android

Maximum Size of the SD Card on an Android 2.1 Emulator

What is the maximum size of the SD Card on an Android Emulator running Android 2.1 ? What is the maximum size one can specify? ...

In the latest launched AppInventor is it necessary to connect a phone to PC for building the app?

I have downloaded the appinventor_extras_setup.exe from net and installed the complete package. But whenever I type the URL http://appinventor.googlelabs.com it starts asking a survey.. Is that because I haven't connected my phone with the PC.. What if I m a developer with an android phone.. can't I use appInventor? ...

Video plays just the first 5 seconds

Using: private void play() { VideoView v = (VideoView) findViewById(R.id.videoView); MediaPlayer mp = MediaPlayer.create(this, R.raw.video); mp.setDisplay(v.getHolder()); mp.start(); } My video plays just about 5 first seconds, and stay like paused.. why does it happen? Is it something related to buffer? (I'm playing a...

How to use AnimationDrawable in getView with Gallery

I'm creating a gallery view where I'm loading images from the web. While the images are loading, I want to display an animation as a placeholder for each image. I figured this could be done using an AnimationDrawable, however, the animation won't start. The first frame of the animation loads as expected, and if I use the same in for exam...

Show a TextView in front of a VideoView?

Is there a way to show a TextView in front of a VideoView? ...

How can you reproduce the procedure that occurs when a Android market app is updated?

I have an app that reads and writes files during onCreate. The problem is that when the app is installed via the Market and run the first time the files it needs to get have no access to them. I get FileNotFound exceptions even though the file is there. If I back out of the app and reopen it then the files can be read. This is not the...

Text Gallery on Android?

I have a gallery with the TextView to achieve the segment controller on the image below. I can achieve it by the ApiDemo's Gallery Example but I am lagging on the look and feel of the gallery. I want to do the backgrounds, Selected/deselected and selected item won't be cone to the center of the screen. Any Idea or Articles are most Tha...

Quickly stopping camera on Android

I have a Live Wallpaper which uses the Camera. However, when running the LW I am unable to use any camera apps. The app starts, pauses then returns to the desktop. Logcat suggests that the problem is that the Camera App (and video camera app. and Qik etc.) are trying to open the camera and failing to do so. The LW is releasing the camera...

Voice recognition with android

Hey guys, I was wondering if it were possible to translate audio without having to call a recognizer intent (ie a dialog that says you are recording audio). I want to be able to recover the results of the voice recognition every 2 to 3 seconds or so and plan to use this with a bunch of listviews. Is this possible? If so any ideas? Thanks...

android : set textView style at runtime

is any body know how to set style fore textView at run time: something like this myTextView.setStye(R.style.mystyle); ...

Null pointer exception before Activity.onCreate() when using custom Android ImageView

I have a customized ImageView that works fine in one application. I've transplanted it to another application and am getting a null pointer exception prior to either my activity's onCreate() method or my customized ImageView's constructor being invoked. So far, I am unable to determine why it works in one app and not in another. Eclipse ...

How to draw a bitmap in FRONT of a layout in OnDraw

I have a layout that I have defined in an xml file which contains a number of ImageView's, RelativeLayout's, etc. In OnCreate() I have the following code public void onCreate(Bundle savedInstanceState) { super.onCreate( savedInstanceState ); setContentView( R.layout.main ); In my override for the view, I have the following co...

How to install Android platform components offline?

I downloaded Android SDK components from http://dl-ssl.google.com/android/repository/repository.xml. Now my question is how to install these components? I am using Eclipse and the AVD plugin for Eclipse is installed. ...

Adding a Radar Chart, programming on Android

Hi, i need to add a radar chart to my app. Now i'm using the AChartEngine Library but it doesn't support the radar chart type. Do someone know some alternative? ...

android r.java will not update

I googled a lot to find various hints what could cause this problem. Many of them on this forum, but nothing works. I installed the sdk from scratch on 3 different machines (xp, macos snow leopard, leopard) and always the same problem, that even the sample code in the android sdk doesn't compile. After hours of looking through the xml f...

Approach to cache large amount of Textual and audio data in Android application

Hi: We are supposed to cache textual and audio data in our application until device is booted or maximum of two days, whichever happens earlier. To get a perspective on data to be cached, note that we are to store about 200 text headers containing around 10 fields, each of length 30 bytes and about 20 sound files each about a minute lon...

Android: out of memory exception in Gallery

Hello, My app shows a list of 9 categories and each category displays a Gallery-based coverflow (graciously offered by Neil Davies here) with images of the selected category. The images are fetched from the Web, each ranging from 300K to 500K in size, and stored in an arrayList of Drawables. This data is bound to the coverflow using a B...

Debugging Android NDK, under windows

i am porting a complex C application to android, as an SO library, wrapped with think java layer. after few hours of hassle, i have the code compiling under Android, but off course, the application crashes :( after looking around,i understand the only way to debug C application under Android is by gdb. since i don't have alot of experie...

Change Video position while playback

Is there any way on Android to dynamically change position of VideoView or SurfaceView while playing video? I've tried to use view animators, Surface.setPosition(), View.layout(), push Surface view with ralated LinearLayout with bigger weight( this approach helps sometimes and i see that video jumps to new position while playing but i ne...

How to enable synchronization of custom account in android?

I am writing my own SyncAdapter for android devices that should synchronize TV broadcast information to the device but ran into problem of not getting the Synchronize "mydata" checkbox visible under Data & Synchronization part of the account preferences. I have implemented my own SyncAdapter and defined it properly in the xml: Here is ...