In Android 1.5 (also on 1.6)
How to add an Access Point from code?
Given Access point that supports WPA2.
Here is my code snippet.
WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
WifiConfiguration wc = new WifiConfiguration();
// This is must be quoted according to the documentation
// http://developer.androi...
I can run my application on 1.5, 1.6 and 2.0 emulator and on a 1.5 device without any problems. But some of my users are reporting force close and strange menu entries (see the attachment) using 1.6 and higher version devices. Any ideas?
This screen should look like this: http://www.taypo.com/blog/WindowsLiveWriter/TurkceKlavye0.7_6F1...
Greetings,
I'm looking in the documentation for SQLite on Android but can't seem to find the anser for my question - so maybe someone here can help.
When I create a database using the SQLiteOpenHelper will the database only be created once if it does not exist or will it be overwritten each time I call the OnCreate method.
...
I am getting "104Incorrect signature " . What should I be setting contentType type as? Should I set as:
String contentType = "application/x-www-form-urlencoded";
or
String contentType = "multipart/form-data; boundary=" + kStringBoundary;
This is how I am writing the stream:
HttpURLConnection conn = null;
OutputStream out =...
Hi
I am looking for the source code of the android lock screen.
It can be any version (1.5, 1.6, 2.0, etc)
Here is the link to the code: http://android.git.kernel.org/
I tried to look into the platform/frameworks/base.git but it looks like is not there.
Maybe is closed source?
Thanks
Daniel
...
I have a snippet of code that I'm calling from a service:
context.registerReceiver(new BroadcastReceiver(){
@Override
public void onReceive(Context context, Intent intent) {
try {
WifiManager mWm = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
ret = ...
In my past programming experience I found that learning by example is the shortest way to improve my skills. I'm now looking for a "poster child" opensource Android project which would follow best practices such as having good unit-test coverage, following clear design patterns, have well written, well documented sources and (hopefully) ...
I have a widget that acts as a launcher on the home screen.
How can I make it behave like a launcher icon?
I use this layout for portrait:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout
android:background="@dra...
I can get the device (owner's)phone via
TelephonyManager tm =
(TelephonyManager)ctx.getSystemService(ctx.TELEPHONY_SERVICE);
phone = tm.getLine1Number();
But i am not sure how to determine the gmail or other account belonging to this user(device)
How do you do that?
...
Possible Duplicate:
Getting frames from Video Image in Android
Hi,
I wanted to know if it is possible to extract frames from a running Video in Android? I need to extract frames at regular intervals and send them for further processing.
Would someone be able to find an answer for me?
Thanks,
Abhi
...
I've a form that occupies upper half of the screen and I want to show the keyboard
at the bottom half all the time. How do I do that?
(Android 2.1, NexusOne)
...
I have built my app, it basically parses some XML data from a web site. When I run it for the first time it gets the data, then the XML gets changed and I run the app again but it does not override the current data. How can I override them?
Thanks
...
Planning to write a dead simple android application
it's basically an image viewing application.
I have 10 images preloaded. Each swipe (left or right) will cause the image to switch.
that's about it!
So I've looked across many android sites, couldn't find a single tutorial on this.
Anddev.org provided tutorials on displaying graphic...
I am playing around with a strategy game where squads move around a map. Each turn a certain amount of movement is allocated to a squad and if the squad has a destination the points are applied each turn until the destination is reached. Actual distance is used so if a squad moves one position in the x or y direction it uses one point, b...
I have some code that extends a service and records onSensorChanged(SensorEvent event) accelerometer sensor readings on Android. I would like to be able to record these sensor readings even when the device is off (I'm careful with battery life and it's made obvious when it's running). While the screen is on the logging works fine on a 2....
How would I code my android app to remember the values entered by the user between uses?
As an example, say I have an EditText "input1" and a spinner "input2" which give results in a textview named "output1".
Currently when I close and reopen the app, all entered values and calculations are lost and reset. How can I fix this?
...
I'm trying to set up my workstation for Android development with Eclipse Galileo. I installed the latest ADT plugin and the Android SDK, but I get this error when I try to run any basic Android project I create.
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x8...
Hi, here is my problem.
I have Some Alarms set via AlarmManager to do some periodic jobs.
I set/reset them when user opens the app for the first time & on every boot_complete event.
But when the app is reinstalled via ADB then my alarms do not fire anymore. looks like the OS deletes the Alarms on reinstall of the app. I assume this will ...
I am trying to get a phone object so that I can call and conference two numbers from within my application.
I have tried using the static PhoneFactory.makeDefaultPhones((Context)this) but have not had any luck.
String phoneFactoryName = "com.android.internal.telephony.PhoneFactory";
String phoneName = "com.android.internal.telephony.Ph...
I am trying to access a SeekBar in a AlertDialog.
I need to either setOnSeekBarChangeListener(), or access the SeekBar.getProgress() to get its value. Where do I do this? Is it possible?
The dialog is shown using showDialog(id) from onOptionsItemSelected.
The following code is used in onCreateDialog to create the AlertDialog with cus...