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...
...
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...
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:...
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...
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...
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...
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.
...
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...
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...
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...
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...
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? I have done this previously using a BroadcastReceiver with the BOOT_COMPLETED intent. Are there any alternative ways to accomplish the same?
...
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...
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...
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 ...
Given a multi-line EditText, how can I know the line number at cursor position?
...
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
...
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...
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...