android

Listing different images along with text in android?

Hi anyone please help me to solve this problem .. in my app i want to list both the images and text..i want to list different images..so please help me to resolve this issue. thanks in advance ...

ScrollBar scrolling to a specific view

Hello, I have a HorizontalScrollView with a LinearLayout that contains many views (10 in my example). I want to know how could I scroll the HorizontalScrollView to a specific child of the LinearLayout. Thanks in advance ...

Return from an android activity back to widget (main menu)

I have a social network app+ widget, When user clicks on status (TextView) in the widget I open a short activity just to edit the status and save. Upon closing the status edit activity I want the user return to the main window (the page with the widget that initiated the textedit activity launch). Currently the status edit activity finis...

connect to non-discoverable bluetooth device

I am developing an app for android. Just a general questions as to , if is it possible to connect to a device which is non discoverable publicly? Thanks in advance. ...

mp4 Resolution in android

Any one have idea what resolution android support.. what is the idle bit rate and Frame rate for android mp4 video... ...

"Cannot find symbol" when compiling with Ant

Hello, I need to generate an apk file using an ant script but I'm having problems in the compile target. To generate automatically the ant script I've used the android tool with the command "android update project". The problem is that this project depends on another project so I need to do a custom compile task. For that reason I've ov...

90112 bytes limit for data files ?

I create data file in android for my application in the app's data directory. The write is successful with no exceptions but file contents are not complete. It truncates at 90112 bytes. Any idea what is going on ? Is there a limit ? Here is the snippet try { fos = parentActivity.openFileOutput(mmCacheFName, ...

How do I set the side buttons to only change the media volume and not the ringer volume?

My app plays short audio files and if you want to increase or decrease the volume you have to press the side buttons really fast while it's playing, otherwise you increase/decrease the ringer volume on your phone. I was looking through the API and I can't find a way to set the default to the media volume? Does anyone know if I'm missing...

Android ContentObserver

Hi, I have a Cursor 'c' that generates a ListView. The Content Provider ensures that the ListView gets updated whenever the underlying data changes. However, I want to additionally make a call to another function to update my Header/Footer views everytime the listview is drawn. How does one implement this with ContentObservers? ...

Accessing child elements, using parent defined in xml, android.

<ViewFlipper android:id=@+id/flipper > <ListView android:id=@+id/xyz /> <ListView android:id=@+id/pqr /> <ListView android:id=@+id/abc /> </ViewFlipper> flipper=(ViewFlipper)findViewById(R.id.flipper); Can I access the id of child elements of flipper(xyz,pqr,abc) ? no. of child elements of flipper ? ...

Android Intent Activity crash behaviour - app restarts halfway through the app

I have a pretty standard iPhone app that creates a series of around 7 unique Activities initialised by Intents. However if the app crashes on the 7th Activity, the app restarts on the users phone around the 5th activity. The problem then is the info gathered from activities 1-4 is null, meaning the app is useless and the only way to get...

switching a TextView to an EditText

Hi, The need is to make a title (TextView) tappable to edit it(EditText)... I'm using the trick to have 1 TextView and 1 EditText next to each other in my xml layout, and then I play with .setVisibility(View.INVISIBLE/VISIBLE) to visually switch them. Since TextView and EditText are pretty close, is that possible to effectively switch...

how to add scrollview dynamically in android

I have android code that shows profile of user in screen and sometimes i need to display image not always.so i want to add scrollview for image whenever i need to display image but when i m adding scrollview it scrolls whole activity always which i dont want plz help me out to add dynamically scrollview for only image. can anyone provid...

How to use Compound Controls

I've created a custom ViewGroup based on a LinearLayout. ClearableEditText.java package test.todolist; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout; public class ClearableEditText extends L...

Defining EditText imeOptions when using InputMethodManager.showSoftInput(View, int, ResultReceiver)

In my application I have a custom view which requires some text input. As the view in itself doesn't contain any actual views (it's a Surface with custom drawing being done), I have a FrameLayout which contains the custom view and underneath it an EditText -view. When the user does a specific action, the custom view is hidden and the Edi...

Fit image in webview

Hi, I am planning to display images from SD card in a webview in order to take advantage of he built in zoom capabilities of webview. However, I am facing an issue with displaying images that are bigger than screen size (e.g. 1800x1200) to fit the screen initially, like in an ImageView. I want the image to be displayed in full at first a...

Saving bitmap to SD card with out compressing it in android

Hi friends I am using android inbuilt camera to take picture and then attaching the same picture to email, when i am testing this functionality in 1.6 device, i am able name the picture that to be taken by in built camera, but in 2.1, the picture is having a name i.e given by device, How to give user defined name in 2.1 inbuilt camer...

AdMob testmode show in emulator not in phone

I qadrouple checked phone Id. Still does not work. What, besides of phone Id, is the difference betwween running on the Emulator and on the phone? Thx, ...

Unable to play all streaming videos

Hi, I am using the native Android class VideoView for playing streaming videos from URL. I am unable to play some of the 3gp , mp4 format streaming videos. Kindly inform if anyone has come across limitations of playing streaming videos of 3gp/mp4 format. I had series of problems: i>Able to hear the audio but unable to view the vide...

[Stagefright] Buffering problem while reading an h264 video (using HTTP protocol)

Hi, I'm developping an application on Android 2.2. This application have to read some h264 videos using HTTP protocol. To read a video, I'm using following methods : // INIT PART mMediaPlayer = new MediaPlayer(); mMediaPlayer.reset(); mMediaPlayer.setOnErrorListener(this); mMediaPlayer.setOnBufferingUpdateListener(this); mMediaPlayer....