All Questions
18 questions
2
votes
0
answers
104
views
Get notified when instance of app widget was added to homescreen by user
I've developed an android app where you can customize your own widget.
My problem: I want to start an Intent when an instance of the widget is added to the homescreen.
Until now I'm using the ...
0
votes
1
answer
378
views
Why does my app crash when i click the button?
I have a button, id = button1, when clicked it runs the function onEnterClick(); but whenever I click it my app crashes and says it unexpectedly quit. I will Provide the java file and xml below, any ...
1
vote
1
answer
198
views
How to attach the pictures that I take using the camera in my application?
I am developing an application where I use a button to load the camera and need to attach those pictures in my app. I have no problem in loading the camera but I am not able to attach those pictures ...
1
vote
3
answers
852
views
Maintaining Session or State for username in android application
In web development we have usually seen we use session or cookies to maintain username, and it remains there unless we destroy it or server removes it, i am making an android application, i have a ...
1
vote
1
answer
302
views
Extremely Simplified Test Case for UnsatisfiedLinkError on java.lang.Package.getDeclaredAnnotations
Why I am I getting this error on a standard Android Level 10 API? I have created the simplest, shortest possible test case so I can paste the entire Android project below:
E/AndroidRuntime( 406): ...
0
votes
2
answers
2k
views
Trying to get the mac/hardware address of any android device
I am writing code to get the mac address of any Android device having versions greater than 2.3. In general, I wrote the following code in HiActivity.java :
package com.hi.address;
import java.net....
2
votes
3
answers
4k
views
How to give the static value to HashMap?
I have HashMap like:
static HashMap<String,ArrayList<Media>> mediaListWithCategory=new HashMap<String,ArrayList<Media>>();
I have value like:
January:
-Sunday
-Monday
...
0
votes
1
answer
2k
views
dismiss the keyguard in a Service?
how to dismiss the keyguard in a Service?
Flag.Dismiss.keyguard cannot be use as there is no window - am I right?
4
votes
1
answer
2k
views
Voice command for screen unlock android
I want to use voice command to screen unlock an android phone.
I have tried the voice recognition sample code from android, but how do i integrate it to achieve this feature?
I have some doubts,
1) ...
1
vote
1
answer
1k
views
Hello Android application does not show in the Android Emulator
I know this has been asked before, and I've looked at all of the other questions but the responses don't seem to help me.
I'm performing the Hello Android tutorial on the android sdk website. I've ...
0
votes
0
answers
363
views
TextView not displaying data from xml file
I am trying to retrieve some data from my xml file. Below is the code which should be working but in this case it doesn't. I am not getting errors but data just doesn't gets displayed.Please review ...
0
votes
3
answers
391
views
Sharing preferences across classes in android
Hi
I am developing an android app in which
if user opens the application for first time(just installed) he gets the terms and conditions
if he accepts that he gets the registration screen
if he ...
1
vote
1
answer
978
views
IndexOutOfBoundsException error on Android device not on emulator
Here is the problem that I am dealing with right now with my Android App. Program works fine on emulator without any error but errors out on real device running same OS.
I have a App Widget Update ...
22
votes
2
answers
17k
views
How do I detect the heap size usage of an android application
I would like to know the amount of heap space used by my android application in two ways: - programmatically
- through DDMS.
I have referred to this post, prior to posting here. In that post, it is ...
3
votes
4
answers
9k
views
Get latitude and longitude based on city, zip or streetname
In my current android application, I would like to get the geocordinates based on an entered city name, street name or zip code. How can I accomplish this?
Best Regards,
Rony