android

get latitude and longitude using zipcode

i want to get the latitude and longitude using the zipcode for android application ...

Problem in getting latitude and longitude

Here is the program i used to code it in my android application to find the GPS location of the device. enter code here package com.gps.TestingApps; import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import a...

Switching to landscape orientation is slow

This is getting called in onCreate(), how can I speed up orientation switching? private void setupChartView(int position){ Quote myQuote = quotesAdapter.getItem(position); this.symbol = myQuote.getSymbol(); String url = "http://chart.finance.yahoo.com/z?s=" + symbol + "&t=1d&q=l&l=on&z=l&p=s&a=v&p=s&...

Android : dynamic layout vs hardcoded XML

Building an application, I need to make a big grid/table of buttons. I need to make the number of rows and columns dynamic. That is, evolving when I send some parameters through the network (the network part is OK, I can transmit/receive thing and store in a variable.) ...

How to compile and run a C/C++ program on the Android system (like MinGW on the Windows)?

I want to compile and run the C/C++ program on the Android phone program (like G1). For example, I write a "Hello World.c" program, then compile and run it on my Android phone system. I have never used MinGW to run my code on my Windows system, so I also want to do it on the Android phone system. ...

How to design this android Time Convertor Application

i would like to create Android Converter application. Time , Area , Length , Temperature , etc. I have designed the UI for it. Two Spinner for Selecting the From and To conversion. Two TextBox for displaying Input and Result. 10 number buttons , "." , "Del" , "C" buttons EX:...

How to make Spinner Editable in Android?

I changed the ArrayAdapter method of spinner and i got my custom Spinner. just change the parameter of this method like Spinner spinner = (Spinner) findViewById(R.id.Spinner01); ArrayAdapter<CharSequence> adapter=ArrayAdapter.createFromResource(This,R.array.statename,R.layout.mylayout); spinner.setAdapter(adp); In Which the mylay...

How to Handle throws clause in Java Exception Handling?

I have class A in which I have a method openfileConnec(). It was written like the below: public void openfileConnec() throws Exception { //code for opening a file } Now I come to class B where I will call this method like the below: class B { try { openfileConnect() } catch(Exception e) { } } I was aske...

How to fix image height and width in webview for android

Hi Friends, I am developing image application,i am using WebView to display image, so I want to fix some height and width size for the image, this size applicable for all kind of size of images in WebView. Any sample code is welcome, Thanks All ...

Android internal autoscaling feature only for large screens

Hi, i am developing a game with canvas. I want use the Android internal autoscaling feature (anydensity=false;) only for large density screens. Is it possible to enable this graphics (in the drawable folder) scaling function only for large screens. For smallscreens my Game Engine does automatically manage the presentation. I attempted ...

Get the details if image captured via camera

Is there any intent for getting the details of image captured by camera(default one)? Thanks, Nithin ...

How to encode a WAV to a mp3 on a Android device

I'm simplified my question and offered a bounty: What options are there for compressing raw PCM audio data to a mp3 on a Android device. My original post: I'm creating a synthesiser on my Android phone, and I've been generating PCM data to send to the speakers. Now I'm wondering if I can encode this PCM data as a mp3 to save to the sdca...

How can dynamically move scroll bar in gridview

Hi Friends, I am using grid view for images,first time i using 16 images display in gridview after i will add another 16 images in grid view,now totally 32 images in gridview,ok now i want to move scroll bar last 16 images position in grid view,how can dynamically scroll bar in grid view?,anybody know please give code.. Thanks All ...

Android: using network service

hi, I m using network service so when i click on button in my first activity , if it is dependent on network then on its click if the network is not available then its should give message that network not available and if network is available it should able to redirect to my application. So here i m sharing what problem i have 1> if ...

How to refresh existing Statusbar notification messages when locale is changed

Please let me know how to resolve this problem. Statusbar notification messages are shown in X language even after locale language is changed from X to Y.Please help me what needs to be done to refresh it. Eg: Even after changing locale lang from En to Ja , statusbar notification messages are shown in En only i.e The application which ...

Programmatically add reminder in android calendar?

how can we add reminder data in android calendar? ...

Hint in Android

Hi all, I tried to show a hint in the EditText of my form, but i can't see that hint that i have set in the XML Layout while my application gets deployed, but i can able see the hint in eclipse designer view, but while getting deployed the same hint suppose to appear is missing, i tried with all the possible ways still i could no...

Android: How can we know the current connection type (ex. Wifi, 3G, 2G...) programmatically?

I see this thread but it could not help me much. ...

Call to .NET web service timed out (Android dev using KSOAP2)

I'm getting a Java Socket Exception "Operation timed out" when trying to call a .NET web service method. I've followed the many examples out there on the web to get my android to call a .net web service. I'm running the web service using VS2010 in debug mode. The web method I'm calling is very simple -> "string GetVersion()" I've rea...

how to set background of layout being static in android

friend's I have view to show the content alone have to scroll in the view on the layout.how to scroll the content alone not the whole layout. Here my layout code for content details. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orie...