android

Get Bitmap from an Uri [android]

please help me, how to get bitmap object from an Uri (i suppose i succeed to store it in /data/data/MYFOLDER/myimage.png or file///data/data/MYFOLDER/myimage.png i used both path) to use it in my application but i failed to get it, Someone have an idea how to accomplish this thanx, ...

Android device to PC's socket connection

Hello everyone, I am facing problem to establish a socket connection from android device to PC's a specific port like 8080. I just want to create a socket which will connect to the specific port and also write some data stream on that port. I have written some code for this purpose but the code is giving me an exception as TCP Error:jav...

Custom menu as the photo.

Hello, this is the second time that I ask a question about this:( I think a photo may better explain to you what I want. Since the last time I asked the question, I have tried several tutorials, but I didn't manage to set up a menu as the photo shows. In fact, I don't understand very well the use of getView(). One guy told me just to...

How to implement tabs in Android

Hi, How to implement tabs in Android. I am having a context. In that I want 3 tabs named Free,TOP,Paid.Clicking on each of the tab should open separate activity. Thanks in Advance, ...

importing ant build.xml in eclipse

I have an android project that uses ant to build, is it possible to import this ant project in eclipse IDE? update : There is an option to create project using ant build.xml in eclipse File->New->Project->Java->Java project from existing ant Buildfile. and if the build.xml file is selected it show error "Specified buildfile does not con...

doubt in list view

I have 2 lists, one on the left of the screen, the other list, on the right of the screen which gets dynamically populated based on the selected item on left list. I move to the right list by pressing "Right" key from the left list. Issue: Whenever I press right key from left list, the item that is currently selected is the item of the...

How can I set the width and height of an ImageView to another ImageView's width and height on the XML?

I have this layout. <ImageView android:id="@+id/icon" android:layout_gravity="left" android:layout_marginLeft="5px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/icon"/> <ImageView android:id="@+id/header_avatar" android:layout_gravity="left" android:layout_marginL...

How to show a balloon above a marker in a MapActivity? Is there an API to do that?

I worked through http://developer.android.com/resources/tutorials/views/hello-mapview.html and now I want to show a balloon with information, when a marker is clicked. Just like here. (This part of my question seems to be answered by Commonsware. So, dont recognize it.) Honestly, I dont know what that guy is doing in his answer. He is ...

don't want to display the call log page after completion of call

Hi I don't want to see the call log (outgoing calls list) page after completion of phone call in my app.after completion of phone call i want to go to previous page don't want that call lag page.For that what can i do.is there any tags?Please give me some suggestions.Thanks in advance ...

Android SOAP problem.

Hi all, I m making an application using SOAP in android. Actually i want to do login functionality by calling web service on click of login button. In this i want the user to log in into application by checking that the user is registered or not(Webservice is sending successfull or failed respose). can anybody tell me the procedure or a...

twitter integration into android is problem

Hi I used Android 1.6 version.I want to integrate twitter button to share songs on my web based application to my twitter followers for that i integrate jtwitter.jar file into my application but it is not taking username , password what i provided here i am using the below statement to check the authentication twitter = new Twitter(us...

png downloaded size different to server size?

Hi everyone, My app downloads .png files to the sd card for later use. I kept getting OutOfMemoryErrors (if anyone could explain this too, that'd be great!) and so I took a look at the sizes of the images saved to the sd card, and they seem to be roughly double what they are on the server. Why is this, and how can I make them smaller? ...

Working with Android Camera

Hi all, I have implemented camera part in my application, that too running perfect, but when i am running in my real device(HTC Wildfire) the problem that i got is it stays in landscape mode (i.e)object in the preview are all aligned horizontally.suppose,if i target an object in the vertical stage , its falling in my camera as like the ...

show text view and edit text in row

show text view and edit text in row in linear layout ...

Not able to capture images when there is an incoming call?

Hi all, I am continuously capturing images with my camera at interval of 1 min.It is working without any problem.But when i got incoming call,my camera activity goes to background and not capturing any images.When call finishes m able to see my activity and images are captured without any problem. What to do so that when incoming call,...

How to show wml pages on android phone

I want to show wml page on android. I have designed small wml page. I am using Apache server to deploy the pages. But the page is not displaying. It is displaying just like xml page. I have added some line to mime.types which is given in following site http://e-articles.info/e/a/title/How-To-Configure-Apache-or-IIS-Web-Server-to-Work-w...

Creating ServiceProcess For ?Media recorder in Android

How can i create service process for Media recorder in Android ...

How can I reuse code AND resources in several applications?

How can I reuse code AND resources in several applications? I have a fairly large code base (including resources) that I want to reuse i several applications. How can I do that? I did try to use the Android Library concept (http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject) but never got it to work in Android...

how to see two or more layout whit android?

hello i got a project that i need to add one or more layout to my existent layout. the problem is that i'm can saw just my last layout . i am using overlay's vector and i'm asure that is not the way to solve this problem i will glad that some one will give me some clue how to solve this problem thank you ...

ImageView Pinch-zoom Scale Limits and pan bounds.

Hi, I wanted to create an gallery with images. The images within the gallery should be zoomable and pannable. I could able to pinch-zoom an image but could not able to set zoom limits and prevent the image from being panned off the screen. I used the following code to zoom an image: http://code.google.com/p/4chan-image-browser/source/br...