[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 `JSC::Parser::parse(JSC:

[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 th

[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 se

[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 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 "horizontal" orien

[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() method

[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 e

[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, bu

[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 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 to do the > inse

[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 asked

[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 ? Y

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 Kulkarni wrote: Hi, I am inserting around 7000 to 8000 records in my database

[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 12

[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 -- Yo

[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 Mark

[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 applica

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 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 presented the

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

2010-04-12 Thread Tim
On Apr 9, 8:02 pm, mike 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 be a google-sp

[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 G

[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 wrote: > On Mar 5, 3:25 am, Bart wrote: > > > Hi, I'd l

[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 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 > yours will ha

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 be

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 ArtistId

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 wrote: > Ok, > @Yahel:- For the insertion of same records on a Palm device(Say Palm Pre) , > its taking 3 seconds.. > On an IPhone , its taki

[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 one

[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 not

[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 o

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 "And

[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 scro

[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 in

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 wrote: > hey > how to buy a phone for testing applications, can anyone suggest. Ot

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

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 l

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 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 presented the

[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 wrote: > Anthoni wrote: > > Hi raqz, > > > I saw y

[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, s

[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 e

[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 wrote: > I have started the transactio

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 obsc

[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 wrote: > Hi all, > >          I'm using webview which loads a html file. When t

[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 AndAppS

[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 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 URL( URL>).openStr

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 | http://twitter.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 w

[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 wrote: > This is a standard class DatabaseHelper extending SQLiteOpenHelper... > >

[android-developers] Problem accessing Layer-List items

2010-04-12 Thread Alok Kulkarni
Hi guys I have a Style declared as follows *XML:* http://schemas.android.com/apk/res/android";> I want to c

[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 ma

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 wrote: > Before the 1st insert call i am doing > db.beginTransaction(); > > for(i = 0 i <2000 ; i++) >addAlbumDB(); > for(i = 0 i <3000 ; 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 unsubscr

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 acti

Re: [android-developers] Draw Text on GLSurfaceView

2010-04-12 Thread A.TNG
On Mon, Apr 12, 2010 at 10:39 PM, Renjith 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 to glsurface, us

Re: [android-developers] Disable scroll in webview

2010-04-12 Thread A.TNG
On Mon, Apr 12, 2010 at 8:48 PM, mmkr 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, TANG Jiyu Blog:

[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 Groups

[android-developers] Re: ListView Example

2010-04-12 Thread dillipk
Any sample code please??? Thanks, -DK On Apr 9, 3:50 pm, Martin Obreshkov 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 update listview. >

[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 an

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 wrote: > Hi all, > > I am developing the android device and system will hang randomly, I > like to enable klogd / syslogd to keep

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 wrote: > On Mon, Apr 12, 2010 at 8:48

[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 wrote: > Each of these abov

[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 gestures.addOnGesturePerformedListener(

[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 responsabil

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 wrote: > Well depends on what you m

[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 improv

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 2

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 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 ideas'

[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" wrote: > On Mon, A

[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 content://com.gnugu.secretbo

[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_l1781>int id, Notification notification, boolean removeNotification) throws RemoteException { 1782 <#1

[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 use

[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.database.

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

2010-04-12 Thread skink
On Apr 9, 2:36 pm, Mariano Kamp wrote: > *bump* > > On Fri, Apr 2, 2010 at 12:53 PM, Mariano Kamp wrote: > > > > > 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. > > > Anybody else seeing these? Any id

[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 all

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 e

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

2010-04-12 Thread gnugu
It fails in DatabaseUtils method: public static void readExceptionWithFileNotFoundExceptionFromParcel( Parcel reply) throws FileNotFoundException { int code = reply.readInt(); if (code == 0) return; String msg = reply.readString(); if (code == 1) { *** this is where the exc

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

2010-04-12 Thread Mark Murphy
gnugu wrote: > It fails in DatabaseUtils method: > > public static void readExceptionWithFileNotFoundExceptionFromParcel( > Parcel reply) throws FileNotFoundException { > int code = reply.readInt(); > if (code == 0) return; > String msg = reply.readString(); > if (code == 1

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

2010-04-12 Thread gnugu
Hi Mark, thanks for your response. Indeed that line was wrong. Here is what the method looks like now. I don't get the exception from within my code. Log shows the same as I posted above and picture is not shown. The picture positively exists and is on sdcard. Could it be that it has to be in Came

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

2010-04-12 Thread Mark Murphy
gnugu wrote: > Indeed that line was wrong. Here is what the method looks like now. I > don't get the exception from within my code. Log shows the same as I > posted above and picture is not shown. The picture positively exists > and is on sdcard. Could it be that it has to be in Camera directory?

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

2010-04-12 Thread Mirko Nasato
Yeah why don't you two launch your own free gift program, only to call it off some time later? There wouldn't be nothing wrong with that according to your reasoning, right? :) Kind regards Mirko On Apr 12, 3:16 pm, Thomas Riley wrote: > I agree with Al, in some ways, If Google suddenly said it'

[android-developers] Activity Exit Animation

2010-04-12 Thread Bill
I've been using overridePendingTransition to animate Dialog Themed activities' on creation... I would like to use animations when those dialogs exit (as in back pressed or work finished). According to the documentation overridePendingTransition can work when finish() is called, but I've tried over

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

2010-04-12 Thread Teo [GD API Guru]
Hi guys, i don't want to be a smart-ass or anything :) It may seem to people looking at this thread that some are complaining which i don't think is true.. Thanks Google for doing this btw! Must be a logistical nightmare to deliver so many phones at once, especially in Europe too, which, consideri

[android-developers] Dear Mark Deloura

2010-04-12 Thread Robert Green
Dear Mark Deloura, I see that you started your first day at Google today. Congratulations on the new gig! I thought as part of your first day as the new Android games guru, I would make a concise list of things that make game development tough for us full-time Android game developers. 1) Touch

Re: [android-developers] How to Validate the Data

2010-04-12 Thread ~ TreKing
On Mon, Apr 12, 2010 at 4:33 AM, Nubh wrote: > 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. > Besides the fact that you want to

  1   2   >