Re: [android-developers] web.loadUrl not working
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 Bot - Bistro Blurb http://bgies.comhttp://nocrappyapps.com http://bistroblurb.com http://forcethetruth.com http://ihottonight.com --- Everything in moderation, including abstinence (paraphrased) Every person is born with a brain... Those who use it well are the successful happy ones - Brad Gies Adversity can make or break you... It's your choice... Choose wisely - Brad Gies Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead On 24/12/2010 10:48 PM, cuil yahoo wrote: Hi, I have managed to create a webview object called web. I want to execute a javascript function from it, a google search resulted in usage of web.loadUrl(javascript:function_name()). This is not working, any suggestions? Thanks and a merry Xmas. Cuil -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] xml data best practise
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 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Help with animation
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 beafd...@gmail.com wrote: I think View1 is always going to have an intrinsic height of its measured height for the layout. That is to say, an animation isn't going to change a view's measured height over time, it will just change the way it appears on screen over the duration of the animation. The mere presence of View1 in your layout will cause the layout to set aside its measured dimensions. I could be wrong, but I don't think an animation with a layout like this is going to achieve the effect you're looking for. You may have to do something where you change the measured height of the view over time and invalidate the view/layout at every tick to get it to re- render everything. Doug On Dec 24, 6:18 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I have a LinearLayout with 2 vertical components: View1 View2 I would like to smoothly animate-in View1. I am using the following animation: scale android:fromXScale=1.0 android:toXScale=1.0 android:fromYScale=0.0 android:toYScale=1.0 android:pivotX=0 android:pivotY=0 android:duration=@android:integer/config_longAnimTime/ I am doing a: view1.startAnimation(animation); view1.setVisibility(View.VISIBLE); It works, but the problem is that View2 snaps down and View1 fills the gap. How do I make it so View2 slide down smoothly? I've tried postponing the setVisibilty() call to after the animation had finished, but then View1 slides down over View2 which looks even worse. 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Parse file located in sdcard
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 Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Phones with Large Internal Storage EXTERNAL_CONTENT_URI
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 http://www.google.com/phone/detail/samsung-captivate-a-galaxy-s-phone Samsung Vibrant http://www.google.com/phone/detail/samsung-vibrant-a-galaxy-s-phone Can there camera data be accessed using EXTERNAL_CONTENT_URI or they would give similar problem as the Droid Incredible: http://stackoverflow.com/questions/2673323/programmitically-accessing-internal-storage-not-sd-card-on-verizon-htc-droid-in 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Drawing text on a Bitmap (rather than Canvas)
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, mPaint); } In the former case, the text renders as you would expect, while in the latter, it appears very rough and ugly. This becomes even more problematic when using e.g. canvas.drawBitmapMesh(...); to apply transformations to the bitmap. Am I doing something wrong, or is the quality simply deteriorated when you pass from Canvas to Bitmap? On a side note, the reason why I'm drawing text on a Bitmap is to obtain a magnifier effect on the text in question (like Apple OSX's dock), since I can then apply arbitrary transformations to it using a bitmap mesh. Is there another, perhaps better, way to do this? Best, Michael (Also posted here: http://stackoverflow.com/questions/4485587/drawing-text-on-a-bitmap-rather-than-canvas, but with no answer) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: My game, what do you think help me out
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 difficult, although this kind of game really isn;t my cup of tea. I liked the graphics as unusual but they made it a bit hard to see what I was supposed to do. Maybe tone them down a little. I'm not much help I think, but thanks for sharing. - Brill Pappin On Dec 24, 9:46 pm, brian purgert brianpurge...@gmail.com wrote: So, I would like you guys to try out my app I just updated it, its called doodle bike. I figured you could help me alot more then the average users could. So tell me what you think about the tilting the physics, bike speed, levels style,art and everything. -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)
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 size, so no further scaling is necessary (when drawing mBitmap to the screen). Also try setting mPaint.setAntiAlias(true) -- Kostya 25.12.2010 15:37, 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, mPaint); } | In the former case, the text renders as you would expect, while in the latter, it appears very rough and ugly. This becomes even more problematic when using e.g. |canvas.drawBitmapMesh(...); | to apply transformations to the bitmap. Am I doing something wrong, or is the quality simply deteriorated when you pass from Canvas to Bitmap? On a side note, the reason why I'm drawing text on a Bitmap is to obtain a magnifier effect on the text in question (like Apple OSX's dock), since I can then apply arbitrary transformations to it using a bitmap mesh. Is there another, perhaps better, way to do this? Best, Michael (Also posted here: http://stackoverflow.com/questions/4485587/drawing-text-on-a-bitmap-rather-than-canvas, but with no answer) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ImageView Problem
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 Emulator shows on the screen EditText Buttons and TextViews. But when I put an imagem on the src property of ImageView the emulator shows an Exception when executing the method: setContentView(R.layout.login); login.xml is my layout, and I set the src property using the Visual mode of eclipse ADT plugin, and the plugin shows the image, but when I running shows the exception: Binary XML file line #8: Error inflating class android.widget.ImageView Note: When I was using a Project with Android 1.6 sdk Level 4 works perfectly, but I need to change to 2.0 Version because bluetooth, and all the images on the project show the same exception. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Database storage filling and securing
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 it isn't readable unless you are using app Partially doable - rooted phones -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to know email account is configured
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 success then it shall be ok. if it fail then it *might* be configured incorrectly -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NullPointerException
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 -- probably more important than technical expertise. On Dec 25, 4:10 am, Tsolmon Narantsogt mgltsol...@gmail.com wrote: Thanks for your reply. I just want to ListActivity some item add and remove these. So i attached my source. Can anyone fix it then reply me. Thank you. Tsolmon On Fri, Dec 24, 2010 at 8:13 AM, Indicator Veritatis mej1...@yahoo.com wrote: No, we can't explain it for you. We might be able to help you figure it out, though. NullPointerException is what you get if the virtual machine encounters (guess what) a null pointer. The most common causes of it are such things as passing a method an argument that has never been initialized, or, more precisely, was initialized to null. So you need to double check: what did you pass to setContentView? Was it properly initialized? Did you pass it a View? Was the View properly and fully initialized? If you passed it an int, can Android find the resource with that ID? On Dec 23, 9:24 am, Tsolmon Narantsogt mgltsol...@gmail.com wrote: Hello list I got a this error . java.lang.NullPointerException W/System.err(10127): at android.app.Activity.setContentView(Activity.java:1622) W/System.err(10127): at android.app.ListActivity.ensureList(ListActivity.java:305) W/System.err(10127): at android.app.ListActivity.setListAdapter(ListActivity.java:256) W/System.err(10127): at com.dynamiclistview.dynamicListView$ListViewAdapter$1$1.onClick(dynamicListView.java:73) W/System.err(10127): at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:158) W/System.err(10127): at android.os.Handler.dispatchMessage(Handler.java:99) W/System.err(10127): at android.os.Looper.loop(Looper.java:123) W/System.err(10127): at android.app.ActivityThread.main(ActivityThread.java:4363) W/System.err(10127): at java.lang.reflect.Method.invokeNative(Native Method) W/System.err(10127): at java.lang.reflect.Method.invoke(Method.java:521) W/System.err(10127): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) W/System.err(10127): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) W/System.err(10127): at dalvik.system.NativeStart.main(Native Method) 72: dynamicListView d = new dynamicListView(); 73: d.setListAdapter(new ListViewAdapter(con)); I dont't understand it . Can anyone explain me. -- Thanks Tsolmon -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- Хүндэтгэсэн: Н.Цолмон AndroidAdvencedUI.tar.gz 204KViewDownload -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)
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 Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Which JSON Parser is better
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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: repeating a set of animation sequentially
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 wrote: I don't know, in practice. Just a thought. I imagine you'd just reuse the same Animation object for each cycle through the loop, so no need to keep track of anything. If it doesn't work for you, you could try calling the setRepeatMode of an AnimationSet directly even though there's (apparently) no XML attribute for it. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)
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. This on a Motorola Milestone 2.1u1, not that it should make any difference. The code is like this: // * this is direct canvas.drawText(i.ssid, si.xPos, si.yPos - netNameDiff / 2.0f, paintNet); // * this is with an off-screen bitmap int offWidth = 200; int offHeight = 30; Bitmap.Config offConfig = Bitmap.Config.ARGB_; Bitmap offBitmap = Bitmap.createBitmap(offWidth, offHeight, offConfig); Canvas offCanvas = new Canvas(offBitmap); offCanvas.drawText(i.ssid, 5, 25, paintNet); canvas.drawBitmap(offBitmap, si.xPos, si.yPos + 20, null); Did you set: paint.setFlags(Paint.ANTI_ALIAS_FLAG); in the font paint? -- Kostya 25.12.2010 18:17, 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 Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Which JSON Parser is better
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 overhaul (refactorization) of the app. In my experience, parsing non trivial data streams (JSON, XML, others) in a mobile environment needs to have the following characteristics: 1. Maintains a small memory footprint, as mentioned 2. Allows to immediately draw data as the parser moves along. This is important due to the often slow connections - it keeps users entertained (this falls into the subjective user satisfaction category) and informed 3. Can be instantly stopped at any point. When users start seeing the data unfold (see 2.), users may want to stop the potentially long data pull. The app needs to be able to respond to this request on the spot On Dec 25, 7:37 am, ko5tik kpriblo...@yahoo.com wrote: 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to clone application (Desk Clock) from Git tree that will work for API 7?
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 objects: 100% (1192/1192), done. remote: Total 4270 (delta 2039), reused 4220 (delta 1996) Receiving objects: 100% (4270/4270), 1.18 MiB | 196 KiB/s, done. Resolving deltas: 100% (2039/2039), done. On Dec 24, 10:53 pm, longingtoadopt.com anil.r...@gmail.com wrote: I was trying to run and read through the Desk Clock code. I cloned the subtree herehttp://android.git.kernel.org/?p=platform/packages/apps/DeskClock.git... However it pulls in the latest code and some of which refers to API level 9 variables eg. ACTION_SET_ALARM, EXTRA_HOUR, EXTRA_MESSAGE, every_day, never... Spent hours trying to get this to compile before I realized this. I want the version of DeskClock for API 7. How to do 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to clone application (Desk Clock) from Git tree that will work for API 7?
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 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 objects: 100% (1192/1192), done. remote: Total 4270 (delta 2039), reused 4220 (delta 1996) Receiving objects: 100% (4270/4270), 1.18 MiB | 196 KiB/s, done. Resolving deltas: 100% (2039/2039), done. On Dec 24, 10:53 pm, longingtoadopt.comanil.r...@gmail.com wrote: I was trying to run and read through the Desk Clock code. I cloned the subtree herehttp://android.git.kernel.org/?p=platform/packages/apps/DeskClock.git... However it pulls in the latest code and some of which refers to API level 9 variables eg. ACTION_SET_ALARM, EXTRA_HOUR, EXTRA_MESSAGE, every_day, never... Spent hours trying to get this to compile before I realized this. I want the version of DeskClock for API 7. How to do this? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is a Vertical Seekbar possible?
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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Getting a strange MessageQueue warning w/ DefaultHttpClient in AsyncTask
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 Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is a Vertical Seekbar possible?
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 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is a Vertical Seekbar possible?
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: 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)
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 using the anti-alias flag. Michael -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)
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: http://i.imgur.com/pCqGT.png. And yes I am using the anti-alias flag. Michael -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Designing TabHost
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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] InetAddress.isReachable
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 working) it always returns false after the timeout. I have verified this issue on the emulator, HTC G1 (ADP1) running 1.6, and an HTC Incredible running 2.2 update 1. I have tried both SDK r06 and r08. I am completely stumped. This has always worked in the past. Only recently have I noticed this no longer works. Has something changed in the API? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Which JSON Parser is better
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 reservations about the whole pull-parsing paradigm when combined with unordered objects, because if you have dependencies in the processing of the fields, it may appear to work OK -- until the order changes, perhaps with a server reboot, or unrelated code change, or anything at all. This sort of situation can make for bugs that are VERY hard to test for and VERY hard to debug -- and often, VERY hard to fix. But if you approach it with the right discipline... Of course, a downside is that discipline might entail designing the JSON payload to use arrays instead of objects. This would impose a readability and upward compatibility cost on the content. (But on the other hand, it'd be a bit more compact and efficient). Still, I think it is prudent to not consider a pull parser for JSON until and unless you have a demonstrated performance problem to solve. The issue doesn't arise to the same degree in XML, because at the level of XML itself, order is meaningful and preserved, even if a higher level may consider order unimportant. XML generators have the ability to control the order of elements; JSON generators do not. On Dec 25, 7:37 am, ko5tik kpriblo...@yahoo.com wrote: 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NullPointerException
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 attention? On Dec 23, 10:32 am, Brad Gies rbg...@gmail.com wrote: What is con? Sincerely, Brad Gies --- Bistro Bot - Bistro Blurbhttp://bgies.com http://nocrappyapps.comhttp://bistroblurb.com http://forcethetruth.comhttp://ihottonight.com --- Everything in moderation, including abstinence (paraphrased) Every person is born with a brain... Those who use it well are the successful happy ones - Brad Gies Adversity can make or break you... It's your choice... Choose wisely - Brad Gies Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead On 23/12/2010 9:24 AM, Tsolmon Narantsogt wrote: Hello list I got a this error . java.lang.NullPointerException W/System.err(10127): at android.app.Activity.setContentView(Activity.java:1622) W/System.err(10127): at android.app.ListActivity.ensureList(ListActivity.java:305) W/System.err(10127): at android.app.ListActivity.setListAdapter(ListActivity.java:256) W/System.err(10127): at com.dynamiclistview.dynamicListView$ListViewAdapter$1$1.onClick(dynamicList View.java:73) W/System.err(10127): at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertC ontroller.java:158) W/System.err(10127): at android.os.Handler.dispatchMessage(Handler.java:99) W/System.err(10127): at android.os.Looper.loop(Looper.java:123) W/System.err(10127): at android.app.ActivityThread.main(ActivityThread.java:4363) W/System.err(10127): at java.lang.reflect.Method.invokeNative(Native Method) W/System.err(10127): at java.lang.reflect.Method.invoke(Method.java:521) W/System.err(10127): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 860) W/System.err(10127): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) W/System.err(10127): at dalvik.system.NativeStart.main(Native Method) 72: dynamicListView d = new dynamicListView(); 73: d.setListAdapter(new ListViewAdapter(con)); I dont't understand it . Can anyone explain me. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)
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. http://xmages.net/storage/10/1/0/a/1/upload/fe1ce910.png Stretching is another matter, and it would be a good idea to pick a font size for the off-screen bitmap so that drawBitmapMesh only shrinks, never enlarges, any bitmap area. The small difference you are seeing (I am seeing it too in the link above) is due to my using ARGB_ for the offscreen bitmap. I just verified that ARGB_ gives exact match (as it should). However, you're seeing distortion even when there is no mapping. So, for your reference, I pasted my code here (really simple, really): http://pastebin.com/5e1C5irq Hope you can spot a difference somewhere. -- Kostya 25.12.2010 22:52, 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: http://i.imgur.com/pCqGT.png http://i.imgur.com/pCqGT.png. And yes I am using the anti-alias flag. Michael -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Horizontal ScrollView
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 support horizontal scrolling? (i.e., the javadoc is out of date)? Are there prior versions where horizontal scrolling does NOT work (if it works now)? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Horizontal ScrollView
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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Horizontal ScrollView
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 attributes) come from ViewGroup. Is is possible to have ScrollView that scrolls horizontally and vertically? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is a Vertical Seekbar possible?
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 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 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Opera callbacks
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, Dec 24, 2010 at 12:24 PM, Julius Spencer jul...@msa.co.nz wrote: Hi, I have an application that takes the user to a service provider's website to perform a login as part of an oauth process. Some users are having problems using Opera Mini. It seems like it can't handle the response call back scheme. Chrome works well so, I was wondering if it's possible to create an Intent which specifies Chrome. (or perhaps someone has come across this problem?) Regards, Julius. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Camera preview not restarting after picture taken
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 a bug because the camera take picture routine is stalling. I suspect memory issues, but nothing is obvious in logcat. I'm testing on a tmo G2. Sorry, I haven't tried those yet. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is there a Horizontal ListView?
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 same as a horizontal ListView. HorizontalScrollView also comes close but you don't get the View- Adapter paradigm that comes with ListView and Gallery (and this is essential for large lists). Is there a way to combine an AdapterView with a HorizontalScrollView or something functionally similar? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is there a Horizontal ListView?
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 Books: http://commonsware.com/books -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to detect when bluetooth is turned on by user?
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 readhttp://developer.android.com/reference/android/bluetooth/BluetoothAda... and notice that getDefaultAdapter() returns a real Adapter only if Bluetooth support exists. If Bluetooth support exists, but is turned off, then getState() returns STATE_OFF. At least that is the way it is supposed to work: I have vague memories of getDefaultAdapter() returning null when the adapter was turned off on my T-mobile G2. But I can't vouch for that, and am not taking out the time to test for it now. There is a broadcast action you can wait for: ACTION_STATE_CHANGED. Wait for this and then check to see what it changed to: on or off. On Dec 23, 11:15 am, martien huijsmans martien.huijsm...@gmail.com wrote: Hi, I have a implemented a Android service which start a Bluetooth server. This is based on the example Connecting as a server as found onhttp://developer.android.com/guide/topics/wireless/bluetooth.html. How can I detect if Bluetooth if is turned on by the user? Is there a notification in Adroid that my service can subscribe to? In my current implementation I periodically poll the BluetoothAdapter as shown below itsBTAdapter.isEnabled(). Regards Martien -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Which JSON Parser is better
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 if you have a problem with the lib, only then worry about what else you can do. My 2 cents... - Brill On Dec 23, 1:59 am, cool.manish mannishga...@gmail.com wrote: Hi Brill, I am sorry, I didn't get your point. I am very new in this field and don't know, if gson is a binary format then how will it effect? As per my knowledge about gson, I can give one String to it which has JSON data in it, it will parse it and then i can search for a particular object or value. Is your meaning of saying One built into the platform is it that I should use JSONTokenizer or whatever Android is providing me? On Dec 23, 11:51 am, Brill Pappin br...@pappin.ca wrote: Isn't gson a binary format? MongoDB talks about using GSON over JSON. IMO I'd simply use the one built into the platform. - Brill Pappin -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Which JSON Parser is better
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, 11:14 am, JP joachim.pfeif...@gmail.com wrote: 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 overhaul (refactorization) of the app. In my experience, parsing non trivial data streams (JSON, XML, others) in a mobile environment needs to have the following characteristics: 1. Maintains a small memory footprint, as mentioned 2. Allows to immediately draw data as the parser moves along. This is important due to the often slow connections - it keeps users entertained (this falls into the subjective user satisfaction category) and informed 3. Can be instantly stopped at any point. When users start seeing the data unfold (see 2.), users may want to stop the potentially long data pull. The app needs to be able to respond to this request on the spot On Dec 25, 7:37 am, ko5tik kpriblo...@yahoo.com wrote: 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is there a Horizontal ListView?
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 work horizontally... Also I gotta wonder if this has not been done a 100 times already. On Dec 25, 2:06 pm, Mark Murphy mmur...@commonsware.com wrote: 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 2.2 Programming Books:http://commonsware.com/books -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is there a Horizontal ListView?
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 hearing of anyone writing one, and considering how awful the ListView/AbsListView code is, I suspect that there are not 100 existing implementations of your concept. But, that's just a guess. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Atlanta: http://bignerdranch.com/classes/android -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: My game, what do you think help me out
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 time trying though :) Good luck with it! - brill On Dec 25, 7:56 am, brian purgert brianpurge...@gmail.com wrote: 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 difficult, although this kind of game really isn;t my cup of tea. I liked the graphics as unusual but they made it a bit hard to see what I was supposed to do. Maybe tone them down a little. I'm not much help I think, but thanks for sharing. - Brill Pappin On Dec 24, 9:46 pm, brian purgert brianpurge...@gmail.com wrote: So, I would like you guys to try out my app I just updated it, its called doodle bike. I figured you could help me alot more then the average users could. So tell me what you think about the tilting the physics, bike speed, levels style,art and everything. -- 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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is there a Horizontal ListView?
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 horizontal list views. It's a natural UI design element for some kinds of lists. It behaves somewhat like a drop down list (in that is is expandable) without obscuring the other widgets on the screen. The user can drag it (scroll) back and forth. I just completed an app for a client that is on the market which makes heavy use of horizontal list views. This was done with Gallery but the drawbacks are as noted above. Gallery doesn't quite act like a list because the focus is always centered. On Dec 25, 3:10 pm, Mark Murphy mmur...@commonsware.com wrote: 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 hearing of anyone writing one, and considering how awful the ListView/AbsListView code is, I suspect that there are not 100 existing implementations of your concept. But, that's just a guess. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in Atlanta:http://bignerdranch.com/classes/android -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is there a Horizontal ListView?
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 that are not natively implemented on the platform and therefore will require significant additional engineering time. It is then management's responsibility to determine whether the UI designers feature is worth that additional engineering time. There are lots of posts in this forum with developers asking for horizontal scrolling and horizontal list views. It's a natural UI design element for some kinds of lists. It behaves somewhat like a drop down list (in that is is expandable) without obscuring the other widgets on the screen. The user can drag it (scroll) back and forth. I'm not saying it's a bad idea. I am saying you have your work cut out for you, and I am saying that I believe that it has not been done a 100 times already. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Atlanta: http://bignerdranch.com/classes/android -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] xml data best practise
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 reading it back? Especially if you don't need the entire XML data. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Help with animation
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: http://www.pushing-pixels.org/2010/12/13/meet-the-green-goblin-part-1.html http://www.pushing-pixels.org/2010/12/13/meet-the-green-goblin-part-1.htmlI didn't read through it myself, but seems to go into detail on the new Market design and implementation. Perhaps the More functionality is explained. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Parse file located in sdcard
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) - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: 2.3 emulator and xhdpi support
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 to test xhdpi with emulator? -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Database Remote Access
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 http://www.ibm.com/developerworks/webservices/library/ws-designpattern/index.html b) Messaging Design Pattern (MDP) and pattern implementation - Published in the 17th conference on Pattern Languages of Programs (PLoP 2010). https://jt.dev.java.net/files/documents/5553/150311/designPatterns.pdf On Dec 23, 5:48 pm, kennedyximenes kennedy.xime...@gmail.com wrote: Hi, I am developing an Android App and I need to connect to read and retrieve data from a remote database. On the one side I have a SQL Server Database and on the other side I have my Android application. I would like a tutorial or a practical example describing all processes and how to do that. Thank you for any help. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Database storage filling and securing
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 http://www.ibm.com/developerworks/webservices/library/ws-designpattern/index.html b) Messaging Design Pattern (MDP) and pattern implementation - Published in the 17th conference on Pattern Languages of Programs (PLoP 2010). https://jt.dev.java.net/files/documents/5553/150311/designPatterns.pdf I hope this helps. On Dec 24, 7:32 am, Nikola nikola1...@gmail.com wrote: Hi, I have large amount of data that I should query and display to user. What are recommended strategies for: 1) filling database (I would like to do it outside phone and just provided it somehow) 2) secure database so it isn't readable unless you are using app Thanks. -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programmer -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)
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 missing something in my Paint? Could you check what this code gives you, or send me the full working code from your example? Best, Michael -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Cannot compile Desk Alarm Clock (branch eclair ver 2.1)
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 /DeskClock/src/com/android/deskclockline 464Java Problem com.android.internal.R cannot be resolved to a variable AlarmKlaxon.java/DeskClock/src/com/android/deskclockline 207Java Problem com.android.internal.R cannot be resolved to a variableDeskClock.java /DeskClock/src/com/android/deskclockline 574Java Problem com.android.internal.R cannot be resolved to a variableSetAlarm.java /DeskClock/src/com/android/deskclockline 115Java Problem The constructor Vibrator() is not visibleAlarmKlaxon.java /DeskClock/src/com/android/deskclockline 89Java Problem How do I get past these errors? Any help appreciated. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Opera callbacks
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 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, Dec 24, 2010 at 12:24 PM, Julius Spencer jul...@msa.co.nz wrote: Hi, I have an application that takes the user to a service provider's website to perform a login as part of an oauth process. Some users are having problems using Opera Mini. It seems like it can't handle the response call back scheme. Chrome works well so, I was wondering if it's possible to create an Intent which specifies Chrome. (or perhaps someone has come across this problem?) Regards, Julius. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to mkdirs() with /sdcard/.testdir
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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] java.io.file.getfreespace()?
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? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: java.io.file.getfreespace()?
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 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? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Cannot compile Desk Alarm Clock (branch eclair ver 2.1)
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 it. I cloned the branch for eclair ver 2.1. However, it does not compile: Description Resource Path Location Type ACTION_ALARM_CHANGED cannot be resolved or is not a field Alarms.java /DeskClock/src/com/android/deskclock line 464 Java Problem com.android.internal.R cannot be resolved to a variable AlarmKlaxon.java /DeskClock/src/com/android/deskclock line 207 Java Problem com.android.internal.R cannot be resolved to a variable DeskClock.java /DeskClock/src/com/android/deskclock line 574 Java Problem com.android.internal.R cannot be resolved to a variable SetAlarm.java /DeskClock/src/com/android/deskclock line 115 Java Problem The constructor Vibrator() is not visible AlarmKlaxon.java /DeskClock/src/com/android/deskclock line 89 Java Problem How do I get past these errors? Any help appreciated. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Help with animation
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 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:http://www.pushing-pixels.org/2010/12/13/meet-the-green-goblin-part-1... http://www.pushing-pixels.org/2010/12/13/meet-the-green-goblin-part-1...I didn't read through it myself, but seems to go into detail on the new Market design and implementation. Perhaps the More functionality is explained. ----- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en