[android-developers] Re: How to parse JSON in Java?

2010-04-12 Thread prachi
To parse the json file it is very much similar to parsing the xml file . first of all u need to create a json array which will captur all ur elements for array posts and then make a json object for each element of jsin array using the function jsonarray.getJSONObject(i) where i is the index I

[android-developers] Re: Google Checkout Merchant Account for Swiss Developer/Seller

2010-04-12 Thread ko5tik
On Apr 11, 4:12 pm, oxonom phyrum@sign.ch wrote: Maybe only a Googler can answer the following questions: - Is some working on activating Google Checkout Merchant Accounts for Swiss developers? - If so, when will it be ready? Looking at the struggles of canadian developers, I think it

[android-developers] Re: About how to make new buttons in a row?

2010-04-12 Thread Vinay S
Hi, I hope you are using LinearLayout as your base Layout.. If so, look for orientation in the properties of this obj and change it to horizontal. Vinay On Apr 12, 10:47 am, xlshe dianyuangua...@gmail.com wrote: Hi all, I want to create three button on the layout. But the default align of

[android-developers] how to track all http/https requests

2010-04-12 Thread Amardeep Jaiman
Hi, How to collect URLs of all http/https requests made by the phone as well as well as the return status code and user agent from the headers. This information should be coming for all browser requests and other applications too. Please let me know this information can be retrieved on App level

[android-developers] Re: How to apply different textures on different faces of a cylinder

2010-04-12 Thread Robert Green
Kirti - Get either the OpenGL superbible or the redbook. It's money well-spent. On Apr 12, 12:15 am, kirti kaul kirti.k...@wipro.com wrote: Hello, Can anybody tell me how to apply apply different textures on different faces of a cylinder?I am able to apply one texture which covers the whole

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-12 Thread Al Sutton
It cost you nothing, so lighten up. So what if the shipping that you didn't pay for takes longer than was in the original email?, Google are the ones paying for this, so it's entirely under their control, and it's up to them when want to do something about it. If you really are desperate for a

[android-developers] Database insertion timings

2010-04-12 Thread Alok Kulkarni
Hi, I am inserting around 7000 to 8000 records in my database having 4 tables each having 3 to 4 columns.Its taking me around 22 seconds to do the insertion which is i think is too long. I am using transaction while doing this without which its taking around 55 seconds. According to SQLite

[android-developers] video playing in appwidget.

2010-04-12 Thread tina lincon
is it possible to play a video in an appwidget? -- 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

Re: [android-developers] Re: About how to make new buttons in a row?

2010-04-12 Thread ecss utdallas
Thank you. But when I change the orientation of the layout to horizontal, I can only make the all the buttons align in a row. I have so many buttons on the layout, I need them align like this: Button1 Botton2 Botton3 Button4 Button5 Button6 Button7 Button8 Button9 I want to align them both in rows

[android-developers] Compiling fails for Webkit instrumentation flag WEBCORE_INSTRUMENTATION

2010-04-12 Thread vrukesh
Hi All, In Eclair 2.1, we have enabled the flag WEBCORE_INSTRUMENTATION for instrumenting Webkit for performance evaluation. But, we get following compiling errors: out/target/product/test/obj/STATIC_LIBRARIES/libwebcore_intermediates/ libwebcore.a(Parser.o): In function

[android-developers] JavaScript problem in webview

2010-04-12 Thread brijesh masrani
Hello, I have a JavaScript function which returns a value and i want to use that value in my Android program. Can anyone please tell me how to do that. Regards, Brijesh Masrani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] How to make GLSurfaceView show smoothly

2010-04-12 Thread A.TNG
Hi Guys, I've been block by this question for about a week. I tried to implement a simple application: show a image, when user touch on screen, I want to create a GLSurfaceView to cover the previous image. Then show some 3D effects on this GLSurfaceView. The logic is quite simple. But I have a

[android-developers] Re: About how to make new buttons in a row?

2010-04-12 Thread String
On Apr 12, 7:51 am, ecss utdallas dianyuangua...@gmail.com wrote: the layout, I need them align like this: Button1 Botton2 Botton3 Button4 Button5 Button6 Button7 Button8 Button9 You'll need 4 LinearLayouts, a parent with an orientation of vertical containing 3 child LinearLayouts (each with

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-12 Thread dgoemans
Al, Thanks and i completely agree... my concern is there's been a big change of situation on my side: no one is available at that address anymore, and i'm moving, so that address will no longer be valid soon. Google have said they're all shipped, so there's nothing i can do about it. And that was

[android-developers] findViewById -observation for dynamic Views (not created using layout file)

2010-04-12 Thread priyanka
This is an observation I made while using findViewById() for views which I had made dynamically(they were not in a layout file). I had made these views in onCreate() of Activity, and set their top-level parent view as the content of the Activity thorugh setContentView() within the onCreate()

[android-developers] Re: .apk and system.img

2010-04-12 Thread FrankG
Hello ! I think your are in the wrong group for this question, as this seems to be more related to android-platform. As a short hint : look at ../vendor/google/apps .. these Apps coming as Prebuild ones .. This is controlled via the Android.mk thier and the line include $ (BUILD_PREBUILT) Good

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-12 Thread Lorents
Hopefully Fedex (or whoever is delivering) have your contact information so that they can get in touch and get an alternate address. Still no phone in Norway :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] How to set PIN code(in SIM card) ?

2010-04-12 Thread perrot
When I power on the device, it always appear a input PIN(personal identification number) code screen. The screen has emerge call button, ok button and number button. How to implement the function about auto input PIN code? Can someone give me a hint? Thank you, Vere Perrot -- You received this

[android-developers] newline in toast text

2010-04-12 Thread arnoldl
i'm trying to display a toast...that works. but i can't find how to start a newline..so that it looks better. Toast toast = Toast.makeText(this,line1+ '\n' + line2 , Toast.LENGTH_LONG); isn't working. any ideas's -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: how to track all http/https requests

2010-04-12 Thread Yahel
Hi Amardeep, It really depends what you want to do with the data. If it is only for debug purposes, you can set your connection to use wifi and then use WireShark on your pc to log the network traffic. If it is for your app to spy on the phone system wide, I don't know if it is even possible,

[android-developers] Re: Database insertion timings

2010-04-12 Thread Yahel
Hi Alok, Posting some logic, or some sql would help us see if you are missing something :) Yahel On 12 avr, 08:50, Alok Kulkarni kulsu...@gmail.com wrote: Hi, I am inserting around 7000 to 8000 records in my database having 4 tables each having 3 to 4 columns.Its taking me around 22 seconds

[android-developers] java.io.IOException: sad result from adb:

2010-04-12 Thread Saurabh
Hi Folks, I am using eclipse to create an android app. I have recently started getting the following error (and others that also say 'sad result from adb') a lot java.io.IOException: sad result from adb: After this error, the emulator gets disconnected and is not identified when eclipse is

[android-developers] Re: Database insertion timings

2010-04-12 Thread Yahel
According to SQLite documentation , inserting 1 records in a database takes time  around 2 to 3 seconds. Did you take into account that the sqlite documentation is probably taking a standard PC (2GHz, 1GB of ram) as its default value not a mobile device with a quarter of the resources ?

Re: [android-developers] Re: Database insertion timings

2010-04-12 Thread Michael Rueger
On 4/12/2010 10:59 AM, Yahel wrote: Hi Alok, Posting some logic, or some sql would help us see if you are missing something :) (excessive) use of indices comes to mind :-) Michael Yahel On 12 avr, 08:50, Alok Kulkarnikulsu...@gmail.com wrote: Hi, I am inserting around 7000 to 8000

[android-developers] Re: JavaScript problem in webview

2010-04-12 Thread Yahel
HI brijesh, Take a look at the JavascriptInterface : http://developer.android.com/intl/de/reference/android/webkit/WebView.html#addJavascriptInterface(java.lang.Object, java.lang.String) It allows you to create a bridge between your Android app and the javascript inside the webview. Yahel On

[android-developers] Re: How to make GLSurfaceView show smoothly

2010-04-12 Thread Yahel
Why don't you create your glsurface from the beginning make it transparent and already on top of your image and simply render your 3d objects when the user touches the screen ? The initialization would occurs before the user is presented the image and you would avoid the flickering. Yahel --

[android-developers] Re: Reusable Android library packaging: interest?

2010-04-12 Thread friedger
We are very aware of the need for this use case (in-house sharing of code/resources), and are working on something. That is good to hear! OpenIntents might be a good place to host a repository of public widgets, as there is already a list of open intents and reusable libraries. I support

[android-developers] Determining alternate resources selected

2010-04-12 Thread Chaim
Hi QUESTION: How can I determine which alternate resources Android has decided to load? Even simply detecting the language loaded for a particular string (such as the screen title string) would be sufficient. SCENARIO: My application retrieves some localized information from a server. The

Re: [android-developers] Re: How to make GLSurfaceView show smoothly

2010-04-12 Thread A.TNG
On Mon, Apr 12, 2010 at 5:11 PM, Yahel kaye...@gmail.com wrote: Why don't you create your glsurface from the beginning make it transparent and already on top of your image and simply render your 3d objects when the user touches the screen ? The initialization would occurs before the user is

[android-developers] Re: Your feedback on Samples/Tutorials/Articles

2010-04-12 Thread Tim
On Apr 9, 8:02 pm, mike enervat...@gmail.com wrote: On 04/09/2010 11:52 AM, Matt Kanninen wrote: I've been using Sidewiki, it's an easy way to comment on problems with documentation, it's almost as good as directly fixing the docs myself. In principle, is there any reason why this has to

[android-developers] How to Validate the Data

2010-04-12 Thread Nubh
Hi Was going through some apps, I found out there was one application with validation, lets say we validate the data on web, similarly can anyone suggest and show a piece of code so that can get it how to do it. Thanks NUBH -- You received this message because you are subscribed to the Google

[android-developers] Re: How to parse JSON in Java?

2010-04-12 Thread vworld4u
You can use JSON Parser readily available for this purpose. Since Android platform is compliant with standard J2SE JDK, you can use the readily available open source JSON parsers. You can try http://www.json.org/java Or http://json-lib.sourceforge.net I have used second one. Thanks and Regards

[android-developers] Android Phones

2010-04-12 Thread Nubh
hey how to buy a phone for testing applications, can anyone suggest. Other phones in market are way to expensive. NUBH -- 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

[android-developers] Re: Text in a circle that rotates on touch

2010-04-12 Thread Farha Ansari
Hi , I have the same requirement, I have to rotate an image of a wheel as the user moves finger on the wheel on screen. Can u pls tell me how I can use this code thr? What is cx, cy, mPreviousX, mPreviousY? Thanks On Mar 6, 2:56 am, Nathan nathan.d.mel...@gmail.com wrote: On Mar 5, 3:25 am,

[android-developers] Re: Android Phones

2010-04-12 Thread javame_android
Hi, You will need to purchase either the Android developer phone or you will need some other device by HTC or some other manufacturer. If you still think that its way too expensive then you can with Remote Device testing from sites such as http://www.deviceanywhere.com Hope this helps youp out.

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-12 Thread Al Sutton
David, Whilst I understand your concern, even if someone posted I got mine and they lived right next door to your old address that doesn't mean yours will have arrived. Yes, we've been told all of the 'phones have been sent out, but the shipping was most likely done in batches and so there could

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-12 Thread Al Sutton
Please read UK deliveries as European deliveries, small brain-fart on my part, sorry. On Apr 12, 10:49 am, Al Sutton a...@funkyandroid.com wrote: David, Whilst I understand your concern, even if someone posted I got mine and they lived right next door to your old address that doesn't mean

Re: [android-developers] Re: What to use prefrences or Databases

2010-04-12 Thread nubh bhargava
Hey where to write the prefrences in the create block removing the, public class MyOnItemSelectedListener implements OnItemSelectedListener because i mostly seen that while writing preferences to use and the problem is I have four spinners over this place I need to write the same code for four,

Re: [android-developers] Re: how to track all http/https requests

2010-04-12 Thread Amardeep Jaiman
Can you give me that name of japanese app? actully i want to make a sniffer background application which tracks all the https/https requests made by phone's browser and any other app. i think you have got my requirement. Can anyone else let me know about this ? Thanks, Amardeep On Mon, Apr 12,

[android-developers] CTS Sensnor testcase fail

2010-04-12 Thread Kabita
Hi, I am getting below error from CTS tools for sensor apps. not able to pingpoint what exactly is going wrong during executio of sensor testcases. pls pls help me asap. Issue Category Test Category Issue Description Java Exception testSensorOperationsandroid.hardware.cts.SensorTest

[android-developers] DrawableBitmap, Canvas and OR

2010-04-12 Thread Kaj Bjurman
Hi, Is it in some way possible to draw something with bitwise OR? I.e. I want the pixel values to be OR:ed with the pixel values that already had been drawn. I could invoke get pixel, and use OR, and then set the pixel again, but that would be too slow. Thanks K -- You received this message

Re: [android-developers] Re: Database insertion timings

2010-04-12 Thread Alok Kulkarni
Ok, @Yahel:- For the insertion of same records on a Palm device(Say Palm Pre) , its taking 3 seconds.. On an IPhone , its taking 1 or 2 seconds.. Here is an example of what i am doing.. private Boolean addAlbumDB(int AlbumId, String Name, String Label, int MultipleArtists, int

Re: [android-developers] Re: Database insertion timings

2010-04-12 Thread Alok Kulkarni
I have started the transaction before the 1st insert , and ended it after the last insert Thanks, Alok. On Mon, Apr 12, 2010 at 4:01 PM, Alok Kulkarni kulsu...@gmail.com wrote: Ok, @Yahel:- For the insertion of same records on a Palm device(Say Palm Pre) , its taking 3 seconds.. On an

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-12 Thread James
The waiting is half the fun of getting a new gadget, and I'm quite enjoying coming on here and watching the progress reports each day, and wondering when it will be time to start getting excited because the European deliveries are starting to arrive. And also hoping that I'll get home from work

[android-developers] CTS testcase fail for sensor

2010-04-12 Thread Kabita
Hi, I am running CTS tool and got an error related to sensor. Belwo is the error details. testSensorOperationsandroid.hardware.cts.SensorTest java.lang.NullPointerException at android.hardware.cts.SensorTest.testSensorOperations(SensorTest.java: 82) java.lang.NullPointerException I am

[android-developers] Re: How to let soft keyboard overlap the footer of window

2010-04-12 Thread James Wang
Thanks, Murphy. This can not make our customer happy. 1. They want only footer is invisible, not half screen. 2. when scrolling to the EditText at bottom, not all of it is visible. We wonder if there is any event that notifies IME coming out. James -- You received this message because you are

[android-developers] Video is not rendering

2010-04-12 Thread saikiran n
Hi, I have downloaded the video application from google site,ie from http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/index.html But copied some video file to my emulator sdcard. But vedio is not rendering instead i am able to listen audio. I installed the

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-12 Thread Richard
Nobody here is ungrateful, but I don't think it is unfair of us to be disappointed that our phones have not arrived after 6 weeks, when we're told 2-4. And it's a little naive to think that they aren't doing this for their own benefit, they are being sent so that established developers - who may

Re: [android-developers] Re: how an activity transfers the value from one activity

2010-04-12 Thread nubh bhargava
Thanks, can you please suggest me how to write preferences code, I havent done that and getting complications while doing so, as I am not able to retreive the data from the other activity, please help. Regards NUBH -- You received this message because you are subscribed to the Google Groups

[android-developers] number of lines in a webview Urgent

2010-04-12 Thread mmkr
Hi all, I'm using webview which loads a html file. When the html file is too large the user has to scroll down all the time. I want to implement it similar to a e-book reader ie.. as pages, by placing a button so that when clicked it shows the next page. But i am unable to remove the

[android-developers] What should be the image resolution for Nexus One or Droid?

2010-04-12 Thread javame_android
Hi, As Android supports multiple devices from different manufacturers there are different screen resolutions supported. The table that is available at http://developer.android.com/intl/fr/guide/practices/screens_support.html#screen-independence is not very clear to me. It shows WVGA and FWVGA

Re: [android-developers] video playing in appwidget.

2010-04-12 Thread Mark Murphy
tina lincon wrote: is it possible to play a video in an appwidget? No, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.0 Available! -- You received this message because you are subscribed

[android-developers] Re: Android Phones

2010-04-12 Thread MobDev
Well depends on what you mean with in market... Are you referring to the ADP's ? Otherwise you might want to look for a second-hand device in your country ? Via ebay or something similar... On 12 apr, 11:35, Nubh nubh.bharg...@gmail.com wrote: hey how to buy a phone for testing applications,

Re: [android-developers] Re: Steps to transfer a simple object from server to android using XML

2010-04-12 Thread Mark Murphy
Anthoni wrote: Hi raqz, I saw your previous post in that you were sending lists of friends via serialization and were advised to use xml instead. Instead of XML you could also use JSON as it is more lightweight than using XML and doesn't take long to implement. I was using XML as my back

Re: [android-developers] Re: Internal links in Webview

2010-04-12 Thread Mark Murphy
Anthoni wrote: Hi, Just to interject. Mark explains this beautifully in his book 'Beginning Android', but even more in his PDF books and it is what I use for my details page for items in my database. Basically I have a front activity that shows a search box, that then populates a listview

Re: [android-developers] Re: How to make GLSurfaceView show smoothly

2010-04-12 Thread A.TNG
On Mon, Apr 12, 2010 at 5:11 PM, Yahel kaye...@gmail.com wrote: Why don't you create your glsurface from the beginning make it transparent and already on top of your image and simply render your 3d objects when the user touches the screen ? The initialization would occurs before the user is

[android-developers] Bluetooth application

2010-04-12 Thread guru
Hi All, This is regarding to bluetooth application in Android. When scanning of devices is active, if I invoke Device rename option, then some times the dialog for rename option is not coming. When I see the log, the onClick method of device name change is not invoked!. After scanning completes

[android-developers] Re: Steps to transfer a simple object from server to android using XML

2010-04-12 Thread MobDev
Thought you actually could according to this article I read couple of weeks ago : http://www.ibm.com/developerworks/opensource/library/x-android/index.html#N1029E Says you can use the XmlSerializer object for that ? On 12 apr, 14:34, Mark Murphy mmur...@commonsware.com wrote: Anthoni wrote:

[android-developers] Disable scroll in webview

2010-04-12 Thread mmkr
Hi all, Is it possible to disable the scrollbar in the webview? If possible how? -- 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,

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-12 Thread Al Sutton
If they were only going to paid-app developers I'd understand your point, but the seeding program is getting devices to lab attendees, forum supporters and free app developers as well as paid ones, so there are a fair number of people in there that won't be making anything back for Google because

[android-developers] Re: Database insertion timings

2010-04-12 Thread MobDev
do you have some code specifically showing the sequence and the syntax ? AAfaik a transaction SHOULD make it faster accroding to this documentation : http://web.utk.edu/~jplyon/sqlite/SQLite_optimization_FAQ.html#transactions On 12 apr, 12:32, Alok Kulkarni kulsu...@gmail.com wrote: I have

Re: [android-developers] Re: Steps to transfer a simple object from server to android using XML

2010-04-12 Thread Mark Murphy
MobDev wrote: Thought you actually could according to this article I read couple of weeks ago : http://www.ibm.com/developerworks/opensource/library/x-android/index.html#N1029E Says you can use the XmlSerializer object for that ? Every day, I find something else tucked away in some obscure

[android-developers] Re: number of lines in a webview Urgent

2010-04-12 Thread Vinay S
Did you try using setBuiltInZoomControls(boolean)... http://developer.android.com/reference/android/webkit/WebSettings.html#setBuiltInZoomControls(boolean) May be this is the one you need.. On Apr 12, 5:26 pm, mmkr manutd...@gmail.com wrote: Hi all,          I'm using webview which loads a

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-12 Thread Thomas Riley
I agree with Al, in some ways, If Google suddenly said it's not doing the program any more we couldn't complain as it's a free gift. However, the lab attendees, forum supporters and free app developers all have a combined positive effect on the Android platform. Anyway Al, fancy doing an

[android-developers] Input/Output Api in android

2010-04-12 Thread piyu
Hi All, I am having one doubt in java i/o APIs which api should use for input output operation in android applications java i/o or nio APIs ? For basic operation to read input stream which one is recommended ? thanks in advance -- You received this message because you are subscribed to

[android-developers] Input/Output Api in android

2010-04-12 Thread piyu
Hi All, I am having one doubt in java i/o APIs which api should use for input output operation in android applications java i/o or nio APIs ? For basic operation to read input stream which one is recommended ? thanks in advance -- You received this message because you are subscribed to

[android-developers] Re: Downloading a file from a URL extremely slow, optimization advice needed.

2010-04-12 Thread Engin Arslan
is there any suggestion on this issue? On Mar 21, 2:38 am, Stormtap Studios r...@stormtapstudios.com wrote: Hello folks, I have the following code todownloada binaryfilefrom a URL: private static final int BUFFER_SIZE = 1024 * 1024; BufferedInputStream stream = new BufferedInputStream(new

Re: [android-developers] Re: Database insertion timings

2010-04-12 Thread Alok Kulkarni
This is a standard class DatabaseHelper extending SQLiteOpenHelper... private static class DatabaseHelper extends SQLiteOpenHelper { DatabaseHelper(Context context, String databaseName) { super(context, databaseName, null, DATABASE_VERSION); } @Override

Re: [android-developers] Re: Downloading a file from a URL extremely slow, optimization advice needed.

2010-04-12 Thread Mark Murphy
Engin Arslan wrote: is there any suggestion on this issue? http://groups.google.com/group/android-beginners/browse_thread/thread/fd4b684435b00463/5751bac16fcac8e2 Net: there is no issue, other than with the OP's phone. -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Conversion to Dalvik format failed with error

2010-04-12 Thread nubh bhargava
Hi I am a newbie in developing android applications. There are few problems while development. I’ll start with few, [2010-03-25 14:24:22 - Dialing]Conversion to Dalvik format failed with error I don’t know why it is generation some error of this sort read there are some settings we need to do

[android-developers] Re: Database insertion timings

2010-04-12 Thread MobDev
I don't see a specific transaction ??? Anyways transaction should only be used if you have multiple actions you are doing on your database (like several insert/update operations)... On 12 apr, 15:43, Alok Kulkarni kulsu...@gmail.com wrote: This is a standard class DatabaseHelper extending

[android-developers] Problem accessing Layer-List items

2010-04-12 Thread Alok Kulkarni
Hi guys I have a Style declared as follows *XML:* ?xml version=1.0 encoding=utf-8? layer-list xmlns:android=http://schemas.android.com/apk/res/android; item android:id=@android:id/background android:drawable= @drawable/progbar2_320x480 /item item

[android-developers] how add TextView/Layout to map's Overlay or OverlayItem?

2010-04-12 Thread Derek
When a marker is clicked on google map, a small square area is displayed with hyperlinks. I guess OverlayItem does not render hyperlinks for its snippet. How to achieve this? Ideally I want to assign a layout with all sorts widgets. Presume I can display a small floating activity window when the

Re: [android-developers] Re: Database insertion timings

2010-04-12 Thread Alok Kulkarni
Before the 1st insert call i am doing db.beginTransaction(); for(i = 0 i 2000 ; i++) addAlbumDB(); for(i = 0 i 3000 ; i++) addArtistDB(); for(i = 0 i 2000 ; i++) addSongDB(); try { db.setTransactionSuccessful(); } finally { db.endTransaction(); }

Re: [android-developers] Re: Database insertion timings

2010-04-12 Thread Alok Kulkarni
Each of these above functions insert records in 3 seperate tables in the same database. Thanks , Alok On Mon, Apr 12, 2010 at 7:51 PM, Alok Kulkarni kulsu...@gmail.com wrote: Before the 1st insert call i am doing db.beginTransaction(); for(i = 0 i 2000 ; i++) addAlbumDB(); for(i = 0 i

[android-developers] Draw Text on GLSurfaceView

2010-04-12 Thread Renjith
Hi, Can anyone help me to understand how to draw text on GLSurfaceView in Android ? Thanks in advance Ren -- 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] how add TextView/Layout to map's Overlay or OverlayItem?

2010-04-12 Thread Mark Murphy
Derek wrote: When a marker is clicked on google map, a small square area is displayed with hyperlinks. I guess OverlayItem does not render hyperlinks for its snippet. How to achieve this? Ideally I want to assign a layout with all sorts widgets. Presume I can display a small floating activity

Re: [android-developers] Draw Text on GLSurfaceView

2010-04-12 Thread A.TNG
On Mon, Apr 12, 2010 at 10:39 PM, Renjith renjithkum...@gmail.com wrote: Hi, Can anyone help me to understand how to draw text on GLSurfaceView in Android ? Thanks in advance Ren You cannot draw text on glsurface. What you can do is draw text on a bitmap, then bind this bitmap as texture

Re: [android-developers] Disable scroll in webview

2010-04-12 Thread A.TNG
On Mon, Apr 12, 2010 at 8:48 PM, mmkr manutd...@gmail.com wrote: Hi all,    Is it possible to disable the scrollbar in the webview? If possible how? Maybe not exactly, I remember there are some interfaces like enable/disable scroll bar in WebView.java. Is that OK for you? -- Best Regards,

[android-developers] sending MMS programming

2010-04-12 Thread Singelton
Hi, Is there any options to send MMS(not calling activity ) - no user action for example a service that run in the background and send MMS with the a random pictures . I found solution to SMS but not to MMS Thanks, -- You received this message because you are subscribed to the Google

[android-developers] Re: ListView Example

2010-04-12 Thread dillipk
Any sample code please??? Thanks, -DK On Apr 9, 3:50 pm, Martin Obreshkov manig...@gmail.com wrote: I think ArrayAdapter is the think you're looking for. For more infohttp://developer.android.com/reference/android/widget/ArrayAdapter.htmlit supports add/delete methods which automatically

[android-developers] How WebView render the webpage

2010-04-12 Thread A.TNG
Hi Guys, I'm reading the source code of Android browser, try to figure out how WebView render the webpage. In native (external/webkit/WebKit/android/jni/WebViewCore.cpp), seems the whole webpage is stored in WebViewCore.m_content (a PictureSet). In every onDraw, native just draw the PictureSet on

[android-developers] How to enable klogd / syslogd for debuggin

2010-04-12 Thread Luke
Hi all, I am developing the android device and system will hang randomly, I like to enable klogd / syslogd to keep log for debugging at next boot. would you please provide your experience to guide me how to enable this function. BTW, I know the busybox contain the klogd / syslogd function, did

Re: [android-developers] How to enable klogd / syslogd for debuggin

2010-04-12 Thread David Turner
android-developers is for application developers, try android-porting if you're trying to port the system to a different device. On Mon, Apr 12, 2010 at 8:27 AM, Luke vagrant...@gmail.com wrote: Hi all, I am developing the android device and system will hang randomly, I like to enable klogd

Re: [android-developers] Disable scroll in webview

2010-04-12 Thread murali raju
ya it will be. my requirement is i want to display a large html file in number of pages such that each page would fit exactly into a single screen. I will place a button so that when clicked it would show the next page. On Mon, Apr 12, 2010 at 8:22 PM, A.TNG tang.j...@gmail.com wrote: On Mon,

[android-developers] Re: Database insertion timings

2010-04-12 Thread MobDev
Actually, Im just guessing here, shouldnt you use staretTransaction and endTransaction instead of setTransactionSuccesfull() ??? Right now you as a developer are specifically marking the transaction as succesfull, is that what you want ? On 12 apr, 16:22, Alok Kulkarni kulsu...@gmail.com wrote:

[android-developers] Problem Observed with gestureoverlay method

2010-04-12 Thread Shekhar
Hi, I am using gestureoverlay metod to detect gesture in my application.I have a view group in which i have multiple text views embedded into it.I have set the onlongclicklistener for the individual views but observed that when I set gesture listener through

[android-developers] Re: how to track all http/https requests

2010-04-12 Thread Yahel
Name of the app was something like 91nettraffic. As for a sniffer, i'm not sure the framework gives you access to such low level function. But if it does, then it will be a great and very useful app for developpersand spies, and trojan, and...Hmmm well with great power, comes great

Re: [android-developers] Re: Android Phones

2010-04-12 Thread chris harper
javame Have you used device anywhere? I have been checking them out and considering on trying them out but wanted the opinion of anyone that has used them and if they are worth the money to test with. Thank you -Chris On Mon, Apr 12, 2010 at 6:28 AM, MobDev developm...@mobilaria.com wrote:

[android-developers] Re: Database insertion timings

2010-04-12 Thread Yahel
Ok, you are right if the pre and the iphone are 10x faster, it can't be right. I don't see anything wrong in your code, so only two things come to mind : - Instead of using ContentValues, try to create an insert sql statement and send it to via SQLiteDatabase.execSQL to see if there is any

Re: [android-developers] Re: unable to open database file after OS upgrade

2010-04-12 Thread Mariano Kamp
Now a user was nice enough to run some commands for me. It seems that the database is there and is not corrupt: # ls -l /data/data/com.newsrob/databases ls -l /data/data/com.newsrob/databases -rw-rw app_108 app_108 16384 2010-04-11 13:12 webview.db -rw-rw app_108 app_108 6144

Re: [android-developers] newline in toast text

2010-04-12 Thread Jason LeBlanc
line1\nline2 On Mon, Apr 12, 2010 at 3:50 AM, arnoldl arn...@fortuin.nl wrote: i'm trying to display a toast...that works. but i can't find how to start a newline..so that it looks better. Toast toast = Toast.makeText(this,line1+ '\n' + line2 , Toast.LENGTH_LONG); isn't working. any

[android-developers] Re: How to make GLSurfaceView show smoothly

2010-04-12 Thread Yahel
Hi, You should take a look at the api demo which is in the samples given with the android sdk : http://developer.android.com/intl/de/resources/samples/get.html Under Graphics/OpenGL Es/Translucent GLSurfaceView You'll find out how it is done. Yahel On 12 avr, 14:35, A.TNG tang.j...@gmail.com

[android-developers] How to properly implement ParcelFileDescriptor.openFile() method.

2010-04-12 Thread gnugu
Hi, I have a ContentProvider that serves an image to default built in image viewer. Ever since Android 2.1 the built in image viewer throws FileNotFound into the log. I also find this in the log: 04-12 09:28:54.066: ERROR/UriTexture(11541): Unable to load image from URI

[android-developers] Re: Service.startForeground() messes with scheduling?

2010-04-12 Thread Mariano Kamp
*bump* It seems that the implementation of startForeground() delegates to this code: public void setServiceForeground(ComponentName className, IBinder token, 1781 #127f1bc903f2e1c4_l1781int id, Notification notification, boolean removeNotification) throws RemoteException { 1782

[android-developers] Re: Draw Text on GLSurfaceView

2010-04-12 Thread Robert Green
In OpenGL, you need to write a text renderer. There are several examples and implementations floating around on the web. For example, I wrote a class that, given a font and a font size, generates an atlas texture and stores all of the individual character locations and metrics for me. I then

[android-developers] Re: How to properly implement ParcelFileDescriptor.openFile() method.

2010-04-12 Thread gnugu
Here is the full error: 04-12 10:36:04.626: ERROR/UriTexture(18929): Unable to load image from URI content://com.gnugu.secretboxplus.imageprovider/test.jpg 04-12 10:36:04.636: WARN/System.err(18929): java.io.FileNotFoundException 04-12 10:36:04.636: WARN/System.err(18929): at

[android-developers] Re: unable to open database file after OS upgrade

2010-04-12 Thread skink
On Apr 9, 2:36 pm, Mariano Kamp mariano.k...@gmail.com wrote: *bump* On Fri, Apr 2, 2010 at 12:53 PM, Mariano Kamp mariano.k...@gmail.comwrote: Hi, recently I very often get error reports from users that upgrade their OS. This includes at least 1.5, 1.6, 2.1 and custom ROMs.

[android-developers] You Need An Extra Income? - Make Money Online[FINANCE4U.YOLASITE]

2010-04-12 Thread jahid islam
*You Need An Extra Income? - Make Money Online[FINANCE4U.YOLASITE]* Thousands of people want to make money online because the web is inundated with information that gives easy ways to do just that. When people start to make money online, they find out that it’s pretty hard, after all. Like in

Re: [android-developers] Re: Service.startForeground() messes with scheduling?

2010-04-12 Thread Mark Murphy
Mariano Kamp wrote: Is that a coincidence or does startForeground() mess with the thread's prio or does anything else but what is written below? Quoting myself: ...but a persistent concern for game developers on Android is the impacts that external forces have on their frame rates. For

  1   2   >