[android-developers] How to use GridView ?

2008-11-06 Thread Prashant
hi all, i want to design Grid View in which i can add different type of views like WebView, ImageView . is it possible? and if yes how to do that? thanks in advance, Prashant --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[android-developers] Re: how to kill activity in android

2008-11-06 Thread hackbod
You can do it programmatically in your app with I believe Process.killSelf(). You can do it from the shell by using ps to get the pid of your process and then using the kill command on that, however this will only work in the emulator where you can get a root shell. On Nov 6, 6:02 pm, forrestxu

[android-developers] Connect via USB resets prefs

2008-11-06 Thread Eric B
I wrote an app, GReader Notifier (http://www.ebessette.com/d/ greadernotifier), that I've published to the Market. However, every time someone connects their G1 to their computer via USB, the preferences get reset, which basically stops the application from working as users expect. One user repo

[android-developers] Re: Follow this procedure to get the Map as earlier

2008-11-06 Thread [EMAIL PROTECTED]
GUS: You need update your sdk to at least 1.0rc1. -- Fred --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubs

[android-developers] Re: Proper way of handling orientation change + async thread

2008-11-06 Thread Kyle
Does anyone have anymore examples of handling this? I've been trying everything including zl25drexel's workaround and I've had no luck. I tried dismissing the dialog in my onDestory() method and then used onRestoreState() to redisplay the dialog but it still never gets dismissed. Any help would be

[android-developers] pass data between activities

2008-11-06 Thread andrex
Hi guys it's me again. I would like some help whit a little problem., I can't recovery the value of the activity that i call. Look the follow code. Manifest Main class prueba how extends of mapActivity this is the way what I call the actvi

[android-developers] Re: Android on device GPS locate not working - code included

2008-11-06 Thread Amir
OK Android enthusiasts...here's where the GPS story has led us. We figured out after hard-coding a location via finding latitude and longitude of my house that the application via the G1 does in-fact communicate flawlessly with our website. The issue though is turning on GPS capabilities on the

[android-developers] Garbage Collection monitoring

2008-11-06 Thread [EMAIL PROTECTED]
while we're developing an application, some time the program flow would be lag, and we found that the lag is happening while GC is running. and sometime we figure out that GC is running frequently is there any tool to monitoring or profiling where the garbage coming from. what package, what c

[android-developers] Re: how to kill activity in android

2008-11-06 Thread brs
On Nov 6, 9:02 pm, forrestxu <[EMAIL PROTECTED]> wrote: > Hi, > > I have question. For test purpose, I want to kill an activity of an > android application when it is paused or stopped to simulate the > android system kill an activity when it is in low resource. > > How to it? > I don't think t

[android-developers] Re: Where is the android.jar source

2008-11-06 Thread NY
thx~~ On 11月7日, 上午11时24分, "Evan JIANG" <[EMAIL PROTECTED]> wrote: > frameworks/base/core/java/android > > Regards, > Evan JIANG > > > > On Fri, Nov 7, 2008 at 11:22 AM, NY <[EMAIL PROTECTED]> wrote: > > > I visit git.source.android.com > > want to find the source of android.jar > > such as the pa

[android-developers] Re: TextView.SavedState example?

2008-11-06 Thread Craig
Yes, a static class, not a static variable - in my workaround (I wouldn't really call it a solution) my state object and its parent did not share state, but they both have the information to set the other's state. On Nov 6, 9:54 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > hackbod wrote: > > A st

[android-developers] Re: Where is the android.jar source

2008-11-06 Thread Evan JIANG
frameworks/base/core/java/android Regards, Evan JIANG On Fri, Nov 7, 2008 at 11:22 AM, NY <[EMAIL PROTECTED]> wrote: > > I visit git.source.android.com > want to find the source of android.jar > such as the package android.app, android.widget > but I can not find them > where are they? > thx > >

[android-developers] Where is the android.jar source

2008-11-06 Thread NY
I visit git.source.android.com want to find the source of android.jar such as the package android.app, android.widget but I can not find them where are they? thx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android

[android-developers] How can I set selection highlight in a ListActivity

2008-11-06 Thread NY
Such as I click the the first select item but I want to highlight the second and the third Can I do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email t

[android-developers] Button Resource Invalid?

2008-11-06 Thread joshbeck
Ok, I am trying to get a button to pop up. When I add : b.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { int z = 5; } Logcat tells me the resource is invalid. Code: b.setOnClickListener(new View.OnClickListener() {

[android-developers] Re: Recorder Audio

2008-11-06 Thread Dave
Audio recording support is a bit rough in 1.0. The AMR-NB file format is described here: http://www.ietf.org/rfc/rfc3267.txt It's just a simple header appended to the raw AMR stream. On Nov 4, 1:55 am, mesak82 <[EMAIL PROTECTED]> wrote: > I'm using Sound Recorder application and after recording

[android-developers] Re: AACPlus - Decoding a Stream? - Anyone Shoutcast?

2008-11-06 Thread Dave
The codecs are there. The issue is that ShoutCast doesn't use HTTP1.1 protocol for streaming. You could probably hack up a proxy to make it work though. Also, there is no support for extracting metadata tags from a live stream (for artist, title, etc). On Nov 4, 4:45 pm, Jona <[EMAIL PROTECTED]>

[android-developers] Re: TextView.SavedState example?

2008-11-06 Thread Mark Murphy
hackbod wrote: > A static variable is almost certainly not going to do what you want -- > one of the big reasons for all of this is to be able to restore state > if the process is killed, and if you are putting stuff in a static > variable then that will all go away with the process when it is > k

[android-developers] Re: android market publish button does not work

2008-11-06 Thread samlu
I had the same problem on IE. Please use Google's web browser or Firefox. It should be ok. Sam On Nov 7, 10:03 am, sori <[EMAIL PROTECTED]> wrote: > I finally got my application ready for distribution. > I filled up all fields in the market upload page, then pressed > "Publish" button. > There i

[android-developers] Re: how to evoke pv logger

2008-11-06 Thread Dave
To turn on PV logging, change extlibs/pv/oscl/pvlogger/src/pvlogger.h: /* Release mode-- No logging */ #define PVLOGGER_INST_LEVEL 0 Change this value to 5 and extlibs/pv/android/thread_init.cpp: #if 0- Change this value to 1 PVLoggerAppender *appender = new AndroidLogAppen

[android-developers] Using an autocomplete filled with information from a database query

2008-11-06 Thread Juan David Trujillo C.
Hi all!! I want to create an autocomplete that gets its information from a database query. I have a database method that returns the Cursor (with name, value and date fields) I need, but I dont know how to actually fill it, so it works as expected as the Contacts API demo: http://code.google.com

[android-developers] Re: Help: thread stuck with error "still suspended after undo (s=1 d=1)"

2008-11-06 Thread denismo
Thanks for the reply. I don't have the broken APK, I fixed it yesterday. If I remember correctly, it had something to do with Cursor.getLong being invoked after the Cursor has been closed. Or may be with ContentResolver.delete in the middle of traversal by Cursor. I couldn't realize - I just rewr

[android-developers] How to get the position of a specific element in a spinner based on the element's text

2008-11-06 Thread Juan David Trujillo C.
Hi guys! Does anyone know how to get the position of a specific element in a spinner based on the element's text: Example: Given the following Spinner: position element 0Blue 1Red 2Yellow 3Black 4Brown How do I get

[android-developers] Re: TextView.SavedState example?

2008-11-06 Thread hackbod
A static variable is almost certainly not going to do what you want -- one of the big reasons for all of this is to be able to restore state if the process is killed, and if you are putting stuff in a static variable then that will all go away with the process when it is killed. Unfortunately it

[android-developers] android market publish button does not work

2008-11-06 Thread sori
I finally got my application ready for distribution. I filled up all fields in the market upload page, then pressed "Publish" button. There is no reaction. No confirmation or no error message at all. Is this expected behavior or the server temporarily down? Please let me know if I miss anything

[android-developers] how to kill activity in android

2008-11-06 Thread forrestxu
Hi, I have question. For test purpose, I want to kill an activity of an android application when it is paused or stopped to simulate the android system kill an activity when it is in low resource. How to it? Regards, Forrest --~--~-~--~~~---~--~~ You received th

[android-developers] Re: Facebook notification app while we wait for a facebook app

2008-11-06 Thread Dan B.
The structure of Facebook makes that very difficult, applications have to request a private key from the Facebook server rather than using a normal login in order ro protect the account logins from hacking. Check out the Market app "Statisinator" to see what I mean. On Nov 6, 7:00 pm, DigiJeff <[

[android-developers] Re: Thread Question

2008-11-06 Thread joshbeck
First, thanks. I tried blocking the main thread, and quickly determined it wasn't a good idea. Didn't solve anything, but hey at least I know now. Here's what I'm working on: I have an application. It downloads a bunch of data and then loads that data into variables which are used to present the

[android-developers] Re: TextView.SavedState example?

2008-11-06 Thread Craig
I have a workaround, but if anyone figures this out I'd love to see it. I have an inner static Parcelable class in my View to hold the view state. From my Activity's onSaveInstanceState, I create that Parcelable using a ctor that takes that View, and on my Activity's onRestoreInstanceState I call

[android-developers] Facebook notification app while we wait for a facebook app

2008-11-06 Thread DigiJeff
Developers can someone please develop a simple facebook app that notifies us facebook users about new messages, wall posts etc? It really sucks going from a Blackberry Curve and losing my facebook app which notifies me about new facebook stuff. Facebook needs to stop being such snobs and create

[android-developers] Problem with viewing map in tabhost

2008-11-06 Thread Friso Kluit
Hi, I created an application that uses the TabHost to show 3 tabs, the tabs showing an AnalogClock (widget) and ListView are working, but the tab that should show the MapView returns an 'java.lang.VerifyError' when it is selected. The Api key provided is correct, it is based on the debug.keys

[android-developers] Re: TextView.SavedState example?

2008-11-06 Thread Craig
> Can you just skip chaining upward to the superclass? Unfortunately, no: 11-07 00:30:58.868: ERROR/AndroidRuntime(207): Caused by: java.lang.IllegalStateException: Derived class did not call super.onRestoreInstanceState() 11-07 00:30:58.868: ERROR/AndroidRuntime(207): at android.view.View.d

[android-developers] Re: Favorites list

2008-11-06 Thread Khaled Sliman
Oh I see, but is there a way to remove or add data to that list using the SDK, I think I got the adding data to list part, but removing it looks like a whole different story. On Thu, Nov 6, 2008 at 5:44 PM, Romain Guy <[EMAIL PROTECTED]> wrote: > > Because you don't have enough favorites. It will

[android-developers] Re: TextView.SavedState example?

2008-11-06 Thread Craig
> Can you just skip chaining upward to the superclass? Unfortunately, no: 11-07 00:30:58.868: ERROR/AndroidRuntime(207): Caused by: java.lang.IllegalStateException: Derived class did not call super.onRestoreInstanceState() 11-07 00:30:58.868: ERROR/AndroidRuntime(207): at android.view.View.d

[android-developers] Re: Need help using hat to track down memory usage

2008-11-06 Thread fadden
On Nov 5, 11:12 am, Disco Stu 010 <[EMAIL PROTECTED]> wrote: > java.io.IOException: Version string not recognized at byte 17 >         at hat.parser.HprofReader.readVersionHeader(HprofReader.java:325) >         at hat.parser.HprofReader.read(HprofReader.java:169) >         at hat.parser.Reader.rea

[android-developers] Re: Help: thread stuck with error "still suspended after undo (s=1 d=1)"

2008-11-06 Thread fadden
On Nov 6, 4:24 am, denismo <[EMAIL PROTECTED]> wrote: > LogCat continuously reports this error: > 11-06 12:20:57.999: DEBUG/dalvikvm(834): threadid=3: still suspended > after undo (s=1 d=1) There's a weird interaction between the VM and your debugger. The thread suspended itself and then waited

[android-developers] Re: Browser extensions i Java? YES, NO, Some?

2008-11-06 Thread Peli
I'd be happy if I was given at least a chance to take a glimpse at the xml document, and if it is not a feed, I'd be happy to return it back to the browser to let it display the raw xml file. But I see that this does not sound so straightforward using only intents, so probably this is a wish for

[android-developers] Use Bundle to Pass Bitmap

2008-11-06 Thread joshbeck
Is it possible to pass a bitmap between activities using a bundle? Thanks, Josh Beck --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers

[android-developers] Re: Intercept Call

2008-11-06 Thread CJ
i don't think that is going to happen. On Nov 6, 8:57 am, "BrunoZP.com" <[EMAIL PROTECTED]> wrote: > Hi, > > How can I intercept a user call, change it number and dial again ? > Any example code ?? > > For example: The user dial 32546048 and press send, my application get > this number, cancel th

[android-developers] Re: sdk activity life cycle picture inaccurate?

2008-11-06 Thread hackbod
You can use "adb logcat -b events" to see the event log for what the activity manager is doing to try to understand what is going on. Also "adb shell dumpsys activity" will show you the current state of the activity stack (at the top of the output). My guess is that you are getting a second inst

[android-developers] Re: adb shell permissions on real G1 device

2008-11-06 Thread hackbod
Unfortunately there is no way to get to app-private files from the shell in 1.0. You can create those files as word readable though. On Nov 6, 11:18 am, "Bradley Kite" <[EMAIL PROTECTED]> wrote: > Hi there, > > Yes there is a reason. I'm working on an application that requires > wifi access and

[android-developers] Re: Extend a EditText to create an editable view performing operation onKeyDown

2008-11-06 Thread hackbod
You need to implement the constructor used for inflating from XML -- look at the View constructors for the appropriate one. Also generally this kind of thing is better done by attaching listeners (of which TextView offers a whole host) rather than subclassing. On Nov 6, 11:38 am, polo777 <[EMAIL

[android-developers] Re: How to set up as a straight vertical display

2008-11-06 Thread hackbod
Fwiw, if this is a constant value, it is better to set it in your manifest with android:screenOrientation. On Nov 6, 12:20 am, songs <[EMAIL PROTECTED]> wrote: > You probably want to put the following in your activity's onCreate: > >    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORT

[android-developers] Re: Favorites list

2008-11-06 Thread Romain Guy
Because you don't have enough favorites. It will get better and more refined over time. On Thu, Nov 6, 2008 at 1:53 PM, Khaled Sliman <[EMAIL PROTECTED]> wrote: > Yeah but if you call some one even once, the go in the favorites list, or I > am I missing something > > On Wed, Nov 5, 2008 at 10:28

[android-developers] G-cube?

2008-11-06 Thread hyc
Any other autocross/road-racing fans here? Does anyone remember the G- Tech or G-Cube accelerometers used to measure car performance? Would be really nice to have a program like this http://www1.pacific.edu/~j-lee10/Data%20Analysis.htm that can log the accelerometer data and plot a map of your

[android-developers] Re: Request for developers HTC G1 (T-Mobile) review

2008-11-06 Thread Eric
It seems unlikely that any information on skipping the firmware signature check will ever be released by HTC or Google, since that would defeat the purpose of the signature check. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[android-developers] Re: Favorites list

2008-11-06 Thread Khaled Sliman
Yeah but if you call some one even once, the go in the favorites list, or I am I missing something On Wed, Nov 5, 2008 at 10:28 PM, Romain Guy <[EMAIL PROTECTED]> wrote: > > The favorites list does not contain the name of all people you > call/that call you. It contains the name of the people you

[android-developers] Re: "hooking" to the PHONE button

2008-11-06 Thread Declan Shanaghy
Now you're just arguing semantics. I never said he could steal it, that would be quite a stupid thing for the OS to allow. Registering for that Intent allows him to do what he wants in the context of when he is allowed to do it. Therefore it answers his question (or at least gets him as close as h

[android-developers] problem obtaining android source from windows/cygwin

2008-11-06 Thread dreamerBoy
bash-3.2$ /cygdrive/c/myRepo/repo init -u git://android.git.kernel.org/platform /manifest.git Traceback (most recent call last): File "/cygdrive/c/myRepo/repo", line 587, in main(sys.argv[1:]) File "/cygdrive/c/myRepo/repo", line 554, in main _Init(args) File "/cygdrive/c/myRepo/rep

[android-developers] Re: How to use WSDL web service in Android

2008-11-06 Thread opengl es
Hi, I use KSOAP2 (you'll find more about KSOAP2 in forums/groups etc..) It works great once you know how to deal with XSD and namespaces and KvmSerializable here is what i do: private static final String SOAP_ACTION = "MyMethod"; private static final String METHOD_NAME = "MyMethod"; pr

[android-developers] Re: Thread Question

2008-11-06 Thread Guillaume Perrot
You should not use the following in your case but there is a simple way to wait for a thread to complete, it's the Thread.join() function. This should be called only in a background thread which need to synchronize with another background thread for some reason. You should (i'd say must) never cal

[android-developers] Re: How to install software in the G1

2008-11-06 Thread HaleRazor
Yes, thanks Fish, I mistakenly said to run install when I should have said adb -install... On Nov 6, 10:57 am, "Fish Kungfu" <[EMAIL PROTECTED]> wrote: > To install a compiled .apk file, you can just use the "adb" command.  It's > explained here in the "Running an Android Application" about midwa

[android-developers] Extend a EditText to create an editable view performing operation onKeyDown

2008-11-06 Thread polo777
Hi Everyone, I am trying desperately to extend the EditText view to override onKeyDown. My goal is to create an EditText that will update UI elements each time the user will type one character within. The code is as simple as that: public class SearchView extends EditText { public Searc

[android-developers] Re: Question about View, Canvas, and Drawable.. --Basics

2008-11-06 Thread Mike Reed
Views - yes Canvas - you can create your own to draw into a bitmap, but views are handed a Canvas on their onDraw() method. For a given drawing pass, all of the views (usually) are handed the same Canvas (which points to the screen). However, on a subsetquent call to onDraw(), the actual

[android-developers] Re: Orientation change -> start Action/Service?

2008-11-06 Thread songs
Hi, Sorry, when I say flip, I mean flip the screen out and expose the keyboard. I thought about having a service/alarm that polls every second, but that seems like a big waste of battery and cpu cycles. Ideally, I'd like to register for an event that gets sent when the user pops the screen in an

[android-developers] Re: Check for new version of applications

2008-11-06 Thread Guillaume Perrot
Because we use a XMPP based application, we chosed Pubsub as a way to notify new versions to the user. The main advantage is that it uses a push model. The user is aware of a new version when he launches the app or in real time if he's online while a new version has just been released. No timer or

[android-developers] Re: Check for new version of applications

2008-11-06 Thread Guillaume Perrot
Because we use a XMPP base application, we chosed pubsub as a way to notify new versions to the user. The main advantage is that it uses a push model. We use the last published item feature and pubsub notifications, so the user is aware of a new version when he launches the app or in real time if

[android-developers] Re: fontspacint about drawText

2008-11-06 Thread Mike Reed
drawText only draws a single line, so vertical spacing is always done by the application/view (getFontSpacing returns suggested values for that). Horizontal spacing happens in several ways: - Paint.setTextScaleX() lets you apply a multiplier to all of the widths in the text (making it narr

[android-developers] Re: adb shell permissions on real G1 device

2008-11-06 Thread Bradley Kite
Hi there, Yes there is a reason. I'm working on an application that requires wifi access and cannot be used within the emulator. There must be a way around this? Regards -- Brad. On 06/11/2008, Michael <[EMAIL PROTECTED]> wrote: > > > That's pretty intentional. Is there some reason you can't

[android-developers] Re: Orientation change -> start Action/Service?

2008-11-06 Thread Michael
Oh. Well of course. Make your application be a background service that watches the sensor. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-dev

[android-developers] Re: Orientation change -> start Action/Service?

2008-11-06 Thread zl25drexel
are you looking ways to keep orientation? (sorry i just skim thru this thread). if so, take a look http://groups.google.com/group/android-developers/browse_thread/thread/471e2aa7ac113683/81f85746d018f4f3 On Nov 6, 1:10 pm, songs <[EMAIL PROTECTED]> wrote: > Those links were interesting, but again

[android-developers] Re: Browser extensions i Java? YES, NO, Some?

2008-11-06 Thread Michael
I would think that you WANT the browser to show those. Lots of sites use that mimetype because the browser will display it. It'd be better for you to find another solution to send these links at your application. I mean, a desktop browser works the same way as Android's does here. And install

[android-developers] Re: Improved support for camera on Android emulator.

2008-11-06 Thread [EMAIL PROTECTED]
The source for the Qualcomm camera has been released: http://review.source.android.com/1776 . The camera itself , and the functionality in the native interface are excellent, the problem is that very little of the available functionality is implemented in the Android 1.0 sdk. We are very intereste

[android-developers] Re: adb shell permissions on real G1 device

2008-11-06 Thread Michael
That's pretty intentional. Is there some reason you can't use the emulator for this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers

[android-developers] Re: How to set up as a straight vertical display

2008-11-06 Thread Kipling Inscore
It can also be done in AndroidManifest.xml there are a lot of existing discussions on this list answering this question. On Thu, Nov 6, 2008 at 5:15 AM, dailyLife <[EMAIL PROTECTED]> wrote: > Thanks a lot. > > > [EMAIL PROTECTED] > 2008年11月6日 > > - Original Message - > From: songs > To: An

[android-developers] Re: How to have 2 activities open in one Eclipse workspace?

2008-11-06 Thread DulcetTone
I fixed this. My fix was to trim the contents of the JAR file that Activity1's code (which Activity2 shared, in part) so that it excluded the res folder and AndroidManifest.xml. This was done during the export/jar process for Activity1's project. I resunc Activity2's project after created the sm

[android-developers] Re: A network status info question

2008-11-06 Thread redmapleleaf
Here is the stack trace: Thread [<3> main] (Suspended) ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord) line: 2138 ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord) line: 2156 ActivityThread.access$1800(ActivityThread, ActivityThread $Ac

[android-developers] Re: Orientation change -> start Action/Service?

2008-11-06 Thread songs
Those links were interesting, but again had to do with dealing with orientation in a running activity. The suggestions for detecting and setting the orientation were also for a running activity. What I'm looking for is for something that'll trigger the start of an activity based on an orientatio

[android-developers] Re: Problems with file permissions on actual G1 platform

2008-11-06 Thread Bradley Kite
Hi It seems quite sensible to have root access disabled by default when the devices ship, but is there really no way that it can be enabled again for the purposes of debugging etc? As owner of the device I feel I should be entitled to such a thing. Does any body know how? Any help will be much

[android-developers] How to have 2 activities open in one Eclipse workspace?

2008-11-06 Thread DulcetTone
I have 3 projects: Jarfile/ contains a bunch of Java classes that are put into a jar Activity1/ contains an activity (and an AndroidManifest.xml) Activity2/ contains a second activity (and an AndroidManifest.xml) When I try to build and debug Activity2, I get this error: [2008-11-06 12:39:11

[android-developers] Re: Problem with onActivityResult

2008-11-06 Thread Alvin Yates
Actually it's because of this line, which took me two days to figure out when I was doing it: In class A: ... btOk.setOnClickListener(new OnClickListener() { public void onClick(View v) { bus = new Intent(AndTeste.this, Buscador.class); ===

[android-developers] Re: Browser extensions i Java? YES, NO, Some?

2008-11-06 Thread Jean-Baptiste Queru
I'm not sure about the exact browser-side mechanisms at that specific level (I really only know the download side of things, but not how things get there). If nobody else comments, you might be able to get an answer in the source code. JBQ On Thu, Nov 6, 2008 at 8:59 AM, Peli <[EMAIL PROTECTED]>

[android-developers] Re: Notifications from file system

2008-11-06 Thread CJ
anybody has an example? On Sep 17, 5:02 pm, hackbod <[EMAIL PROTECTED]> wrote: > TheFileObserverclass allows you to monitor filesystem changes: > > http://code.google.com/android/reference/android/os/FileObserver.html > > It does need to be better documented, but it works. :) > > On Sep 17, 2:56

[android-developers] Article - Getting Started in Android Game Development

2008-11-06 Thread Robert Green
Thanks to everyone here for all their help getting Light Racer written! I decided to try to give back a bit of knowledge so I wrote this article on Android Game Development - http://www.rbgrn.net/blog/2008/11/getting-started-in-android-game-development.html For all the new and aspiring game deve

[android-developers] adb shell permissions on real G1 device

2008-11-06 Thread Bradley Kite
Hi there, I am trying to debug some things on a real G1 device, but the shell doesnt have the permissions to do what I'm trying. http://code.google.com/android/reference/adb.html#sqlite documents how to examine a database, however this is one of the things I cannot do on a real device. $ id id

[android-developers] Re: Browser extensions i Java? YES, NO, Some?

2008-11-06 Thread Peli
Is there a possibility to catch a generic "application/xml"? It seems this is displayed in the browser in raw format, and it does not try the ACTION_VIEW. Our application would like to handle rss feeds, which should have the mime type "application/rss+xml", and which we can catch through an inten

[android-developers] Re: How to install software in the G1

2008-11-06 Thread Fish Kungfu
To install a compiled .apk file, you can just use the "adb" command. It's explained here in the "Running an Android Application" about midways down: http://code.google.com/android/intro/develop-and-debug.html Cheers~~Fish~~ On Thu, Nov 6, 2008 at 9:49 AM, HaleRazor <[EMAIL PROTECTED]> wrote:

[android-developers] sdk activity life cycle picture inaccurate?

2008-11-06 Thread CJ
according to the picture, for an regular activity, if onstop is called and ondestory is not called, there are only two ways to go: oncreate or onrestart. which means, if oncreate is called, the PROCESS is killed. here is my application: the activity starts a thread that runs in th background. the

[android-developers] Re: How to detect when there is GPRS?

2008-11-06 Thread Jean-Baptiste Queru
You can listen to ConnectivityManager.CONNECTIVITY_ACTION broadcasts, or inspect the result of ConnectivityManager.getActiveNetworkInfo(). For the latter, get a ConnectivityManager object with (ConnectivityManager) Context.getSystemService(Context.CONNECTIVITY_SERVICE) JBQ On Thu, Nov 6, 2008 at

[android-developers] Re: Table layout?

2008-11-06 Thread roland
Hi, you can do it. Here is an example: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); AbsoluteLayout al = new AbsoluteLayout(this); LinearLayout topLayout = new LinearLayout(this); topLayout.setOrientation(LinearLayout.VER

[android-developers] Re: SSH to the G1 ?

2008-11-06 Thread Cezar Augustus Signori
need root access on the G1? http://modmygphone.com/forums/showthread.php?t=4351 Cheers, Cezar On Nov 6, 1:47 am, sjschultze <[EMAIL PROTECTED]> wrote: > This is what you > want:http://android.git.kernel.org/?p=platform/development.git;a=tree;f=ap... > > On Nov 1, 2:45 pm, Mark Murphy <[EMAIL P

[android-developers] How to detect when there is GPRS?

2008-11-06 Thread Breno
Hey fellows, i read in somewhere that is possible to do something (for example, start a service) when phone power up or do something when there is GPRS, or EDGE, or anything like that. I'm doing some tests here, and till now i'm just able to wake up my app when BOOT_COMPLETED. My question is

[android-developers] Re: INSTANT MESSAGING

2008-11-06 Thread Justin (Google Employee)
Thanks for taking the time to give feedback on Android, however, topics such as yours would be better directed to http://groups.google.com/group/android-discuss , the Android discussion group. This group is focused on Android application developers, not platform applications like the built-in IM c

[android-developers] Re: Mouse Gesture for Navigation?

2008-11-06 Thread joshv
Actually I've found the following works well: @Override public boolean dispatchTouchEvent(MotionEvent ev){ gd.onTouchEvent(ev); return super.dispatchTouchEvent(ev); } calling super.dispatchTouchEvent allows all of the other views to receive their events. For some reason,

[android-developers] Intercept Call

2008-11-06 Thread BrunoZP.com
Hi, How can I intercept a user call, change it number and dial again ? Any example code ?? For example: The user dial 32546048 and press send, my application get this number, cancel the dialing, change this number to 3*2*5*4*6*0*4*8* and then dial ! This needs to happen automatically, without t

[android-developers] Re: Bluetooth Availability? Timeframe?

2008-11-06 Thread ALD
Great question, we have a client requesting an app be ported to Android but it requires BT. No answers seem forthcoming to any of the other similar questions posted about BT timing in the groups either. A. On Nov 4, 10:25 pm, USAePay <[EMAIL PROTECTED]> wrote: > I am sure this issue has probab

[android-developers] How to use WSDL web service in Android

2008-11-06 Thread aviart1
I have simple WSDL web service file and added into project. Now I am trying to use WSDL web service through android class code, but not able to use it. Can anybody suggest how to import WSDL file in ANdroid, so that it can create auto classes for WSDL file and same can be used ion android main cl

[android-developers] Re: How to run AT Commands on Emulator

2008-11-06 Thread AlexZhang
SDK1.0 does not seem work with the option of -radio, but old SDK works! On Nov 3, 11:06 pm, "David Turner" <[EMAIL PROTECTED]> wrote: > try "emulator -help-radio" > > On Mon, Nov 3, 2008 at 9:52 AM, Abraham > <[EMAIL PROTECTED]>wrote: > > > > > HI All, > > > I would like to fine out if Android em

[android-developers] How to use WSDL web service in Android

2008-11-06 Thread Avinash Patil
I have simple WSDL web service file and added into project. Now I am trying to use WSDL web service through android class code, but not able to use it. Can anybody suggest how to import WSDL file in ANdroid, so that it can create auto classes for WSDL file and same can be used ion android main cla

[android-developers] Re: SSH to the G1 ?

2008-11-06 Thread sjschultze
This is what you want: http://android.git.kernel.org/?p=platform/development.git;a=tree;f=apps/Term On Nov 1, 2:45 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > SnolahC_FR wrote: > > How do you manage to use a console on THE PHONE ? > > AFAIK, you don't. Just because it has Linux under the cov

[android-developers] Re: How to install software in the G1

2008-11-06 Thread HaleRazor
First, you have to sign the .apk: http://code.google.com/android/devel/sign-publish.html After that is done, you will use the command line install that comes with the SDK. I think /? is the switch to get the command line params. I'm at work now and don't have the SDK installed here, so I'm not

[android-developers] INSTANT MESSAGING

2008-11-06 Thread theghost8800
The phone has everything I need except a good aim app. I bought the phone to replace a sidekick lx The aim needs "font size smaller" - to be able to view contacts easier(the android lets you see 3 onscreen so you need to scroll) "away message editing" - ability to change status and give a summa

[android-developers] Creating tile view

2008-11-06 Thread Prashant
hi all, i m planning to create a view in which i want one tile view , within which i will need another four tile views, these innner tile view will contain images or controls, is it possible? thanks in advance, Prashant --~--~-~--~~~---~--~~ You received this me

[android-developers] An ANT Group of Taks for Emulator

2008-11-06 Thread Fred Grott(shareme)
Hello I am one of the often times jr contributors to Antenna ANT Tasks for MIDP developers, ie j2me midp. I am new here and may be working on new Android projects. I am thinking of doing a set of open source ANT Tasks for the Android emulator. How many developers would be interested in seeing

[android-developers] Re: Orientation change -> start Action/Service?

2008-11-06 Thread Michael
Or, just somewhere in your onCreate() for your activity, you can find out the current orientation (see getResources().getConfiguration().orientation ), and pick your Layout from there. You should also set android:screenOrientation="sensor" in your AndroidManifest.xml, if you want to be notified o

[android-developers] Compressed Camera Images

2008-11-06 Thread Alvin Yates
I'm taking pictures with the Camera using takePicture(null, null, myCallback), but taking pictures on the G1 gives me full 3.1M images every single time. I set the appropriate camera parameters in my onSurfaceChanged() method that is in the Activity, which I know is calling it as expected, but it

[android-developers] unable to see # in webview

2008-11-06 Thread vel
final WebView wv = (WebView) findViewById(R.id.msgs); wv.loadData( "#", "text/html", "utf-8"); nothing is displayed in the webview and once we try to load a # character other characters following it are also not displayed Pls any one can guide me why this weired behavior Regards V

[android-developers] Re: Can't return View derived class for BaseExpandableListAdapter? (used to work)

2008-11-06 Thread Mark Wyszomierski
Jason, thanks, that was exactly it, looks great now. On Nov 6, 12:07 am, "Jason Parekh" <[EMAIL PROTECTED]> wrote: > Hi Mark, > > The problem is when you do: > > >         mcv.setLayoutParams(new > > LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, > > LayoutParams.WRAP_CONTENT)); > > A view's

[android-developers] Re: A network status info question

2008-11-06 Thread szeldon
What kind of crash was it? Was it an exception? If so, what exception was it and what info it had? On Nov 6, 4:04 pm, redmapleleaf <[EMAIL PROTECTED]> wrote: > Hi all, > > would someone kind enough to let me know what I am doing wrong with > the following code. I would like to get the network stat

[android-developers] A network status info question

2008-11-06 Thread redmapleleaf
Hi all, would someone kind enough to let me know what I am doing wrong with the following code. I would like to get the network status using the ConnectionManager, but everytime I made call to it crashed: ConnectivityManager cm = ConnectivityManager)mActivity.getSystemService(m

  1   2   >