Re: [android-developers] web.loadUrl not working

2010-12-25 Thread Brad Gies
Cuil, Do a Google Search for WebChromeClient. There are some good tutorials out there. I have some code around that I can share if you need it, but I'm not at the right computer right now. Sincerely, Brad Gies --- Bistro

[android-developers] xml data best practise

2010-12-25 Thread Mystique
Hi, I'm working on a app that parse xml data from web. Is it better to download the entire xml file to a temp director and parse it or it is better to parse as stream to the memory? What is the common practice? Regards, CJ -- You received this message because you are subscribed to the Google

[android-developers] Re: Help with animation

2010-12-25 Thread Zsolt Vasvari
Thanks, Doug.I am basically trying to achieve the same effect that happens when you tap the More button on the new Market app when you want to see more of an apmp's description. Everything below the description slides down smoothly revealing the full text. On Dec 25, 11:52 am, Doug

[android-developers] Parse file located in sdcard

2010-12-25 Thread Mystique
Hi, Currently I am testing parsing file from /res: XmlResourceParser test = getResources().getXml(R.xml.test); If I want to parse from let say /sdcard/test/test.xml What statement do I use? Many Thanks, CJ -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Phones with Large Internal Storage EXTERNAL_CONTENT_URI

2010-12-25 Thread Tabman
Hi, Has anyone development experience with any of the following large internal storage phones: Nexus S http://www.google.com/phone/detail/nexus-s Droid 2 Global http://www.google.com/phone/detail/droid-2-global-by-motorola Samsung Captivate

[android-developers] Drawing text on a Bitmap (rather than Canvas)

2010-12-25 Thread MichaelF
Hi, I am drawing some text on a Canvas, and on a Bitmap, respectively: protected void onDraw(Canvas canvas) { canvas.drawText(Canvas text, 10, 10, mPaint); Canvas singleUseCanvas = new Canvas(); singleUseCanvas.setBitmap(mBitmap); singleUseCanvas.drawText(Bitmap text, 10, 30,

Re: [android-developers] Re: My game, what do you think help me out

2010-12-25 Thread brian purgert
Do you think I should tone the menus down or the ingame graphics down. Also what did you find hard about playing it. don't really regard the second level because its hard to beat then expected so ill update that tonight On Dec 25, 2010 1:38 AM, Brill Pappin br...@pappin.ca wrote: I found it a bit

Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)

2010-12-25 Thread Kostya Vasilyev
Since you mention magnification, and it looks like you are using the same mPaint object for both drawText calls, I guess you scale up the contents of singleUseCanvas to achive that. That's the reason for the roughness of text. Make sure you render text into singleUseCanvas at magnified

[android-developers] ImageView Problem

2010-12-25 Thread ricardocunha
Hi Everybody, I have a simple doubt but, I don´t understand what is happening. I have a simple ImageView over a Linear Layout: ImageView android:layout_height=wrap_content android:id=@+id/ LogImgTela android:layout_width=wrap_content/ImageView When I running this layout on a Activity the

Re: [android-developers] Database storage filling and securing

2010-12-25 Thread Marcin Orlowski
On 24 December 2010 13:32, Nikola nikola1...@gmail.com wrote: Hi, I have large amount of data that I should query and display to user. define what large really means 1) filling database (I would like to do it outside phone and just provided it somehow) webservice? 2) secure database so

Re: [android-developers] how to know email account is configured

2010-12-25 Thread Marcin Orlowski
On 23 December 2010 14:21, Sripati Misra sripati.mi...@gmail.com wrote: I have a problem in email client. My problem is how to know email account is configured or not programatically (Account is exist or not)? By trying to use given login/pass pair to authenticate with remote server. If it

[android-developers] Re: NullPointerException

2010-12-25 Thread DanH
No one's going to spend their time reading 204K of your code to help you find your bug, even if they **are** caught up in the Christmas Spirit. You need to distill down the problem somehow. Learning how to describe problems and concepts to others is an important part of your technical education

Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)

2010-12-25 Thread MichaelF
Thanks for your response, Kostya. No, the roughness is not only due to magnification, as the text appears rough even when drawn, unmodified, to the bitmap. Any idea on how to remedy that? Best, Michael -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Which JSON Parser is better

2010-12-25 Thread ko5tik
Built in JSON is adequate, but as every DOM-Kind of parser pretty memory consuming. Pull-Parser is really necessary. -- 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

Re: [android-developers] Re: repeating a set of animation sequentially

2010-12-25 Thread John Lussmyer
I've already found that RepeatMode/Count on an AnimationSet doesn't work. I may end up manually restarting it each time. It just seemed that having an AnimationSequence was a pretty obvious function. I'm surprised it doesn't exist yet. On Fri, Dec 24, 2010 at 11:31 PM, Doug beafd...@gmail.com

Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)

2010-12-25 Thread Kostya Vasilyev
I just tried drawing text to an off-screen bitmap, and it's absolutely perfect: http://xmages.net/storage/10/1/0/d/0/upload/6fe914a9.png In this screenshot, each WiFi router's SSID is drawn twice, top to bottom - first directly to the canvas given to onDraw(), then with an off-screen bitmap.

[android-developers] Re: Which JSON Parser is better

2010-12-25 Thread JP
Pull parsing is absolutely a favorite in mobile. While I agree with Jake, one thing to consider is a fundamental conceptual decision that is baked into the question whether to employ a tree parser or a streaming parser. Typically, this cannot be optimized away later, and may drive a fundamental

[android-developers] Re: how to clone application (Desk Clock) from Git tree that will work for API 7?

2010-12-25 Thread longingtoadopt.com
I realized that repo -b brings the branch and from $ git help clone found that it is passed through to git so this worked! $ git clone git://android.git.kernel.org/platform/packages/apps/DeskClock.git -b eclair Cloning into DeskClock... remote: Counting objects: 4270, done. remote: Compressing

Re: [android-developers] Re: how to clone application (Desk Clock) from Git tree that will work for API 7?

2010-12-25 Thread Kostya Vasilyev
Anil, You can also click snapshot in the web interface at http://android.git.kernel.org. This downloads the sources as a .tar.gz archive. -- Kostya 25.12.2010 20:39, longingtoadopt.com пишет: I realized that repo -b brings the branch and from $ git help clone found that it is passed

[android-developers] Is a Vertical Seekbar possible?

2010-12-25 Thread John Lussmyer
I'd like to have a Seekbar oriented vertically, but I can't figure out how to do it. Is it possible? -- 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 unsubscribe from

[android-developers] Re: Getting a strange MessageQueue warning w/ DefaultHttpClient in AsyncTask

2010-12-25 Thread Bret Foreman
I found the problem easily after a good night's rest. I was running the AsyncTask inside an IntentService. So the Service exits, thinking it is finished and the AsyncTask's handler goes away. Easy to fix. -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Is a Vertical Seekbar possible?

2010-12-25 Thread brian purgert
Are you sure there is not anything in the xml properties for that. On Dec 25, 2010 1:20 PM, John Lussmyer johnlussm...@gmail.com wrote: I'd like to have a Seekbar oriented vertically, but I can't figure out how to do it. Is it possible? -- You received this message because you are subscribed

Re: [android-developers] Is a Vertical Seekbar possible?

2010-12-25 Thread John Lussmyer
I've been looking, and haven't found anything yet. That's why I was asking. On Sat, Dec 25, 2010 at 10:49 AM, brian purgert brianpurge...@gmail.comwrote: Are you sure there is not anything in the xml properties for that. On Dec 25, 2010 1:20 PM, John Lussmyer johnlussm...@gmail.com wrote:

Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)

2010-12-25 Thread MichaelF
Hi again, I see. Indeed, drawBitmap produces very good results (although I can see a slight difference on my N1). The mess seems to be caused by drawBitmapMesh (even with the mesh vertices unchanged from the original ones). The result is as follows: http://i.imgur.com/pCqGT.png. And yes I am

Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)

2010-12-25 Thread MichaelF
Hi again, I see. Indeed, drawBitmap produces very good results (although I can see a difference on my N1 when using a very large font size). The mess seems to be caused by drawBitmapMesh (even with the mesh vertices unchanged from the original ones). The result is as follows:

[android-developers] Re: Designing TabHost

2010-12-25 Thread dannyr
Were you able to remove the bottom border of the TabWidget? Thanks. -- 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 unsubscribe from this group, send email to

[android-developers] InetAddress.isReachable

2010-12-25 Thread bc
Has anybody else had any problems using isReachable? boolean _blnStatus = InetAddress.getByName(localhost).isReachable(55000); I have tried unreasonable timeouts (55000 ms) and it never works? When I use localhost it returns true almost instantly. If I try an external host (one I know that is

[android-developers] Re: Which JSON Parser is better

2010-12-25 Thread Bob Kerns
Because objects in JSON are unordered (An object is an unordered set of name/value pairs.), a pull parser is going to have to work a bit differently. One way to make it work is to pass in a map of continuations, or an object or class with methods selected with reflection. However, I have

[android-developers] Re: NullPointerException

2010-12-25 Thread Bob Kerns
It is, no doubt, null! The question is -- why is it null? And the tool to answer the question is -- THE DEBUGGER! Not this group. The debugger can answer this question in seconds. It's been two days, and this group shows no sign of answering the question -- ever. So where should you focus your

Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)

2010-12-25 Thread Kostya Vasilyev
Michael, Interesting. I actually got curious about this. I added a call to drawBitmapMesh, stretching the first column (out of 4), and mapping the rest one to one. As you can see in this link, the bitmap is still perfect where it's not stretched.

[android-developers] Horizontal ScrollView

2010-12-25 Thread jotobjects
The docs for ScrollView indicate prominently that it only works vertically. Quote from class summary - ScrollView only supports vertical scrolling. But there seem to be properties for horizontal scroll bars. http://developer.android.com/reference/android/widget/ScrollView.html Does ScrollView

[android-developers] Re: Horizontal ScrollView

2010-12-25 Thread Bret Foreman
Use this: http://developer.android.com/reference/android/widget/HorizontalScrollView.html -- 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 unsubscribe from this

[android-developers] Re: Horizontal ScrollView

2010-12-25 Thread jotobjects
On Dec 25, 1:39 pm, Bret Foreman bret.fore...@gmail.com wrote: Use this:http://developer.android.com/reference/android/widget/HorizontalScrol... Thanks - I noticed HorizontalScrollView widget just after posting this question :-) The ScrollX and ScrollY attributes (and X and Y scrollbar

Re: [android-developers] Is a Vertical Seekbar possible?

2010-12-25 Thread Mark Murphy
I do not believe SeekBar operates vertically. On Sat, Dec 25, 2010 at 2:04 PM, John Lussmyer johnlussm...@gmail.com wrote: I've been looking, and haven't found anything yet.  That's why I was asking. On Sat, Dec 25, 2010 at 10:49 AM, brian purgert brianpurge...@gmail.com wrote: Are you sure

Re: [android-developers] Opera callbacks

2010-12-25 Thread Mark Murphy
I would recommend you try to find a way to use a WebView, for better control. Also, there is no Chrome in Android. I am assuming you are referring to the built-in browser (a.k.a., Browser). There is no documented and supported Intent pattern to force an Intent to go to the Browser app. On Fri,

Re: [android-developers] Re: Camera preview not restarting after picture taken

2010-12-25 Thread Mark Murphy
On Fri, Dec 24, 2010 at 3:18 AM, Stephen Lebed srle...@gmail.com wrote: I've looked at your code, thanks for the link.  In my app I'm using the new addcallbackwithbuffer and setpreviewcallbackwithbuffer methods. I'm using them to capture preview frames and process them.  I think there may be

[android-developers] Is there a Horizontal ListView?

2010-12-25 Thread jotobjects
There is apparently no horizontal ListView? Gallery widget comes really close except that it is stuck on keeping the selected item in the center. So you get the first item in the center with empty space on the left side of the window. That makes sense for that widget but it is not quite the

Re: [android-developers] Is there a Horizontal ListView?

2010-12-25 Thread Mark Murphy
On Sat, Dec 25, 2010 at 5:00 PM, jotobjects jotobje...@gmail.com wrote: There is apparently no horizontal ListView? Correct. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming

[android-developers] Re: How to detect when bluetooth is turned on by user?

2010-12-25 Thread martien huijsmans
Txs for the suggestion. I implemented a BroadcastReceiver that listens for state changes BluetoothAdapter.STATE_TURNING_OFF and BluetoothAdapter.STATE_ON and stop or starts my Bluetooth service. Everything works. On Dec 24, 11:38 am, Indicator Veritatis mej1...@yahoo.com wrote: Please

[android-developers] Re: Which JSON Parser is better

2010-12-25 Thread Brill Pappin
I think the thing to remember is that it's YAGNI until you have a case for changing it. Just use the Json package in the android sdk, until you find you need to change things for some reason. Your spending a lot if time worrying about something you likely don't need to worry about. Get coding and

[android-developers] Re: Which JSON Parser is better

2010-12-25 Thread DanH
Until you get up to **at least** 10K of JSON (maybe 1M, depending on the overall app size) there's no point in worrying about pull parsing. Reading and parsing the entire JSON file at once will increase temporarily the amount of heap used, but it's hardly a blip in most environments. On Dec 25,

[android-developers] Re: Is there a Horizontal ListView?

2010-12-25 Thread jotobjects
I wonder if if would be better to modify Gallery or ListView to get a HorizontalListView? Even after cutting out the header/footer stuff there are lots of top/ bottom and up/down details in ListView that would need to change. Fundamentally there doesn't seem to be a reason for ListView to not

Re: [android-developers] Re: Is there a Horizontal ListView?

2010-12-25 Thread Mark Murphy
On Sat, Dec 25, 2010 at 6:06 PM, jotobjects jotobje...@gmail.com wrote: Also I gotta wonder if this has not been done a 100 times already. Considering that I have never seen anything in any Android app that screams this is a horizontal-style ListView-esque thing, and since I don't remember ever

[android-developers] Re: My game, what do you think help me out

2010-12-25 Thread Brill Pappin
I meant the in game graphics... I like the scetchy look, but found it a bit busy for no direct purpose to what I needed to do in the game. You might try simply fading the background. I wasnt sure what I was supposed tom do in the game, except go around that loop i guess. I didn't spend a lot of

[android-developers] Re: Is there a Horizontal ListView?

2010-12-25 Thread jotobjects
I guess you can say any particular widget is not necessary because the functionally can be done in a different way. But UI designers don't take the API doesn't do that as a reason for changing the design. There are lots of posts in this forum with developers asking for horizontal scrolling and

Re: [android-developers] Re: Is there a Horizontal ListView?

2010-12-25 Thread Mark Murphy
On Sat, Dec 25, 2010 at 6:27 PM, jotobjects jotobje...@gmail.com wrote: But UI designers don't take the API doesn't do that as a reason for changing the design. UI designers can ask for whatever they want. It is up to engineers to explain to management that the designers are asking for things

Re: [android-developers] xml data best practise

2010-12-25 Thread TreKing
On Sat, Dec 25, 2010 at 3:20 AM, Mystique joven.ch...@gmail.com wrote: Is it better to download the entire xml file to a temp director and parse it or it is better to parse as stream to the memory? Probably parse as you go. Why waste the time downloading the whole thing, saving the file, and

Re: [android-developers] Re: Help with animation

2010-12-25 Thread TreKing
On Sat, Dec 25, 2010 at 3:51 AM, Zsolt Vasvari zvasv...@gmail.com wrote: I am basically trying to achieve the same effect that happens when you tap the More button on the new Market app when you want to see more of an apmp's description. Then try reading through this:

Re: [android-developers] Parse file located in sdcard

2010-12-25 Thread TreKing
On Sat, Dec 25, 2010 at 5:10 AM, Mystique joven.ch...@gmail.com wrote: If I want to parse from let say /sdcard/test/test.xml What statement do I use? http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html#setInput(java.io.Reader)

Re: [android-developers] Re: 2.3 emulator and xhdpi support

2010-12-25 Thread dan raaka
which addon are you referring to ? AFAIK there is only one addon for GalaxyTab that was released sometime ago ... -Dan On Thu, Dec 23, 2010 at 7:01 PM, James Wang jameswangc...@gmail.com wrote: We noticed Samsung has released one addon for Nexus S but it is only 240 hdpi. There is no way

[android-developers] Re: Database Remote Access

2010-12-25 Thread Hal
You may want to look into the Jt framework for Android. It supports Web services (Resful) and Data Access Object (DAOs). You just need to use these pieces for your application: a) Java Pattern Oriented Framework, An application of the Messaging Design Pattern IBM Technical Library

[android-developers] Re: Database storage filling and securing

2010-12-25 Thread Hal
A combination of secure web services and Data Access Objects (DAOs) should be able to provide this functionality: For additional information please refer to the following URLs: a) Java Pattern Oriented Framework, An application of the Messaging Design Pattern IBM Technical Library

Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)

2010-12-25 Thread MichaelF
Kostya, thanks for your time. This is strange... I've literally pasted your code into my view, and the problem persists (same results for ARGB_ and ARGB_ configs). Here is a full working code: http://pastebin.com/damgWgXF, and here is the result: http://i.imgur.com/C2wdk.png. Am I

[android-developers] Cannot compile Desk Alarm Clock (branch eclair ver 2.1)

2010-12-25 Thread longingtoadopt.com
I want to study and run through the Desk Alarm Clock in order to understand it. I cloned the branch for eclair ver 2.1. However, it does not compile: DescriptionResourcePathLocationType ACTION_ALARM_CHANGED cannot be resolved or is not a fieldAlarms.java

Re: [android-developers] Opera callbacks

2010-12-25 Thread Julius Spencer
Oh yeah I meant the built in browser. Ah WebView os a great idea. Thank you. Regards, Julius. On 26/12/2010, at 10:56 AM, Mark Murphy wrote: I would recommend you try to find a way to use a WebView, for better control. Also, there is no Chrome in Android. I am assuming you are referring

[android-developers] How to mkdirs() with /sdcard/.testdir

2010-12-25 Thread Mystique
Hi, I can mkdirs() with name like /sdcard/testdir but why not with a . such as /sdcard/.testdir? Do I need to do something to the string name? Regards, CJ -- 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] java.io.file.getfreespace()?

2010-12-25 Thread Keith Wiley
The Android reference for java.io.file lists the 1.6 apis, including getfreespace(). My code compiles, but when I run it I get VerifyErrors on the call. My Mac Java preferences list Java 1.6 and my Eclipse Java JRE preferences have Java 1.6 checked. Does anyone know what I'm doing wrong? --

[android-developers] Re: java.io.file.getfreespace()?

2010-12-25 Thread Keith Wiley
Actually, I guess the StatFs routines accomplish my goals in this case. On Dec 25, 10:34 pm, Keith Wiley kbwi...@gmail.com wrote: The Android reference for java.io.file lists the 1.6  apis, including getfreespace().  My code compiles, but when I run it I get VerifyErrors on the call.  My Mac

[android-developers] Re: Cannot compile Desk Alarm Clock (branch eclair ver 2.1)

2010-12-25 Thread Zsolt Vasvari
Correct, you cannot compile these modules with the SDK alone. You need to download the platform source and compile those. I don't know the details. On Dec 26, 11:35 am, longingtoadopt.com anil.r...@gmail.com wrote: I want to study and run through the Desk Alarm Clock in order to understand

[android-developers] Re: Help with animation

2010-12-25 Thread Zsolt Vasvari
Thanks, I've read thorugh those articles a few days ago and there is nothing related to this. Very good reading, BTW. On Dec 26, 7:47 am, TreKing treking...@gmail.com wrote: On Sat, Dec 25, 2010 at 3:51 AM, Zsolt Vasvari zvasv...@gmail.com wrote: I am basically trying to achieve the same