[android-developers] Problems with mipmaps + non-square textures on MSM7200?

2010-04-12 Thread Robert Green
Just wondering if anyone else has come across this. The MSM7200 (G1,Mytouch,Eris,Hero,Cliq,etc...) supports mipmapping but not hardware mipmap generation. That's not a big deal as you can just divide the texture by 2 a bunch of times til you're at 1x1 and it works fine. That works for square tex

Re: [android-developers] Re: Android Phones

2010-04-12 Thread nubh bhargava
ya thats true but can look out for cheaper option, Thats all my intention as I am a student [?] Thanks 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 To unsubsc

[android-developers] Re: Android Phones

2010-04-12 Thread String
On Apr 13, 5:27 am, "nubh.bhargava" wrote: > I need a good phone and a fast one too, and the only thing > on my mind is not to shell out $570 To point out the obvious, good + fast = expensive. You get what you pay for. For leading-edge hardware, $500+ is the going price. String -- You receive

[android-developers] 411 length required for HttpPost in Calendar protocol

2010-04-12 Thread Sameer AM
I'm trying to implement the create calendar protocol from Google Calendar. For that I'm supposed to do a HTTPPost to owncalendar url, with auth header and content-type given. After performing HttpPost, i get a response saying "411 length required".. But when I checked packets using wireshark, the c

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

2010-04-12 Thread Bob Kerns
My impression, not well investigated, is that your service is NOT likely to be killed while it is actually running on the main thread doing processing. I'm guessing you're doing this on a separate thread? Your process may be killed, but is less likely to be killed, if you start the service, and mak

[android-developers] Re: To save resources, should services use the android:process attribute?

2010-04-12 Thread Bob Kerns
There are a few exceptions. First, let's distinguish between a service which continuously runs, vs one for which there is a continuing need. You NEVER want a service to be continually running, or even frequently running. You'd even strongly prefer to not have it maintain a process. My own app doe

[android-developers] Re: Database insertion timings

2010-04-12 Thread Bob Kerns
It is often better to insert all the data and THEN create the indexes. I couldn't tell you about Sqlite. You may want to create the primary index, but create all the other indexes later. On Apr 12, 5:33 pm, Zsolt Vasvari wrote: > No, database writing is extremely slow especially with many indeci

Re: [android-developers] Re: Audio Mixing

2010-04-12 Thread Kevin Duffey
Very interesting.. but from what you've said, you're running into the same latency issues as everyone else on android. The chance of making a multi-touch MPC program, or a synth that can play multiple sounds at once seems a bit far off yet for Android at this point. :( On Mon, Apr 12, 2010 at 1:2

Re: [android-developers] Why webview caputured data get lost while save in a thread

2010-04-12 Thread A.TNG
Hi, The Picture stuff (which is representing WebView ) is kind of mysterious for me. If here you got a bitmap and split it into several files. The problem should not exist. But it is a Picture. I don't know what's inside and how it's drawn on canvas. Any idea? -- Best Regards, TANG Jiyu Blog: h

[android-developers] Re: how to define scrollbar's thumb Drawables from java code?

2010-04-12 Thread skink
On Apr 12, 6:11 pm, social hub wrote: > setScrollIndicators(up, down) is this what you are looking for its in View. > > thanks, but setScrollIndicators is AbsListView's method. what does it have to do View's scrollbar's thumb Drawables? pskink -- You received this message because you are su

Re: [android-developers] Disable scroll in webview

2010-04-12 Thread A.TNG
On Mon, Apr 12, 2010 at 11:37 PM, murali raju wrote: > 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. > You mean you hav

[android-developers] Why webview caputured data get lost while save in a thread

2010-04-12 Thread yangjian
Hey everybody! picture = w.capturePicture(); // w is the webview int hpp = 1200; int page = 1 + height /hpp; Bitmap b; if(page == 1) { b = Bitmap.createBitmap( width, height, Bitmap.Config.RGB_565); Canvas c = new Canvas( b ); picture.draw( c ); String path = folder + "web1.jp

[android-developers] Add jpg file to Gallery

2010-04-12 Thread yangjian
Hi,every body. My question is: I can add to jpg file to Gallery by MediaScannerConnection,but this way do not create a thumbnail. I also can do it by MediaStore.Images.Media.insertImage, it create two thumbnail but the quality is down. Is there a way to add file to Gallery and creat a thumbnail wi

Re: [android-developers] DrawableBitmap, Canvas and OR

2010-04-12 Thread A.TNG
On Mon, Apr 12, 2010 at 6:30 PM, Kaj Bjurman wrote: > 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

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

2010-04-12 Thread Kumar Bibek
You do it the normal way. Take the text of the edit text and validate it, just the way you do for web apps with UI validations. Thanks and Regards, Kumar Bibek On Apr 13, 9:44 am, "nubh.bhargava" wrote: > How to validate the data in EditText, i.e. on the time of input. I hope now > you get it wh

Re: [android-developers] screen pixel size

2010-04-12 Thread Dianne Hackborn
Note that this returns the raw size of the screen, not taking into account decorations around it like the status bar or IME that impact the available space to the app. Apps should almost always be using the view hierarchy's layout system to take care of their size. That is, View.onSizeChanged() a

Re: [android-developers] Re: Draw Text on GLSurfaceView

2010-04-12 Thread A.TNG
On Tue, Apr 13, 2010 at 4:47 AM, Vladimir wrote: > To add to what's been said above, if you need a static text or a > simple numeric display, and don't want to bother writing a text > renderer, you can use the code from samples/apis/graphics/spritetext > Oh, the sample is great. Thanks for sharin

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

2010-04-12 Thread nubh.bhargava
How to validate the data in EditText, i.e. on the time of input. I hope now you get it what I mean to say for e.g. we are entering the value of some email id, the validation is required in the login id of the person that he/she doesnt use a special char or there is @ mark and there is '.' present.

[android-developers] Re: 'Avoiding memory leaks' article in android blog

2010-04-12 Thread NoraBora
On Apr 11, 11:23 am, Streets Of Boston wrote: > > If all it OK, you should only have on activity (the new one) and the > old one should be a candidate for garbage collection. But sBackground > is (indirectly) still referencing the old activity and it will not be > garbage collected. but when a n

Re: [android-developers] Re: Android Phones

2010-04-12 Thread nubh.bhargava
Sounds fun!!! But I need a good phone and a fast one too, and the only thing on my mind is not to shell out $570, i cant afford that much. Please help Thanks NUBH -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

[android-developers] Re: Disable scroll in webview

2010-04-12 Thread grace
ya u can do that.. using methods like public void setHorizontalScrollBarEnabled (boolean horizontalScrollBarEnabled) and public void setVerticalScrollBarEnabled (boolean verticalScrollBarEnabled) On Apr 12, 5:48 pm, mmkr wrote: > Hi all, > >     Is it possible to disable the scrollbar in the we

[android-developers] Re: AudioRecord fails on Android 2.1

2010-04-12 Thread HeHe
i believe you should buy one for development, especially after you country has discovered a huge oil field :-) On Apr 12, 4:33 pm, Gabriel Simões wrote: > Well then I think I will need to hold 400 bucks to buy a real > device here in Brazil ... and it´s gonna be a crap samsung > > On 12

[android-developers] Re: Generating a static HashMap from resources?

2010-04-12 Thread HippoMan
My main reason is that I want to have public static final mapped values available to a number of classes. This way, I can instantiate other static final fields using some of the mappings in this HashMap. I can't do that if I have to decode an XML file at run time. If I could dereference R.string.*

[android-developers] [ANN]VTD-XML 2.8

2010-04-12 Thread dontcare
Note: this email is related to Android Development since many apps use XML extensively. Version 2.8 of VTD-XML, the next generation XML parsing/indexing/xpath engine, has been released. Please visit https://sourceforge.net/projects/vtd-xml/files/ to download the latest version. * Expansion of C

[android-developers] Launcher Application Broken Problem

2010-04-12 Thread bappa
Dear All, 1. Does Ideal Screen(Screen Lock) application and Launcher Application( after unlock the screen) is the same ? 2. How can we set/change position and co-ordinate of Ideal Screen/ Launcher Application ? Thanks in advance. Regards Bappa -- You received this message because you are

Re: [android-developers] Re: Progress Bar in every row of ListView

2010-04-12 Thread Prajakta Shitole
Is there anyone who had tried this.. the problem with my implementation is that the list view is not getting refreshed..even after writing notifyDataSetChanged.. only the first row gets displayed properly the rest of the rows display the progress bar even when the images hv loaded. On Sun, Apr 11

Re: [android-developers] Re: Android Phones

2010-04-12 Thread chris harper
Thank you for the response. I'll give them a try when I am ready test my app. On Mon, Apr 12, 2010 at 2:41 PM, Vladimir wrote: > I used DA 2 years ago when I was working as a j2me developer, it went > well, a bit slow but I was able to play the game and test what I > wanted to test. Not a very pl

Re: [android-developers] Re: Custom Spinner

2010-04-12 Thread murali raju
I tried it, it just reduces the width of the text in the drop down but not the width of drop down. On Tue, Apr 13, 2010 at 6:20 AM, skyhigh wrote: > To customize the way that the spinner drop down looks I think you need > to use your own custom layout instead of using the standard android > layo

Re: [android-developers] screen pixel size

2010-04-12 Thread murali raju
DisplayMetrics dis = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(dis); Log.i("width = ",""+ (width = dis.widthPixels)); Log.i("height = ",""+ (height = dis.heightPixels)); On Tue, Apr 13, 2010 at 3:35 AM, Bob wrote: > Hi, > I need to know how ma

[android-developers] Re: Custom Spinner

2010-04-12 Thread skyhigh
To customize the way that the spinner drop down looks I think you need to use your own custom layout instead of using the standard android layout android.R.layout.simple_spinner_dropdown_item You can find the xml layout definition for android.R.layout.simple_spinner_dropdown_item at the following

[android-developers] Re: Database insertion timings

2010-04-12 Thread Zsolt Vasvari
No, database writing is extremely slow especially with many indecies. In my app, I am getting maybe 10 insers a seconds into a table with 20 columns and 15 indecies. As my app is probably 99.9% reads, I didn't try optimizing the writes too much, not sure if it's even possible. On Apr 13, 12:33 a

Re: [android-developers] To save resources, should services use the android:process attribute?

2010-04-12 Thread Mark Murphy
Michael Elsdörfer wrote: > I have a service that runs continuously. Please try to avoid that. This is why users attack us with task killers. http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/ http://www.androidguys.com/2010/03/29/code-pollution-background-control/ > Is

[android-developers] To save resources, should services use the android:process attribute?

2010-04-12 Thread Michael Elsdörfer
I have a service that runs continuously. I opted to run the service in a separate process, communicating through IPC with the client activities, thinking this will help conserve memory. If the user is done interacting, Android could shut down the entire client side process. However, the protocol b

[android-developers] Re: AudioRecord fails on Android 2.1

2010-04-12 Thread Gabriel Simões
Well then I think I will need to hold 400 bucks to buy a real device here in Brazil ... and it´s gonna be a crap samsung On 12 abr, 20:22, HeHe wrote: > > On Apr 12, 2:34 pm, Gabriel Simões wrote: > > I´d like to ask you one thing: have you been able to record a sound > > and listen to

[android-developers] Re: AudioRecord fails on Android 2.1

2010-04-12 Thread HeHe
> On Apr 12, 2:34 pm, Gabriel Simões wrote: > I´d like to ask you one thing: have you been able to record a sound > and listen to it without problems using the emulator (older versions). > I can create an instance and indeed record but when I try to play it > the sound is completly messed up, di

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

2010-04-12 Thread Dianne Hackborn
Why do you want to use startForeground()? What is it giving you? If you want your code to run in the background, it is probably not what you want. On Mon, Apr 12, 2010 at 2:04 PM, Mariano Kamp wrote: > 1) CPU is not a problem per se. My process can happily be starved of CPU, > but as it needs t

Re: [android-developers] Re: Is it possible to use MediaPlayer to play streaming audio?

2010-04-12 Thread Mark Murphy
RAMGarden wrote: > I'm running into the same issue. I've even tried the > mp.prepareAsync() method but it fails when I call mp.start(). prepareAsync() definitely works with streaming video. I haven't experimented with streaming audio, lacking a good data source. > This is > because it is trying

[android-developers] Re: Is it possible to use MediaPlayer to play streaming audio?

2010-04-12 Thread RAMGarden
I'm running into the same issue. I've even tried the mp.prepareAsync() method but it fails when I call mp.start(). This is because it is trying to load the whole file into memory I'm guessing. Since a URL stream is usually 24/7 it will never prepare. The closest thing I've come to is this: http:

Re: [android-developers] Re: AudioRecord fails on Android 2.1

2010-04-12 Thread Olivier Guilyardi
Hi Gabriel, On 04/12/2010 11:34 PM, Gabriel Simões wrote: > Well, yes, there´s a clue. At least I´ve had the same error before and > it was this: > Everytime you get an error instantiating AudioRecord it doesn´t > release it´s resources the way it should so you won´t be able to > request it again

[android-developers] screen pixel size

2010-04-12 Thread Bob
Hi, I need to know how many pixels wide and tall the screen is. I know that there are a bunch of different localization folders that I could make for different views but I just need to know, programmatically, how many pixels are on the screen so I can do some drawing. How can I detect this? Than

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

2010-04-12 Thread Anthoni
Still prefer JSON, but if talking to legacy systems then you have no choice to go the XML route. Luckily I have total control over back end server process so I have gone the former route. However, been informed my next program might have to talk to XML back end (SOAP) and was looking into kSoap, s

[android-developers] Re: AudioRecord fails on Android 2.1

2010-04-12 Thread Gabriel Simões
Well, yes, there´s a clue. At least I´ve had the same error before and it was this: Everytime you get an error instantiating AudioRecord it doesn´t release it´s resources the way it should so you won´t be able to request it again unless you restart your phone (or close and reopen the emulator). Als

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

2010-04-12 Thread Mariano Kamp
1) CPU is not a problem per se. My process can happily be starved of CPU, but as it needs to do xml parsing it does task the CPU albeit at it's lowest prio. 2) As I said I rely on an external API that doesn't understand incremental updates. Anyway, I think there is no good solution and the usefuln

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

2010-04-12 Thread Mark Murphy
Mariano Kamp wrote: > > Quoting myself: > > And you have done so wonderfully. > > What is it your trying to say though? > > That it is ok to raise the priority when I don't want my process to be > killed. I'm saying what Ms. Hackborn confirmed in her reply to my post -- startForeground()

[android-developers] Re: Draw Text on GLSurfaceView

2010-04-12 Thread Vladimir
To add to what's been said above, if you need a static text or a simple numeric display, and don't want to bother writing a text renderer, you can use the code from samples/apis/graphics/spritetext On Apr 12, 5:39 pm, Renjith wrote: > Hi, > > Can anyone help me to understand how to draw text on G

[android-developers] Re: Android Phones

2010-04-12 Thread Vladimir
I used DA 2 years ago when I was working as a j2me developer, it went well, a bit slow but I was able to play the game and test what I wanted to test. Not a very pleasant experience but it got the job done. 2OP: ebay is your friend, I believe you can get a used G1 for $100-150, that's enough to be

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

2010-04-12 Thread Mariano Kamp
> > > Quoting myself: > And you have done so wonderfully. What is it your trying to say though? That it is ok to raise the priority when I don't want my process to be killed. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

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

2010-04-12 Thread Mariano Kamp
Skink, awesome. That sounds fantastic. I will try that. Cheers, Mariano On Mon, Apr 12, 2010 at 7:45 PM, skink wrote: > > > 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 ge

[android-developers] Simple bluetooth presence detection?

2010-04-12 Thread Mark Wyszomierski
Hi, Really general, very new to bluetooth. Can we have one android device broadcasting a simple 'hello' bluetooth network (maybe a radius of just a few feet) - then when other android devices come into that area, reply with a 'hello' back? The client devices moving through the 'hello' radius would

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

2010-04-12 Thread Mariano Kamp
My point is that the documentation says nothing at all about raising the execution prio, but you say now that it does, right? What the documentation says is that startForground() helps that the process doesn't get killed and that's what I was after, because it is a costly process wasting bandwidth

Re: [android-developers] Re: ListView Example

2010-04-12 Thread ~ TreKing
On Mon, Apr 12, 2010 at 10:02 AM, dillipk wrote: > Any sample code please??? Use the documentation and SDK samples to get started. I'm sure you can find more online with a simple Google search. Then post back if you get stuck and have any specific questions. ---

[android-developers] Re: Audio Mixing

2010-04-12 Thread Mario Zechner
I did some audio work on Android and have to agree with Kevin's analysis. Writting to the audio device via AudioTrack works and you can also alter the buffer sizes to get to the lowest possible latency but from what i remember the buffer was still pretty big. Also, AudioTrack does not allow passing

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

2010-04-12 Thread Bob Kerns
You can also use XmlSerializer to serialize a DOM, together with about a page of code to walk the DOM. That's a whole lot more painful than it ought to be, but it's better than writing XML tags yourself, which if you find yourself doing, you're doing something wrong. On Apr 12, 5:57 am, Mark Murp

Re: [android-developers] Re: how to define scrollbar's thumb Drawables from java code?

2010-04-12 Thread social hub
setScrollIndicators(up, down) is this what you are looking for its in View. On Mon, Apr 12, 2010 at 3:03 PM, skink wrote: > i hate bumping but... > > pskink > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, s

Re: [android-developers] Audio Mixing

2010-04-12 Thread Kevin Duffey
Mixing audio in itself is not too hard.. you basically add each byte of each sound (that plays at the same exact point in time). You do face the issue of dynamic range.. if you are mixing 16-bit sounds, you don't want to use a 16-bit value to store the mixed sounds.. you'll overflow it. or clip the

[android-developers] Re: how to define scrollbar's thumb Drawables from java code?

2010-04-12 Thread skink
i hate bumping but... pskink -- 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

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

2010-04-12 Thread Kevin Duffey
Agree with the rest..use JSONObject/array. JAXB I believe can convert JSON to objects as well.. but I may be wrong on that. I know that java/jersey project with JAXB does handle the json or xml into object for me.. just not sure if that is jaxb directly or if jersey is doing some of the work. On

Re: [android-developers] Re: Android OpenGL Game - App Architecture and Threading Logic

2010-04-12 Thread Miguel Morales
Ah, I see, it might have been due to my misuse of wait() and notify(). In any case, I remember that even sleeping the thread caused decreased fps rate, (which I took as increased cpu usage.) I mentioned the pool thread, not because I implemented one, but because I avoided implementing one and av

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

2010-04-12 Thread Bob Kerns
Actually, Android omits a LOT of the standard J2SE JDK -- though nothing that would impact a JSON parser. But the usual JSON parser is built into Android. Just do new org.json.JSONObject() On Apr 12, 2:33 am, vworld4u wrote: > You can use JSON Parser readily available for this purpose. Since > A

[android-developers] AudioRecord fails on Android 2.1

2010-04-12 Thread Olivier Guilyardi
Hi, I can successfully create an AudioRecord instance on the emulator, on Android 1.5, 1.6, and 2.0 with the following statement : new AudioRecord( MediaRecorder.AudioSource.MIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, 16384); But it fail

[android-developers] Audio Mixing

2010-04-12 Thread k_day
Despite everything I have read about the difficulty of making low latency audio apps in Android, I am giving it a shot. To start, I loaded each note in an octave into a SoundPool, and then looped through each note that was to be played on that beat and called play(). This didn't even come close t

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

2010-04-12 Thread Bob Kerns
HTTPS will not, under any circumstance, let you get access to header or content information from other applications. This would be a security violation of the highest order! Like steal all your money security violation. Like steal your identity security violation. You can use various protocol moni

[android-developers] Re: DrawableBitmap, Canvas and OR

2010-04-12 Thread Bob Kerns
And just what useful visual result do you want to happen as a result? OR makes sense for black and white, not for color. Or are you using the graphics processor for something other than actual graphics? On Apr 12, 3:30 am, Kaj Bjurman wrote: > Hi, > > Is it in some way possible to draw somethin

[android-developers] Re: Dear Mark Deloura

2010-04-12 Thread Robert Green
Mark, email yourself from your desktop while playing a game with reasonable cpu/gpu usage. Watch as the game stutters because the gmail process eats CPU while updating, then tell me I'm wrong. I care less about why it happens and more about the fact that it does happen and we game devs have no co

[android-developers] Re: Spurious calls to onPause?

2010-04-12 Thread asher
One other bit of information: the activity is not actually paused. If I disable my onPause method, the activity stays frontmost and appears interactive (though I don't have much going on at the moment, so it's a bit hard to tell). Aaron On Apr 12, 3:24 pm, asher wrote: > I have a relatively simp

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

2010-04-12 Thread Dianne Hackborn
Yep startForeround() does what it says -- tells the system it should treat your service as if it is in foreground, something the user is aware of. A typical example is "background music playback," which needs to get as much CPU as it needs in order to avoid a bad user experience. Generally, if yo

[android-developers] Spurious calls to onPause?

2010-04-12 Thread asher
I have a relatively simple application with only one activity (in use, anyway). When I launch it, my activity gets the following sequence of calls: onCreate, onResume, onPause. This happens with no user input whatsoever. What's going on with that onPause? The only clue that I have is a line in the

[android-developers] Re: Dear Mark Deloura

2010-04-12 Thread Mario Zechner
I want to say "Me Too" here. I'm not a full time android game developer but invest a lot of my spare time in producing games as well as engines/frameworks for Android. I can only agree to all the points Robert already mentioned. For me the biggest issue is the broken multi-touch which also affects

Re: [android-developers] Dear Mark Deloura

2010-04-12 Thread Mark Murphy
Robert Green wrote: > 3) Background processes destroy intense game framerates, even on > 2.1. http://www.androidguys.com/2010/03/16/code-pollution-background-foreground/ Where did I go wrong in this analysis? And, if there are no significant flaws in the analysis, how does that analysis jive wit

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

[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

[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] 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 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'

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: 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: > 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
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: 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] 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

[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] 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: 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: 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] 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: 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

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'

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

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

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

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

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

[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

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

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:

  1   2   >