[android-beginners] Re: Battery Usage Indicator API - JDK 1.6

2009-10-04 Thread SagarH
Balwinder: Yup, I meant the Android SDK 1.6. The features for the SDK 1.6 lists an application-wise battery status. That's what I need an API for. Sagar Hatekar Graduate Student SUNY Binghamton On Sep 23, 4:10 pm, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: I assume you

[android-beginners] Re: How to receive callback when press and hold button for a longer time.

2009-10-04 Thread Alexander Kazanin
Now I see. I will suggest a following solution. Suppose we have an activity. Lets create a handler. Than add to our channel up button View.OnTouchListener. Each time user presses the button, we will increase channel number and send a message to handler with FIRST_DELAY delay time. And when user

[android-beginners] Re: Notepad Tutorial and sqlite3

2009-10-04 Thread gmseed
Hi Emre Thanks for your reply. I'll try your suggestion. Strange because on p540 of Conder Darcey's Android book they state: # sqlite3 /data/data/com.androidbook.PetTracker/databases/ pet_tracker.db with text ...to connect to the database we created so I just followed the same style.

[android-beginners] Re: Battery Usage Indicator API - JDK 1.6

2009-10-04 Thread Mark Murphy
The features for the SDK 1.6 lists an application-wise battery status. No, the features for Android 1.6 lists a Battery Usage Indicator application: http://developer.android.com/sdk/android-1.6-highlights.html That's what I need an API for. That information does not appear to be available

[android-beginners] Re: onCreate() and current tab

2009-10-04 Thread Mark Murphy
i have a tab host that saves the last selected tab into a preference, and loads it again in onCreate(). i add the tabs to the tab host through an intent, such as, mTabHost.addTab(mTabHost.newTabSpec(closest).setIndicator(Closest,

[android-beginners] Re: onCreate() and current tab

2009-10-04 Thread Jeffrey Blattman
thanks mark. my answer is what you'd expect. i thought it would make the app most modular. your approach would have been better. in retrospect, the use case for tabs as activities is probably only to allow someone to quickly stick an existing, stand alone activity in a tab. for some reason

[android-beginners] emulator + 1.6, cannot set location

2009-10-04 Thread Jeffrey Blattman
in 1.5, i could set a location into the emulator by telnet'ing to the emulator's port, and doing geo fix lng lat. since moving to 1.6 (and i'm on a new OS if that matters which i assume it doesn't), the telnet and command work fine but it doesn't appear that the emulator picks it up. when i do my

[android-beginners] Re: emulator + 1.6, cannot set location

2009-10-04 Thread Jeffrey Blattman
never mind. geo fix ... was working, but i had use network enabled on the emulator. if this is the case, it returns the network provider, which does not give a location (returns null from getLastKnown...). On Sun, Oct 4, 2009 at 7:00 AM, Jeffrey Blattman jeffrey.blatt...@gmail.com wrote: in

[android-beginners] Re: Notepad Tutorial and sqlite3

2009-10-04 Thread gmseed
Hi Emre Tried accessing the Notepad tutorial db and still get nothing?: ./adb -s emulator-5554 shell # sqlite3 /data/data/com.android.demo.notepad1.Notepadv1/databases/ notes SQLite version 3.5.9 Enter .help for instructions sqlite .tables sqlite .databases sqlite Graham On 3 Oct, 21:47, Emre

[android-beginners] Re: Battery Usage Indicator API - JDK 1.6

2009-10-04 Thread SagarH
Mark: Exactly, I meant the Battery Usage Indicator. Is that an application that's offered by default on the handset or it's an App. If it's an App, it should have an API. I am doing an academic project and I am really interested in getting in to the API for this. I am working on a Polyglot-based

[android-beginners] Re: Notepad Tutorial and sqlite3

2009-10-04 Thread gmseed
Hi Emre Eventually found the database!! I opened the Eclipse DDMS perspective and clicked on the File Explorer tab and tracked the database down under: /data/data/com.android.demo.notepad1/database/data which is not I would expect :-) If I now rerun sqlite via the adb shell I get: ./adb -s

[android-beginners] Re: Battery Usage Indicator API - JDK 1.6

2009-10-04 Thread Mark Murphy
Is that an application that's offered by default on the handset or it's an App. It is part of the operating system. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~

[android-beginners] Re: Battery Usage Indicator API - JDK 1.6

2009-10-04 Thread SagarH
Okay :( Any idea if how it shows the information. I was working on writing a similar application even before SDK 1.6 came out. API would have made my job easier. If there is no API, I would have to dig 1 layer deep and access the linux kernel which can show the processor info based on each

[android-beginners] Re: Battery Usage Indicator API - JDK 1.6

2009-10-04 Thread Mark Murphy
Okay :( Any idea if how it shows the information. I was working on writing a similar application even before SDK 1.6 came out. API would have made my job easier. If there is no API, I would have to dig 1 layer deep and access the linux kernel which can show the processor info based on

[android-beginners] Re: charting

2009-10-04 Thread vorcigernix
So, there is http://www.achartengine.org/ which can't be called fancy in any sense, but it is here and working. Creating platform without basic charting is really crazy imho. On Sep 21, 2:41 pm, vorcigernix vorciger...@gmail.com wrote: I don't need it now..but what I am really missing in sdk is

[android-beginners] Re: charting

2009-10-04 Thread Mark Murphy
Creating platform without basic charting is really crazy imho. Expecting charting libraries to be built into a mobile device platform, where firmware space is at a premium, is really crazy IMHO. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books:

[android-beginners] Icon and text on button

2009-10-04 Thread erisa
I cann ot seem to get an icon and text on a button using set drawables. The following code displays just the text; no icon. Any ideas? package com.example.hellodrawable; import android.app.Activity; import android.os.Bundle; import android.widget.Button; public class HelloDrawable extends

[android-beginners] Two-level lists?

2009-10-04 Thread erisa
I am struggling with the following problem. I need an activity that lists seven items, each corresponding to a day of the week. It should be scrollable. Each day item consists of a date heading and below that one or two items, call them tasks, each with an icon and text. Clicking on a task

[android-beginners] Re: Two-level lists?

2009-10-04 Thread Mark Murphy
I am struggling with the following problem. I need an activity that lists seven items, each corresponding to a day of the week. It should be scrollable. Each day item consists of a date heading and below that one or two items, call them tasks, each with an icon and text. Clicking on a

[android-beginners] Passing messages from BroadcastReceiver to Activity

2009-10-04 Thread Anders Feder
Hi, I'm developing an application with android.telephony.gsm that is supposed to process incoming SMS messages. I've figured out that I need to have a BroadcastReceiver for receiving the incoming messages. But how am I supposed to pass the received messages from the BroadcastReceiver and on to

[android-beginners] Re: Notepad Tutorial and sqlite3

2009-10-04 Thread Emre A. Yavuz
Hi Graham, I'm glad to hear that ... Good luck with the rest, Emre Date: Sun, 4 Oct 2009 08:16:43 -0700 Subject: [android-beginners] Re: Notepad Tutorial and sqlite3 From: gms...@gmail.com To: android-beginners@googlegroups.com Hi Emre Eventually found the database!!

[android-beginners] Re: Two-level lists?

2009-10-04 Thread erisa
Thanks Mark. I'll experiment with both, but the logic for #2 looks like it might be tricky. I assume in #1 that there is a way to eliminate any child group indicator (and the possibility of collapse as well) so I could get a clean list. BTW, by coincidence I just received your Programming

[android-beginners] Re: Sockets with Android.

2009-10-04 Thread Raphael
Look for the actual error in the logcat view (Eclipse) or adb logcat (command line). Also make sure you declared the INTERNET permission in your manifest. R/ On Fri, Oct 2, 2009 at 8:58 AM, Android_n00b nikhil...@gmail.com wrote: Hi I'm implementing a program which uses sockets to communicate

[android-beginners] Re: Icon and text on button

2009-10-04 Thread Raphael
Try using this one: http://d.android.com/reference/android/widget/TextView.html#setCompoundDrawablesWithIntrinsicBounds(android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable) or directly in xml: