Android: Tutorial on Custom View creation
Can anyone suggest a good tutorial about how to create custom view? ...
Can anyone suggest a good tutorial about how to create custom view? ...
hi all, i am working on tabactivity. i wanna show my tabwidget below the tabcontent(framelayout). i done it by setting the tabwiget tab attribute as android:gravity="bottom" but the framelayout cant align with those tabs. that is the tabs are shown at the bottom of the screen and overlap the framelayout how to do that? if set so...
Hi Friends, i want to do this exercise: i have one app like "helloworld.app". when user "longpress" of any key say "A".in short i want to create "shortcut key" for my app how can i set listener for it. please share if anyone come with it. ...
Hi, I'm planning to modify some bits in the platform/frameworks/base project in Android Donut r2. The modifications are very small and goes into java packages android.graphics and android.text (the API isn't affected). What jar libraries do I have to copy from the recompiled platform? the modifications are small and I don't want to rep...
In an Android device: Where is Email stored ? Please can anybody tell me? Thanx in Advance ...
So I just recently wrote a class that can get me the contact pictures from all versions of Android, ranging from 1.5 to 2.1 However, it does not work for HTC Hero. Can anyone help me getting the pictures from HTCs crappy contacts-app? Cheers, ...
in my app a background service starts and from that service i want to set Status bar notification, that the service has Started following is the code : Context context = getApplicationContext(); String ns = Context.NOTIFICATION_SERVICE; int icon = R.drawable.icon; CharSequence tickerText = "Hello"; long when = Syst...
At the moment I'm trying to build some integration tests for an android project. I would like to use the same apache http classes I use on the android. Which version is this and can I get a jar of that somewhere? Trying to use the jar that comes with android only resolves in Exceptions... But most of the tests won't need running them i...
Any one can share the mainfest.xml. How to set it? then can remove the label..? Thanks very much ...
I'm trying to authenticate to a web server from an android class with the org.apache.http.HttpClient. How can I do this? The code for my connection is: HttpClient httpClient = new DefaultHttpClient(); HttpGet httpGet = new HttpGet("url"); HttpResponse response = null; try { response = httpClient.execute(httpGet); } catch (Client...
I am just getting started with the Android SDK and I had a quick question. I am trying to set up a ListView with a rectangle of color on the left and then a bit of text for each row. I also want to make it so I can click each entry in the list and open a new activity to display some information (similar to the contact list). Anyone have ...
I want to create separate folders for my layouts, like this in my resource directory: layout-land layout-port this is ok, but this: layout-small-land layout-small-port or layout-land-small layout-port-small Results in: 'Invalid resource directory name' What gives? ...
When you createa a PreferenceScreen on Android, your application creates a default SharedPreferences file for the settings. I want to read this name, or get a reference without specifing the name. Currently I use: SharedPreferences prefs = ctx.getSharedPreferences("prefs", 0); SharedPreferences.Editor ed=prefs.edit(); But this return...
I have written a very simple game with some simple animations, but I've noticed that when the phone checks email, or several other apps are running, the animations that update in my thread start behaving slowly or choppy. This is a problem as the game mechanic requires some careful timing of your screen touches based on the animations. ...
Hi, I'm a new user to this interesting forum! I want start developing an application for android and before starting i want learn about some android features... The first android feature is how to correlate finger motion on the screen with java... Are there any source code examples that show how to draw with your finger on an and...
I'm showing an input box using AlertDialog. The EditText inside the dialog itself is automatically focused when I call AlertDialog.show(), but the soft keyboard is not automatically shown. How do I make the soft keyboard automatically show when the dialog is shown? (and there is no physical/hardware keyboard). Similar to how when I pres...
I just switched the way my Android project is being built and non of my unit tests work any more...I get errors like WARN/dalvikvm(575): VFY: unable to resolve static field X in ..... WARN/dalvikvm(575): VFY: unable to find class referenced in signature These errors only come from my Unit Tests, where classes defined in it can't even...
I'm trying to create a shortcut on the home screen that, when pressed, will start a service instead of an activity. Is it possible? How? Thanks! ...
Is it possible to create an IntentFilter in android that matches ALL intents that are Broadcasted on the phone (perhaps by way of using a BroadcastReceiver)? I.E. the ones I see in ddms when I use the phone, under the ActivityManager tag? After digging through the documentation, and looking at the framework source, I am left to think it ...
Hi all, From our android app I launch Youtube app with the proper video id. This works well across all devices. On Nexus One the youtube app defaults to using low quality video. I have added &fmt=18 in the url (for eg: http://www.youtube.com/watch?v=NsjadfLYnD4&feature=youtube_gdata&fmt=18 , see this blog for details http://blog...