I have built an application that I want to use as the foundation for a few other variants. The variants will come from assets / resource files and a unique AndroidManifest.xml. However, I want to be able to leave all the application code alone (modifying the package of all my classes, etc). I'm having a hard time figuring out how to do s...
I'm new to programming applications for the Android OS. As far as general architecture of the OS goes, I understand that processes are implemented as Linux processes and that each one is sandboxed.
However, I'm utterly confused on the IPCs and syscalls (if any) used. I know that the IBinder is a form of this; parcels are sent back and f...
In Android, onContextItemSelected has a single MenuItem argument and so it isn't clear how to identify the view selected. MenuItem.getMenuInfo provides access to Contextmenu.ContextMenuInfo, but while both known subclasses provide access to the target view, there does not appear to be an accessor on the interface.
One alternative is to ...
Hello,
I am trying to add a new contact to my contact list using the new ContactContract API via my application. I have the following method based on the Contact Manager example on android dev.
private static void addContactCore(Context context, String accountType, String accountName, String name, String phoneNumber, int phoneType...
I have an Android app that only needs internet access and would like to target API level 3 (1.5) to reach the broadest handset base. However, it appears that targeting API level 3 implicitly requires two additional permissions that are visible to users: modify sd card, and read phone state.
See: http://stackoverflow.com/questions/17471...
I didn't nothing in the onResume of my Activity, but it still takes about 5 seconds between the onResume is called and the activity is really displayed.
What's happening under there?
Here is the code snip:
onResume:
@Override
protected void onResume() {
Log.d(TAG, "on resume >>>");
super.onResume();
}
logcat:
05-28 10:36:...
When we try to open an attachment file from the mail, the desktop browser asks to save / open the file. As like that I need to do in the android mobile browser. How it's possible to ask a question in the mobile browser at the time of open an attachment file (*.ics)? Can anyone help me to develop an application for this ???
...
The wifi network is connected, the application setup a socket connection and exchange data with the remote server. But when turn off the wifi, the inteface is removed, while socket operation read/write on this socket is still like normal, no any IO exception reported. The application has to do some extra checking to avoid waiting for the...
Hi,
I'm using autoLink="web" attribute in TextView to launch Browser.
However, I want to launch the myActivity with WebView, when I click the links in TextView.
Is is possible that catch the click event and invoke startActivity?
Thanks in advance,
Jason
...
Hi
I like to decrease/change the spinner size which include:
1) the spinner object size.
2) the font displayed , its size and color.
3) when I open spinner the list view which is displayed, its font size and color.
thankx
...
hello, is there a methods to keep mobile phone off using code, i have no idea about this,and hope someone give me some advice,or example , code,api
thank you
...
Im trying to swipe left and right on a listview and get the viewflipper to swtich. Just like the remeberthemilk app and the default news and weather app on the nexus one (Swiping through news topics). Using various tutorials ive found , i came across on one stackoverflow that shows how to implement a swipe gesture
class MyGestureDet...
I've seen in applications a popup that prompts me what I do want to do with a text. I am prompted to choose from Send by SMS, Send by Email, Send by Bluetooth, Send by Fring etc.
How do I make such a popup, it seamed to be automatically built?
Also how do I tell what message to use?
And if needed how do I tell who the contact is? Maybe ...
Hello,
A new question about android and services. Currently I'm developing a App that should send images to a server. It should also be possible to send more images parallel.
I made a service that creates for every image a new image. The activity can bind to that service and gather information about the progress. I want to show the cu...
Hi! i am downloading images from Url and displaying them. At download time it is giving out of memory error : bitmap size exceeds VM budget. I am using drawable. Code is below:
HttpClient httpclient= new DefaultHttpClient();
HttpResponse response=(HttpResponse)httpclient.execute(httpRequest);
HttpEntity entity= response.getEntity();
Buf...
Hi All!
I'm trying to apply a linear gradient to my ListView.
This is the content of my drawable xml:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="#3A3C39"
android:endColor="#181818"
android:angle="270"
/>
...
Hello!
I'm creating mobile version of YouTube-like website. And i'm going to use Darwin Streaming Server for streaming low-res clips compressed with x264 and NeroAAC and hinted with MP4Box.
When i'm playing it with VLC player streaming works fine, as expected. When i'm trying to open URL with my HTC Hero, it switches to player mode, the...
The table "credentials" does show up in the adb shell. I've checked logcat and it doesn't seem to report a problem...
private static final String DATABASE_CREATE =
"create table credentials (_id integer primary key autoincrement, "
+ "username text not null, password text not null, "
+ "lastup...
hi,
i have a Cliq and a MyTouch phone. i am writing a game that requires a fire button. on the cliq, it's the center of the D-Pad, and on the MyTouch, the scroll ball. i am handling the onKeyDown events via a separate thread. it all works until i press the button too many times, meaning the key down event is no longer fired off. if...
I guess many people already read this article:
Using your own SQLite database in Android applications: http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-2/#comment-12368
However it's keep bringing IOException at
while ((length = myInput.read(buffer))>0){
myOutput.write(buffer, 0, l...