android

Couldnt play back wav files in sequence. process had died on the way.

hi. I have a problem about playback of some wav files. I'd like to execute some wav files in sequence. but cant work well. sometimes i can play back till last but sometimes it doesn't work on the way. anyone knows something to solve this problem? pls Help !... the following is my code and log of logcat. ---------------------------...

why is my PipedOutputStream deadlocking?

I am trying to implement a threaded circular buffer with PipedInputStream & PipedOutputStream but it is locking everytime when I get to mHead.write in the Decoder runnable. I thought there was no chance for deadlocks when using separate threads. private class DecoderTask implements Runnable{ @Override public void run() { ...

where can I find SDK folder in Eclipse Android FileExplorer

Hi,I am working on Android application which needs to play audio present in cal folder i.e sfdk folder. My doubt is wehere can I find SDK folder in File/Explorer option of ddms.I find data and system folders in File/Explorer, but didnot find SDK folder.Can I be helped to sove this issue . Thanks N Regards ...

change progressdialog background

Hello In my android application i am using progress dialogue in my splashscreen. I would like to see only the progressbar with loading message without the background. Is there any way that i can change the backgrounf to transparent in android. Please share your valuable suggestions. Thanks in advance:) ...

JSON Deserializing with Json Parsing in Android Application

Hi Team, What is "deserializing Json" means, I had seen this term on the Web. I don't know the meaning od this particular term So, it would be great if anybody can explain me about What it means actually? Thanks, david ...

Delete SMS after displaying

Hi All, I am writing my own SMS application that will display a toast of my message once it arrive. Now is it possible to delete the message after the display of the toast, so that it will not go into the native SMS application? Thanks In Advance, Perumal ...

Two TextViews side by side, only one to ellipsize?

I want to have two TextView elements appear side by side (in a list item), one aligned to the left, one to the right. Something like: |<TextView> <TextView>| (the | represent the screen's extremities) However, the TextView on the left can have content that is too long to fit on the screen. In this case, I want to have i...

Does android:scaleType="fitCenter" only work with fix Layout_width and Layout_height attributes?

I use Layout_width="fill_parent" and Layout_height="wrap content". If an image is bigger than the ImageView, it will be downscaled perfectly. However, I never got it working to upscale smaller images. I tried any combination of ScaleType and "AdjustViewBounds": it always stays in its own size in the middle of the image view. Here is t...

Augmented reality on Android: which version of the OS would be needed ?

Which version of Android is needed to create a working augmented reality application ? ...

How to start an activity inside any layout, android

Hi, I have created a an activity named Example which have 3 LinearLayouts . I want to start an activity. So I used the following lines of code Intent jumpToStationModule = new Intent(); jumpToStationModule.setClassName("com.xxx", "com.xxx.Test"); startActivity(jumpToStationModule); Test is another activity. As a result of the ab...

How to restart an AsyncTask or avoid if RUNNING

I am Developing an App that parses data from HTML. One of the data that is parsed is an integer that increases over time and rather than constantly requesting the data I would like to have a task that intervals the integer. Due to the fact that I need the value updated into a TextView I decided to go with an AsyncTask rather than a Timer...

adb bugreport: Is there a way to reset the log?

Hey, I'm new to Android/ADB I've been asked to dump an adb bugreport log by someone. I managed to do this, but the report was 640k and had a ton of crash dumps for various apps that I was playing with. I'm trying to present just the information for the app we're interested in. Is there a way to reset the log so that I don't have all ...

Time in android

Hello In my android application I would like to block the user from changing the device time when my application is opened or minimised. The user should be able to change only once the app gets closed. Please share your valuable suggestions. Thanks in advance :) ...

How to retrieve missed calls on Android SDK 2.2

Hello everyone, in my app I should do some action when a call comes but not answered by the user. I have searched in the android.telephony and the NotificationManager, but I haven't found a method to solve this problem. Does someone have an idea of how to get to know if there is a missed call on the phone or not ? Thanks in advance f...

Android - How to decrypt an XML file?

I am trying to to download and decrypt an encrypted XML file. I have implemented the download part and have tested with an unencrypted file and it works fine. However I now need to be able to download an XML file that has been encrypted using AES and the key "XXXX" So I am only concerned with decryption as the encryption on the XML fi...

Android - Run application on SDK 2.1

Basically, i have purchased HTC Hero (Android sdk 1.5) , but i just got the notification of "System software update" and i agreed to update the sdk to 2.1-update1 . I was developing application for android sdk 1.5 successfully, but now i have created a Hello world application for the Android sdk 2.1 and then when i am trying to run it o...

How to set up a real custom Listview ?

Hello everyone, In my app, I should set up a "real" custom listview. For example : First line(Some Text) Checkbox Second line(Some Text) Spinner What I mean is that each line has different widget. In the example, for the first line, we have a checkbox, for the second, it is a Spinner. Does someone ha...

No result on sqlite query

Hi all I create a table like that private static final String CREATE_TABLE_PRODUCT = "create table prod (id integer primary key,titre text not null, desc text, is_free integer);"; i update it this way SQLiteDatabase db = getConnection(); ContentValues updateEvent = new ContentValues(); updateEvent.put("is_free", 1); ...

android , is there any method to let service delay or sleep??

i need to let service sleep for 0.5 sec just as using Thread.sleep(); is there any method?? ...

how to layout support for various screen in android?

Hi Friends, i am developing gallery view using gridview,in small screen my layout design fixed very well,but large screen did not my design,In large screen have some spaces bellow "load more picture" button refer fig2,how can i solve this problem,my Manifest file added this lines for support various screen,please give some sample c...