Hi All,
I have downloaded image from web and displayed in imageview,which works fine in Emulator and device.when i supposed to run on android 2.2 real device ,it throws null pointer Exception.
what is the reason?
I have used the following code..
public Bitmap downloadImage(String url) {
Bitmap bm = null;
try {
...
Why is that the object has to be serialized or be Parcelable in order to be passed to an Intent ?
...
Friend's
I implemented Facebook application in my application,here i need to post the feed with title and url,last two days before it worked well,but now when i click the facebook option from UI it opens the Login Screen with Empty,the field for inputing username and password disappers,it simply shows the empty white colured login...
I want to block access to any service like Network for particular 3rd party application.
For e.g. Email app, I want to block network usage form my application.
or any game or app using network for advertisement, I want to block access to network for that app
so how can i get permission list and block permission from my application?
e...
Hi,
I'm working on an open source project for android and am wondering whether there are any best practices (or at least well-argued hints) on how to manage the private key for signing the APKs.
On the one hand, the key should be secured, on the other hand, at least the members of the core team should be able to create "official" relea...
Hi.
My live wallpaper is responding to touch events through the onTouchEvent()
method, which works fine. The problem is: the home app also appears to be receiving these touch events, so if I swipe left in my wallpaper, the home screen also slides left.
It'd be nice if it were possible for my wallpaper to selectively consume these event...
Hey there,
I am using a mapView to show some places. Everything works ok, but when i see the map it shows a "yellow square" instead of the Google Brand, like this:
http://dl.dropbox.com/u/14102938/map.png
...
I have a FrameLayout in which I have 2 controls:
- a custom view which draws a image and some text on it
- a textview with a text
I want to center both in the FrameLayout but I can't manage to do it. The Texview is centered just fine, my cusom view remains on the left side, when I make it visible.
<FrameLayout android:id="@+id/Compass...
Hi,
I have been trying to get a specific layout for more than two days now and really struck with it,
what am trying to achieve is:
To have a layout like the following
LISTVIEW A
VIEW
LISTVIEW B
VIEW
LISTVIEW C
(VIEWS are basically for headers)
Can any one help to sort out this task?
...
I'm designing the UI for an Android application. I have the layered PSD ready now, but I'm not sure whats the next step. For the web, I would just slice the images and write html/CSS manually.
Thanks
...
I need some examples or tutorial, how to implement iPhone side index for Android.
I read already this topic (http://stackoverflow.com/questions/1201962/android-equivalent-to-iphone-indexed-uitableview) and I'm trying AlphabetIndexer, but:
How do I create it properl at all?
How can be AlphabetIndexer displayed?!
Is an extra layout sc...
I want to use the accessibility classes, but I'm a begginer in android programming and i can't understando how to use them. I don't find any example using these classes. Somebody can give me some use examples?
Another thing... Can I set enable the Accessility mode in the emulator?
Thanks (and sorry for my bad english).
...
Hello, i have a user preference in my app, which gets ued by different activity. I would like to know the best way to utilise those preferences between different activities in my App.
I have this idea to create a shared preference object from the main activity and from there send intents to the different activities to take actions. wou...
Hello!
I want to save something from a webpage (loaded into webview) into a Java variable. Is that possible?
Example: I have a webpage with written text: HELLO STACK!. How could I save that text into Java var (String foo = ?????)?
Could I do it with JavaScript/Java cooperation?
...
I'm working on a Synergy port to the Android (see synergy-foss.org).
The only way I've found to inject keystrokes is to use the Cyanogen Mod and write keystrokes to /dev/uinput. However, my app does not have permissions to write to /dev/uinput. The only way around this that I've found is to chmod 777 /dev/uinput.
However... it seems ...
I’m not sure this is the best example, but here goes. Let’s say I want to draw an object to a canvas in an Android application. I need to do some math and call a method to return screen size to figure out where to draw it since my app should support multiple screens. I really only need to do this procedure once, as every time I want t...
I have created a SampleItem just to test:
public class SampleItem
{
public string Name { get; set; }
}
and the method that I calling from th service looks like this:
public void send(SampleItem s)
{
String siteName = s.Name;
}
And Iam debbuging this mehtod, What I can notice is that the "s (sampleitem is nul...
hi. i need to parse this response in android using the android json parser but the thing i cant find the answer to anywhere is:
how do i parse the data if for example "itineraries" can contain one or sometimes more objects of the type itinerary?
if it contains one than it is returned like this but if it contains more it is returned with...
I am writing a class in Android that requires certain parameters from the class that calls its functions.
For Example my class is called "DoStuff"
DoStuff has 3 functions:
public static doThis(canvas, tick, toggle, something);
public static doThat(canvas, tick, toggle, something, something);
public static doTheOther(canvas, tick, togg...
I have a standalone GPS enabled data recorder in my car that can function as either a USB host or device. (Its a class 0x00h USB device). I currently connect to it via a WM 6.5 app running on my Palm Treo 750.
I would like to port my WM 6.5 app to an Android phone. (I don't have a specific Android phone in mind, I would like it to be...