[android-developers] How to stop Thread/Handler

2011-07-27 Thread N K Shrivastva
Hello Android developer, i have two button, one for start thread and another for stop thread. when clicking on start thread then it's display message in after each second. but i want stop that thread on stop button click.what to do need ur help or refer me actual url. Thanks, -- You

Re: [android-developers] How to stop Thread/Handler

2011-07-27 Thread Hitendrasinh Gohil
hi naveen, you can do something like this. public boolean isstart=true; . public void run() { while(isstart) { ...here ur implementation } } and public void stopThread() { isstart=false; } On Tue, Jul 26, 2011 at 11:00 PM, N K Shrivastva

[android-developers] login screen

2011-07-27 Thread arun kumar
Hi am new to android and javai done here login screen by giving username and password hardcoded...(but i have to do for real time situation) when we give username and password it has to login to a welcome screen.(whether i have to use webservices or database ) how to do plz guide me

[android-developers] Re: video codec on device

2011-07-27 Thread Doug
On Jul 22, 2:20 pm, kai chi.al...@gmail.com wrote: Is there a way to query what media format is supported on a particular device running android (1.6+)? Nothing built into Android, sorry. Doug -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] login screen

2011-07-27 Thread NaveenShrivastva
Web services handling only for login access is not good, i think u handle local db for login validation, use Sqlite for db hadling password On Wed, Jul 27, 2011 at 11:36 AM, arun kumar arun.kata...@gmail.com wrote: Hi am new to android and javai done here login screen by giving username

[android-developers] floating listview

2011-07-27 Thread arun kumar
hi i took a 3 button and placed at the bottom of the layout in xml file...onclick listener i wrote in java file when i click on button 1 a floating list (contains project,seminar,favorites) has to appear on the above of button1...how to do...i tried for 1 week but could not make...so plz give

Re: [android-developers] How to stop Thread/Handler

2011-07-27 Thread NaveenShrivastva
Plz give more idea On Wed, Jul 27, 2011 at 11:35 AM, Hitendrasinh Gohil hitendra.virtuei...@gmail.com wrote: hi naveen, you can do something like this. public boolean isstart=true; . public void run() { while(isstart) { ...here ur implementation } }

[android-developers] Re: Curious NPE

2011-07-27 Thread Doug
On Jul 25, 11:23 pm, Zsolt Vasvari zvasv...@gmail.com wrote: A checked exception is an exceptional state that you expect to happen, like the user entering some wrong values, you check that ant throw the ckecked exception. No, exceptions shouldn't be used as a program flow control

Re: [android-developers] How to stop Thread/Handler

2011-07-27 Thread Hitendrasinh Gohil
hi naveen, can u submit your code here that i can send u? On Tue, Jul 26, 2011 at 11:14 PM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: Plz give more idea On Wed, Jul 27, 2011 at 11:35 AM, Hitendrasinh Gohil hitendra.virtuei...@gmail.com wrote: hi naveen, you can do

Re: [android-developers] login screen

2011-07-27 Thread arun kumar
thanks for reply can u give me a brief procedure how to do -- 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: Curious NPE

2011-07-27 Thread Doug
On Jul 25, 9:08 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: By now, it's pretty much universally accepted that checked exceptions were a bad idea. An exception is an exception, and you either handle it or you let it propagate up the stack. The whole checked/unchecked divide is hugely

Re: [android-developers] login screen

2011-07-27 Thread NaveenShrivastva
use this concept for data base implementation. http://www.higherpass.com/Android/Tutorials/Accessing-Data-With-Android-Cursors/ On Wed, Jul 27, 2011 at 11:47 AM, arun kumar arun.kata...@gmail.com wrote: thanks for reply can u give me a brief procedure how to do --

Re: [android-developers] Re: Curious NPE

2011-07-27 Thread Nikolay Elenkov
On Wed, Jul 27, 2011 at 3:18 PM, Doug beafd...@gmail.com wrote: On Jul 25, 9:08 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: By now, it's pretty much universally accepted that checked exceptions were a bad idea. An exception is an exception, and you either handle it or you let it

[android-developers] Re: FutureTask cancel issue

2011-07-27 Thread gjs
Hi, Are you handling interrupt correctly ? http://www.coderanch.com/t/514246/threads/java/Stopping-thread-threadPoolExecutor Regards On Jul 27, 12:54 am, pml pablolov...@gmail.com wrote: I'm trying to stop a FutureTask, calling its cancel() method, the call returns true, that means the task

[android-developers] Re: floating listview

2011-07-27 Thread arun kumar
assume like in the notepad when we click on file,edit,format a list will appearbut here these are placed(file,edit..at the bottom and list should float from bottom to top) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] unable to call bluez HDP APIs using DBus.

2011-07-27 Thread arun_satya3
Hi, I am integrating Bluez HDP into android. I was able to create health.so and flash into system/lib/bluez-plugin folder. When i am trying to do a dbus-send on CreateApplication of health profile, it shows success. But when I do a sdptool Browse, i cannot see any sdp records. my question is -

[android-developers] Re: DategramSocket.receive returns after a long time

2011-07-27 Thread Heidi Zhou Nolan
Yes, the application can receive the data well when the browser is not running. I wonder if I have to use native code for this. Now, I am using Java's DatagramSocket class. On Jul 26, 10:11 pm, Indicator Veritatis mej1...@yahoo.com wrote: Does your UDP receive code work fine if the browser is

Re: [android-developers] login screen

2011-07-27 Thread arun kumar
does i need to any file externally for authentication -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Re: NFC Secure Element

2011-07-27 Thread Fernando Miguélez Palomo
Hi Michael, Correct, for the SE connected through NFC-WI/S2C, the NFC controller has three modes: off, wired and virtual mode. Off means that there is no communication with the secure element. Wired mode means that the secure element is visible to the application processor as if it was a

[android-developers] retrieve an object from another activity back

2011-07-27 Thread torr
I have a class called BookmarksStruct and a ArrayListBokmarksStruct typed object called bookmarksarray. I want to pass the object and get back again from second activity to the first activity but I can't find how can I retrieve the object back. Because there is only get methods for int string char

[android-developers] retrieve an object from another activity back

2011-07-27 Thread torr
I have a class called BookmarksStruct and a ArrayListBokmarksStruct typed object called bookmarksarray. I want to pass the object and get back again from second activity to the first activity but I can't find how can I retrieve the object back. Because there is only get methods for int string char

Re: [android-developers] Listview with image, text and checkbox

2011-07-27 Thread Viral Brahmbhatt
Hi Abhishek, I have placed the converView = null; as my first line in getView() method. Now, the problem, that i mentioned earlier is not there (multiple checkboxes get selected when i select one checkbox in view). But, when i scroll the view up and down, i lose my selected checkbox (it get's

[android-developers] Re: Curious NPE

2011-07-27 Thread Doug
On Jul 26, 11:34 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: I'm sorry I missed that universal memo.  Please tell me more? Don't take my word for it, start here: http://www.mindview.net/Etc/Discussions/CheckedExceptions From this article: My theory is that when someone is trying

Re: [android-developers] Listview with image, text and checkbox

2011-07-27 Thread Viral Brahmbhatt
Hi Simon, I have used the same code in my program.. but the issue is there, it checks the check boxes in view, when you scroll them out, as i have mentioned in my earlier post. As per suggestion from Abhishek, I have placed the converView = null; as my first line in getView() method. With this

Re: [android-developers] Re: Curious NPE

2011-07-27 Thread Nikolay Elenkov
On Wed, Jul 27, 2011 at 5:07 PM, Doug beafd...@gmail.com wrote: By the way, when you you advocate NOT checking the return value of C runtime functions?  You'd just write to an unknown file descriptor even after a failed call to open() and just wait for the fallout? I never said this, and

[android-developers] Re: Info requested - android alarm

2011-07-27 Thread rao
Hi Mark, Thanks for your reply. I'm working for a company where I've access to HC code. however, I did not understand what is the reason behind such handling of android alarm? Thanks, Venu On Jul 26, 4:27 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jul 26, 2011 at 7:21 AM, rao

[android-developers] [Android Developers] Microphone was not released after using SoundRecorder

2011-07-27 Thread June_Hello
Dear all. I found soundrecorder application cant release microphone after using, Does any one know how to solve this problem? -- 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] Re: building android2.3.4 with bluez 4.94 - readline.h problems

2011-07-27 Thread N.F.S.
Hi, Hmmm There are lots works to do... I think there are many conflicts between bluez in gingerbread and original bluez. So I need to patch and to modify these changes by myself? Although people in openhealth.morfeo-project.org do something great, I think it's still not easy to integrate

[android-developers] Re: information about android softare

2011-07-27 Thread oochieman
You can run it on a pc though an emulator On Jul 27, 11:49 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Wed, Jul 27, 2011 at 12:31 PM, deepak gusain deepakgusai...@gmail.com wrote: Dear abhishek akhani, I want to know that is that possible android O/S software install in Pc.

[android-developers] Re: floating listview

2011-07-27 Thread T.Thura
Try Alert with custom UI. Dialog box can be use as well. On Jul 27, 2:39 pm, arun kumar arun.kata...@gmail.com wrote:   assume like in the notepad when we click on file,edit,format a list will appearbut here these are placed(file,edit..at the bottom and list should float from bottom to

[android-developers] Proguard configuration and Paypal

2011-07-27 Thread arnouf
Hello, Using proguard the paypal classes are not found ERROR/AndroidRuntime(3200): Caused by: java.lang.NoClassDefFoundError: com.paypal.android.MEP.PayPal I tried to add -libraryjars PATH_PAYPAL_LIB_JAR but it seems to change nothing, same error. I tried to add -keepclass

Re: [android-developers] Proguard configuration and Paypal

2011-07-27 Thread Daniel Drozdzewski
Does it work without code obfuscation by Proguard? What is your Proguard config? Daniel On 27 July 2011 11:25, arnouf arnaud.far...@gmail.com wrote: Hello, Using proguard the paypal classes are not found ERROR/AndroidRuntime(3200): Caused by: java.lang.NoClassDefFoundError:

Re: [android-developers] Re: floating listview

2011-07-27 Thread arun kumar
thanks for reply can u explain more briefly -- 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] mediaPlayer.setDisplay(surfaceHolder) not works for large video

2011-07-27 Thread N K Shrivastva
Please help me what try to play large video then mediaPlayer.setDisplay(surfaceHolder); not works Error: 07-27 16:11:16.569: ERROR/MediaPlayerService(1290): The Default Player is PV_PLAYER*** 07-27 16:11:16.649: ERROR/PlayerDriver(1290): Creating Non-Tunnel mode

Re : Re: [android-developers] Proguard configuration and Paypal

2011-07-27 Thread arnouf
Yes it works without proguard. I use proguard in command line with : java -jar $PROGUARD_HOME/lib/proguard.jar -injars $PROJECT_FOLDER/bin/classes -outjar $PROJECT_FOLDER/bin/obfuscated.jar -libraryjars $ANDROID_JAR:$PROJECT_FOLDER/thirds/PayPal_MPL_1.5.jar @$PROJECT_FOLDER/proguard.cfg My

Re: [android-developers] Re: Info requested - android alarm

2011-07-27 Thread Mark Murphy
On Wed, Jul 27, 2011 at 4:24 AM, rao venubyravar...@gmail.com wrote: Thanks for your reply. I'm working for a company where I've access to HC code. however, I did not understand what is the reason behind such handling of android alarm? Ask whoever gave you the HC code. -- Mark Murphy (a

[android-developers] Re: How to create android app running on top of another app

2011-07-27 Thread Lasith Chandrasekara
Hi, Is this an impossible task? Lasith. On Jul 26, 4:34 pm, Lasith Chandrasekara lasi...@gmail.com wrote: I want to develop a program like button savior (which runs on top of a another app and we can press menu, back buttons on top of a running app). So user do not need to press hardware

[android-developers] Re: Adding Menu Item in built-in Applications

2011-07-27 Thread Lasith Chandrasekara
Hi, I am having the same problem that I want to develop and application to access menu, back, search menu items for the active task. I think this is something same as you want. What I say is this is possible. If you take app like buttons savior which exactly does the same thing. Regards. On

[android-developers] External JAR file to reduce the code in class file

2011-07-27 Thread Viral Brahmbhatt
Hi all, there is a jar file available, including which you can reduce most of the coding on your class file.. i dont remember the name of the jar file.. do any one have any idea of that? or any one has used it. please let me know, if any one has any idea of this.. -- *Regards, Viral* -- You

[android-developers] Clarification on back key when used with Fragments

2011-07-27 Thread Catherine B
I've observed this behavior with my own application as well as with the FragmentStack.java found in the example library, found here: http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentStackSupport.html It seems that when you create a number

Re: [android-developers] External JAR file to reduce the code in class file

2011-07-27 Thread Mark Murphy
You are probably thinking of ProGuard. On Wed, Jul 27, 2011 at 7:26 AM, Viral Brahmbhatt viralbrahmbh...@gmail.com wrote: Hi all, there is a jar file available, including which you can reduce most of the coding on your class file.. i dont remember the name of the jar file.. do any one have

Re: [android-developers] wireless screenshots

2011-07-27 Thread sunil kumar
Hello friends, I'm trying to up wilink (WIFI 1271 ) on panda board , the kernel I'm using android 2.6.35 (Gigerbread) . Soft points identification is happening successfully, and I'm able to browse for small duration of time, after that browser application is crashing, and wilink is falling(

[android-developers] calling activity from alertdialogbox

2011-07-27 Thread rambabu mareedu
Hi to all...can one tell me .how to call a activity from alert dialog box -- 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

Re: [android-developers] wireless screenshots

2011-07-27 Thread Mark Murphy
Step #1: Visit http://source.android.com Step #2: Click on the Community tab Step #3: Find a Google Group that is relevant for your question (e.g., [android-porting]) Step #4: Ask your question there On Wed, Jul 27, 2011 at 7:40 AM, sunil kumar sunilmk...@gmail.com wrote: Hello friends, I'm

Re: [android-developers] External JAR file to reduce the code in class file

2011-07-27 Thread Viral Brahmbhatt
I dont think it's about proguard.. i have seen in one of my colleague's application at my last work place.. there was a jar file On Wed, Jul 27, 2011 at 5:09 PM, Mark Murphy mmur...@commonsware.comwrote: You are probably thinking of ProGuard. On Wed, Jul 27, 2011 at 7:26 AM, Viral Brahmbhatt

[android-developers] Karvy stock Broking association

2011-07-27 Thread kum
Karvy Fortune, alternate sales channel of the Karvy Stock Broking Ltd, Karvy is one of the largest broking houses in India, it ranks among top 5 Depositary Participants in India, with the huge net work of over 500 branches in 375 locations across India and overseas at Dubai, executes

[android-developers] Why does Android restart killed service?

2011-07-27 Thread m.andrew
Hi! I have an application with an activity and a service. The service is started by startService() and the activity is bound to it. The overridden onStartCommand() method returns START_NOT_STICKY. So I suppose that service will not be recreated if it's killed. But it will. I kill the application

Re: [android-developers] Re: floating listview

2011-07-27 Thread arun kumar
if i use dialog box then it appering at the centre of the layouti trying to place that one on the above of the button1 thankyou arun -- 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] Listview with image, text and checkbox

2011-07-27 Thread Viral Brahmbhatt
Any body having any luck on this? On Wed, Jul 27, 2011 at 2:59 PM, Viral Brahmbhatt viralbrahmbh...@gmail.com wrote: Hi Simon/Abhishek, I am attaching herewith the sample project. Please have a look, and let me know, if you can help me out. On Wed, Jul 27, 2011 at 1:50 PM, Viral

Re: [android-developers] External JAR file to reduce the code in class file

2011-07-27 Thread Viral Brahmbhatt
any one having any idea about this? On Wed, Jul 27, 2011 at 5:17 PM, Viral Brahmbhatt viralbrahmbh...@gmail.com wrote: I dont think it's about proguard.. i have seen in one of my colleague's application at my last work place.. there was a jar file On Wed, Jul 27, 2011 at 5:09 PM, Mark

Re: [android-developers] Listview with image, text and checkbox

2011-07-27 Thread feiyangfeixue feiyangfeixue
Some day ago, the same problem occures to me. The reason is that the ListView is design to reuse the ListItem, which means that the Item #9 and #17 reuse items #0-#8. So you should find some to maintain the View status ( such as checkbox check status ) in some data structure. For example ,you

[android-developers] How to get web data into TextViews?

2011-07-27 Thread Droid
I am looking for an example of how to get lines of text from a web server query into simple TextViews - NOT WebViews. I have found complex examples with all types of extras that make it horrifically difficult to follow. This example is way too hard for me:

[android-developers] List View based on Database Cursor Not Showing Full Screen and Scrolling

2011-07-27 Thread usafrmajor
I am having a problem getting my list view based on retrieved data from a database to show the full screen and scroll. For some reason neither the fill_parent or wrap_content values for my layout height setting is being recognized. Right now my view only shows about a quarter of the screen.

[android-developers] Re: Why does Android restart killed service?

2011-07-27 Thread Droid
The service is on some type of thread which you have not killed. As far as I remember you have to use a cancel() service commnand in the java code. They can be hard to stop if you don't. On Jul 27, 12:58 pm, m.andrew andreymandyc...@gmail.com wrote: Hi! I have an application with an

Re : Re: [android-developers] Proguard configuration and Paypal

2011-07-27 Thread arnouf
Ok, so after a long pair of test, I think that the problem is not due to proguard, but to dx :( If somebody knows this issue, let me know. The goal is to build my app in command line only (not eclipse or ant) -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] External JAR file to reduce the code in class file

2011-07-27 Thread Mark Murphy
You are probably thinking of ProGuard. On Wed, Jul 27, 2011 at 8:18 AM, Viral Brahmbhatt viralbrahmbh...@gmail.com wrote: any one having any idea about this? On Wed, Jul 27, 2011 at 5:17 PM, Viral Brahmbhatt viralbrahmbh...@gmail.com wrote: I dont think it's about proguard.. i have seen in

[android-developers] How to add a ViewFlipper to the layout?

2011-07-27 Thread MobileVisuals
I try to add 2 views to a Viewflipper, but I get java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. when I try to add the view. I don't know why this happens. I try to remove the view from the ViewFlipper, but I

Re: [android-developers] How to add a ViewFlipper to the layout?

2011-07-27 Thread Mark Murphy
On Wed, Jul 27, 2011 at 8:49 AM, MobileVisuals eyv...@astralvisuals.com wrote: I try to add 2 views to a Viewflipper, but I get java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. when I try to add the view. I

[android-developers] Re: Why does Android restart killed service?

2011-07-27 Thread m.andrew
When an application process is killed all threads of this process are also killed. If killed application doesn't have a service a new process of this application wont start. But if killed application has a service a new process will start and service will be recreated. Does returned value of

[android-developers] Re: FutureTask cancel issue

2011-07-27 Thread pml
Hi, I'm not handling interrupt correctly, but the only way is to add Thread.sleep(1); and waste processor time to allow thread interruption? Thanks for your response. On Jul 27, 3:38 am, gjs garyjamessi...@gmail.com wrote: Hi, Are you handling interrupt correctly ?

[android-developers] Re: button id causes app to crash

2011-07-27 Thread DB12
it crashes as soon as the app loads, before I even push the button to display my custom dialog On Jul 26, 11:40 am, TreKing treking...@gmail.com wrote: On Fri, Jul 22, 2011 at 10:41 AM, DB12 daniel.burg...@gmail.com wrote: and this one gives me a force close runtime exception when my app

[android-developers] Re: button id causes app to crash

2011-07-27 Thread DB12
the app crashes when you try to load it, i don't even get to press the button that opens my custom dialog On Jul 22, 11:41 am, DB12 daniel.burg...@gmail.com wrote: Howdy, I searched for about 30 minutes to see if anyone had the same issue but couldn't find anything. I have a custom dialog I

Re: [android-developers] Re: button id causes app to crash

2011-07-27 Thread Raghav Sood
I think TreKing meant what is the logcat or stacktrace? On Wed, Jul 27, 2011 at 6:37 PM, DB12 daniel.burg...@gmail.com wrote: it crashes as soon as the app loads, before I even push the button to display my custom dialog On Jul 26, 11:40 am, TreKing treking...@gmail.com wrote: On Fri, Jul

[android-developers] Re: How to use Camera setPreviewCallback listener?

2011-07-27 Thread Adam Ratana
You are attempting very expensive operations in this method call which can be called many times a second, maybe try something simpler instead of writing a file out, just to see if it is being executed. The data will also need to be decoded if you're wanting to write it to a usable image. If you

[android-developers] how to set vertical and horizontal scroll bar

2011-07-27 Thread aparna rani
hi how to set vertical and horizontal scroll bar in android please help me -- 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] Re: changing listview content in separate thread issue

2011-07-27 Thread Wall-E
Abishek gjs, thanks for your suggestions. Abishek, are you sure it's necessary to do what you suggested. Isn't the whole point of calling getMainLooper() so that you can set the thread for the handler? So assuming that you're right, do you know if the constructor for the IntentService is

Re: [android-developers] Re: How to create android app running on top of another app

2011-07-27 Thread TreKing
On Wed, Jul 27, 2011 at 6:00 AM, Lasith Chandrasekara lasi...@gmail.comwrote: Is this an impossible task? Clearly not, as other apps do it. However, I don't think this is something you can do with the SDK. These apps are probably exploiting private APIs or some such hack. Digging into the

Re: [android-developers] calling activity from alertdialogbox

2011-07-27 Thread TreKing
On Wed, Jul 27, 2011 at 6:42 AM, rambabu mareedu rambabu.mare...@gmail.comwrote: how to call a activity from alert dialog box You may need to elaborate ... it's the same way you call it from anywhere else.

Re: [android-developers] calling activity from alertdialogbox

2011-07-27 Thread rambabu mareedu
thankQ..so i can use intent in the alertdialog box..,am i right On Wed, Jul 27, 2011 at 7:18 AM, TreKing treking...@gmail.com wrote: On Wed, Jul 27, 2011 at 6:42 AM, rambabu mareedu rambabu.mare...@gmail.com wrote: how to call a activity from alert dialog box You may need to

Re: [android-developers] How to get web data into TextViews?

2011-07-27 Thread TreKing
On Wed, Jul 27, 2011 at 7:30 AM, Droid rod...@gmail.com wrote: I am looking for an example of how to get lines of text from a web server query into simple TextViews Usually you will be hard pressed to find examples that do exactly everything you want. Break down the problem. What is it

Re: [android-developers] calling activity from alertdialogbox

2011-07-27 Thread TreKing
On Wed, Jul 27, 2011 at 9:20 AM, rambabu mareedu rambabu.mare...@gmail.comwrote: so i can use intent in the alertdialog box..,am i right Try it, see what happens. - TreKing

Re : Re: [android-developers] Proguard configuration and Paypal

2011-07-27 Thread arnouf
Ok so I found the solution : it was no proguard but two issues in dx and apkbuilder ! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,

[android-developers] Re: button id causes app to crash

2011-07-27 Thread DB12
if im reading it correctly it says java.lang.ClassCastException: android.widget.button is there a limit to the amount of buttons you can have in a custom dialog? On Jul 27, 9:11 am, Raghav Sood raghavs...@gmail.com wrote: I think TreKing meant what is the logcat or stacktrace? On Wed,

[android-developers] Re: How to get web data into TextViews?

2011-07-27 Thread Droid
Thanks.. I have an App Engine python script and my Android App requests text using a url + querystring and returns just simple text, depending on the query. That's easy I know how to do the App Engine part. And can display it in a WebView OK. I want to display this text in a TextView on my

[android-developers] Re: Why does Android restart killed service?

2011-07-27 Thread Droid
As far as I remember I had to cancel the service specifically. Killing the App's pid is not sufficient. Even a timer thread can bring the App back. I do not know how to do that from adb. From Java code its easy as you know (service cancel()). Sorry if I am no help to you. I just remember this

Re: [android-developers] Re: button id causes app to crash

2011-07-27 Thread TreKing
On Wed, Jul 27, 2011 at 9:34 AM, DB12 daniel.burg...@gmail.com wrote: if im reading it correctly it says java.lang.ClassCastException: android.widget.button You want to just post the full stack trace you get? Particularly the part including and after the Caused by line. is there a limit to

Re: [android-developers] Re: How to get web data into TextViews?

2011-07-27 Thread TreKing
On Wed, Jul 27, 2011 at 9:42 AM, Droid rod...@gmail.com wrote: I want to display this text in a TextView on my Android and need specific code snippet to do it. I kind of want to repeat my entire first response. I know that I need an Async or a Thread to do it, but I cannot find this basic

[android-developers] ZipFile behvaior

2011-07-27 Thread Emil Lauridsen
Hello, I am working on an android app for dealing with kernel updates for the OS. It basicly just downloads a zip file. But these files once in a while fails to download, and therefore becomes corrupt. I would like to know if android's built-in ZipFile class can detect invalid zip files, or if I

[android-developers] New Market Console not so amazing

2011-07-27 Thread DulcetTone
I am not sure I like the new Market Console. From a usability standpoint, the Recent Changes field should be on the APK panel, not the other one. Changes are associated with APKs, yes? It is too easy to have an APK up and not activated. What value is there in having one posted and not

Re: [android-developers] Re: Windows 7, emulator, and orientation changes

2011-07-27 Thread Mark Murphy
On Tue, Jul 26, 2011 at 6:03 PM, Dan king...@gmail.com wrote: Some laptop keyboards have made the feature keys the default function instead of the F keys. Yeah, that seems to be what's happening here. Per Kostya's suggestion, we tried Fn-F11 on Eclipse, and got no response. So, it's a notebook

[android-developers] Re: Why does Android restart killed service?

2011-07-27 Thread m.andrew
Thanks for the replies, Yes, I know how to stop a service from source code. But the idea of START_NOT_STICKY flag is not clear for me in this case. Because the documentation says: START_NOT_STICKY - If the system kills the service after onStartCommand() returns, do not recreate the service,

Re: [android-developers] Re: Windows 7, emulator, and orientation changes

2011-07-27 Thread Jake Wharton
I have a friend whose laptop has the alternate function enabled by default as mentioned above so Ctrl+Fn+F11 was required. Another perhaps notable oddity was that it only responded to this combination when the left control key was used. The right control key had no effect but was still

Re: [android-developers] Re: Windows 7, emulator, and orientation changes

2011-07-27 Thread Mark Murphy
On Wed, Jul 27, 2011 at 12:49 PM, Jake Wharton jakewhar...@gmail.com wrote: I have a friend whose laptop has the alternate function enabled by default as mentioned above so Ctrl+Fn+F11 was required. Yeah, we tried that too -- no luck. Another perhaps notable oddity was that it only responded

Re: [android-developers] Listview with image, text and checkbox

2011-07-27 Thread Simon Platten
In a nutshell as was said by the last poster, the listview re-uses the same objects over and over for those items on view. In your adapter you can have an array which contains the entire content but you should be very careful that you aren't storing to much in this array, for example don't

Re: [android-developers] Re: Windows 7, emulator, and orientation changes

2011-07-27 Thread Kostya Vasilyev
The right control + F11 / F12 doesn't switch the orientation for me on a desktop computer either. So it seems to be how the emulator works. Right Ctrl + F11 still works as Run in Eclipse, so it's not my keyboard (not that I really need to stretch my hand that far). -- Kostya 27.07.2011

Re: [android-developers] Re: Windows 7, emulator, and orientation changes

2011-07-27 Thread Kostya Vasilyev
Try the 7/Home or 9/PgUp keys - if his laptop has those (not the regular Home key). Don't forget about the NumLock. -- Kostya 27.07.2011 20:55, Mark Murphy пишет: On Wed, Jul 27, 2011 at 12:49 PM, Jake Whartonjakewhar...@gmail.com wrote: I have a friend whose laptop has the alternate

Re: [android-developers] Re: Windows 7, emulator, and orientation changes

2011-07-27 Thread Lee Fisher
I don't see a telnet option to change orientation. Is there a shell command (e.g., an am subcommand) that can do it? I can probably do it via a monkeyrunner script if needed. The status bar of the WP emu's GUI has 2 buttons for orientation switching, that's what you are supposd to use.

[android-developers] Package File is Invalid

2011-07-27 Thread Eric
I have a working app with a working debug APK file generated by Dreamweaver CS5.5 and PhoneGap. It runs perfectly on both the emulator and actual devices. The distribution apk file has an extension of .ap_ I have signed the file using jarsigner, and aligned it using zipalign. I have uploaded the

[android-developers] aapt problem!! /usr/lib/libz.so.1: no version information available

2011-07-27 Thread sim yang
android-sdk-linux_x86/platform-tools/aapt: /usr/lib/libz.so.1: no version information available (required by /home/android/android-sdk- linux_x86/platform-tools/aapt) I am a new beginner in android. I am using a 64 centos in vmware and eclipse . I have searched on the Internet, and havan't found

[android-developers] Using Options Menu in a multi-Fragment Activity

2011-07-27 Thread Sam
I have a FragmentActivity which hosts a FragmentStatePagerAdapter. The pager contains multiple instances of the same fragment, in order that the user can swipe between the items in a list. I want to be able to provide the user with an options menu which will act only on the visible item. For

[android-developers] Mifare Classic emulation using NFC on Android 2.3.4

2011-07-27 Thread Ankit Maheshwari
Hi , has anybody tried for the Mifare Card Emulation using NFC .??? i will be really grateful if anybody could helo me on this . Thanks Ankit -- 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] Avoid recording alert tones

2011-07-27 Thread Pranav
hello, I'm developing a voice recorder application and I'm trying to pause the recording on incoming calls, messages or any other alerts and notifications to avoid recording them in my Activity. Is there a way I can handle them or listen to them? -- You received this message because you are

[android-developers] Sending a URI commanto a remote server and getting the response

2011-07-27 Thread Ankit Maheshwari
Hi, i wish to connect to remote server use and send a encrypted/plain URI and get the response back from the server . can any one please help me in achieving this . any help or code snippet will be realy helpful Thnx Ankit -- You received this message because you are subscribed to the Google

[android-developers] Regarding User Authentication

2011-07-27 Thread rajesh nair
Members, I have developed an application using which I can view mjpeg stream being streamed from my camera, on my android phone. It works fine if a user authentication is not required. But fails when the server requires a user authentication. Following code is used to read the Mjpeg stream.

[android-developers] Extending Interface of Dynamically Loaded Dex File

2011-07-27 Thread Matthew Yeo
Hello, I have created an application that dynamically loads plugin style functionality using a DexClassLoader. My application is organized as follows: - Interface.jar, which defines the interfaces of the plugin classes. - Implementation.jar, which contains classes that implement the plugin

[android-developers] Is the screensaver in source code Launcher?

2011-07-27 Thread leo luo
Hi all, I am trying to make my own screensaver, but the result is not that good. I want to read the screensaver source code. I guess the source code is in Launcher, but I did not found it. Anyone who know where the screensaver source code is , please share with me. How to develop a screensaver?

[android-developers] Live Wallpaper SurfaceHolder for Camera Preview

2011-07-27 Thread bThere
I have seen apps that use the Camera Preview as a Live Wallpaper Using the typical camera setup code using the surface holder callbacks of the Wallpaper Engine results in the camera complaining about registerBuffers failed with status -38 I then set the type of the surface holder using

[android-developers] Reg accessing a server which requires user authentication

2011-07-27 Thread rajesh nair
Members, I have developed an application using which I can view mjpeg stream being streamed from my camera, on my android phone. It works fine if a user authentication is not required. But fails when the server requires a user authentication. Following code is used to read the Mjpeg stream.

[android-developers] Emulator has Alzheimers (forgets who it is)

2011-07-27 Thread Clay Shannon
Hello Everyone, I've created my first (Hello, World type (actually, Yeaux, Dudimus)) Android app. A lot of the stuff here I will probably later laugh at, but as I said, this is my very first attempt at an Android app (I'm pretty new to Java also, having come from the Delphi and then C# world).

[android-developers] The emulator died when I execute ping in adb shell repeatly

2011-07-27 Thread nanhu
when I execute ping -c 20 -i 0.2 -s 92 -W 1 www.google.com in adb shell repeatly , after dozens of times , it can not execute , and I can not login another shell -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

  1   2   >