android

assigning value to a 2-Dimensional array

How can I assign value to a 2-dimensional array? My array is String[][] arr=new String[2][3]; And when I am assigning value to this array, application is stopped. Example: arr[0][0]="hello"; Please give me the solution... ...

A Question about Good Practices in Android and Java Development

Good Morning (Afternoon, evening, i dunno what time it is when ur reading this .. lol but its 8:30 AM here :) ) I was yesterday in a Meetup about android programming and The presenter had a sample code about how to create an app with database access in android.. We talked about various classes, methods and so on. Lets assume we have a...

Displaying the list of video files and stored in sdcard and playing the video

hai friends i want to display videos in list when i click video then only the video will play 1st how to create list of videos now i am stored in my sdcard 10videos... give me the idea for me please....i try many time please help me...friends now i waiting for your ideas.... this is for my xml coding: <LinearLayout xmlns:android="http:...

Android 2.2 distorts picture colors?

I have some .png files in my app. I need to load these during runtime, and get the exact colors of certain pixels from them. It's important, that I do not want to scale these pictures. I don't show them on the UI directly, they serve as maps. Now, on Android 1.5, there's no problem with this. I put these images in the '/res/drawable' di...

How to notify the user to enable gpsprovider

Hi All, i'm working on gpsprovider,If user click on a gps based applications for suppose map application it has check whether the gps provider enabled or not if not alert the user enable the gpsprovider . There will be a Broadcast Receivier. Will define a message for requesting the service from any application. Will start service if n...

YUV decode funtcion error or hardware problem ?

I get the YUV to RGB function 1&2 (from stack overflow) but the result is wrong like this http://163.18.62.32/device.jpg I dont understand what's wrong in the step my device is Moto Milestone with 2.1 update 1 thx function 1 public int[] decodeYUV420SP( byte[] yuv420sp, int width, int height) { final int frameSiz...

Galler view sizes

Hello, I have a gallery with custom views. Is there a way not to use the view.setLayoutParams(...) method when binding a gallery view? The thing is that I want the gallery view to be exactly as it's background image. ...

android autocomplete textview

i have a autocomplete textview ,this autocomplete texview sometimes automatically pop up in another view? ` android:maxLength="50" />`<AutoCompleteTextView android:hint="Enter provider's name" android:id="@+id/E...

how to get the label associated with an android account ?

I want to get the displayed name, id the label, that is associated with a android account. For instance, when you create a new contact, you have to precise the type of the account and to do so, you can pick up one of the account that enable contact synchronisation, or the 'telephone' type. I have search thru the AccountManager, Contact...

App quality Android vs IPhone ? The Reasons behind it ?

So started recently experimenting with the Android SDK and eclipse IDE and during this time I have found it very hard for various reasons to develop applications the main ones being Poor emulator makes it hard to see your applications current state as its slow and buggy and often takes an age to load up. Steep learning curve for xml ba...

Android asynchronus HTTP client problem

Hi guys, I am trying to implement asynchronus http client for Android and I am haveing a trouble with type mismatch: The method execute(HttpUriRequest) in the type HttpClient is not applicable for the arguments (HttpRequest) I am doing all based on this tutorial: http://blog.androgames.net/12/retrieving-data-asynchronously/ Hav...

How to exchange data between Android services

I would like to know what is the best and fastest way to exchange data between services. I have been trying to bind one service to another using ServiceConnection but the actual connection never happened. Also I did not saw anything strange in LogCat. Thanks in advance for all your replies. ...

How to start an Android application when the phone boots up?

How to start an Android application when the phone boots up? I have done this previously using a BroadcastReceiver with the BOOT_COMPLETED intent. Are there any alternative ways to accomplish the same? ...

Android Layer_Drawable as a button.

I have a button. The button is constructed from the StateListDrawable (made of 3 9-patch images). I need to add an extra drawable that will reside on the button's right side, and i need it to be aligned with the button's right side. I tried to use the following: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://sc...

Android GPS not giving any values of Latitude and longitude.

hi, guys, i need to get the latitude and longitude from the GPS and i got a tutorial regarding this but it is not showing me any results and its onLocationChanged method not working.i have also given the permission in menifest file. but its still not working. here is the link kindly tell me if anybody can have any idea about. http://he...

Android: Signing my application with system key

I hear that to access permission like: - READ_FRAME_BUFFER The app needs to be signed with system key. If I understand correctly, that means the manufacturer sign the .apk file. Question: - Is it required that the manufacturer signed .apk to be shipped with a system image? or can it still be downloaded in the market place? - In real ...

How to get a line number under cursor

Given a multi-line EditText, how can I know the line number at cursor position? ...

Broken Pipe exception when tried to stream mp3 stream from local server to android mediaplayer

Hi, I am trying to stream mp3 stream from my local http server indeed hosted on my phone to android media player.When local server gets the new socket , it starts writing some http headers followed by mp3 stream. but mediaplayer socket is throwing "Broken pipe" exception.Wat may be the issue causing this. Thanks in advance ...

How advantageous is Phone Gap?

I am planning to do an app on all Mobile Platform. I found Phone-gap is a solution for write once deploy anywhere. The app just have to talk to a webservice and display information in a grid layout grouped under categories. Anyone who has developed apps in phone gap can share your views and thoughts on this. Does phone gap really ser...

Padding on Shape in Progressbar

Hi I'm using xml file to define progress bar. I defined padding on background shape. But this setting will be sometimes displayed correctly, sometimes not. So If I start my application or Activity with progressbar inside, there will be correctly displayed progressbar with background and 'padded' progress. Then I close my application an...