Re: [android-developers] Re: How to know a view size before it's rendered

2010-04-11 Thread Martin Obreshkov
http://developer.android.com/reference/android/view/View.html#onMeasure(int, int) On Sun, Apr 11, 2010 at 7:56 AM, Kumar Bibek coomar@gmail.com wrote: I don't think you can get those before they are rendered. The final bounds will be decided only after the view is rendered, which might be

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

2010-04-11 Thread raqz
Hi, I just tried reading a tutorial and created my app using SAX but its not working for some reason and I have no idea why :) Could some one try helping me Thanks in advance, raqz On Apr 11, 12:23 am, raqz abdulraqee...@gmail.com wrote: Hi, Could some one please tell me the basic steps that

[android-developers] Re: layout on top of the InCallScreen

2010-04-11 Thread Kumar Bibek
No way you can do this. Thanks and Regards, Kumar Bibek On Apr 11, 10:01 am, sleith raysle...@gmail.com wrote: Hi, i use the PhoneStateListener to listen for the call. When i receive ringing state, i tried to launch an intent to run my app. but i noticed that my app is go behind the

[android-developers] Re: Text color in fast scroll SectionIndexer box

2010-04-11 Thread Kumar Bibek
Use this property for your ListView android:cacheColorHint=# Thanks and Regards, Kumar Bibek On Apr 10, 6:55 pm, EPecorari emanuele.pecor...@gmail.com wrote: Hi, I have a ListView with the fast scroll enabled. The background of the listview is white and the text is black. The box

[android-developers] Re: How to know a view size before it's rendered

2010-04-11 Thread Mickey
Hi, I find really hard to imagine that there's no way to know the actual Views' size before they are displayed. I was expecting a sort of callback method on the Activity class or any listener on the View (or ViewGroup) to be implemeted so that I can get the size of UI components. Anyway, I found

[android-developers] Social Gaming Platforms

2010-04-11 Thread Maurício
I'm looking for cross-platform social gaming platforms, essentially for high-scores and achievements but also for multi-player. Basically I came across two solutions: - ScoreLoop (http://www.scoreloop.com): lots of features but is closed for new developers (temporarily?) - Casmul

Re: [android-developers] Re: How to know a view size before it's rendered

2010-04-11 Thread Mark Murphy
Mickey wrote: I was expecting a sort of callback method on the Activity class or any listener on the View (or ViewGroup) to be implemeted so that I can get the size of UI components. There are callbacks on View for this, onLayout() and onMeasure(). If you need to implement custom layout rules

[android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2010-04-11 Thread ko5tik
I'm curious as to whether these are always the same, or generated for us and unique to each SDK install, but I'm not going to look just now. It definitely varies - I use several boxes for development (my older laptop retired to mother in law house ;) ) and I have to uninstall apps compiled

[android-developers] 'Squeezing' a button on the right side

2010-04-11 Thread Teo [GD API Guru]
Hi, you probably heard similar problems before but i can't figure out how to do this programatically. I have a vertical layout with FILL_PARENT on both dimensions. In it i have multiple horizontal layouts with FILL_PARENT width and WRAP_CONTENT height. In each of these horizontal layouts i want

[android-developers] WiFi data transfer stalls as soon as screen becomes blank

2010-04-11 Thread Thilo-Alexander Ginkel
Hello everyone, I am currently trying to figure out how to fix an annoying bug in Sipdroid [1], which seems to be triggered by a power management optimization in Android 2.1: While a SIP (VoIP) call is in progress via WiFi, the data transfer becomes unreliable (and basically stalls) as soon as

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

2010-04-11 Thread Anthoni
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 end for my database to

[android-developers] Thread always seem to throw exceptions although no erros in program

2010-04-11 Thread Bevor
Hello, I use a thread for drawing to the canvas. By coincidence I recognized that in the program always jumps into the finally part. After view.onDraw(c); is reached it steps back to synchronized (surfaceHolder) and then it steps into the finally part. This happens every time. This means to me

[android-developers] Re: Internal links in Webview

2010-04-11 Thread Anthoni
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 with the headers. The

[android-developers] Re: Thread always seem to throw exceptions although no erros in program

2010-04-11 Thread Yahel
Hi, A bit of misunderstanding on your part about the try-catch-finally :) Finally is where you put code you want to execute no matter what happened before, exception or not. Catch is the code executed only when an exception occurs Try is what you want to execute but might trigger an exception.

[android-developers] Out of memory and no useful stack trace

2010-04-11 Thread HippoMan
My android app is getting an Out of memory error without a useful stack trace. It occurs after I have repeatedly re-invoked its main logic through a menu interaction, which leads me to believe that there's a memory leak somewhere. I say that the stack trace isn't useful because it doesn't include

[android-developers] Re: Service vs Singleton

2010-04-11 Thread Streets Of Boston
An Android application (APK) may consist of more than one Activity, more than one Service. Each Activity or Service can run in its own process, can share a process or are run in the process of the calling Activity (and the calling Activity may not even be part of your application: e.g. the Contact

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

2010-04-11 Thread oxonom
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? I have posted a similar question on the Android Market forum, without an answer yet:

[android-developers] Re: Thread always seem to throw exceptions although no erros in program

2010-04-11 Thread Bevor
Hello, Thanks for your answer, you are right. it seems that I forget Java anyhow. Best regards. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] Bug in Android framework connecting to url?

2010-04-11 Thread Moto
I tried many different ways to connect to this url link but android keeps crashing saying the stack is corrupted, take a look. If anyone got the time on their hands to give it a try or give me some tips would appreciate it! :) Link does work try it on winamp or some music app... URL:

Re: [android-developers] Bug in Android framework connecting to url?

2010-04-11 Thread Prajakta Shitole
Can u try this: String _url; URL url; url = new URL(_url); HttpURLConnection connection = (HttpURLConnection)url.openConnection(); The above code works for me. Thanks, Prajakta On Sun, Apr 11, 2010 at 7:36 AM, Moto medicalsou...@gmail.com wrote: I tried many different ways to connect to

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

2010-04-11 Thread praj
Hi, I am trying to have a progress bar in every row of my list view. My list is an iconic list view and have implemented it in the lazy loading way..so i want to display a progress bar (spinning progress bar) till the images are not loaded. My current approach is that i hv placed the progress bar

[android-developers] Re: Social Gaming Platforms

2010-04-11 Thread Rob Mazur
Tapjoy (http://www.tapjoy.com) now supports Android. They look pretty solid. Rob On Apr 11, 6:10 am, Maurício pmauricio.co...@gmail.com wrote: I'm looking for cross-platform social gaming platforms, essentially for high-scores and achievements but also for multi-player. Basically I came

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

2010-04-11 Thread Tunneling
I'm also interested in this. I've been able to load a different image in place of the initial image, and then replace it when the background processing is completed. However, I would really like to show an indeterminate progress bar instead of an image. J On Apr 11, 9:48 am, praj

[android-developers] Is SignalStrength readable outside onSignalStrengthschanged?

2010-04-11 Thread carknue
With SDK 2.1 it is possible to get some additional signalstrength information in the Phonestatelisteners onSignalStrengthsChanged event. That works, but I need to monitor the signalstrength more accurate. onSignalStrengthsCanged is only fired if one of the four signal bars of the signalstrength

[android-developers] Re: Bug in Android framework connecting to url?

2010-04-11 Thread Moto
Yeah that code doesn't work... Are you testing on an emulator? I used a Droid with 2.1 and when testing with a G1 with 1.6 it gracefully gives me an http error code 403 Forbidden Access is forbidden to the requested page So my guess Android 2.1 has a bug handling http error codes.. Anyone

[android-developers] Unable to get a reference to included layout...

2010-04-11 Thread Moto
I'm trying to get a handle to an included LinearLayout to my activities layout. Using the given id simply returns null. Log.i(TEST,V: +this.findViewById(R.id.userAdvance)); I want to have control over the included layout so that I can set it's view to GONE or VISIBLE. shared layout

[android-developers] Dvalve! we called the heart of outsourcing world. Dvalve.com

2010-04-11 Thread Dvalve! outsourcing arena
Dvalve! we called the heart of outsourcing world. Dvalve.com is an online talent workplace that helps companies hire and manage professionals online to get work done and grow their businesses. Dvalve matches employers with a ready and qualified workforce and rated, tested professionals with

[android-developers] Re: Out of memory and no useful stack trace

2010-04-11 Thread Kumar Bibek
OutofMemory errors are very rare and will pop up if you are really creating too many variables in a short span of time, or you are creating a really really large object, for instance, a Bitmap object of a big image file, or while creating a DOM object of a really large XML. 04-11 09:27:41.931:

[android-developers] Re: any lawyer types out there that can get this site down?

2010-04-11 Thread Edward Falk
On Apr 8, 6:59 pm, Guess Who, You Probably have my Number nnarb...@gmail.com wrote: I did. But I am know internet genius. Just me and a friend trying to make a quick buck a while ago. Never thought it would actually work! made a couple hundred. Called it quits. Working on other projects. My

[android-developers] Re: 'Squeezing' a button on the right side

2010-04-11 Thread greg
Have you read the similar layout example at http://developer.android.com/intl/de/resources/articles/layout-tricks-efficiency.html ? - Greg On Apr 11, 8:39 am, Teo [GD API Guru] teomina...@gmail.com wrote: Hi, you probably heard similar problems before but i can't figure out how to do this

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

2010-04-11 Thread HippoMan
In my app, I'd like to define some static resources in an xml file which can be accessed via a HashMap. I know I can do this at run time in a manner similar to the one which is described here:

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

2010-04-11 Thread HippoMan
OOPS: I wrote aadb, above, but I meant to type aapt. -- 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] Re: Android OpenGL Game - App Architecture and Threading Logic

2010-04-11 Thread Bob Kerns
No, we're not arguing semantics, we're agreeing. We were both responding to Miguel. (You did leave out being blocked in an IO call, but that's a minor detail). On Apr 10, 6:56 pm, Robert Green rbgrn@gmail.com wrote: Bob, Perhaps we're just arguing semantics.  I was simply saying that you

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

2010-04-11 Thread Bob Kerns
You say: So, say I have the game loop logic in a thread like that, using the render fps average as a counter, I've noticed that the fps drops when using more than one thread, even if it's just running in an empty loop. Um, ESPECIALLY if it's running in an empty loop. The point is, you don't want

[android-developers] Re: Service vs Singleton

2010-04-11 Thread Bob Kerns
(Not disagreeing with or contradicting anything in Streets of Boston's reply). Applications on Android consist of zero or more components -- activities, services, and broadcast receivers. Processes run components and applications. They're managed separately. An application's components have to

[android-developers] Android 2.1 for the ADP2... here it is!

2010-04-11 Thread Thomas Riley
I know a question which is often always popular with us Android developers and users is when will device x get firmware y... Well, I stumbled into an image on www.google.com/mobile from within the UK earlier today, and well, anyone with a ADP2 will be very happy with what they see! Image one:

[android-developers] Re: how to get device's movement speed?

2010-04-11 Thread BobG
I see now he's asking about pitch roll and yaw velocity rather than x,y and z velocity. The simple case of pitch and roll tilt is detectable with a 3 axis accelerometer. Can't do yaw. That's what the magnetometer is for. So if you can get pitch and roll 20 times a sec (atan2(y,z) and atan2(x,z)),

[android-developers] Sense of AnimationDrawable and of Animation classes at all

2010-04-11 Thread Bevor
Hello, I experimented with frame animations to use them in a game. It seems that it's obviously the easiest way to load all Bitmaps in an array of Bitmaps and to draw every thread tick the next frame to the canvas. Before I tried out making animations with AnimationDrawable. First of all it is to

[android-developers] Re: Out of memory and no useful stack trace

2010-04-11 Thread Thilo-Alexander Ginkel
On Apr 11, 3:44 pm, HippoMan hippo.mail...@gmail.com wrote: My android app is getting an Out of memory error without a useful stack trace. It occurs after I have repeatedly re-invoked its main logic through a menu interaction, which leads me to believe that there's a memory leak somewhere. I

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

2010-04-11 Thread Genc
Nothing for London, Grrr... On Apr 10, 10:43 am, Thomas Riley tomrile...@googlemail.com wrote: Still nothing for me in UK either. From what Google have said via email, it's likely to be a few more weeks. Worth the wait though ;) On Apr 10, 9:28 am, dgoemans dgoem...@gmail.com wrote:

[android-developers] Re: Out of memory and no useful stack trace

2010-04-11 Thread Nanard
You should at least have an idea/logs on the methods which creates OOM, you can encapsulate into a : try { bigMethod(); } catch(java.lang.OutOfMemoryError e) { all objects = null; System.gc(); System.runFinalization(); } Maybe you can also use

[android-developers] video capture in portrait mode

2010-04-11 Thread Nayeem
Hi, I am writing an app to capture video. It am able to get the video in the landscape mode but the portrait orientation does not work. setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); shows the screen in the portrait but the preview is still landscape. How can get it to record

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

2010-04-11 Thread Lucky-dog
Nothing for HongKong. On 4月12日, 上午5时29分, Genc gmt...@gmail.com wrote: Nothing for London, Grrr... On Apr 10, 10:43 am, Thomas Riley tomrile...@googlemail.com wrote: Still nothing for me in UK either. From what Google have said via email, it's likely to be a few more weeks. Worth the

[android-developers] Re: Out of memory and no useful stack trace

2010-04-11 Thread HippoMan
Thanks to both of you. I'm now going to try what each of you suggested. -- 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] Re: Device Seeding Program for Top Android Market Developers

2010-04-11 Thread Maps.Huge.Info (Maps API Guru)
More breaking news... Jimmy Hoffa is still dead... More at 11... -- 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] Max decoding resolution for Android image formats.

2010-04-11 Thread skan95
Dear all. I would like to know max decoding resolution for each Android image formats. , like JPEG, BMP, PNG, GIF. If anyone knows this, please share your information. Thanks. Best regards. -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: any lawyer types out there that can get this site down?

2010-04-11 Thread Guess Who, You Probably have my Number
I can careless about your pity nor do I need it. Good day. On Apr 11, 2:19 pm, Edward Falk ed.f...@gmail.com wrote: On Apr 8, 6:59 pm, Guess Who, You Probably have my Number nnarb...@gmail.com wrote: I did. But I am know internet genius. Just me and a friend trying to make a quick buck a

[android-developers] Re: How to force my TextView to get measured?

2010-04-11 Thread HippoMan
Does anyone have any ideas or suggestions about this? I know I can subclass TextView and then override the onMeasure() method to retrieve the view's measured dimensions. However, onMeasure() gets called _after_ I make a call to setBackgroundDrawable() on my TextView object. I want to get the

[android-developers] Re: How to force my TextView to get measured?

2010-04-11 Thread HippoMan
Does anyone have any ideas or suggestions about this? I know I can subclass TextView and then override the onMeasure() method to retrieve the view's measured dimensions. However, onMeasure() gets called _after_ I make a call to setBackgroundDrawable() on my TextView object. I want to get the

[android-developers] Re: Auto-centering and auto-clipping TextView background?

2010-04-11 Thread HippoMan
I'll look into 9-patch images. I'm sure the learning curve will be worthwhile. Thank you! -- 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

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

2010-04-11 Thread ~ TreKing
On Sun, Apr 11, 2010 at 2:50 AM, raqz abdulraqee...@gmail.com wrote: Hi, I just tried reading a tutorial and created my app using SAX but its not working for some reason and I have no idea why :) Could some one try helping me Let me ask you this: if you, who wrote your project and have all

Re: [android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2010-04-11 Thread ~ TreKing
On Sun, Apr 11, 2010 at 6:08 AM, ko5tik kpriblo...@yahoo.com wrote: It definitely varies - I use several boxes for development (my older laptop retired to mother in law house ;) ) and I have to uninstall apps compiled with debug keys before I can start them from other box. I believe that

Re: [android-developers] Managing Google apiKeys

2010-04-11 Thread ~ TreKing
On Fri, Apr 9, 2010 at 7:47 PM, Tom Opgenorth opgeno...@gmail.com wrote: So does this mean that we'd have to have three copies of the layout file: one for my debug key, one for my colleagues debug key, and then one for production? If you both have the SDK installed in a folder that has the

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

2010-04-11 Thread Streets Of Boston
Yep, Use reflection on the R.string class for strings. Or use reflection on the R.drawable class if you need to map strings to drawables. Query the (publicly) declared fields of R.string using reflection. The code below doesn't follow your example mappings exactly, but you'll get the idea:

[android-developers] Need Help in Webview Highlight

2010-04-11 Thread brijesh masrani
Hello Everyone, I want to select text from Webview and than Highlight it. I am able to get the selected text using *emulateshiftHeld() *method but If i try to search it in file and than Underline it the problem is that it doesn't know the position of text so it underlines that word in whole

Re: [android-developers] Re: Down Tab Bar in Android

2010-04-11 Thread Sasikumar.S
Hi Hehe, I tried it but still it showing Null Pointer Exception. On Sun, Apr 11, 2010 at 7:38 AM, HeHe cnm...@gmail.com wrote: in case you still find no way to go, here is mine that you might like to try if you can bear the fly in the ointment -- the thin white bar of tabwidget is below

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

2010-04-11 Thread kirti kaul
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 cylinder.But I want one texture for each face. Thanks in advance!!! -- You received this message because you are subscribed to the Google

[android-developers] MotionEvent.ACTION_DOWN stop working after 1 day Livewallpaper

2010-04-11 Thread cumhur cevik
After some days MotionEvent.ACTION_DOWN Or ACTION_UP stop working. It is a livewallpaper and I try everything nothing works Have you any idea? Here is the logs: Logs -This log has no ACTION_UP-- 04-12 08:11:15.972: INFO/SmartCube(24011): mGestureDetector.onTouchEvent(

[android-developers] Re: Down Tab Bar in Android

2010-04-11 Thread HeHe
itself cannot cause program exception, i think. you need to debug your apk and find out which object access causes np exception. On Apr 11, 9:22 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi Hehe, I tried it but still it showing Null Pointer Exception. On Sun, Apr 11, 2010 at

Re: [android-developers] Re: Down Tab Bar in Android

2010-04-11 Thread Sasikumar.S
ok i will try it now. On Mon, Apr 12, 2010 at 11:04 AM, HeHe cnm...@gmail.com wrote: itself cannot cause program exception, i think. you need to debug your apk and find out which object access causes np exception. On Apr 11, 9:22 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi Hehe,

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

2010-04-11 Thread Bob Kerns
Just what are you trying to achieve? If you're actually wanting a hash map, efficiently populated on class loading, then Streets of Boston's approach won't help you -- nor will aapt. To do what you actually ask for, you could write an XSLT script to generate the necessary java code. One of the

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

2010-04-11 Thread xlshe
Hi all, I want to create three button on the layout. But the default align of the buttons is in a column like: Button1 Button2 Button3 But I want to the three buttons align in a row in order to save space. The align of the three buttons I need is : Button1 Botton2 Botton3 Would you please tell

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

2010-04-11 Thread Kumar Bibek
Draw your faces separately with different paint objects. Thanks and Regards, Kumar Bibek On Apr 12, 10: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

[android-developers] Re: how to read database of one application in another application using contentproviders

2010-04-11 Thread SREEHARI
Hi, In the manifest file of both applications you have to give permissions. In the manifest file of application with content provider you have to give the following permission provider android:name=. android:authorities=.