Hello,
I am newbie android developers. I am developing an application in which i am using google maps. I have to implement double tap zoom in google maps. When i double click on a map the map should zoom in. Kindly if it is possible provide a sample code.
I have written a code but i dont know what to add more.
public class Maps extends...
Is there a possibility to navigate between Activities tabs in TabHost using back button? When I press it, I go out of the main Activity to the previous one.
...
I used a spinner to display a list:
At the bottom of the list, there is this grey line. How i can remove it programatically??
Thanks
...
Video streaming using RTSP
I 'm trying to install a Wowza server on my linux machine to enable the RTSP streaming for my android application. On android client side what sort of changes do I need to make in my application. I 'm using Videoview to simply play a video file stored locally. Now I want to get the video content get streamed t...
Hi,
I have a problem with the method "onActivityResult".
I create a new Activity from my main activity:
Intent intent = new Intent(this, NewActivity.class);
startActivityForResult(intent, 0);
The new Activity is ended like this:
Intent resultIntent = new Intent();
resultIntent.putExtra("vid", hmvenues.get(venues[currentPosition]));
...
how to develop android app with analog clock for different timezones
...
I'm trying to use the function [context].startSubActivity([intent i]) but that won't compile. Apparently startSubActivity() doesn't exist in Android 2.01? I do see a bunch of startActivity(...) functions, but no startSubActivity, which so many examples provide. Would someone please tell me if it's been deprecated, or maybe I'm just not i...
I use a seekbar in my application and would like to customize it a little bit.
I already figures out how to change the drawable for the thumb and for the background.
My question is how to change the size of the seekbar? If I just change the height of the seekbar like this, the view is only clipped and it only shows the top piece of th...
I have an Linear Layout inside the View Flipper. When i fling/swipe the layout the same layout reloads the same layout with the animations slide_left_out and slide_right_in. I just have only one layout view. it has the values the image view and text view. When i swipe the view it just change the next value to that views. Any Idea?
...
Hi All,
my target: download files parallel, and when file download completed i have notifications.
those notificaion suppose to launch an activity when you click on it which get unique parameter through putExtra.
problem is that i cant have diffrent values in each launch of that activity.
each time the last activity which being launch...
Hi,
I believe this is pretty trivial but I can't get it to work.
I want to display a default image in gallery elements (ImageViews) while their actual image is being fetched from the net.
Right now, nothing is shown for an ImageView which its image has yet to arrive. Once it arrives it is immediately shown.
What I tried is right after t...
Does anyone know how to store the album art of a music album into a cache? I already have my album arts fetched from my content resolver. But I would like to store them inside a cache (probably, a hash map) so that it will not need to fetch the images from the content resolver again but from the cache.
...
Hello,
I want to write a program to automatically generate the contacts. I also use a special service to add account on emulator. The same account is used on the telephone.
Below is my code:
ContentValues values = new ContentValues();
values.put(RawContacts.ACCOUNT_TYPE, "localhost");
values.put(RawContacts.ACCOUNT_NAME, "PC Sync");
U...
I am working with an edit text to support the properties of bold,italic and underline.I got succeed after selecting the text and clicking on bold my text was bold.Now what my requirement is how to remove the bold again after selecting the text and clicking on bold button.
Regards,
Bhavani.G
...
Is there a way to apply a 'resize' animation as opposed to a scale animation in Android? When using the scale animation, the image or layout being resized is stretched out, this includes the border / stroke outline that is outlines the image. I have a box, with 2 lines around them, when the animation is applied the stroke appears to gr...
My goal is to have multiple mp4's stores in different folders on a server. I want to grab one of the videos from the folder when a certain condition is met. How would I grab a random video file from a particular folder? Here is the code I have written:
public static Uri getVideoPath(String cond){
Uri tempPath;
if((cond.equals("0...
In my application, how do I disable the transition animation that shows the new activity layout enter from the right and the old one exit to left?
Versions 2.0 -> 2.2 if relevant.
...
My team and I are currently planning to do some Rich Web development for the android and iphone and I am wondering if you guys could share some resources with us. Anything will be welcomed. Thanks in advance.
...
EDIT: the null pointer was due to a badly formed json.
Hi,
I'm trying to deserialize json data to an ArrayList of Restaurant object as follows (inpsired by what I found in https://sites.google.com/site/gson/gson-user-guide#TOC-Collections-Examples):
Type listType = new TypeToken<ArrayList<Restaurant>>() {}.getType();
ArrayList<Restaur...
I am trying to use progurard with my android applications.
The proguardGui accepts an input, and an output, the input requires a jar file. but the APK file for android doesn't contain any jar?
I tried passing the apk file, and also the dex file inside the apx, but proguard doesn't accept them as an input. proguard only accepts jars, ear...