I have an activity which extends PreferenceActivity.
I'm loading preferences from the xml file.
But in some cases i need completely hide one of the preferences from the screen based on my app state. There is a setEnabled method, but it's not exactly what if want. I want to remove that preference from the screen completely.
Is it possible...
Hi I am developing an application for the android htc hero. I am looking into ways of using the inbuilt camer to read 2D barcodes and extract the string returned from the barcode. I have only recently begun working with the android sdk but I do have a programming background from working on projects with java. I am curious to know what th...
lv.setOnClickListener(new OnClickListener(){
public void onClick(View v){
}
});
Does v refer to the ListView lv or the specific item selected in the list?
Thanks in advance.
...
Assuming that old Icon design guidelines are not valid anymore, where can we find information about the guidelines to follow to design "new-styled" 2.X launcher icons?
Should applications provide icons for both icon styles if they work for both versions?
...
I have a problem preserving the current scroll position of content loaded in Android's WebView control during orientation changes. The issue currently exist only in Android 2.1 and Android 2.1 Update 1
The code that I use is based on the default Browser application and looks like this:
@Override
protected void onCreate(Bundle savedInst...
For instance, we are in SomeActivity and the activity has a button that invokes moving files from one dir to another (let's call it job).
On BlackBerry I would:
push a non-cancellable popup (Dialog screen) saying "Please wait..."
start a thread that fulfills the job
on thread completion close the popup
This approach 99.99% can guara...
As a thesis for my graduation I'm going to start an open source project: My idea is to port a complete set of mathematical libraries to Android, to perform numeric and symbolic operations, in the form of a programmable calculator like matlab or sage.
I want to release this project under GPL, because I believe that ideas need to be free...
Hi, there. I am trying to implement a feature into my app to copy the current database unto the sdcard. Are there any tutorials or code snippets to achieve this. I've already looked at this site, http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/ ... but I wont be able to import the data with this m...
I am developing Enterprise applications that need to connect to
servers behind the firewall. Can my app start VPN connection
programmatically?
On 2.0+ platforms, VPN is supported by the platform. Assuming user
has already setup VPN parameters, can my app start the VPN
connection? Suppose user has not setup any VPN parameters, can my ...
A button on our screen causes an activity to be shown that has a "dialog" theme. We are having an issue were if you click the button quickly twice in a row, the dialog activity is opened twice.
Typically I would expect that when a new activity is started, the underlying activity is immediately stopped, and thus accepts no further input...
Hi,
I have a ViewGroup and it has a few children. And one of them is a TextView ("+id/text").
In my code, I would like to know how can I add a new View or ViewGroup which will be positioned vertically aligned and below the TextView (+"id/text")?
Thank you.
I have followed the advice below and try to use TableLayout.
As a test, I try ...
I'm new to Android, and I really need to do it this way (I've considered doing it in another Activity), but can anyone show me a simple code (just the onCreate method) that can do Listview without ListActivity?
THanks
...
hi,
not sure if this is possible, in .Net there is paging for a data grid,
can we do the same thing for a ListView/GridView in android? what i
want to do is to have either of the following:
1) in the view i want to have an image, a line of text, and then
programmatically switch to the "next page" with a different image and
line...
I followed the developer guides on the Android website. It is working fine for a Hello World application but when I try and transition between Activities, my application keeps giving an "The application () has stopped unexpectedly. Please try again later." error and the application then quits. This happens when I click the button in the...
Can you blend Java and native OpenGL calls. For instance having the setup happen in the onSurfaceCreated, but having the onDraw call into native code (or even both)? I'm having trouble getting native code to render, but can't tell if this could be a problem or if I'm throwing c++ exceptions, but they don't bubble up...
private stati...
hi
how to access my web application database in android emulator, i want list out my database values. These are in my web application.
database name employees and table: employee_data
i want to get employee_data data on android emulator.
...
I'll come up with any excuse to get a chance to write my first Android application. I've never done much with it except for a couple of tutorials.
I've got a Windows application that controls a device, and the computer isn't necessarily right next to it. I think it would be great to be able to use my Droid to issue the device commands...
Hi All,
While building the android app using ant am getting the following exception.
Couldn't figure out why these exception are thrown!!!
Execute:Java13CommandLauncher: Executing 'D:\Android-2.0\android-sdk-windows\platforms\android-1.5\tools\aapt.exe' with arguments:
'package'
'-f'
'-M'
'E:\manish_test\timetrack\client\static\andro...
hi,in my application i want to display my own ads for that i want to dispaly my ads in image and it should be animated.So how to display animated images
...
hi all,
How to use TabHost.OnTabChangeListener in android?
give me some example code... :(
thanks
...