[android-developers] Dev phone manual?

2009-01-17 Thread howa
Hi, Received the Dev phone, which come with no manual. Sure I can download G1 manual from tmobile... but wait..I am talking the manual for Dev phone. E.g. Dev phone do not lock the boot loader, so are there any manual / document teach me how to play with the boot loader?

[android-developers] Questions related to IP addresses on Android

2009-01-17 Thread Tez
Hi, I have a few questions regarding IP addrs 1. When a device acquires an internet data connection, it obtains its own IP addr, right? 2. How do I obtain this IP when i'm running the emulator? I've tried using the InetAddress class of java.net, but i get 127.0.0.1 as the IP, What i want is

[android-developers] Questions related to IP addresses on Android

2009-01-17 Thread Tez
Hi, I have a few questions regarding IP addrs 1. When a device acquires an internet data connection, it obtains its own IP addr, right? 2. How do I obtain this IP when i'm running the emulator? I've tried using the InetAddress class of java.net, but i get 127.0.0.1 as the IP, What i want is

[android-developers] Re: Android Emulator does not receive Location Mock Data

2009-01-17 Thread discostu
Solved: Changed number-formats in Windows XP to English (United States) On 11 Jan., 15:05, discostu c.neumuel...@gmail.com wrote: Hi, I am trying to use location data in my android application and since I don't have a hardware device I try to feed the emulator with some mock- data by using

[android-developers] Re: Questions related to IP addresses on Android

2009-01-17 Thread Al Sutton
Are you aware that IP address obtained by a device may not be accessible from the internet, so although it gets an IP there's little point in using the IP for anything? When I'm on T-Mobiles network the IP address I get is behind their infrastructure and they don't allow incoming connections

[android-developers] Re: Questions related to IP addresses on Android

2009-01-17 Thread Freepine
According to Android's documentation, the emulated device's own network/ethernet interface 10.0.2.15.You might want to take a look at http://code.google.com/intl/zh-CN/android/reference/emulator.html#emulatornetworking On Sat, Jan 17, 2009 at 4:43 PM, Tez earlencefe...@gmail.com wrote: Hi, I

[android-developers] Re: Transferring a file between emulator instances

2009-01-17 Thread Freepine
So simply adb pull from one emulator instance and adb push to another doesn't fulfill your requirements? Just out of curiosity:) On Sat, Jan 17, 2009 at 3:15 PM, Tez earlencefe...@gmail.com wrote: Hi, I wanted to transfer a file stored on the sdcard of one emulator to another emulator

[android-developers] mono on android

2009-01-17 Thread mathiastck
Anyone got any information on the mono download on the app market? It listed a homepage that is tough to recall and enter on this g1. Googling for android mono led to a good but closed thread in this group. Oddly the user's are commenting that he giant size of the mono app forces some cleanup

[android-developers] K9mail-errors : host is unresolved : mail.gmail.com:80

2009-01-17 Thread jalandar
When I send file using K9, It Gives K9mail-errors : host is unresolved : mail.gmail.com:80 k9mail internal I am using WebDav(Exchange Account); POP3 amd IMAP are not working. why this is so? --~--~-~--~~~---~--~~ You

[android-developers] error in creating account on email client

2009-01-17 Thread jalandar
When try to add account on email client, It gives errors By using POP3, it gives error : cannot connect to server.(unable to open connection to pop server) And when I try using IMAP, it gives error : cannot connect to server (unable to connect) It gives same error for k9 client, But I can

[android-developers] K9mail-errors

2009-01-17 Thread jalandar
k9 error It Gives K9mail-errors :chunked stream ended unexpectedly k9mail internal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Emulator Browser gives error secure connection could not be established

2009-01-17 Thread jalandar
emulator browser gives error secure connection could not be established is it the case that emulator browser don't have certificates, is there any other reason, will anybody clear me. The browser is not working for non-secure connection too it gives error : Data Connectivity Problem : The

[android-developers] Re: Transferring a file between emulator instances

2009-01-17 Thread Tez
Hi, Thats not what i had in mind. I want to establish a TCP connection between two devices and then stream the contents of the file. cheers, Earlence On Jan 17, 2:50 pm, Freepine freep...@gmail.com wrote: So simply adb pull from one emulator instance and adb push to another doesn't fulfill

[android-developers] TCP connections

2009-01-17 Thread Tez
Hi, I want to setup a TCP connection between two devices running the Android OS. Is this possible, If so, please tell me how to accomplish it. Cheers, Earlence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Hypotheses for why I can't find a ContentProvider

2009-01-17 Thread Jean-Baptiste Queru
I'd recommend putting the full class name (including the full package name) in the android:name attribute. I don't know if that's it, but it can't hurt. JBQ On Fri, Jan 16, 2009 at 11:30 PM, Tim Bray timb...@gmail.com wrote: I've written a ContentProvider, stealing heavily from

[android-developers] P2P Android

2009-01-17 Thread Tez
Hi, I want to establish a p2p connection between 2 android devices. Is this possible. If yes, how can i do it? Cheers, Earlence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Recognising when an app is closed

2009-01-17 Thread mscwd01
I may just be overlooking something blatently obvious here but this seems to be alluding me... I have an app which routinely contacts my server requesting updates (small amounts of data). Whilst the user is using my app I wish this updating to continue, however when the app closes (i.e. the home

[android-developers] Re: P2P Android

2009-01-17 Thread mscwd01
Im guessing you'll need a central server with which to relay files between. I dont believe phones have unique IPs which you can directly access from phone to phone - its been a while since I checked though, maybe someone else can confirm this? On Jan 17, 12:55 pm, Tez earlencefe...@gmail.com

[android-developers] Re: P2P Android

2009-01-17 Thread Mark Murphy
Tez wrote: I want to establish a p2p connection between 2 android devices. Is this possible. If yes, how can i do it? 1. Please don't cross-post to multiple lists at once. 2. Find yourself a Java P2P toolkit (e.g., JXTA) and start from there. -- Mark Murphy (a Commons Guy)

[android-developers] Re: Recognising when an app is closed

2009-01-17 Thread Mark Murphy
mscwd01 wrote: I may just be overlooking something blatently obvious here but this seems to be alluding me... I have an app which routinely contacts my server requesting updates (small amounts of data). Whilst the user is using my app I wish this updating to continue, however when the app

[android-developers] Re: How to handle orientation changing of VideoView/MediaPlayer?

2009-01-17 Thread Mark Murphy
Urakagi wrote: Hi, I'm writting a Video Player, and I wonder how can I handle orientation changing of VideoView/MediaPlayer. I wrote it without special issues, then it always restart when orientation changes since Activity is destroyed and recreated. But the App Video Player can rotate

[android-developers] Re: Recognising when an app is closed

2009-01-17 Thread mscwd01
Isn't onPause() called when one Activity calls another too? I want to know when an entire Activity has lost focus, if I use onPause () in an Activity which calls another, when the other Activity has started the initiating Activity's onPause() method is called. On Jan 17, 1:03 pm, Mark Murphy

[android-developers] How to make my application know where I am, in country level.

2009-01-17 Thread magicpig
Hi, I am wondering if there is such API that provides my current location, in country level, such as I am in Japan. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: mono on android

2009-01-17 Thread Mark Murphy
mathiastck wrote: Anyone got any information on the mono download on the app market? It listed a homepage that is tough to recall and enter on this g1. Googling for android mono led to a good but closed thread in this group. There's this: http://tirania.org/blog/archive/2009/Jan-05-1.html

[android-developers] what is what is imap server name for WebDav(Exchange)account.

2009-01-17 Thread jalandar
I am using android's email client, what is what is imap server name for WebDav(Exchange)account. I am not able add account using IMAP and POP, so I am adding using WebDav(Exchange)account which is third option. --~--~-~--~~~---~--~~ You received this message

[android-developers] Viewing G1's data folder (via DDMS)

2009-01-17 Thread GiladH
Hi, I fail to to view the content of my G1's data folder via the DDMS console. In fact - the DDMS will not even allow me to expand data folder. No problems in viewing the content of the other two folders: sdcard system. BTW the reason I'm interested in data folder is to view an ANR file (log

[android-developers] k9mail-error ssl hand shake failure : failure in SSL library

2009-01-17 Thread jalandar
I am composing mail using k9 client, using webdav (Exchange)account, the k9mail-errors are : ssl hand shake failure : failure in SSL library I am not able to add account using pop and imap so I tried using webdav account it is getting added but giving above error. thank you

[android-developers] Re: Creating a JAR that contains references

2009-01-17 Thread stephen.lloyd.h...@googlemail.com
I'm not after resources from within another JAR, I have resources within my JAR that I want to use within my JAR so it's all self contained. If you have a look at Android.jar you'll see that there are indeed a number of images etc. under the resources folder. Why are they there if resources can't

[android-developers] Question about Java coding good practice - Inner classes

2009-01-17 Thread Juan David Trujillo C.
Hi guys! I have been reading some Java coding good practices and inner classes are an important subject. I know for a fact Inner classes are originally used to handle UI events (button clicks, keyboard type, etc.). I was wondering if variables to handle UI elements (EditText, Buttons,

[android-developers] setVerticalScrollBarEnabled( ) problem

2009-01-17 Thread EvgenyV
Hi all, I'm trying to set vertical scrollbar programmatically. But get following error stack on creation: 01-17 13:33:12.944: ERROR/AndroidRuntime(464): java.lang.NullPointerException 01-17 13:33:12.944: ERROR/AndroidRuntime(464): at android.view.View.onDrawScrollBars(View.java:4684) 01-17

[android-developers] Stackable Tabs?

2009-01-17 Thread Timothy DeWees
I'm developing an application and I have a need to have around 6 tabs. Currently, I can only fit about 5 before it starts to wrap the text and make it look really ugly. Is there a way to have two rows of tabs and possibly make it so they don't take up so much vertical screen resolution?

[android-developers] Re: Recognising when an app is closed

2009-01-17 Thread Mark Murphy
mscwd01 wrote: Isn't onPause() called when one Activity calls another too? Sure. I want to know when an entire Activity has lost focus, What is an entire Activity? if I use onPause () in an Activity which calls another, when the other Activity has started the initiating Activity's

[android-developers] Re: orange in R.color ?

2009-01-17 Thread android_soft
getBaseContext().getResources().getDrawable (android.R.drawable.list_selector_background) On Jan 17, 2:49 am, gsmd gsm...@gmail.com wrote: Thanks! Could you plz suggest how to dynamically set TextView background to orange? Googling for setCompoundDrawables doesn't lead to any solution. TIA.

[android-developers] Re: ProgressBar in Webview

2009-01-17 Thread Fred Grott(shareme)
Do you mean load progress rotating image and once the page loads it disappears? On Jan 16, 4:29 pm, Chris Chiappone chiapp...@gmail.com wrote: Is there an easy way to show a indeterminate progressBar ontop of a webview.  I can create a progress bar but the webview shows up below it. Thanks

[android-developers] Re: Recognising when an app is closed

2009-01-17 Thread mscwd01
Okay, I'll have to opt for the stop/start approach each time you switch from Activity to Activity - its not a very elegant solution though. Im suprised theres not a whole application has lost focus.onPause(). On Jan 17, 3:27 pm, Mark Murphy mmur...@commonsware.com wrote: mscwd01 wrote:

[android-developers] WebView as a child of an ExpandableList - Possible?

2009-01-17 Thread mscwd01
As the title asks - Is it possible to place a WebView inside an expandable list (as a child). I have tested this; having created a WebView I placed it as a View in the getChildView() of the BaseExpandableListAdapter Class. However I get the following error: java.lang.ClassCastException:

[android-developers] Re: Stackable Tabs?

2009-01-17 Thread mscwd01
I dont think it is possible with the current SDK, the problem is people have to select the tabs by touch and not by relying on a stylus or other small pointing device. Likewise you need to make sure the tabs are big enough to select on a real device, the emulator appears bigger on screen and you

[android-developers] Re: Recognising when an app is closed

2009-01-17 Thread Al
Wouldn't onStop() be a better solution since it gets called when the app is no longer in focus? From the doc: Called when the activity is no longer visible to the user, because another activity has been resumed and is covering this one. This may happen either because a new activity is being

[android-developers] Re: K9mail-errors : host is unresolved : mail.gmail.com:80

2009-01-17 Thread Al
mail.gmail.com isn't a valid subdomain: From nslookup: ** server can't find mail.gmail.com: NXDOMAIN To set up IMAP, see https://mail.google.com/support/bin/answer.py?hl=enanswer=78799, I don't think gmail supports WebDav. On Jan 17, 10:46 am, jalandar jagtap...@gmail.com wrote: When I send

[android-developers] Re: Stackable Tabs?

2009-01-17 Thread Mark Murphy
mscwd01 wrote: If there is such a StackedTab view out there it would be helpful, dont know how it would be implemented though... ViewFlipper might be a good starting point for creating one. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-17 Thread gymshoe
I have noted the following discrepancies compared to the descriptions here, using a similar, simple application which uses Gallery, and BitmapFactory: 1) EboMike, How exactly do I run the application without a debugger attached? I assume that closing Eclipse entirely, and launching a new

[android-developers] Re: Question about Java coding good practice - Inner classes

2009-01-17 Thread Inderjeet Singh
I have used Inner and anonymous classes quite a bit and they work as well as they do for desktop applications. I even leave them as Inner classes as opposed to static nested classes since you often have to use instance data in making decisions. Inder On Sat, Jan 17, 2009 at 6:15 AM, Juan David

[android-developers] totally confused about how to change the layout of a button at runtime

2009-01-17 Thread Mark Nuetzmann
ok, this should be super simple but it is proving difficult. In my original layout xml I have 2 buttons that I want to take up equal space in a LinearLayout LinearLayout android:orientation=horizontal android:layout_width=fill_parent

[android-developers] Re: WebView as a child of an ExpandableList - Possible?

2009-01-17 Thread mscwd01
Okay, after playing around I have been able to get a WebView to display as a child view within the expandable list, however... When you scroll the list up or down the list is not repainted correctly, unlike normal child views the WebView doesn't seem to scroll with the rest of the list and

[android-developers] onTouchEvent in MapActivity

2009-01-17 Thread fala70
I am trying to catch onTouchEvent on MapActivity. I overwritten the method but it isn't never fired. Why ?. I need to find the location lat. and long. for show add new marker when the user tap on map. public boolean onTouchEvent(MotionEvent event){ super.onTouchEvent(event);

[android-developers] displaying a line shape as a gradient

2009-01-17 Thread Mark Nuetzmann
I am using the following drawable to draw a line shape xmlns:android=http://schemas.android.com/apk/res/android; android:shape=line stroke android:width=1dp android:color=#FFC0C0C0 / size android:height=5dp / /shape displayed in the layout using, ImageView

[android-developers] Re: Why Android?

2009-01-17 Thread Jon Smith
Thankyou, this is very useful :) Anyone else? On 16 Jan, 20:46, hmmm akul...@mail.ru wrote: I did some programming in Symbian and now I'm doing some Android stuff and for me Android is much easier in comparison with Symbian. This is because Symbian has some real weird limitations and some

[android-developers] Re: Viewing G1's data folder (via DDMS)

2009-01-17 Thread Joel Knighton
Any reason you couldn't do an ./adb pull /data/anr/traces.txt ~/traces.txt? (modify for windows if necessary) On Sat, Jan 17, 2009 at 7:26 AM, GiladH gila...@gmail.com wrote: Hi, I fail to to view the content of my G1's data folder via the DDMS console. In fact - the DDMS will not even

[android-developers] Re: Media Player surprises me!

2009-01-17 Thread Ninad
Anyone can give answer to my problem! Help me!!! M still stuck on this issue... On Dec 27 2008, 11:36 pm, Ninad mnina...@gmail.com wrote: well yes. I am using two seperate threads. One  for Media Player. The code is pretty simple one to prepare and then start the Media Player.. In the

[android-developers] Re: Viewing G1's data folder (via DDMS)

2009-01-17 Thread blake
You can do this with adb. It's a freaking nuisance, however, that the eclipse plugin doesn't work. I noted this problem, too, in this forum, a couple days ago. I'm guessing that the plugin doesn't do an su, as it must, to see the device. -blake On Jan 17, 9:56 am, Joel Knighton

[android-developers] Re: WebView html form POST problem

2009-01-17 Thread ArtJin
Hi, Fred. Thanks for reply. Page loads inside current Activity. It does not open new browser window ( this is exactly what I wanted it to do ). Basically, its like implementing your own browser - everything is handled by WebView inside my app. My problem is that WebView does not make POST request

[android-developers] Find loaded activity - question

2009-01-17 Thread EvgenyV
Hi all! I have some tab activity A which is application main activity. From one of the TabSpec's I'm opening other separate activity B. B not hosted inside my tab host. B is openening activity C etc. How can I find and back to already loaded tab activity A and show it? Thanks

[android-developers] Survey type of application

2009-01-17 Thread automerc
Hello, I am currently trying to develop a survey type android application. I want the application to ask a user a series of question with either multiple choice answers or type in answers one at a time. After the user gives a answer, he/she could click on a next button for the next question. This

[android-developers] Re: setVerticalScrollBarEnabled( ) problem

2009-01-17 Thread Evgeny V
The scroll bar of view is not a reason of exception. The app failed when i'm trying to change orientation. On Sat, Jan 17, 2009 at 4:27 PM, EvgenyV evgen...@gmail.com wrote: Hi all, I'm trying to set vertical scrollbar programmatically. But get following error stack on creation: 01-17

[android-developers] RotateAnimation, pivoting about the center

2009-01-17 Thread Mark Murphy
I have a 21x21 pixel image that I would like to animate about the center of the image. I would think that this would be correct: new RotateAnimation(0f, 360f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); Since that appears

[android-developers] Re: setVerticalScrollBarEnabled( ) problem

2009-01-17 Thread Evgeny V
Found the problem when exception raised on change orientation. The scrollview hosted on static tab host. Tab host threw exception after orientation change. But still exist the original scroll problem. On Sat, Jan 17, 2009 at 10:01 PM, Evgeny V evgen...@gmail.com wrote: The scroll bar of view

[android-developers] Re: Dev phone manual?

2009-01-17 Thread Disconnect
http://andblogs.net/fastboot/ On Sat, Jan 17, 2009 at 3:16 AM, howa howac...@gmail.com wrote: Hi, Received the Dev phone, which come with no manual. Sure I can download G1 manual from tmobile... but wait..I am talking the manual for Dev phone. E.g. Dev phone do not lock the boot

[android-developers] Re: RotateAnimation, pivoting about the center

2009-01-17 Thread skink
Mark Murphy napisał(a): I have a 21x21 pixel image that I would like to animate about the center of the image. I would think that this would be correct: new RotateAnimation(0f, 360f, Animation.RELATIVE_TO_SELF, 0.5f,

[android-developers] Re: RotateAnimation, pivoting about the center

2009-01-17 Thread skink
also what is your after calling ctor looks like? somethig like this? View v = obtain_view_of_interest(); Animation animation = your ctor here animation.setDuration(1000); v.startAnimation(animation); --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-17 Thread EboMike
Hey gym, 1) You don't have to go that far. No need to close or reset anything, simply run the app from within the emulator (obviously, you need to update it via adb install -r or something if you changed it). It will show up in the process list in the DDMS, but you'll see that it doesn't have

[android-developers] Re: What's wrong with this broadcast receiver?

2009-01-17 Thread Massimo Barbera
...hey, that is strange... I have a wav file used to play a message in my project (under resource, drawable) if the file is deleted, the BOOT_COMPLETED event is correctly received... very strange... On 14 Gen, 22:16, Massimo Barbera massimobarb...@gmail.com wrote: Hi Moazzam, I do not get

[android-developers] Re: RotateAnimation, pivoting about the center

2009-01-17 Thread Mark Murphy
skink wrote: i tested RotateAnimation with params you provided and it works perfectly (i rotated LinearLayout). What is bad behaviour at your side? does it rotate at all? or rotates but with unknown pivot? Rotate with unknown pivot. If you're seeing a rotation around the center point of the

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-17 Thread gymshoe
Thanks for your comments. It is now clear that I was running without the debugger enabled in the first place. Therefore my OOM may have been related to the BitmapFactory.decodeFile(), instead of the gallery itself. So I tried enabling the debugger, but I do not see the gallery alone generate an

[android-developers] Re: Clearing the WebView cache

2009-01-17 Thread Nick
I have something like webView.setWebViewClient(new WebViewClient() { @Override public void onPageFinished(WebView view, String url) { webView.clearCache(true); } } On Jan 14, 4:06 pm, Beshoy odsl...@gmail.com wrote: Nick, I'm not quite understanding how you got this to

[android-developers] ListView/ListActivity limit items until last item reached, like in Android Market

2009-01-17 Thread Torgny
I want my ListView/ListActivity to only load a set amount of records-- let's say 20 out of 1000--but when the user flings/scrolls to the bottom of the list more records are loaded into the list and the user can continue scrolling? The Android Market and the Gmail app has this functionality. I

[android-developers] Re: Recognising when an app is closed

2009-01-17 Thread Dianne Hackborn
On Sat, Jan 17, 2009 at 8:13 AM, mscwd01 mscw...@gmail.com wrote: Im suprised theres not a whole application has lost focus.onPause(). Well in Android there isn't really a strong concept of an application in general. For example, when the user clicks on a button to pick an image for something

[android-developers] File Transfer code

2009-01-17 Thread Tez
Hi, I want to transfer the contents of a file over the network from one device to another programmatically. How can this be done? Cheers, Earlence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Anybody know the status about running Jxta ME/SE on Android

2009-01-17 Thread Tez
Hi, Have you made any progress on the JXTA front, because even I am interested in developing a p2p app for android. Cheers, Earlence On Dec 8 2008, 1:51 am, windstorm likunarmstr...@gmail.com wrote: Hi all We are using JXTA to develop a P2P application on HTC Diamond based on WM6.0, and we

[android-developers] XMPP file Transfer

2009-01-17 Thread Tez
Hi, Has anyone accomplished a file transfer using the XMPP smack port by davanum? Cheers, Earlence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to