android

How does Facebook set Cookies with FB Init call in "Facebook Connect" setup?

Two part question: I have setup my website to use Facebook Connect for logging in. In the restricted area, I check if there is a cookie set with the name, "fbs_" under my domain name. However, I do not understand how this cookie gets set under my domain name. Does anyone know what happens with FB.Init call in this regard? (I have not us...

Android - Slider devices cause Activities to reset....

While testing on Android 1.6 using a G1 I have noticed that when I slide out the keyboard it kills the activity and recreates it even though I have set my activity to only display in portrait mode. Same happens when I push the keyboard back in. I get onSaveInstance, onDestroy called, then onCreate, onResume, OnrestoreInstance... I und...

Click issue in android

Hello In my application i am displaying rows dynamically. I am using the below code so as to focus the clicked row even if the user press back key. But the issue is like if the row is not focussed we need two clicka to navigate.First to make it focussable and then next click to navigate.I need all at once any suggestions. @Override publ...

Commercial IDE+Emulator for Android?

I'm an Android total-noob but in the last few weeks I've installed the JDK/Eclipse/Android SDK on 2 PC's. Both installs took a day of tweaking and dealing with configuration problems and getting the different parts to play together, and generally were a PITA! On one PC I'm STILL dealing with random, sporadic instances of the "HelloAn...

Set COD on Android bluetooth server

Hi, I'm developing a bluetooth server over Android. The client I want to be connected has established a COD (Class of Device) filter, in order I don't catch the connection unless I have a concrete COD. Are there any way for establishing the COD of the Bluetooth adapter? Thanks in advance. ...

Resize FastScroll alert dialog

I want to use FastScroll for my history list and use dates for sections, but alert dialog (that shows letters in contacts) does not stretch to fit text's size (i want to show there month and day). How can I resize it? ...

gridview image border

Hi Friends, I am using gridview for display group of image from xml using xml parsing now i want to display the border around each image in gridview.all image should display outline border on image in gridview .how to set boder for each image in gridview ...

Convert png or jpg image to Base64 string in android

Hello In my application i need to convert Image to Base64 format. Could any one please let me know how i can do that? Please forward your valuable suggestions. Thanks in advance :) ...

What does Handler do when running a thread?

Hello! I'm really confused about this, but when I'm trigging a thread from my SurfaceView, im sending a Handler with the constructor like this private static Thread thread; public SurfaceView(Context localContext) { //other stuff thread = new Thread(mySurfaceHolder, myEngine, this, new Handler()); //other stuff } an...

Parsing XMl in Android using Xpath

Hi there, I want to parse an xml file using xpath in android, any idea how to do that?? I hope you get the point. Thank you ;) ...

Aidl callback interface implementing another callback interface

I have a service with AIDL callbacks. I would like to know if it is possible to make an AIDL callback implement another AIDL callback in order to avoid multiple callback register For example : A.aidl : interface A { void doSomething(); } B.aidl : interface B implements A { void doSomethingMore(); } IService.aidl : interfac...

Enable/Disable USB or Wifi tethering programmatically on android

Is there a way to enable or disable tethering (USB or wifi) on an android phone programmatically? Perhaps an API in android SDK or NDK or any even non-UI command to do that. Thanks in advance. ...

Sectioned ListView and ExpandableListView

Hi all, I need to create a layout with a title bar on the top and a list view with n sections. The list header of every section has got two distinct Buttons that must be clickable and focusable independently from each other. This is the code of the layout: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" andr...

starting activity by componentname

I programmed 2 activities in 2 different applications. Now I try start one activity from the other through: Intent i = new Intent(); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); i.setComponent(new ComponentName("com.android.notepad", "com.android.notepad.NoteEditor")); this.startActivity(i); But whatever I try to put in as pkg/classname ...

How to get name of wifi-network out of android using android API?

I thought that I should use NetworkInterface::getDisplayName. I got some name, but this name is different that this name which I can see, when I choosing to which network I want to connect. Please help.. [EDIT] acording to Loxley answer: WifiManager wifiMgr = (WifiManager) getActivity().getSystemService(Context.WIFI_SERVICE); WifiInf...

Context null Pointer

I've been following this tutorial: http://developer.android.com/resources/tutorials/views/hello-mapview.html but in onTap mContext is throwing a NullPointerException.. anyone know why? Here's my code.. public class Mapitems extends ItemizedOverlay{ Context mContext; private ArrayList<OverlayItem> mOverlays = new ArrayList<OverlayI...

Android application suite with multiple launcher icons does resumes to same activity no matter which was selected.

I have a single Android application that houses a suite of applications. I want each application to install with its own launcher icon, so I have a few activities with the same intent filter. <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent...

How to retrieve a list of available/installed fonts in android?

In Java I would do something like: java.awt.GraphicsEnvironment.GraphicsEnvironment ge = java.awt.GraphicsEnvironment.GraphicsEnvironment.getLocalGraphicsEnvironment(); Font[] fonts = ge.getAllFonts(); is there an android equivalent? ...

Pure C++ program compiled for Android

I want to compile this program for Android and see it run on my phone: #include "Hello World.h" using namespace codewerks; //============================================= // Main Loop //============================================= int main(int argc, char* argv[]) { Print(std::string("Hello World!")); } Where do I start? Ca...

android:background hides my text ...

I have a widget layout as follow : <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/widget" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/widget_bg"> <TextView android:layout_height="fill_parent" androi...