I can't connect to OBDKey sometimes . I use BluetoothChat example to connect to OBDKey.
I can connect to it and read data, but sometimes socket is closed.
m = mmDevice.getClass().getMethod("createRfcommSocket", new Class[] { int.class });
mmSocket = (BluetoothSocket) m.invoke(mmDevice, 1);
mmSocket.connect();
Before this OBDKey is p...
Hello,
I need to generate/trigger a long key press event of a button in Android.
Searched on net but not able to find any answers.
Any solutions ??????/
Thanks in advance.
...
How to add new access point ( with name,APN,port ..etc) and make it default programatically?
...
Hi i am new to android , I hope so u guys will help me to obtain my requirement.
I am using an Android API Level 2.1
I need to create a new field such as user@domain not as e-mail format for every contacts. So i need to create a new MIME type now i got struck how to create this MIME type. Please help me to recover on implementing new M...
Hi there,
So, i'm trying to start activity by sweeping across the screen, it works fine for all the other screens, just this screen that doesn't fire the onTouch at all? Would you mind helping me? I've tried debugging it and still have no idea at all. Below are the codes, sorry for not putting snippets only as I thought I might did somet...
friends,
i am trying to display image from gallery
now i want to put check if selected file is image then it should be displayed.
using following code any one help me out how to achieve this?
User can select video file, image file etc.. anything so i want to allow only images.
ON button click
private void SelectImageFromGallery()
...
My MAIN activity is spawning a child activity that contains a ListView. While this ListView is being populated (through an AsyncTask), an indeterminate progress bar is shown.
However, assuming that I am an impatient user and I press the BACK button, the progress bar is cancelled but I am left with a blank screen. I have to press BACK o...
I'm trying to retrieve the password of google account, but getting
security exception at String pwd = AccountManager.get(mContext).getPassword(account).
Also i have given permissions in androidManifest.xml to
account_manager, aunthenticator, get_account, manage account.
code :
android.accounts.Account[] gaccounts = AccountManager.get(...
I need to have a layout that has a view above a set of tabs. I've gotten the tabs working fine, but as soon as I try to add a view outside of them I'm left with that view and no visible tabs.
This works fine:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layo...
Is there anyone using git in such a fashion?
I would like to distribute some multimedia content from a server to some Android remote devices. I would like them sending back a log file with device usage statistics (provided by an android app I will write).
The server could be anything but I would prefer a linux box.
I thought that sin...
Maybe you remember the draggable window in android donut. You have something like a tab. If you tap on this tab with your finger a window slides up an reveals all the applications that are installed on your android phone.
Has anyone an idea how to realize this in a layout?
...
I trying to do XML parsing program.
I also used FileInputStream for my XML file.
I placed XML file under android's assets folder,META-INF folder.
That's file name is "container.XML".
Here is my code parseXML,
public void parseXMLinfoBook() throws FileNotFoundException, ParserConfigurationException, SAXException{
FileInputStre...
I am new to android,i need to zoom an selected imageview given statically in array defined in my code how can i get it.
Thanks in advance
...
Hi,
I need in my Android Application the Distance and the Driving Time between Two cities.
Is there a possibility to calculate this things for example via Google Navigator or Google Maps? (the driving distance, not the air-line distance)
...
Hello. I'm in need to serializing a comprehensive application (game) state to be transmitted over a network or saved to disk and retrieved at a later time.
Bundles, of course, are used to save/restore states in several use cases, so using them would be ideal. However, for some reason, Bundle isn't serializable.
Searching for a solution...
Hello,
I have a listview say in this instance has the values:
UK,
USA,
FRANCE
These values are pulled from a static array held within my string.xml file. Additionally, within the string.xml is 3 arrays each referring to UK, USA and FRANCE & basically I want to load these arrays into a new listview depending on the users onclick event...
Hi
I have one ImageView. I want to show this image view for showing some message in fancy way.
So I want to add text to that ImageView.
Can Anybody tell me how can I do this.
...
Hello Folks!
My problem is, that I have got a TabActivity, which has 4 Tabs right now. The first Tab is a special Details-Tab, where the user could modify some data.
The problem is, that if I add a OptionsMenu for the Activity, that the OptionsMenu is appearing on every Tab.
I tried to check the current mTabHost.getCurrentTabTag() in th...
Hi Everybody,
I created one login screen but before login screen to appear I wanted a image to flash on the screen. For this I use Toast.
But the problem is before flashing the Image Login screen appears for a while and the image flashes after that again Login Screen appears. I wants to flash the image first before any thing appears in ...
So I've recently completed this tutorial and it works great, but I'm a little stuck on reading the data from my database.
I'm now reading from the database file thanks to Orsol by using this tutorial but I'm looking now for a method I can call which will return me the values of a given field. Or at least a method that let's me execute S...