[android-developers] Simple Cursor Adapter - List View

2009-03-17 Thread Markiv
I have table with 3 columns which is binded to an XML document with three text views. String[] from = new String[]{A,B,C}; int [] to = new int[] {R.id.a,R.id.b,R.id.c}; Where R.id.a, R.id.b, R.id.c -> TextView Depending on the value store in the third column, I want to change the text color in

[android-developers] Re: how to let my shared library, libhello.so, work

2009-03-17 Thread li sun
You mean that the shared libraries MUST be placed in /system/lib or /lib ? There are not other ways, say, changing init.rc, available ? Thanks! 2009/3/18 Iliyan Malchev : > > The dynamic linker does not honor the LD_LIBRARY_PATH, and looks  for > libraries in /system/lib and /lib only, in that

[android-developers] How to provide image file as an sd card

2009-03-17 Thread Chetan
Hello , I am using camera to capture snapshots. But i am unable to view taken pictures location. I am also unable to browse sdcard directory using DDMS in eclipse. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Andro

[android-developers] Re: Putting Android on Par with the iPhone Software

2009-03-17 Thread Al Sutton
I'm pretty sure Google makes a small cut on app purchases via it's checkout fees which are included in the 30%. Beyond that unless you've got access to all the legal agreements you can't say for sure that the OHA or other organisations aren't contributing something to Googles development costs

[android-developers] Mp3 file read problem in Real device (G1)

2009-03-17 Thread jayesh.thadani
Hello friends, I have demo music player which reads mp3 files from virtual memory card of emulator I pass path something like this "/sdcard" and its working fine, at a time of reading MP3 from virtual memory card of emulator. But when this .apk is installed on real device G1, application is not

[android-developers] Re: how to let my shared library, libhello.so, work

2009-03-17 Thread Iliyan Malchev
The dynamic linker does not honor the LD_LIBRARY_PATH, and looks for libraries in /system/lib and /lib only, in that order. On Tue, Mar 17, 2009 at 9:36 PM, sunwrt wrote: > > Hi, guys, > > I built a shared library libhello.so, which only contained a function > print_hello(char*), and and a prog

[android-developers] Re: a way to make signal processing

2009-03-17 Thread Marco Nelissen
On Tue, Mar 17, 2009 at 4:09 PM, Maisonobe.A (MaaKs) wrote: > > Hello, > I'm looking for a way to work on sound . I would need to get the mic > input as raw data and to perform some test , is there a way to get raw > sound data ? No, not currently. --~--~-~--~~~---~-

[android-developers] Re: is there an andriod simulator?

2009-03-17 Thread Marco Nelissen
The emulator is included in the SDK. On Tue, Mar 17, 2009 at 3:09 PM, ytbryan wrote: > > hi all, > > > may i know is there an andriod simulator ? like how the iphone > simulator works? > > thank you > > > regards > bryan > > > > --~--~-~--~~~---~--~~ You receive

[android-developers] Re: CheckBox test= (CheckBox) findViewById(R.id.test); returns null

2009-03-17 Thread Glen Humphrey
I believe your xml should look like this with "android:id" instead of just "id". On Mar 17, 10:25 am, zeeshan wrote: > i changed the id but still same Null object. > same result for TextView and ProgressBar as well, however i can use > EditText successfully. > > On Mar 17, 5:04 pm, dan raaka

[android-developers] is there an andriod simulator?

2009-03-17 Thread ytbryan
hi all, may i know is there an andriod simulator ? like how the iphone simulator works? thank you regards bryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, s

[android-developers] Re: Injecting HTTP header into all requests issued by the emulator

2009-03-17 Thread GEETHAKRISHNAN PURUSHOTHAMAN
HI, Are you using the HTTP layer in Andrioid??.. Or any third part HTTP module you are using? with regards, Geetha On Tue, Mar 17, 2009 at 11:48 PM, Greg Krimer wrote: > > Hi everyone, > > Is there an easy way to inject a header into all HTTP request sent > from the emulator, including HTTP req

[android-developers] how to let my shared library, libhello.so, work

2009-03-17 Thread sunwrt
Hi, guys, I built a shared library libhello.so, which only contained a function print_hello(char*), and and a program, which used the only function to print "hello android" with android-toolchain. I mkdir a new dir- /data/test and push libhello.so and hello into emulator, then execute the hello

[android-developers] a way to make signal processing

2009-03-17 Thread Maisonobe.A (MaaKs)
Hello, I'm looking for a way to work on sound . I would need to get the mic input as raw data and to perform some test , is there a way to get raw sound data ? thanks alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

[android-developers] video playing

2009-03-17 Thread wangxianjian8311
hi all. when i play a video in my device. it return -4 in mediaplayer. but it playing well in simulation-SDK. who could tell me why? the audio and videodisplay in my device are ok. some other files could be played well. --~--~-~--~~~---~--~~ You received this mess

[android-developers] Putting Android on Par with the iPhone Software

2009-03-17 Thread Schiffres
This is a message to all other Android Developers, bloggers, or interest groups. Unfortunately, it is rather evident that, for a myriad of reasons, Android as an OS simply isn't on the same level as the iPhone in what it offers, what it can do, how it runs, etc. etc. As a full supporter of most e

[android-developers] Putting Android on Par with the iPhone Software

2009-03-17 Thread Schiffres
This is a message to all other Android Developers, bloggers, or interest groups. Unfortunately, it is rather evident that, for a myriad of reasons, Android as an OS simply isn't on the same level as the iPhone in what it offers, what it can do, how it runs, etc. etc. As a full supporter of most e

[android-developers] Re: ListView for XML data

2009-03-17 Thread dan raaka
try this .. http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/view/List4.java You should be able to replace the getView with your own xml reader !! -Dan On Tue, Mar 17, 2009 at 7:22 PM, Greg Krimer wrote: > > Well, I have not seen an example of exactly what you'r

[android-developers] Re: Is there a flag I can enable to permanently display the virtual keyboard in my app?

2009-03-17 Thread me tun
One can set, android:windowSoftInputMode="stateVisible"> in the AndroidManifest... Cheers. On Mar 17, 2:14 pm, me tun wrote: > Thanks Dianne, I've had a quick look through the code and have seen > how the onTouchEvent in the TextView Class has been modified to > display the soft keyboard if it

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread Dianne Hackborn
That discussion was about using the same ID in different layouts that are NOT mixed together in the same view hierarchy, in which case yes it is perfectly okay. The only restriction here is that the default implementation of the system for saving your state is to use the view IDs to remember indiv

[android-developers] Re: How can I import any widgets under com.android.internal.widget into my app?

2009-03-17 Thread Dianne Hackborn
You need to copy the code (and resources you want) out of the platform and in to your app, and make any changes necessary to get it to build against the SDK. Sorry there isn't an easier answer. On Tue, Mar 17, 2009 at 7:36 PM, mongd wrote: > > Hi, I'm trying to use some widgets under com.androi

[android-developers] Re: How to simulate HW key events?

2009-03-17 Thread Dianne Hackborn
Third party applications can't do this. If you are using the platform for a device, you can post to android-platform for help working at the platform level. On Tue, Mar 17, 2009 at 7:39 PM, Gerald wrote: > > Hi, > I want to create a virtual key panel just like the status bar but at > the screen

[android-developers] Re: android.os.ServiceManager

2009-03-17 Thread Dianne Hackborn
On Tue, Mar 17, 2009 at 6:44 PM, Seer wrote: > Sorry just to be clear. You work on the framework but not the > base/telephony part of the framework? Yes. > Is there anything in the > framework that allows an application to replace or override part of a > framework classes functionality? No

[android-developers] How to simulate HW key events?

2009-03-17 Thread Gerald
Hi, I want to create a virtual key panel just like the status bar but at the screen bottom. And I want to put several keys on the panel (Home, Call, Menu, Back, End Call, etc). How can I send key events to android system? Any side effect to the system? (effect KeyGuard?) Thank you Gerald --~--~--

[android-developers] Re: Re-register AlarmManager events on upgrades

2009-03-17 Thread Dianne Hackborn
Fwiw, cupcake will add a new field to PACKAGE_ADDED to tell you if this was due to an update, and allow this broadcast to be received by the app to restart itself. On Tue, Mar 17, 2009 at 3:44 PM, daniel.benedykt wrote: > > Hi > > I have the same problem. > As far as I know the only way is to set

[android-developers] How can I import any widgets under com.android.internal.widget into my app?

2009-03-17 Thread mongd
Hi, I'm trying to use some widgets under com.android.internal.widget from my app. I found some basic apps like Settings use those widgets, so I think there is a way to import those widget into my app, but I can't find. I'm using Eclipse under Windows XP, meaning that I have sdk only. To do the im

[android-developers] Re: GridView ImageView and performance

2009-03-17 Thread ifuller1
I think my shuffling and your memory errors are related. My understanding at this point is the data being displayed in a view and the view itself really need to be separated. Recycled views are simply "other views of this type" - so using the view to hold/load its own content might result in sever

[android-developers] Re: Why does eclipse need internet access to work?

2009-03-17 Thread Faber Fedor
On Tue, Mar 17, 2009 at 9:47 PM, amiz wrote: > > Anyone knows why is network access required for eclipse to work? It doesn't. I just turned off Airport on my MB, fired up Eclipse, and successfully started up my app in emulator mode. Must be something special in your setup. Have you tried sni

[android-developers] Re: ListView for XML data

2009-03-17 Thread Greg Krimer
Well, I have not seen an example of exactly what you're doing, but it's pretty easy. Since the data is not in an array or cursor, I would extend BaseAdapter to create my own adapter for this data to drive the list view. The data should probably be in some sort of collection that the adapter can op

[android-developers] Re: ADT Layout Editor

2009-03-17 Thread Susan
I still don't know how long time I will wait. Could you please tell me just an approximate time it will be released? Thanks On 3月17日, 下午2时22分, Xavier Ducrohet wrote: > Hi, > > This will probably come in the version following the plugin released > with cupcake. > > Note that even though you canno

[android-developers] Why does eclipse need internet access to work?

2009-03-17 Thread amiz
Inadvertently, I blocked eclipse from accessing the internet, which prevented the emulator from running (see my other post). Once I removed the block, eclipse and the emulator worked again. Anyone knows why is network access required for eclipse to work? Thanks --~--~-~--~~--

[android-developers] Re: Emulator not starting

2009-03-17 Thread amiz
I had tried your idea but did not fix the issue. I found and fixed it the issue, the emulator is working. While the emulator was working, i had made am unintended change to my firewall preventing eclipe form accessing the internet. Some time after, after a project build eclipse started mis-beha

[android-developers] Re: android.os.ServiceManager

2009-03-17 Thread Seer
Sorry just to be clear. You work on the framework but not the base/telephony part of the framework? Is there anything in the framework that allows an application to replace or override part of a framework classes functionality? I know it is unlikely but figured it is work asking. The following

[android-developers] Re: Emulator not starting

2009-03-17 Thread Ikon
Not sure if this will work, but try going to the command line and go to the android tools dir, run: adb kill-server adb start-server See if that fixes it. On Mar 17, 6:48 pm, amiz wrote: > I am running Eclipse on XP.  The Emulator was running correctly but > all of sudden today it hang up. I cl

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread skink
Dianne Hackborn napisał(a): > Yes, the ID is used to propagate the saved state to the appropriate view in > the next instance. Use different IDs. Why do you even want to use the same > ID? > also i had similar problem some time ago http://groups.google.com/group/android-developers/browse_thr

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread skink
On 17 Mar, 21:01, Dianne Hackborn wrote: > Yes, the ID is used to propagate the saved state to the appropriate view in > the next instance.  Use different IDs.  Why do you even want to use the same > ID? > i created come container view (extending ViewGroup) with fixed number of children so it

[android-developers] Re: android.os.ServiceManager

2009-03-17 Thread Dianne Hackborn
Sorry I can't help you, I know about the framework but not the telephony layer or individual apps like SMS. On Tue, Mar 17, 2009 at 3:54 PM, Seer wrote: > > Dianne, > Thanks for the reply. The problem is I am not sure there is not > already an API for it. That is what i am trying to find out bu

[android-developers] Re: can not call a java method from javascript using addJavascriptInterface()

2009-03-17 Thread Diego Torres Milano
You should call window.test.incr(100) instead. -- Have you read my blog ? http://dtmilano.blogspot.com On Mar 17, 4:28 am, sherwin huang wrote: > hi > I'm trying to call a java method from javascript using > addJavascriptInterface(); > but seems does not work, it always  display "failure"; >

[android-developers] Re: android.os.ServiceManager

2009-03-17 Thread Seer
Dianne, Thanks for the reply. The problem is I am not sure there is not already an API for it. That is what i am trying to find out but no one is really responding to say there is or there is not. I find it really strange that there would not be some way of hooking into the lower layers or to do

[android-developers] Emulator not starting

2009-03-17 Thread amiz
I am running Eclipse on XP. The Emulator was running correctly but all of sudden today it hang up. I closed Eclipse, rebooted the XP, now when I invoke eclipse, it displays a ddms alert box with the message: "Failed to initialize monitor thread: Unable to establish loopback connection" and ecli

[android-developers] Re: Re-register AlarmManager events on upgrades

2009-03-17 Thread daniel.benedykt
Hi I have the same problem. As far as I know the only way is to set a Service to start after the installation is done. Maybe you can put a service that runs once (not really a service hehe) that it will be initiated after the installation is complete, set up the alarms and end the service. Other

[android-developers] spinner or similar selection with no selection by default

2009-03-17 Thread daniel.benedykt
Hi Is there a way to show a spinner or something similar with no selection (empty or text saying (no selection)) but when the user clicks on the spinner that item is not there anymore? Basically yo start I wanted to be empty and I have a label that says "go to:" and a spinner with options: a, b

[android-developers] Re-register AlarmManager events on upgrades

2009-03-17 Thread Michael Bollmann
I read that the AlarmManager looses all registered intents if case the application that registered those intents is upgraded. What is the correct approach to re-register those intents considering the user does NOT start the application after upgrading it? --~--~-~--~~~

[android-developers] Re: How to find Jarsigner

2009-03-17 Thread Sundog
Look in you bin directory... On Mar 17, 11:18 am, Nox wrote: > Hi everyone, > I'm developing on Linux (Ubuntu 8.05) and I want to sign my app. > I've already exported the application and I found Keytool. > Keytool is still working but I can't find Jarsigner to sign my app!!! > > Does anyone know

[android-developers] Re: Location.getTime() does not return milliseconds

2009-03-17 Thread Dianne Hackborn
It just says the units are in milliseconds; it doesn't say anything about the accuracy. I certainly wouldn't expect (nor probably want) fixes more than every second. :} On Tue, Mar 17, 2009 at 2:54 PM, Yossi wrote: > > Hi, > > According to the decumentation, android.location.Location.getTime()

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread Dianne Hackborn
Yes, the ID is used to propagate the saved state to the appropriate view in the next instance. Use different IDs. Why do you even want to use the same ID? On Tue, Mar 17, 2009 at 12:45 PM, skink wrote: > > > > On 17 Mar, 18:36, Romain Guy wrote: > > Oh yeah, we fixed that in Cupcake. > > > >

[android-developers] Re: android.os.ServiceManager

2009-03-17 Thread Dianne Hackborn
If there are features missing from the current system (such as an actual API for applications to integrate with the low-level telephony SMS layer), you can look at adding those to the platform and contributing patches to have the feature in a future version. In that case, you can start a discussio

[android-developers] Location.getTime() does not return milliseconds

2009-03-17 Thread Yossi
Hi, According to the decumentation, android.location.Location.getTime() returns the fix time in milliseconds. however I keep getting the time rounded to seconds (e.g. no milliseconds accuracy). Is this the 'normal' behavior or do I do something wrong? Thanks, Yossi --~--~-~--~~--

[android-developers] Re: adb and Eclipse list no device after 1 minute

2009-03-17 Thread Brad Fuller
Could the answer be because a USB hub is between the computer and the ADP1? Maybe it is timing out and detaching the device? I've moved the connection from a USB hub to the computer directly and so far the ADP1 continues to be detected (according to "adb devices") On Tue, Mar 17, 2009 at 2:31 PM,

[android-developers] Re: Capturing exceptions on user's phones?

2009-03-17 Thread Mads Kristiansen
Well, I am using a workaround currently, which means that the application will restart. On application restart a dialog will then notify the user that a problem has occurred. The problem here is that I cannot get a context in the default exception handler (where I dump the stack trace) and thus I a

[android-developers] Catching clicks on xml files in the browser

2009-03-17 Thread Rohit
Hi, I am trying to intercept xml links that are clicked in the android web browser. I want my activity to handle these xml files, however I cannot seem to get this to work. Whenever I click on the xml file in the browser it just displays the xml file. Here is the entry that I have in my And

[android-developers] adb and Eclipse list no device after 1 minute

2009-03-17 Thread Brad
When I plug in the ADP1 and do the following: $ adb devices List of devices attached HT845GZ50887device But, after connecting via the USB, my ADP1 device goes away after about a minute. I can also load an application from Eclipse to the ADP1 fine. But Eclipse lists in error in the

[android-developers] Re: Capturing exceptions on user's phones?

2009-03-17 Thread cnordvik
> 1) When an exception occurs, the application will just drop back to the home > screen and the user won't actually know that an exception has occured. Any luck on sorting this out? A dialog that informs the user of the error and a "report this problem" button that opens the email app would be re

[android-developers] Re: How to add SMS to inbox in android programmatically?

2009-03-17 Thread Seer
> Thanks for your update. So you exactly have done two things: > 1. Call SmsManager::sendTextMessage( ) > 2. Put the sent SMS to its database via ContentResolver::insert( ) The code i gave you only adds a record to the phones sms database to say an sms has been sent and it will be visible to the

[android-developers] Re: Intercepting outgoing sms

2009-03-17 Thread Seer
Kenny I now have everything working apart from intercepting the sms. I can log them etc but only way I can see to intercept them is to either override smsmanager ( not possible ) or rename the isms service and place my own service in its place. My service would then call the old isms service for t

[android-developers] Re: android.os.ServiceManager

2009-03-17 Thread Seer
Even if it does everything I want kenny it will not stop the system also sending the sms via the gsm network as well. Best case would be 2 sms been sent On Mar 18, 1:46 am, Kenny wrote: > Reading the file frameworks/base/telephony/java/com/android/internal/ > telephony/gsm/SMSDispatcher.java, yo

[android-developers] Re: Is there a large efficiency difference between Canvas.drawBitmap or OpenGL?

2009-03-17 Thread Jon Colverson
On Mar 17, 7:27 pm, William wrote: > Do I have to convert all that to GL textures or can I keep all the > bitmap work and convert the final image to a texture to be drawn to > the GL surface.  If I have to convert it all to the textures and draw > to the textures, will there be any performance ga

[android-developers] Re: WebView issue...

2009-03-17 Thread Marc
Bump. On Mar 11, 7:52 am, Marc wrote: > So I've got a WebView, and in its content is a phone number.  I > hightlight it and click - voila, taken to the phone app. > Now, all I do is add this code: >                 wv.setWebViewClient(new WebViewClient() { >                     @Override >      

[android-developers] Re: SimpleDateFormat PathClassLoader NullPointerException quandary

2009-03-17 Thread Torgny Bjers
I synchronized the method and it all seems to be working fine now. Thanks for helping me with this rather obscure error. On Mar 16, 2009 7:31 PM, "sm1" wrote: SimpleDateFormat is known to not be thread-safe, and it's instances must be either unique to each thread or otherwise be synchronized.

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread skink
On 17 Mar, 18:36, Romain Guy wrote: > Oh yeah, we fixed that in Cupcake. > > But the bottom line is: don't use the same id for Views of different types. ok, thanks for info but if i used the same ids for the same View types (for example two ListViews) how its supposed to work? we will not hav

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread Romain Guy
Oh yeah, we fixed that in Cupcake. But the bottom line is: don't use the same id for Views of different types. On Tue, Mar 17, 2009 at 12:27 PM, skink wrote: > > > > On 17 Mar, 18:19, Romain Guy wrote: >> You can have the same id on different widgets. What is the exception you get? >> > > Clas

[android-developers] Re: Is there a large efficiency difference between Canvas.drawBitmap or OpenGL?

2009-03-17 Thread William
I am not too familiar with how GL works. Is the performance gain happen in writing to the screen or doing the image manipulation or BOTH. I mean I know I can convert a bitmap to a texture and put it on the GL surface. Most of my code is done using canvas to draw to off screen bitmaps before i f

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread skink
On 17 Mar, 18:19, Romain Guy wrote: > You can have the same id on different widgets. What is the exception you get? > ClassCastException, it's probably the SavedStates are backed by one linear sparse array (at least i think so) --~--~-~--~~~---~--~~ You received

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread Romain Guy
You can have the same id on different widgets. What is the exception you get? On Tue, Mar 17, 2009 at 12:00 PM, skink wrote: > > hi, > > consider the simple layout: > >        xmlns:android="http://schemas.android.com/apk/res/android"; >    android:layout_width="fill_parent" >    android:layou

[android-developers] orientation change crashes when ids are not unique

2009-03-17 Thread skink
hi, consider the simple layout: http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > i heard its perfectly OK to ha

[android-developers] Re: How the use same instances when launching application twice ?

2009-03-17 Thread Derek
Do I need both addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); and android:launchMode="singleTask" in AndroidManifest.xml ? On Mar 17, 3:04 pm, dillirao malipeddi wrote: > when you create a new intent > set flag as > > your_intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); > >  startActivity(your_int

[android-developers] Re: Support from Developers

2009-03-17 Thread Alexander
*Here's a good start of something to this end: New Google Group for just this kind of thing.. http://groups.google.com/group/android-app-distribution Thanks to Al Sutton for starting this! --~--~-~--~~~---~--~~ You received this message because yo

[android-developers] Re: the imageview object supports which formats images other than png and jpg

2009-03-17 Thread My3
Even i am interested to know about this. Is there any ways to display tiff image? On Jan 31, 5:10 am, jj wrote: > Hello everybody >     The imageview  object supports, which formats of images other than > png and jpg? >  Is it supporting *.jif, *.bmp. *.tiff, etc. to display them on sceen > of a

[android-developers] Injecting HTTP header into all requests issued by the emulator

2009-03-17 Thread Greg Krimer
Hi everyone, Is there an easy way to inject a header into all HTTP request sent from the emulator, including HTTP requests made by my app and also by the built-in web browser? I need this ability to model the behavior of a carrier gateway. I tried running the emulator through Fiddler as a proxy b

[android-developers] Re: Storing images as blob in sqlite

2009-03-17 Thread My3
And-Rider, Even I am facing same problem,am trying to load the image using webview which is throwing this error: " xxx jpeg error 53 Not a JPEG file: starts with 0x%02x 0x %02x" Can you please let me know how did you solve this. On Feb 27, 11:59 pm, And-Rider wrote: > Thank you very m

[android-developers] Re: Support from Developers

2009-03-17 Thread Alexander
As a side note, I found a good example of really interesting support, at least on the internet (on the phone is a different issue). I really like the system at getsatisfaction.com - it is a bit "social networking" for me, but then again, it might be the type of support system that the users of th

[android-developers] Re: Thumbnails

2009-03-17 Thread todd
Yes, you can have both thumbnail types. It's just another row in the DB. The kind fields would be different for the micro and mini rows. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To po

[android-developers] Re: CheckBox test= (CheckBox) findViewById(R.id.test); returns null

2009-03-17 Thread zeeshan
i changed the id but still same Null object. same result for TextView and ProgressBar as well, however i can use EditText successfully. On Mar 17, 5:04 pm, dan raaka wrote: > Try changing the id and see if it makes any difference. > > -Dan > > > > On Tue, Mar 17, 2009 at 9:46 AM, zeeshan wrote

[android-developers] How to find Jarsigner

2009-03-17 Thread Nox
Hi everyone, I'm developing on Linux (Ubuntu 8.05) and I want to sign my app. I've already exported the application and I found Keytool. Keytool is still working but I can't find Jarsigner to sign my app!!! Does anyone know how to find Jarsigner? Thanks in advance Viktor --~--~-~--~---

[android-developers] What is the substitute of function "setRadio"?

2009-03-17 Thread 1+1=2
Hi, >From the book "Professional Android Application Development" I find that function "setRadio" can be used to control network, but this one have been deleted in SDK 0.9, and it seems none of the function in ConnectivityManager can replace this one. Could any one help me on this? Thanks a lot.

[android-developers] Creating an image from a Layout

2009-03-17 Thread Gaurav
I am trying to convert an XML Layout to an JPEG image. (This can be helpful in many ways: for example - using in-built rendering engine's capability to center crop an image by having an ImageView in an AbsoluteLayout as shown below.) http://schemas.android.com/apk/res/android"; android:

[android-developers] Re: ListViews getting rendered multiple times

2009-03-17 Thread Romain Guy
This is expected if you use layout_weight in your linearlayout for instance. On Mon, Mar 16, 2009 at 7:42 PM, markdsievers wrote: > > So the situation is this, I have a ListView that is embedded in two > LinearLayout ViewGroups to form a screen. BaseAdapter.getView() (the > implementation of the

[android-developers] React to uninstall of application?

2009-03-17 Thread Marcus
Hi, my app stores some data on the sd-card. But when my app is going to be uninstalled, this data will be left. Is there a possibility to react on the uninstall intent of the user and delete the data? --~--~-~--~~~---~--~~ You received this message because you a

[android-developers] Re: Can you requery a Cursor after the database object that created it is closed?

2009-03-17 Thread iliketolearn
Any help is appreciated. On Mar 15, 8:06 pm, iliketolearn wrote: > From my own quick tests, this seems to be the case. I just wanted to > confirm. > > Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android D

[android-developers] Re: CheckBox test= (CheckBox) findViewById(R.id.test); returns null

2009-03-17 Thread dan raaka
Try changing the id and see if it makes any difference. -Dan On Tue, Mar 17, 2009 at 9:46 AM, zeeshan wrote: > > Hi Android Experts, > > why CheckBox is always null. > > please find the error in my code: > > xml- > > android:layout_width="wrap_content" > android:layout_height="wrap_content"

[android-developers] code to mute using the MODIFY_AUDIO_SETTINGS permission

2009-03-17 Thread Beth
Hi, At the end of my AndroidManifest xml file you find this tag: I am using Eclipse to write code to mute notifications and I get a java.lang.SecurityException: Permission Denial from the Emulator every time. I realize the change will affect other applications, however, it was unclear that mo

[android-developers] ListView for XML data

2009-03-17 Thread Future
Hello, where could I find any examples of rendering XML data in a ListView? i.e, the model is read from a XML file, not in an existing array or database cursors. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[android-developers] can not call a java method from javascript using addJavascriptInterface()

2009-03-17 Thread sherwin huang
hi I'm trying to call a java method from javascript using addJavascriptInterface(); but seems does not work, it always display "failure"; java code: public class WebTest extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedIn

[android-developers] DatePicker to looks like regular Calendar

2009-03-17 Thread marwooj
Hi, Is there a simple way to make DatePicker looks like that one from http://www.droiddraw.org/widgetguide.html regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this grou

[android-developers] Editing / Modifying Stock Google Apps

2009-03-17 Thread ipersaud
Where can I find the source code / project files to the Pattern Unlock feature so I can customize it in my own way? I don't even know if this is possible or allowable but I'm new to the group, read the forum rules but wasn't sure where to post a question like this. --~--~-~--~~

[android-developers] ListViews getting rendered multiple times

2009-03-17 Thread markdsievers
So the situation is this, I have a ListView that is embedded in two LinearLayout ViewGroups to form a screen. BaseAdapter.getView() (the implementation of the ListAdapter) is typically called n times (where n is numElements) to render the screen. The problem I have is this set of calls is being re

[android-developers] Where does the android emulator creates file ?

2009-03-17 Thread jaiprakashg...@gmail.com
Where does the android emulator creates the file created by my app? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com

[android-developers] API Demo explanation

2009-03-17 Thread Dharmesh
Hi, I am new to Android. I had gone though the API Demo application but I didnt understand, from where the metnu list getting populated. It would be very nice if somebody explain about API Demo Application --~--~-~--~~~---~--~~ You received this message because yo

[android-developers] Re: WiFi Emulator

2009-03-17 Thread Justin (Google Employee)
The emulator does not support WiFi. Also note that a retail G1 is perfectly suitable for development. There are pluses and minuses to both the ADP1 and the G1, most of which I'm sure you can find explored in different threads on this forum. Cheers, Justin Android Team @ Google On Mar 17, 7:06 am

[android-developers] Re: Determine images at runtime - getResources().getIdentifier()

2009-03-17 Thread Gesh
well you can use the other parameters of that method instead of building the string yourself, but that's just for better readability, no real improvement there. otherwise there is no better method. cheers, gesh. On Mar 17, 12:29 pm, Tommaso wrote: > I solved it, the parameter must be: > getPac

[android-developers] Re: need help on "--core-library"

2009-03-17 Thread Stoyan Damov
I'll try to pull a magic now and guess what you're trying to do -- are you trying to get FreeTTS to work in your app? :P On Tue, Mar 17, 2009 at 6:01 PM, DaRolla wrote: > > hello, > > I need to build a java.beans.PropertyChangeListener which is part of > JDK (rt.jar) but not part of Dalvik. > >

[android-developers] How to setclip of a view

2009-03-17 Thread 单单
There is another post asked this question. A guy give a solution using invalidate(int, int, int, int). But this seems work only once -- the drawing right after the invalidate. After that time of drawing, every repaint will draw the whole view. I need a real setClip permanent. Any help will be hig

[android-developers] Queue and Display Call Log, Names Only

2009-03-17 Thread iPaul Pro
I am trying to construct a simple app that allows me to see my call log, displaying names only, in a "simple_list_item_1". I am totally new to Java and Android and this is really the first step in creating my first app. Here's what I've got (go easy, please): Manifest: http://schemas.android.c

[android-developers] TrackBall

2009-03-17 Thread cruiseru...@gmail.com
I know that emulation of trackball to DPAD do not work so good, then i decide use trackball. I override onTrackBallEvent but I have problem .It has good reaction for action move ... when I track left, it goes left, when I track right, it goes right, but I can't stop it .When I unpress .. (action_

[android-developers] WiFi Emulator

2009-03-17 Thread Daniel Weidele
Hello Developers, i am currently doing my Bachelor Project concerning Android Programming. Therefore i need a possibility to SCAN/DISCOVER Hot-Spots or WLAN's where i can connect to. In many topics i have read, that the EMULATOR does NOT support WiFi scan with WiFiManager. I also tried using Co

[android-developers] Build application with Android OS source code

2009-03-17 Thread Eng. Ahmed Abo El Ella
Hi all I write this tip for helping people working with Android OS source code. I created my own -Java Android- application. I developed it under windows eclipse I downloaded the source code of Android OS and successfully build it under Linux Ubuntu I wanted to insert my application into Android

[android-developers] problem occur while writing andro id.provider.Settings.Secu­re.ENABLED_INPUT_METHODS

2009-03-17 Thread nighteagle
I have a problem while writing android.provider.Settings.Secure.ENABLED_INPUT_METHODS in my application. It will throw a security exception: 03-17 17:43:15.717: ERROR/AndroidRuntime(6950): java.lang.SecurityException: Cannot write secure settings table 03-17 17:43:15.717: ERROR/AndroidRuntime(6950

[android-developers] CheckBox test= (CheckBox) findViewById(R.id.test); returns null

2009-03-17 Thread zeeshan
Hi Android Experts, why CheckBox is always null. please find the error in my code: xml- code file- package com.reblogr.reblogrclient; public class Test extends Activity { /** Called when the activity is first created. */ public CheckBox checkbox; @Override publi

[android-developers] rebooting from application

2009-03-17 Thread Dan Raaka
Can application initiate rebooting the phone? Doing some thing like below doesn't seem to help .. Intent i = new Iintent(); i.setAction(Intent.ACTION_REBOOT); sendBroadcast(i); and having in the manifest .. gives the following the error in log cat W/ActivityManager( 51): Permission Denial:

[android-developers] about opengl 3dmodel animation

2009-03-17 Thread cht
l have learn about the 3d globaltime sample code and i can import 3d models use object3D class, and i can change the textures. but i have some questions 1: how to export the *.gles modle file 2: would the *.gles modle file has some animations, how to use the animation? if i want to implements a

[android-developers] Re: Keystores

2009-03-17 Thread linkmaster_6
thank you very much then. im just screwed then lol On Mar 16, 4:16 pm, Ralf wrote: > On Mon, Mar 16, 2009 at 12:34 AM, Kenny wrote: > > > Not helping you, but I wonder what keystore is for? where to get some > > docs? thank you very much, > > http://developer.android.com/guide/publishing/app-si

  1   2   >