android

Access the http response headers in a WebView?

Is there a way to view the http response headers in an Activity once a web page has been loaded in a WebView? Seems like this should be possible, but I can't find any methods that expose the headers. ...

Android: Toast in a thread

How can I display Toast messages from a thread? ...

using Android Accelerometer to calculate distance , eleveation ?

can it be determined that where a person is i.e is he walking ? is he in elevator ? or is he climbing up the stairs ? using android's accelerometer or is there any other way to calculate such in android ? ...

Android call WCF Service

This is how the service in asp.net looks like: [ServiceContract(Namespace = "http://www.pluralsight.com/ws/")] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public class WeatherService { static Random _rand = new Random(); [OperationContract] public string GetForecast...

Communication between TabActivity and the embedded activity

I am trying to figure out the best practice of communication between a TabActivity and the child activity embedded in this TabActivity. In my TabActivity, there is a button. When the button is clicked, I want the child activity embedded in this TabActivity to be updated. I wrote the code like below, and just wonder whether it is a good ...

WebView.setHttpAuthUsernamePassword() not working?

I am developing part of an Android application that needs to use a WebView to open a password protected site. I am using SharedPreferences to provide the username and password from when the user logs in the app for the first time. I've tested the credentials it's returning, so I know that those are correct. When I run this in the emulato...

Is it possible to define each tab's content in a separate XML file?

I would like to define each tab's content in a different XML file so the visual editor in Eclipse can be used. That is, without all of the tabs being laid over each other. The visual editor doesn't even seem to work with the XML example provided here: [link text][1] [1]: http://developer.android.com/guide/tutorials/views/hello-tabwidge...

android nested listview

is it possible/advisable to have a nested listview? i.e. a listView that's contained within a row of another listview? an example would be where my main list is displaying blog posts, and then in each row, you'd have another list view for the comments for each post (that would be collapsible) ...

aapt error on android

When I have an layout test.xml file open and click on Run Android creates an empty test.out.xml file and creates an "Unparsed appt error". Even when I delete the newly created file the "Unparsed appt error" doesn't disappear. What happens here? How can I fix the error? Is there a way to prevent this from happen when I accidentally click...

what's in the (package) name org.example.hello ?

I'm familiar with C++ but never used Java. I've just started learning Android development. In most of the basic tutorials I've gone through mentioned packages names like org.example.hello. I know they are some sort of unique identifiers but How should I choose these packages names? Are there any guidelines? Is there anything special I ...

tab-layout with a google maps tab

I'm developing a tab-based layout, one tab should show a google maps view. my unsolved problem ist that my app is crashing when i change to the google map tab. in my manifest i've set the permissions: uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" uses-permission android:name="android.permission.ACCESS_MOCK_LOCA...

Having Android Problems with Sun javax jars

Hello, I have been working on a Android Web Services program that uses a number of classes from Sun's javax libraries. The eclipse IDE is barking "Attempt to include a core class (java.* or javax.* ) in something other than a core library." My application is an Android application and I am not creating a core library. I am using seve...

Android Library projects and having to manually refresh.

If I make changes in my Android Library project I have to manually refresh, and sometimes clean all projects that use the Library. Is this normal? Is there a way around this? ...

For portrait orientation on Tabs

I would like to restrict my application which uses Tabs to portrait orientation. I have 4 tabs and I set the "android:configChanges="orientation" for all 4 tabs but the orientation still changes when i rotate the phone. Seem pretty straight forward. Am I missing something? Thanks ...

How do websites like appcomments.com or androlib.com get data, particulary the reviews?

Do they just scrape or are there APIs? ...

Android HttpClient - hostname in certificate didn't match <example.com> != <*.example.com>

I'm using HttpClient on Android to connect to https://someUrl.com/somePath. The problem is that the site's certificate is for *.someUrl.com, not someUrl.com, so I get an SSLException. Lame on the part of the site, yes, but unless I can get it fixed, I'm stuck. Is there a way I can get HttpClient to relax and accept the certificate? ...

DNS problems on Android

I had gotten reports from a few users that they couldn't login to our app (which makes HTTP calls to our site) or visit our website in their browser, so I added some code to our latest build to check what IP our host name is resolving to. I've gotten reports from several different users now that they get 127.0.0.1 for our hostname when ...

Elaboration on BluetoothChat's mOutStringBuffer field (an Android SDK sample)

Hi, This is my first post so I'm not sure how things usually flow here. So here it goes. I've been going through some of the sample Android applications and stumbled upon a variable in BluetoothChat - mOutStringBuffer. I don't really see the point of having it there, and I can't even see where it's being used! All I can see is that it ...

Do android developers commonly use 3rd-party UI/networking libraries like Three20 on iPhone?

I've done plenty of iPhone work, never anything with Android. On iPhone, it was a few months in before I discovered the Three20 library (which is awesome) and began moving my code over. I don't want to make the same mistakes moving to Android, so my question: Do android developers commonly use 3rd-party UI/networking libraries like Thre...

Android intents repository

There are many intents an Android developer can use - the ones that arrive with the OS, OpenIntents, and several others. Is there a site that lists all possible intents and their parameters? ...