RE: [android-developers] add text to each image in gridview

2011-01-20 Thread Trung Liem Vo
Hi, Your code is correct. Can you use each item contain imageview and textview. So your image will have the label. Best regards, Trung Liem Vo -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of pramod.deore Sent:

[android-developers] Problem with textview(WebTextView)

2011-01-20 Thread yogi
Hi All, I am have a problem, I created app in with webview in it. Now when i open google.com and search a word. After that i just copy and paste the content of the textview again again. I saw that after some repeated pastes the text is overlapping on the with the previously existing text. I

Re: [android-developers] Re: Locking and SQLIte

2011-01-20 Thread Kostya Vasilyev
Simon, In your original message you wrote: It used to be working pretty well until I started trying to put progress spinners in which needed to go in a thread to display. (I still can't get them to spin). At this point I started to get loads of errors with database locks. You

Re: [android-developers] Re: Will no longer support Android 1.5

2011-01-20 Thread Kostya Vasilyev
No, I'm not disputing those numbers at all. What I meant is - it wasn't a weird phone made by a fringe manufacturer. The phone a Motorola Backflip - AFAIK, it still runs 1.5 outside the US, and the 2.1 update in the US was not an OTA, so perhaps not everyone who could update actually did.

[android-developers] SIPDemo is not working...

2011-01-20 Thread Avi
I tried to use SIPDemo application on Android 2.3 - revision 9 emulator But it returns null for the SIPManager.newInstance(this). if (manager == null) { manager = SipManager.newInstance(this); } On checking SIPManager.isAPISupported. It retruns false. Has any body run SIPDemo application,

[android-developers] Re: Schedule notification instead of permanently check

2011-01-20 Thread Danny S.
Good Morning! Wow, you helped me to get it work. I create a PendingIntent with a unique id and store the intent mapped to their IDs in a HashMap. I collect all intents with the known id and can the cancel them using the AlarmManager. I dont know if it is recommended and efficient to store those

[android-developers] Re: Anyone with GL experience willing to take a contract/bounty?

2011-01-20 Thread Indicator Veritatis
Spend a little more time with The Red Book on OpenGL, and it will make sense to you. It takes a couple of slight shifts in your way of thinking, but one you change gears, it won't seem so unfriendly. That said, the slight shifts are easier for those of us who used homogeneous coordinates,

Re: [android-developers] Re: Schedule notification instead of permanently check

2011-01-20 Thread Kostya Vasilyev
Danny, Android already keeps a global registry of pending intents, so keeping a parallel hash map should not be necessary. To cancel an alarm, you don't need a reference to the original Java object, you can just construct a pending intent the same way as you did when setting the alarm

[android-developers] Re: Android's default browser - help for directions

2011-01-20 Thread Indicator Veritatis
Shouldn't that be somewhere in the Android source? I never did figure out how to navigate the source, despite the documentation at http://source.android.com/source/index.html, but that is probably where you should start. One of the Google groups concerned with the Open Source Project or with

[android-developers] Problem launching Google Goggles from camera app

2011-01-20 Thread blindfold
I'm launching Google Goggles from my own camera app through an intent, which generally works fine, but occasionally Google Goggles refuses to launch, popping up an error message reading Camera Error Cannot connect to camera. You may need to restart your device. and after pressing OK my app

[android-developers] Regarding Certification

2011-01-20 Thread jayavenkat
Hi, I need details about Android certification -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Regarding Certification

2011-01-20 Thread Marcin Orlowski
On 20 January 2011 10:44, jayavenkat jaia...@gmail.com wrote: Hi,     I need details about Android certification we need details what is android certification -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Preserve ListView position when using footers

2011-01-20 Thread Kwisatz
This is driving me crazy! I have two applications with this problem, and I'm about to give up. I'm out of ideas. In these applications, I've constructed a pattern for the ListView very similar to the Gmail app. I'm fetching information from the server in small sets, and when a user scrolls down

[android-developers] Re: How to set images in screen have different click events on different area

2011-01-20 Thread Faheem Khatri
Thx I ll check On Jan 18, 8:15 pm, viktor victor.scherb...@gmail.com wrote: you can add OnTouchListener and test area what you want. or, add layouts onto FrameLayout, where background is your image. On 18 Січ, 15:14,FaheemKhatri faheemkhatr...@gmail.com wrote: I have an single image in

[android-developers] Re: Android's default browser - help for directions

2011-01-20 Thread Sergey Glotov
On Wednesday, January 19, 2011 9:01:01 AM UTC+3, kypriakos wrote: (2) Does anyone have details on how this browser is implemented or where I can find that? Is it a derivative of the WebKit? Source code of Android browser is here:

[android-developers] Re: google analytics jar does not seem to work now

2011-01-20 Thread David Liebman
just thought of a good question: what URL did you use for your google analytics profile. When I did it, I made up something descriptive. That should work, right? On Jan 19, 10:54 am, David Liebman david.c.lieb...@gmail.com wrote: @Manuel Ciosici sorry, I'm still not getting new tracking from

[android-developers] how to access com.android.internal.telephony.CallManager ?

2011-01-20 Thread Harsha
Hi, I am trying to access CallManager class object from com.android.internal.telephony package. here is my code: { classCallManager = Class.forName(com.android.internal.telephony.CallManager); Method method_getInstance; method_getInstance = classCallManager.getDeclaredMethod(getInstance);

[android-developers] Re: Regarding Certification

2011-01-20 Thread pramod.deore
There is no any certification exam for Android On Jan 20, 2:44 pm, jayavenkat jaia...@gmail.com wrote: Hi,      I need details about Android certification -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] [android-developer] Where are the codes that handles the browser anti aliasing?

2011-01-20 Thread archieval
Hi everyone, I just wanted to disable anti-aliasing in the browser because it is quite laggy when scrolling. Does anyone can point me where it is? Thank you very much Regards, archieval -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: AdSense for Android: is it available in Europe?

2011-01-20 Thread ko5tik
On Jan 20, 6:00 am, Nightwolf mikh...@gmail.com wrote: adMob allows using adSense as ads source. In case of adSense (without adMob) you have to register account and mention that you're going to show ads in mobile application. Apparently not for me. No way to activate this from control

[android-developers] Creating Animation List Using Bitmaps Programatically

2011-01-20 Thread Amit
Hi All, I am trying to achieve adding the animated gifs into my application. 1- I am able to download the animated gif from server. 2- I am able to decode the animated gif (using my custom decoder) and have a separate Bitmap corresponding to its frames. Now I want to animate it using the frame

Re: [android-developers] Preserve ListView position when using footers

2011-01-20 Thread Kostya Vasilyev
20.01.2011 13:08, Kwisatz пишет: I use the getFirstVisiblePosition() and the setSelection() to workaround this, although it's ugly because the ListView always shifts a little. But even these are buggy and sometimes (about 5% of the times) the getFirstVisiblePosition() returns 0. This just adds

Re: [android-developers] Creating Animation List Using Bitmaps Programatically

2011-01-20 Thread Kostya Vasilyev
Based on the reference: http://developer.android.com/reference/android/graphics/drawable/AnimationDrawable.html you just create a new AnimationDrawable, then call addFrame() for each frame image, and finally all start() to play it. -- Kostya 20.01.2011 14:01, Amit пишет: Hi All, I am

[android-developers] Re: Read Response from PHP server

2011-01-20 Thread Samsung Galaxy
@Frank Weiss Yes you were right, I put all the code in a doPost method and now it shows no error. thanks a lot. I will get you back as i cannot test it right now bcz my server is down. @20pul10 In original code there is a serverURL. I can post my data in mySQL using PHP but I want to show a

Re: [android-developers] Trying to return to a previous screen

2011-01-20 Thread barnes . tony
Thanks Kostya, I had actually figured it out and forgot to get back on here to post. That makes sense. -- 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

[android-developers] Re: Pre DEX optimization Info

2011-01-20 Thread channa kad
can someone give some hint on the below query? On Thu, Jan 20, 2011 at 5:38 PM, SOMA KOHLI soma.ghosh.ko...@gmail.comwrote: Looks like the froyo version does not do the odex storing through the build system. It only stores the odex at runtime in the dalvik-cache folder. When you installl an

[android-developers] Sample code for service?

2011-01-20 Thread petter
I'm looking for a complete minimalistic code sample for a service. Does such a thing exist? I've tried, but get some errors which I assume is related to inconsistency between my xml and java code. I'm simply using ant and and the CLI tools, e.g. not Eclipse. -- You received this message because

[android-developers] Re: getHitRect() returns hit to a different image item in a Customize List

2011-01-20 Thread Hari Edo
It's not clear what effect you're doing, but you will probably need the inverse of the drawing transformation to determine the hits. That is, if the drawing transformation is dividing by Z for depth and perspective, the hit testing function should be multiplying by Z to put the touch coordinates

[android-developers] Re: Anyone with GL experience willing to take a contract/bounty?

2011-01-20 Thread RyanMcNally
Here is some code: http://code.google.com/p/rugl/source/browse/trunk/droid/DroidRUGL/src/com/ryanm/droid/rugl/util/geom/Tesselator.java that will take a list of x,y vertex coordinates of a simple polygon (concave is fine, self-intersecting is not) and spit out the vertex and triangle index arrays

Re: [android-developers] Sample code for service?

2011-01-20 Thread Mark Murphy
I do not know what qualifies as minimalistic, but here are some short ones: https://github.com/commonsguy/cw-android/tree/master/Service/FakePlayer https://github.com/commonsguy/cw-android/tree/master/Service/Downloader On Thu, Jan 20, 2011 at 7:22 AM, petter petter.gus...@gmail.com wrote: I'm

[android-developers] Re: Could I exec some codes after my app is installed

2011-01-20 Thread Jens
Yes. Which is bad. Adding a BroadcastReceiver to your app for something that is spammed often enough start your app without user interaction .. eventually. For that extra abusive touch i recommend listening for ACTION_USER_PRESENT - whenever the user wakes up his device goes past the key guard

[android-developers] Re: The curious case of the impossible ArrayIndexOutOfBoundsException

2011-01-20 Thread RyanMcNally
The values aren't identical. e.g.: // right frustum[ 0 ][ 0 ] = clip[ 3 ] - clip[ 0 ]; versus // left frustum[ 1 ][ 0 ] = clip[ 3 ] + clip[ 0 ]; Took me while to spot that myself though, this kind of

Re: [android-developers] MediaPlayer not working properly - causing sounds to be truncated

2011-01-20 Thread Mark Murphy
On Wed, Jan 19, 2011 at 11:12 PM, Peter Carpenter peter.carpen...@skytechnologies.com wrote: I need to provide the facility to play multiple sounds (which could be large) concurrently and to know once each sound has finished playing. :: snip :: I can’t use the soundpool as I want to detect

[android-developers] Re: The curious case of the impossible ArrayIndexOutOfBoundsException

2011-01-20 Thread RyanMcNally
No native code I'm afraid. I've given the three users apk's with the improved exception logging, and so begins the waiting game... Ryan On Jan 20, 1:12 am, fadden fad...@android.com wrote: That is definitely strange.  I can't see any reason why that exception would be thrown from that point.

Re: [android-developers] how to access com.android.internal.telephony.CallManager ?

2011-01-20 Thread Mark Murphy
On Thu, Jan 20, 2011 at 5:35 AM, Harsha harsh...@gmail.com wrote: Hi, I am trying to access CallManager class object from com.android.internal.telephony package. here is my code: { classCallManager = Class.forName(com.android.internal.telephony.CallManager); Method method_getInstance;

[android-developers] facebook in 2.2 problem

2011-01-20 Thread Ramesh Solanki
hello dear i am developing project in android which i want to integrate facebook facebook is working well in 2.1 sdk 7 but it not working in 2.2. sdk 8 what is problem i have no any idea about that please suggest me thnks in advance -- Thanks regards Ramesh Solanki Dignizant technology Surat

[android-developers] Re: The curious case of the impossible ArrayIndexOutOfBoundsException

2011-01-20 Thread DanH
You didn't put an exception handler around the subscript operation in the exception handler. On Jan 20, 6:38 am, RyanMcNally therealr...@gmail.com wrote: No native code I'm afraid. I've given the three users apk's with the improved exception logging, and so begins the waiting game... Ryan

[android-developers] Re: The curious case of the impossible ArrayIndexOutOfBoundsException

2011-01-20 Thread DanH
BTW, I'm betting that the problem never reappears for those three users. On Jan 20, 6:38 am, RyanMcNally therealr...@gmail.com wrote: No native code I'm afraid. I've given the three users apk's with the improved exception logging, and so begins the waiting game... Ryan On Jan 20, 1:12 am,

[android-developers] Re: The curious case of the impossible ArrayIndexOutOfBoundsException

2011-01-20 Thread RyanMcNally
There's been no indication that the arrays could be null so far, but I guess at this point we are fully through the looking-glass so all bets are off. Welcome to bizarro-world, engage null-checks for your safety, convenience and psychological integrity. Ryan On Jan 20, 1:07 pm, DanH

[android-developers] Which phone for hardware testing?

2011-01-20 Thread Rok
I'm looking to support all phones back to 1.5 so am wondering what phone would be a good one to buy to test the application on slower CPU, lower resolution, etc.? Something in the nature of if it works on this, it'll work on mostly anything... -- You received this message because you are

Re: [android-developers] Which phone for hardware testing?

2011-01-20 Thread TreKing
On Thu, Jan 20, 2011 at 7:39 AM, Rok cliff.dav...@gmail.com wrote: I'm looking to support all phones back to 1.5 so am wondering what phone would be a good one to buy to test the application on slower CPU, lower resolution, etc.? Something in the nature of if it works on this, it'll work on

[android-developers] Re: Which phone for hardware testing?

2011-01-20 Thread Stephan Wiesner
Thats what I bought my SE Xperia Mini Pro for. Its not too expensive, small enough that i can carry it around with me all the time and has a hardware keyboard, which is great to make sure the app can be used with it. As it has only 600 MHz, I use it for performance testing, though in many cases it

Re: [android-developers] facebook in 2.2 problem

2011-01-20 Thread TreKing
On Thu, Jan 20, 2011 at 6:42 AM, Ramesh Solanki rkindia1...@gmail.comwrote: i am developing project in android which i want to integrate facebook This group is for the Anroid SDK, not Facebook. facebook is working well in 2.1 sdk 7 but it not working in 2.2. sdk 8 what is problem i have no

Re: [android-developers] Sample code for service?

2011-01-20 Thread TreKing
On Thu, Jan 20, 2011 at 6:22 AM, petter petter.gus...@gmail.com wrote: I'm looking for a complete minimalistic code sample for a service. Does such a thing exist? Did you try looking at the documentation? Because the Service class docs themselves have a minimalistic example.

Re: [android-developers] Re: Best, easiest, cleanest, way to make a game and cross platfrom.

2011-01-20 Thread brian purgert
Thanks i looked into it and i really like the unity game engine, and i just bought a book for it and i think it will be a good next step for me. On Jan 20, 2011 12:06 AM, Nightwolf mikh...@gmail.com wrote: libgdx allows you to develop mostly on PC and then generate apk for android. Unity engine

[android-developers] How to add a Search Bar

2011-01-20 Thread Lidia
Hello developers, I have a huge misunderstanding. I am trying for few days to add the search bar in my application like one from http://developer.android.com/resources/articles/qsb.html But, I do not think I understood exactly if I can use it just for the search i need. e.g.: to retrieve the

[android-developers] Implement Service in one application and access in another application

2011-01-20 Thread Hari Kumar
Hi All, Currently I am trying to access the Service which is implemented in one application and accessed by another application. But it is not happening. Below I explain the code for reference, Please check it out. Consider the implemented Service application as Server and accessing the Service

[android-developers] openGLES different behavior on different devices

2011-01-20 Thread pedr0
Hi at all, I have some strange behavior issues on texture-mapping with OpenGL ES 1.1 1)This is the right picture (Samsung Galaxy S): http://i.imgur.com/j00Zy.png 2)This an wrong picture (HTC Magic): http://i.imgur.com/P8NCW.png 3)This is another wrong picture (Ideos):

[android-developers] Re: Preserve ListView position when using footers

2011-01-20 Thread Kwisatz
Thanks for the help, Kostya. The getScrollY() didn't work, but it got me started to find out a way that I could save the pixel offset of the top ListView row. And I got it. It's something like this: @Override protected void onPause() { super.onPause();

[android-developers] Bitmap factory and ICC aware JPG

2011-01-20 Thread Yahel
Hi all, I'm fighting a weird battle over here. Using this simple code : URL bitmapURL = new URL(http://farm5.static.flickr.com/ 4069/4432443443_3ece4b42d9.jpg); HttpURLConnection connection = (HttpURLConnection)bitmapURL.openConnection();

[android-developers] Re: How to add a Search Bar

2011-01-20 Thread gulbrandr
http://developer.android.com/guide/topics/search/adding-custom-suggestions.html Have you read this? If no, it should help you. On Jan 20, 3:19 pm, Lidia lidyp...@yahoo.com wrote: Hello developers, I have a huge misunderstanding. I am trying for few days to add the search bar in my

[android-developers] RelativeLayout click events

2011-01-20 Thread BuckeyeDroid
Hi, I have a RelativeLayout with two TextViews and a Button. Each of these is a row. I want to be able to click anywhere on the row and get the same effect as if I just clicked the button. Right now, only clicking the button works. Clicking anywhere else on the row does not work. Does anyone

Re: [android-developers] Re: Preserve ListView position when using footers

2011-01-20 Thread Kostya Vasilyev
20.01.2011 17:59, Kwisatz пишет: So, I did my (so far) most ugly hack EVER! I'm sincerely ashamed of this, and I will deny that this is my code, but... it gets the job done for now :P I'm not going to tell anyone :) BTW, have you thought about implementing header / footer rows right in

[android-developers] Theme/Style in custom preference

2011-01-20 Thread Eric Crump
I created a custom PreferenceActivity. Doing so removed all the text style. How do I apply the default style that you would normally see in a preference activity to my custom one? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] RelativeLayout click events

2011-01-20 Thread Kostya Vasilyev
A view can only receive click events inside its boundaries. So make them larger, by using appropriate layout options. If you want the button to look small and respond to clicks over a larger area, then add some kind of layout around it with width=fill_parent, and set the click handler on that

Re: [android-developers] Re: getHitRect() returns hit to a different image item in a Customize List

2011-01-20 Thread argon gold
Hi Hari Edo, You can view the effect I am doing in movie at following youtube link. http://www.youtube.com/watch?v=TMaMpp8eg4s It is on the left side a deck of cards when slide up or a fling action happen they moves upward at different angles and finally at one stage each card gets straighten

Re: [android-developers] Battery usage measurements

2011-01-20 Thread Prakash Iyer
On the phone there's is a what's been using the battery. This says display, contacts etc. I assume this is reasonably accurate on a process level... On Jan 19, 2011 9:33 PM, Mark Murphy mmur...@commonsware.com wrote: -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Re: getHitRect() returns hit to a different image item in a Customize List

2011-01-20 Thread argon gold
Deck of cards is on the RIGHT side , sorry my mistake. On Thu, Jan 20, 2011 at 11:28 PM, argon gold argongol...@gmail.com wrote: Hi Hari Edo, You can view the effect I am doing in movie at following youtube link. http://www.youtube.com/watch?v=TMaMpp8eg4s It is on the left side a deck of

Re: [android-developers] Theme/Style in custom preference

2011-01-20 Thread Kostya Vasilyev
Eric, I recently implemented a couple of ListPreference subclasses, and didn't run into any issues with themes or styles, even though my preference activity uses @android:style/Theme.Light. My code (and a brief write-up) is here:

[android-developers] Re: Anybody seen comfortta.com?

2011-01-20 Thread kernelpanic
he's hosting on GoDaddy servers - won't be long before he has to move. On Jan 20, 1:57 am, ko5tik kpriblo...@yahoo.com wrote: It seems that this is new app thief around here.   They just hacked my highscore lists to place URL on the top (not very scillfull, but it will require intervention to

[android-developers] Does Any one Building Android source code in Mac

2011-01-20 Thread Desu Vinod Kumar
Hi All, Does any one using Mac Os for Building Android Source code. How was performance is it better compare to Ubuntu ? I am planning to buy Mac Book Pro, please let me know your opinions. TIA -- Regards --- D Vinod Kumar R D Engineer - Android Platform Mobile :

[android-developers] Guidewire Developer in MA 6+ months contract

2011-01-20 Thread arun panigrahi
-- *Position: Guidewire Developer* *Location: Worcester MA* *Duration: 6+ months* * * *Job Description:* The candidate is required to have a minimum of *2 years experience with Guidewire's UI (Screen configurations) Rules and Integration* development utilizing *Guidewire Claim Center 5.0

[android-developers] Re: openGLES different behavior on different devices

2011-01-20 Thread MrChaz
We're going to need to see the rendering code to be able to help. You can use the debugger to step through and find the line that is causing the problem -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Guidewire Developer in MA 6+ months contract

2011-01-20 Thread Haroon Khalid
dude stfu and go take a bath in some daal On Thu, Jan 20, 2011 at 11:10 AM, arun panigrahi arunp.xpertt...@gmail.comwrote: -- *Position: Guidewire Developer* *Location: Worcester MA* *Duration: 6+ months* * * *Job Description:* The candidate is required to have a minimum of *2

[android-developers] Re: Inyect Assistance data to the GPS

2011-01-20 Thread ip332
I wonder whether it is possible to send NMEA sentences to the GPS (for an A-GPS purpose)? No, there is no API on the application level. Or is there any other way to provide/inject assistance data to the A-GPS chip? Assistance data support is part of the GPS library implementation and it

[android-developers] how to block the system notification of a message after broadcast has received it?

2011-01-20 Thread 陈彧堃
-- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit

[android-developers] Re: OpenJDK on Android

2011-01-20 Thread chris
Imagine if we could run swing, rmi, if we could run all java code as it is, we could run enterprise application clients. We could have android apps running on the desktop and on the phone. Great idea. why think small ? I need a full J2EE stack to use EJB to manage distributed transactions and

[android-developers] Re: getHitRect() returns hit to a different image item in a Customize List

2011-01-20 Thread Streets Of Boston
I'm not sure if this would help, but you could take a list at SonyEricsson's implementation of a 3D list, where contents of list- items are transformed as well: http://blogs.sonyericsson.com/developerworld/?s=3d+list And click on the three Android Tutorial: Making your own 3D list parts for

[android-developers] Re: The curious case of the impossible ArrayIndexOutOfBoundsException

2011-01-20 Thread DanH
The main reason for the exception handler in the exception handler would be to handle an array bounds exception on the indexing op. It's not nice to take an (unhandled) exception in an exception handler. On Jan 20, 7:21 am, RyanMcNally therealr...@gmail.com wrote: There's been no indication

[android-developers] Re: google analytics jar does not seem to work now

2011-01-20 Thread H
HI David, yeah, analytics works fine for me in the emulator (*) (*) depending on the avd you use. One of my avds was built from a custom rom with a custom hosts file that denied access to the analytics site and my logcat just filled up with exceptions unable to resolve url every ten seconds.

[android-developers] Re: Sample code for service?

2011-01-20 Thread petter
Thank you. It seem to be a problem with my xml file. -- 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: Sample code for service?

2011-01-20 Thread petter
Did you try looking at the documentation? Because the Service class docs themselves have a minimalistic example. If you by documentation refer to http://developer.android.com/reference/android/app/Service.html, yes. But my problem is probably not the java code, but appears to be that my xml

[android-developers] Re: Sample code for service?

2011-01-20 Thread petter
Yes I looked at http://developer.android.com/reference/android/app/Service.html, but my problem appears to be with the xml file, and not the java code itself. Hence I wanted a complete minimalistic example to learn how these are tied together in a service. -- You received this message because

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-01-20 Thread Jake Basile
I always try and assume it's my faulthttp://www.codinghorror.com/blog/2008/03/the-first-rule-of-programming-its-always-your-fault.htmlfirst, but I am completely without any idea as to how my code is causing the issue after spending q good chunk of effort searching. If I can fix this in my code

Re: [android-developers] Re: Sample code for service?

2011-01-20 Thread Kostya Vasilyev
Petter, On the XML side, you just need something like this in the manifest: service android:name=ServiceClassName android:label=@string/service_name /service Where ServiceClassName can be unqualified if it's right in the application package, or .subpackage1.subpackage2.ServiceName if it's

[android-developers] Re: OpenJDK on Android

2011-01-20 Thread Jake Basile
It would be very convenient for developers, and a nightmare for phone users. -- 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

[android-developers] Calling WebView.addJavascriptInterface after onPageFinished

2011-01-20 Thread jamesh
Hi, I'm trying to add Java objects to a WebView, such that they are available to Javascript. I can prove that if I do: mWebView.addJavascriptInterface(myAvailableAtLoadTimeObject, MyJavaObject); mWebView.load(file:///android_assets/index.html); I can call methods from Javascript:

[android-developers] sound detection

2011-01-20 Thread manas gajare
1. I want to trigger a function when the sound level in the surrounding is above some threshold level? How can I achieve that? 2. Is there any way to implement java sound api in android? Manas -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: Receiving hard search button broadcasts within an app

2011-01-20 Thread ClarkBattle
Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options,

[android-developers] Re: Does Any one Building Android source code in Mac

2011-01-20 Thread Hari Edo
A large number of app developers are using Eclipse (or other tools) on Mac OS X to produce Android packages successfully. The performance of a machine running Eclipse on Mac OS X will be about the same as a similar configuration on Linux. There is no reason to expect a major shift between these

[android-developers] Re: Guidewire Developer in MA 6+ months contract

2011-01-20 Thread Hari Edo
On Jan 20, 11:10 am, arun panigrahi arunp.xpertt...@gmail.com wrote: - *Position: Guidewire Developer* - The candidate is required to have a minimum of *2 years experience with - Guidewire's UI (Screen configurations) Rules and Integration* development - utilizing *Guidewire Claim Center 5.0 or

[android-developers] Re: What's wrong with this maps intent?

2011-01-20 Thread Nathan
Adding DEFAULT didn't help, though I needed it anyway, but adding the schema does. Thanks. Nathan On Jan 19, 6:51 pm, Mark Murphy mmur...@commonsware.com wrote: Add android: to your scheme attribute. If that does not help, try adding category android:name=android.intent.category.DEFAULT /

[android-developers] Re: Underclocking to simulate other phones

2011-01-20 Thread Hari Edo
I think people rely on the software emulator instead. If you know how to dive into the firmware at that level, you would know whether you would impact the reliability and consistent behavior of the device. I wouldn't trust the results, myself. On Jan 19, 8:29 pm, brian purgert

[android-developers] AudioManager.VOLUME_CHANGED_ACTION does not resolve

2011-01-20 Thread A Curtis
Hello, I am trying to create a BroadcastReceiver that monitors for Volume changes. Searching the internet and the GIT repository, it appears that there is an AudioManager.VOLUME_CHANGED_ACTION. However Eclipse does not recognize this and will not build the project. The minSdkVersion is set to 9.

[android-developers] Re: CheckBox spacing

2011-01-20 Thread Doug
I don't know for certain, but I imagine the checkbox background drawables are adding outside padding like the other Android widgets. You could probably get away with just substituting your own drawables to trim it down without changing the widget functionality. Time to dig into the SDK... Doug

[android-developers] Re: AudioManager.VOLUME_CHANGED_ACTION does not resolve

2011-01-20 Thread Pent
I am trying to create a BroadcastReceiver that monitors for Volume changes. Searching the internet and the GIT repository, it appears that there is an AudioManager.VOLUME_CHANGED_ACTION. However Eclipse does not recognize this and will not build the project. It's not accessible from the

[android-developers] error in my Android app

2011-01-20 Thread bob
I keep getting the following error in my Android app: Thread [1 main] (Suspended (exception RuntimeException)) ActivityThread.performLaunchActivity(ActivityThread $ActivityClientRecord, Intent) line: 1622 ActivityThread.handleLaunchActivity(ActivityThread $ActivityClientRecord,

[android-developers] Radiogroup adding a radio button in listview

2011-01-20 Thread kiros88
Hi so basically im trying to have a list in extends ListActivity and stuff but right now im trying to get a listview of radio buttons which i guess works but now im trying to apply a radio group for the list. This is the part im stuck on so basically once i created my own array adapter i wanted

[android-developers] Re: Underclocking to simulate other phones

2011-01-20 Thread neuron
It's actually very simple. # adb shell # su # cd /sys/devices/system/cpu/cpu0/cpufreq Your looking for scaling_*. Basically scaling_max_freq (you can use the numbers from scaling_available_frequencies). To set a frequency simply write to scaling_max_freq. Example: # echo 1197000

Re: [android-developers] error in my Android app

2011-01-20 Thread Kostya Vasilyev
Hit Resume in Eclipse and let it crash all the way. Then check the logcat for a detailed error message. 20.01.2011 22:09, bob пишет: I keep getting the following error in my Android app: Thread [1 main] (Suspended (exception RuntimeException))

[android-developers] Re: Calling WebView.addJavascriptInterface after onPageFinished

2011-01-20 Thread Dan
James, Have you verified your JavaScript isn't already executed before this event occurs? -Dan On Jan 20, 9:43 am, jamesh jameshug...@gmail.com wrote: Hi, I'm trying to add Java objects to a WebView, such that they are available to Javascript. I can prove that if I do:

Re: [android-developers] Radiogroup adding a radio button in listview

2011-01-20 Thread TreKing
On Thu, Jan 20, 2011 at 1:13 PM, kiros88 ghui...@gmail.com wrote: so the only line that doesnt work is the call to add view in mRadioGroup What does doesn't work mean? - TreKing

[android-developers] Re: Radiogroup adding a radio button in listview

2011-01-20 Thread kiros88
When i check log cat i basically get a saying that null pointer exception with the line of code about addView so im not sure if its placed in a bad spot because its in a overide function getView I'm just trying to find a way to dynamically add radiobuttons to a radiogroup without using a

[android-developers] savedInstanceState null?

2011-01-20 Thread Chris
Hi All, I'm trying to save the state of my app while I shut it down but every time I bring it back up savedInstanceState is always null..? I couldn't seem to find much info on calling onSaveInstanceState properly so here's what I did onPause () {... Bundle test = new Bundle();

[android-developers] Re: Best, easiest, cleanest, way to make a game and cross platfrom.

2011-01-20 Thread Robert Green
I'm currently writing clean cross platform games in C++. I'll be releasing a product very soon that is the foundation of what I'm doing there. On Jan 20, 6:16 am, brian purgert brianpurge...@gmail.com wrote: Thanks i looked into it and i really like the unity game engine, and i just bought a

Re: [android-developers] Re: Radiogroup adding a radio button in listview

2011-01-20 Thread TreKing
On Thu, Jan 20, 2011 at 1:45 PM, kiros88 ghui...@gmail.com wrote: When i check log cat i basically get a saying that null pointer exception with the line of code about addView so im not sure if its placed in a bad spot because its in a overide function getView Use your debugger to step

Re: [android-developers] savedInstanceState null?

2011-01-20 Thread TreKing
On Thu, Jan 20, 2011 at 1:48 PM, Chris cbu...@gmail.com wrote: I'm trying to save the state of my app while I shut it down but every time I bring it back up savedInstanceState is always null..? If your app is shut down completely, there is no state to save. I couldn't seem to find much

[android-developers] Re: Best, easiest, cleanest, way to make a game and cross platfrom.

2011-01-20 Thread Phil Endecott
On Jan 20, 12:30 am, brian purgert brianpurge...@gmail.com wrote: even straight opengl Go for it. Think of it as a learning investment. You may then decide that you'd like to use some sort of layer on top of that, to hide some of the details. But it will help a lot if you have had some

[android-developers] Re: Calling WebView.addJavascriptInterface after onPageFinished

2011-01-20 Thread jamesh
Hi, Dan The Javascript is already in memory (i.e. loaded by Webkit): I can call functions/methods on that code from Java. mWebView.loadUrl(file///android_assets/index.html); // loads a bunch of javascript. The onPageFinished method runs, and the page is ready. This javascript doesn't do

[android-developers] Quick Question about developer platform

2011-01-20 Thread kiros88
Hi i just wanted to know what ppl have been using for there developers platform. I'm basically using the raw version i guess using eclipse with android and going through that way. I was curious if anyone else has any idea which tools they use or another platform tool they use to develop android

  1   2   >