[android-developers] Re: Device Idle State Capture
I meant when the device goes to PARTIAL_WAKE_LOCK state. Thanks, Pooja On Feb 3, 11:26 am, Dianne Hackborn wrote: > Well first you need to define what you mean by "idle". > > On Mon, Feb 2, 2009 at 10:13 PM, Pooja wrote: > > > Hi All: > > > Is it possible to somehow detect and capture the idle state of the > > android device? > > Need help on the approach which should be followed for developing idle > > time based applications in android? > > > Thanks, > > Pooja > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to Get PendingIntent Result Code?
Is it possible to get the result code with a PendingIntent for a Service or BroadcastReceiver? (e.g. the result code from SmsManager send* methods) Various PendingIntent.send methods send the result code with the Intent, but only the Activity class seems to have a means to get this result code, with onActivityResult. Futher, this only seems to work with PendingIntents created with Activity.createPendingResult, and not with any of the static PendingIntent get* methods. How do you get the result code without onActivityResult? Thanks, Ron --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Some Activities never display UIs?
I hear that "some Activities never display UIs" according to http://code.google.com/android/devel/building-blocks.html. My question: is this true? I have yet to find a way to make an Activity without a UI. Documentation suggests an Activity can be non-visual. For example, Activity.getWindow() returns the "current window, or null if the activity is not visual." When would an Activity have a null Window? The docs say "the Activity class takes care of creating a window for you..." at http://code.google.com/android/reference/android/app/Activity.html. Any idea? Ron PS - Yes, I know a Service does not have a UI. My question is about the Activity class. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Table layout without using Android XML
Hi all, Can any one help me how to create table layout with out using the Android XML. Thanks in Advance, Muthu Kumar K. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Audio in the emulator...
The problem is now resolved, I had make several mistakes: I had forgot to release the recorded sound. (record.release();) I hadn't put the complete path for the sdcard which in fact prevented the emulator from loading one. audio-in is useless with windows, plug and play does the job. I didn't play the sound from the path I had recorded it in. The sdcard must be a *.img file and not a *.iso (*.iso doesn't work for me) thanks On Feb 2, 11:51 pm, Dave Sparks wrote: > Sorry, I don't have a Windows machine for testing. Maybe one of our > developer advocates can help you with that. > > From the debug spew from the audio input driver, it sounds like it > should be recording. Do you see the file being written to the SD card? > > On Feb 1, 2:45 am, Nicolas Cosson wrote: > > > Thanks for the advice, > > > I work on windows vista, > > > the audio found is: > > winaudio Windows wave audio > > But it doesn't work with audio-out and audio-in at the same time for me. > > emulator: warning: opening audio output failed > > > audio-out works alone > > I tested it with the sample provided with the sdk when reading ressources. > > It doesn't when trying to read the sdcard. > > > the sdcard isn't readable in settings too, and it won't launch itself from > > eclipse with the additionnal emulator command line option, but only from > > cmd.exe with the arguments -sdcard sdimg.iso > > > However, the logcat says this repetitivly when I click on record with > > audio-in: > > D/AudioHardware< 25>: AudioStreamInGeneric::read<0x40308160, 320> from fd > > 7 > > > I finally found the sound recorder application you where talking about, I > > haven't tested it yet, but the source code is 100* bigger than > > mine...http://android.git.kernel.org/?p=platform/packages/apps/SoundRecorder... > > > Maybe I have made a mistake somewhere, any help is greatly appreciated > > > thanks for your time > > > On Sun, Feb 1, 2009 at 5:15 AM, Dave Sparks wrote: > > > > Try this: > > > > emulator -help-audio-in > > > > It will tell you which audio backends are available on your system. > > > You didn't specify what OS you are using. > > > > I think there was also some sample code in the SDK at one point. Maybe > > > one of the developer advocates can point you to it. Another option is > > > to look for the source for the Sound Recorder application on > > > source.android.com. It should be in packages/apps/SoundRecorder. > > > > On Jan 31, 10:45 am, nicolas cosson wrote: > > > > Hello, > > > > > I have been searching for some time and I can't find a detailled > > > > tutorial on how to easily record and then read audio on the emulator > > > > under eclipse. I have found these steps: > > > > > - You have to install a virtual sd card with mksdcard.exe 1024M > > > > sdimg.iso > > > > > -then run the emulator : emulator.exe -sdcard > > > > sdimg.iso //where sdimg.iso it is the path to > > > > the sdcard > > > > > -then run adb.exe : adb push local_file sdcard/remote_file > > > > > -then you should put : > > > android:name="android.permission.RECORD_AUDIO"> in > > > > the androidmanifest.xml > > > > > -then there is some code to implement which should look like : > > > > private void startRecord() { > > > > > recorder = new MediaRecorder(); > > > > recorder.setAudioSource(MediaRecorder.AudioSource.MIC); > > > > //ok > > > so > > > > I say audio source is the microphone, is it windows/linux microphone > > > > on the emulator? > > > > recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); > > > > recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); > > > > recorder.setOutputFile("/sdcard/test.3gpp"); > > > > > recorder.prepare(); > > > > recorder.start(); > > > > > } > > > > > -then you should stop with : recorder.stop(); // at some point (I have > > > > no idea when and where to decide to stop but I haven't searched yet) > > > > > -then you should play it. > > > > > I have also heard about : > > >http://code.google.com/intl/fr/android/reference/emulator.html#sdcard > > > > in this page of the manual (~1/4 of the total scroll), there are some > > > > informations about "Emulator Startup Options", one of them is about > > > > Media -audio > > > > I couldn't find much about that backend thing, google didn't said much > > > > about it. I still don't know if it's important to the audio recording > > > > process. > > > > > The fact is all these steps are pretty blurry to me, and I believe I > > > > am not the only android newbie trying to record some sound :) > > > > > Anyone knows where we can find a complete tutorial "for dummies" > > > > teaching this feature? > > > > > Any help is of course greatly appreciated > > > > > Thanks. > > > > > On 27 jan, 20:08, Breno wrote: > > > > > > Hey Andrei, > > > > > > To recordaudioit's pretty easy. But, you must record in > > > > > sdcard, only. Be sure your p
[android-developers] Profiling Android Libraries
Hi everyone, Is there any way to profile android libraries (OpenGL, webkit, etc) functions? Can we use Traceview or DDMS tools for debug/profile android libraries? Regards, krish --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can host machine connect to emulator using socket
Thanks, David On Feb 2, 9:36 pm, David Turner wrote: > You will need to setup a network redirection, > seehttp://code.google.com/android/reference/emulator.html#emulatornetwor... > > On Mon, Feb 2, 2009 at 6:57 AM, zcj0429 wrote: > > > Hi, everyone: > > How can my host machine connect to emulator using socket? In my > > application, I need emulator to open a server socket, then host > > machine connects to emulator as a client. But when host creates the > > socket using "10.0.2.15:x" (x is the port which emulator is > > listenning), it doesn't work. I think maybe the address"10.0.2.15" > > goes wrong. Is it a local address behind the "virtual router" and the > > host can't find? If so, how to find a correct IP address of emulator? > > --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Is it possible to have 2 launcher Activity in a single apk?
I need to have 2 launcher activities (i.e. 2 icons on the home screen). Each launch icon would launch a separate activity. Essentially, I need a single apk which contains a suite of 2 apps which I don't want to distribute separately. Is this possible? --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Device Idle State Capture
Well first you need to define what you mean by "idle". On Mon, Feb 2, 2009 at 10:13 PM, Pooja wrote: > > Hi All: > > Is it possible to somehow detect and capture the idle state of the > android device? > Need help on the approach which should be followed for developing idle > time based applications in android? > > Thanks, > Pooja > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Device Idle State Capture
Hi All: Is it possible to somehow detect and capture the idle state of the android device? Need help on the approach which should be followed for developing idle time based applications in android? Thanks, Pooja --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Getting Email IDs for a contact.
Hi All, I want know how to get All the EMAIL IDs associated with a particular contact given the Index of the contact. Please help me.. Regards, Don --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: LocationManager causes application to crash
Pratap here is the logcat trace. What we understand from this is that it requires ACCESS_FINE_LOCATION permission which you suggested in first place. Now that we have specified it in our manifest.xml, what might be the issue? We define permissions as:- Thanks again for the help. LOGCAT START -- I/ActivityManager( 54): Starting activity: Intent { action=android.intent.acti on.MAIN categories={android.intent.category.LAUNCHER} flags=0x1020 comp={tcs .cns/tcs.cns.LBSAppActivity} } I/ActivityManager( 54): Start proc tcs.cns for activity tcs.cns/.LBSAppActivit y: pid=173 uid=10020 gids={} I/jdwp( 173): received file descriptor 20 from ADB D/LocationManager( 173): Constructor: service = android.location.ILocationManag er$stub$pr...@4336ec38 D/AndroidRuntime( 173): Shutting down VM W/dalvikvm( 173): threadid=3: thread exiting with uncaught exception (group=0x4 0010e28) E/AndroidRuntime( 173): Uncaught handler: thread main exiting due to uncaught e xception E/AndroidRuntime( 173): java.lang.RuntimeException: Unable to start activity Co mponentInfo{tcs.cns/tcs.cns.LBSAppActivity}: java.lang.SecurityException: Requir es ACCESS_FINE_LOCATION permission E/AndroidRuntime( 173):at android.app.ActivityThread.performLaunchActiv ity(ActivityThread.java:2140) E/AndroidRuntime( 173):at android.app.ActivityThread.handleLaunchActivi ty(ActivityThread.java:2156) E/AndroidRuntime( 173):at android.app.ActivityThread.access $1800(Activi tyThread.java:112) E/AndroidRuntime( 173):at android.app.ActivityThread $H.handleMessage(Ac tivityThread.java:1580) E/AndroidRuntime( 173):at android.os.Handler.dispatchMessage (Handler.ja va:88) E/AndroidRuntime( 173):at android.os.Looper.loop(Looper.java: 123) E/AndroidRuntime( 173):at android.app.ActivityThread.main (ActivityThrea d.java:3742) E/AndroidRuntime( 173):at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 173):at java.lang.reflect.Method.invoke (Method.java:5 15) E/AndroidRuntime( 173):at com.android.internal.os.ZygoteInit $MethodAndA rgsCaller.run(ZygoteInit.java:739) E/AndroidRuntime( 173):at com.android.internal.os.ZygoteInit.main(Zygot eInit.java:497) E/AndroidRuntime( 173):at dalvik.system.NativeStart.main (Native Method) E/AndroidRuntime( 173): Caused by: java.lang.SecurityException: Requires ACCESS _FINE_LOCATION permission E/AndroidRuntime( 173):at android.os.Parcel.readException (Parcel.java:1 234) E/AndroidRuntime( 173):at android.os.Parcel.readException (Parcel.java:1 222) E/AndroidRuntime( 173):at android.location.ILocationManager $Stub$Proxy. getLastKnownLocation(ILocationManager.java:658) E/AndroidRuntime( 173):at android.location.LocationManager.getLastKnown Location(LocationManager.java:844) E/AndroidRuntime( 173):at tcs.cns.LBSAppActivity.onCreate (LBSAppActivit y.java:26) E/AndroidRuntime( 173):at android.app.Instrumentation.callActivityOnCre ate(Instrumentation.java:1122) E/AndroidRuntime( 173):at android.app.ActivityThread.performLaunchActiv ity(ActivityThread.java:2103) E/AndroidRuntime( 173):... 11 more I/Process ( 54): Sending signal. PID: 173 SIG: 3 I/dalvikvm( 173): threadid=7: reacting to signal 3 I/jdwp( 173): Ignoring second debugger -- accepting and dropping I/dalvikvm( 173): Wrote stack trace to '/data/anr/traces.txt' I/ARMAssembler( 54): generated scanline__0077:03515104__ [ 27 ipp] (41 ins) at [0x26f590:0x26f634] in 3554767 ns I/Process ( 173): Sending signal. PID: 173 SIG: 9 I/ActivityManager( 54): Process tcs.cns (pid 173) has died. LOGCAT END -- On Feb 3, 10:40 am, PRATAP SOLAPUR wrote: > post the stack trace of ur logcatso that i can kno wat kind of error > ur getting. > > On 2/3/09, pulkit wrote: > > > > > Thanks for replying Pratap, but unfortunately it didn't fix the > > problem. > > Any other suggestion please? > > > On Feb 3, 10:23 am, PRATAP SOLAPUR wrote: > > > Add ACCESS_FINE_LOCATION permission and INTERNET permission > > > > On 2/3/09, pulkit wrote: > > > > > Hi, > > > > > We're working on Location based services with android emulator. But > > > > the issue is that the application crashes when any of the following > > > > statements executes:- > > > > > Location location = locationManager.getLastKnownLocation(locationManag > > > > er.getBestProvider(CRITERIA, true)); > > > > > OR > > > > > Location location = locationManager.getLastKnownLocation("gps"); > > > > > We have also defined permissions in manifest.x
[android-developers] Re: LocationManager causes application to crash
post the stack trace of ur logcatso that i can kno wat kind of error ur getting. On 2/3/09, pulkit wrote: > > > Thanks for replying Pratap, but unfortunately it didn't fix the > problem. > Any other suggestion please? > > On Feb 3, 10:23 am, PRATAP SOLAPUR wrote: > > Add ACCESS_FINE_LOCATION permission and INTERNET permission > > > > On 2/3/09, pulkit wrote: > > > > > > > > > Hi, > > > > > We're working on Location based services with android emulator. But > > > the issue is that the application crashes when any of the following > > > statements executes:- > > > > > Location location = locationManager.getLastKnownLocation(locationManag > > > er.getBestProvider(CRITERIA, true)); > > > > > OR > > > > > Location location = locationManager.getLastKnownLocation("gps"); > > > > > We have also defined permissions in manifest.xml as follows:- > > > > > > > > > > > > > PS: we are also spoofing coordinates using ddms. Google map works > > > fine, but our application keeps crashing. > > > > > Any inputs please. Thanks in advance. > > > --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: LocationManager causes application to crash
Thanks for replying Pratap, but unfortunately it didn't fix the problem. Any other suggestion please? On Feb 3, 10:23 am, PRATAP SOLAPUR wrote: > Add ACCESS_FINE_LOCATION permission and INTERNET permission > > On 2/3/09, pulkit wrote: > > > > > Hi, > > > We're working on Location based services with android emulator. But > > the issue is that the application crashes when any of the following > > statements executes:- > > > Location location = locationManager.getLastKnownLocation(locationManag > > er.getBestProvider(CRITERIA, true)); > > > OR > > > Location location = locationManager.getLastKnownLocation("gps"); > > > We have also defined permissions in manifest.xml as follows:- > > > > > > > > PS: we are also spoofing coordinates using ddms. Google map works > > fine, but our application keeps crashing. > > > Any inputs please. Thanks in advance. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: For launching a camera from appl which action requires?
Hello James Thanks for replying me, Actually I want Uri of this image(Currently captured from camera) So that I can send this image by using : Uri uri = ContentUris.withAppendedId(Media.EXTERNAL_CONTENT_URI, 2); Intent i = new Intent(); i.setAction(Intent.ACTION_SEND); i.setType("image/jpeg"); i.putExtra(Intent.EXTRA_SUBJECT, "image5"); i.putExtra(Intent.EXTRA_STREAM, uri); i = Intent.createChooser(i, "Send"); startActivity(i); So how should I get this current images Uri (When save the picture on camera appl it goes into Media.EXTERNAL_CONTENT_URI I just want Uri for this current Image ) Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: LocationManager causes application to crash
Add ACCESS_FINE_LOCATION permission and INTERNET permission On 2/3/09, pulkit wrote: > > > Hi, > > We're working on Location based services with android emulator. But > the issue is that the application crashes when any of the following > statements executes:- > > Location location = locationManager.getLastKnownLocation(locationManag > er.getBestProvider(CRITERIA, true)); > > > OR > > Location location = locationManager.getLastKnownLocation("gps"); > > We have also defined permissions in manifest.xml as follows:- > > > > > PS: we are also spoofing coordinates using ddms. Google map works > fine, but our application keeps crashing. > > Any inputs please. Thanks in advance. > > > --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] LocationManager causes application to crash
Hi, We're working on Location based services with android emulator. But the issue is that the application crashes when any of the following statements executes:- Location location = locationManager.getLastKnownLocation(locationManag er.getBestProvider(CRITERIA, true)); OR Location location = locationManager.getLastKnownLocation("gps"); We have also defined permissions in manifest.xml as follows:- PS: we are also spoofing coordinates using ddms. Google map works fine, but our application keeps crashing. Any inputs please. Thanks in advance. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Running Android Image from memory card?
This would be more appropriate for one of the platform groups, such as android-platform. Thanks! On Mon, Feb 2, 2009 at 6:54 PM, Aakash Patel wrote: > > Hi, > > Is it possible to boot the phone (ADP1) from a compiled android image > stored on the memory card without affecting the contents of the image > flashed on the phone? > > I would like to do this so I can work with development images, but I > didn't want to mess with the factory image. > > Thanks, > Aakash > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to capture ACTION_MOVE MotionEvents in a view
That is because returning true says that you consumed the event and thus the rest of the events in that motion will be dispatched to that view. On Mon, Feb 2, 2009 at 6:30 PM, hbk723 wrote: > > I couldn't get it either, no matter what I did on the phone or in the > emulator all I get is ACTION_DOWN, never ACTION_MOVE or ACTION_UP. > HOWEVER, changing the return statement of onTouchEvent() to "true" > fixed it for me. Frustrating! > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: X11 module?
Discussion about working with the open source platform should be in one of the appropriate lists. Porting discussion is in android-porting. Thanks. On Mon, Feb 2, 2009 at 6:16 PM, chueh8 wrote: > > > For common linux, we provide a kernel driver and also a X11 module for > our device. > Since Android use the same linux kernel, I guess our kernel driver > should work... > Well, how about X11 module? does Android includes Xorg ? If not, > what's target we need to do for our original X11 module/driver? > > Thanks. > -chueh8 > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Fwd: GMAPS is not being displayed in the emulator
hi, i am also facing sme problem ,if get it plz let me know @ swapna.annaman...@gmail.com On Fri, Jan 16, 2009 at 12:19 PM, sheik wrote: > > Kindly look at this queryand help me regarding the issue.. > > thank you > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: X11 module?
Android does not include nor use X. On Feb 2, 2009 7:50 PM, "chueh8" wrote: For common linux, we provide a kernel driver and also a X11 module for our device. Since Android use the same linux kernel, I guess our kernel driver should work... Well, how about X11 module? does Android includes Xorg ? If not, what's target we need to do for our original X11 module/driver? Thanks. -chueh8 --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Reg OMA DM , FOTA & DS
HI All, plz let me know Android source include the following components DM , FOTA and DataSync. How FOTA will be trigger on adriod and "android.permission.FOTA_UPDATE" some of fota related index strings are strike out. i would like know more on Sync applications. Regards Manoj --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Flash Audio Wizard (v4) - Web Audio Software.
A Simple Step-By-Step Audio Wizard That Creates Everything You Need To Add Audio To Your Website In Just 2½ Minutes... Or Less. http://apologizer.sytec2001.hop.clickbank.net/?tid=56744 --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to capture ACTION_MOVE MotionEvents in a view
I couldn't get it either, no matter what I did on the phone or in the emulator all I get is ACTION_DOWN, never ACTION_MOVE or ACTION_UP. HOWEVER, changing the return statement of onTouchEvent() to "true" fixed it for me. Frustrating! --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Bring up active dialer or send dial tone
On Jan 27, 2:45 am, songs wrote: > Hi, > > I'm trying to write a convenience app that needs to bring up the > active dialer for a connected call, but I'm having issues after trying > a couple of approaches. Sorry, right now the DTMF dialpad is built in to the in-call UI (i.e. it's not a separate activity, like the outgoing-call Dialer is) and there's currently no API to control it. We *do* hope to make some major updates to the android.telephony.TelephonyManager API in a future release, allowing lots more control over telephony features (such sending DTMF tones over the uplink, so a 3rd party app could interact with an IVR system or provide an alternate DTMF dialpad.) I don't think we have any plans to let 3rd party apps control the internal UI of the in-call screen, though (like forcing the DTMF dialpad to come up). Feel free to file an RFE, though. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to hang up outgoing call?
Hi everyone, We are new to Android and creating an application where one of the things we need is to control the outgoing call, at least to be able to stop it from our application. For now we tried using Intent.ACTION_CALL to use existing activity: Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse ("tel:" + phoneNumber)); startActivity(callIntent); But we can't figure out whether it's possible to stop launched by this default Call activity. Is it possible? If yes, how? If not, what should we use to write our own Call activity to make a very simple call? We would want this activity only to be used by our application, not for all outgoing calls. Million thanks in advance, Tilek --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] X11 module?
For common linux, we provide a kernel driver and also a X11 module for our device. Since Android use the same linux kernel, I guess our kernel driver should work... Well, how about X11 module? does Android includes Xorg ? If not, what's target we need to do for our original X11 module/driver? Thanks. -chueh8 --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Running Android Image from memory card?
Hi, Is it possible to boot the phone (ADP1) from a compiled android image stored on the memory card without affecting the contents of the image flashed on the phone? I would like to do this so I can work with development images, but I didn't want to mess with the factory image. Thanks, Aakash --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Compare Mobile Platforms
Hey guys, I am thinking of developing a small application and I am trying to decide between various Mobile applications platforms - Android, iPhone and RIMM. I was wondering if any of you have any thoughts on any of these mobile platforms, there advantages/disadvantages etc. Also - how would you compare between the various app stores these mobile platforms have. Thanks guys for your help! - D --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Cant go back to previous page from webview page.
Hi, I am developing simple RSS Reader kind of application.In my applicaion i cant go back from Webview page to previous page.i can go back from all pages except the page where i have used Webview.What could be the reason?why i cant go back? Thanx. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How ACTION_CHOOSER picks choices for ACTION_SET_WALLPAPER
In Launcher application, ACTION_CHOOSER intent is used to show possible choices for setting wallpaper from. I could not find ACTION_SET_WALLPAPER in any AndroidManifest.xml. What ACTION does it use to identify the possible choices (gallery, wallpaper)? Is this PICK_ACTION? Thanks, Layeeq --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] DM,FOTA & DS with Andriod
HI All, Is the source include in Android for following components DM,FOTA & DataSync. How the FOTA will trigger on Andriod..some the FOTA related index items are striked out.. I would like to know about sync application like contacts & calender etc.. plz let me know about these things.. Regards Manoj --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to auto lock alt by application
Hi all, I want to auto lock hardware key "alt" by application to let user input special character as default. My idea is to issue key up event of keycode "alt" two times when user focus on a specific EditText. I have to check the current alt lock is on or off before I do so but I do know how to get the information. Do you have any idea about it? I will very appreciate it if you can guide me a better solution to do so. Thanks a lot. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android Developers in Atlanta, GA
Hi Shaun, Your in luck, Simon is beginning to look into OpenGL. I'm doing mostly location based awareness apps but we Simon and I were thinking of setting up a google group for atlanta area folks. If you know other people who are interested, reply to this post. Once I get the google group setup, I send you guys an invite. BarbieDahl On Feb 2, 4:39 pm, shaun wrote: > I am in Marietta. I would like to participate, especially if some > game developers start joining...or at least someone with valuable > experience with OpenGL. > > On Feb 2, 4:30 pm, BarbieDahl wrote: > > > > > Great, do you know any other people in this area interested in > > Android?? If you are on google chat, send me an email so I can add you > > to my contacts. > > > Thanks, > > Barbara > > > On Jan 30, 4:22 pm, Simon wrote: > > > > I'd be interested in possibly getting together. > > > > On Jan 30, 9:10 am, BarbieDahl wrote: > > > > > Are there any developers inAtlanta, GA that would like to meet and > > > > discuss android app ideas as well as learn new and advanced android > > > > topics? I would like to network with some other developers in and > > > > aroundAtlanta, GA for help, mentoring and support. Please reply if > > > > you are interested.- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Need help in understanding LocalServiceTest in the ApiDemos test example
Hi, I appreciate if someone can help me understand the following code in LocalServiceTest in the ApiDemos test example: For the 'testStartable' method, how does it verify that the service has started? public void testStartable() { Intent startIntent = new Intent(); startIntent.setClass(getContext(), LocalService.class); startService(startIntent); } For the 'testBindable' method, how does it verify that the server has binded? And what does it do with the 'service' object? public void testBindable() { Intent startIntent = new Intent(); startIntent.setClass(getContext(), LocalService.class); IBinder service = bindService(startIntent); } Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Why I can't delete SIM record?
Hi guys, I can use code to delete contacts in phone, but I can't do it in SIM card. Does anybody know it?? Here is my code to delete SIM record. mSimUri = Uri.parse("content://sim/adn"); getContentResolver().delete(mSimUri, "name=?",new String[] {"people name"}); No exception to execute this command, but not any result. Can anybody give an eye on it? 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to make my application know where I am, in country level.
Then, what is the difference between getNetworkCountryIso and getNetworkOperator? I think we can use getNetworkCountryIso, right? On Jan 22, 5:14 pm, legerb wrote: > String networkOperator = ((TelephonyManager) > context .getSystemService > (Context.TELEPHONY_SERVICE)).getNetworkOperator(); > String locationCode = networkOperator.substring(0, 3); > > First 3 digitis are the mcc code - "Mobile Country Code" which will > tell you what you need. > > On Jan 20, 6:05 am,magicpig wrote: > > > Thanks for the reply. > > > There may be some confusing in my post. > > > Actually, I want to judge my location by the > > Network:http://code.google.com/android/reference/android/telephony/TelephonyM... > > > But I am not sure what the returned value will be. > > > Any hint? > > > On Jan 18, 7:29 pm, "for android" wrote: > > > >http://groups.google.com/group/android-developers/web/localizing-andr... > > > > On Sat, Jan 17, 2009 at 6:51 PM,magicpig wrote: > > > > > Hi, > > > > I am wondering if there is such API that provides my current > > > > location, in country level, such as I am in Japan. > > > > > 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Signing the application
here is a great tutorial that worked perfectly for me http://www.anddev.org/signing_your_apk-application_for_release_keytooljarsigner-t3069.html On Feb 2, 8:35 pm, Alowishus wrote: > Update: I think this may be a vista problem, the app is built and runs > perfectly in the emulator, I try and use the instructions for the > keytool and the jarsigner and i was getting IO errors because of > Vista's file security, I ended up copying the tools and files into my > workspace to rectify the problem and the keytool created the > android.keystore. However the jarsigner refuses to work and tells me > the .keystore does not exist. Any ideas? > > On Feb 2, 4:51 pm, Alowishus wrote: > > > So, I got the screens and code all worked out, I want to export and > > sign the application for public distribution but the documentation on > > this is overwhelming. Any hints on signing the app and all that jazz? --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Signing the application
Update: I think this may be a vista problem, the app is built and runs perfectly in the emulator, I try and use the instructions for the keytool and the jarsigner and i was getting IO errors because of Vista's file security, I ended up copying the tools and files into my workspace to rectify the problem and the keytool created the android.keystore. However the jarsigner refuses to work and tells me the .keystore does not exist. Any ideas? On Feb 2, 4:51 pm, Alowishus wrote: > So, I got the screens and code all worked out, I want to export and > sign the application for public distribution but the documentation on > this is overwhelming. Any hints on signing the app and all that jazz? --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How can I create a Parcel object for unit testing purposes?
Hi, In my android project, I have a class which creates a Parselable object (in my case, MyData). public static final Parcelable.Creator MYDATA_CREATOR = new Parcelable.Creator() { public MyData createFromParcel(Parcel in) { return new MyData(in); } } My question is how can I create a mock Parcel object to pass in the 'createFromParcel()' for unit testing purposes in order to test the constructor 'MyData(Parcel in)'? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to handle ini file in android?
Do you mean you want to use a .ini file that is more than 1 mo ? 1mo is a lot of memory for a mobile phone ! Though if you really need to, you can always concatenate several 1 Mo asset files to fit your needs. Emmanuel http://androidblogger.blogspot.com/ On Feb 2, 8:18 am, Paranoia wrote: > and seems there is a limit on the file size in assets. the file can > not be larger than 1MB! > > On Feb 2, 2:39 pm, Paranoia wrote: > > > how to use assets directory? i have rebuild the apk by apkbuilder > > manually? > > > On Jan 30, 9:56 pm, Tote wrote: > > > > Or alternatively you can put your asset files under 'assets' directory > > > in your package. AssetManager helps you opening those files, however, > > > parsing is really up to you. > > > > Anyway, I let the users of my application edit preferences and for > > > that I use PreferenceActivity along with PreferenceManager. Might be > > > useful for you, too. > > > > On Jan 30, 8:59 am, "hmmm" wrote: > > > > > You can place your ini file (or any file), say config,ini, in the 'raw' > > > > subdir of the 'res' dir and then use > > > > InputStream is = Context.getResources().openRawResource(R.raw.config) > > > > But then, I guess, there's no API in android dealing with ini files > > > > specifically so you then might want to create your own class to > > > > represent an > > > > ini file > > > > > - Original Message - > > > > From: "Paranoia" > > > > To: "Android Developers" > > > > Sent: Friday, January 30, 2009 10:32 AM > > > > Subject: [android-developers] Re: How to handle ini file in android? > > > > > i want to use ini file as my config files. how to use ini file in > > > > android instead of xml file. i mean replace xml with ini in android > > > > > On Jan 30, 11:48 am, Dianne Hackborn wrote: > > > > > Android doesn't do ini files; we generally use XML for these kinds of > > > > > things. You will probably need to find a parser elsewhere, or write > > > > > your > > > > > own, and compile it into your app. > > > > > > On Thu, Jan 29, 2009 at 6:59 PM, Paranoia wrote: > > > > > > > Thanks > > > > > > but it seems that this method can not handle the ini file with > > > > > > multiple sections. > > > > > > e.g. > > > > > > > [Section1] > > > > > > X=a > > > > > > Y=b > > > > > > > [Section2] > > > > > > U=c > > > > > > V=d > > > > > > ... > > > > > > > On Jan 22, 2:37 pm, Freepine wrote: > > > > > > > Hi, maybe you can try > > > > > > > java.util.Properties.load(InputStream< > > > > > >http://code.google.com/android/reference/java/io/InputStream.html> > > > > > > > in) > > > > > >http://code.google.com/intl/zh-CN/android/reference/java/util/Propert...) > > > > > > > > On Thu, Jan 22, 2009 at 2:14 PM, Paranoia > > > > > > > wrote: > > > > > > > > > i can not find any utility to parse the ini file in android. > > > > > > > > any one > > > > > > > > can help me? > > > > > > -- > > > > > Dianne Hackborn > > > > > Android framework engineer > > > > > hack...@android.com > > > > > > Note: please don't send private questions to me, as I don't have time > > > > > to > > > > > provide private support. All such questions should be posted on public > > > > > forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Memory leak in BitmapFactory/Gallery?
On Jan 31, 1:12 am, blindfold wrote: > When compiling hprofConv.c I noticed that stdint.h is not included > with Visual Studio C++ products (http://en.wikipedia.org/wiki/ > Stdint.h), so I fetched the "portable stdint.h" pstdint.h from the web > (http://www.azillionmonkeys.com/qed/pstdint.h). Next I found that I > had to redefine DBUG for lack of support for variable length argument > lists in my (old) C preprocessor, and I had to apply a few explicit > casts to HprofBasicType to satisfy the VC compiler. Of course I fully > understand that HprofConv was not yet developed for maximum > portability but for in-house use. I will experiment with your > HprofConv utility later. Unfortunately I don't have a lot of different compilers to test with. is only needed for a couple of types (uint8_t and uint32_t); not sure if there's a better way to deal with those. I figured variadic macros could be a problem, but since it's a debug macro that is compiled out by default I figured at worst people could just strip it out entirely. One user reported some problems running it under Cygwin that sounded like stdin/stdout were undergoing text conversion, so I posted a new version that takes the input and output files as arguments, and will fopen them with "rb"/"wb". Per UNIX convention, you can specify "-" to use stdin/stdout for the original behavior. (I probably should've done it this way in the first place.) New version is up on http://bigflake.com/HprofConv.c.txt . --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Signing the application
So, I got the screens and code all worked out, I want to export and sign the application for public distribution but the documentation on this is overwhelming. Any hints on signing the app and all that jazz? --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How do I display the menu programatically?
Solved. If someone else needs that: mActivity.getWindow().openPanel(Window.FEATURE_OPTIONS_PANEL, new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU)); Cheers, Stoyan On Mon, Feb 2, 2009 at 10:24 PM, Stoyan Damov wrote: > Hi, > Is there a way to programmatically display the menu, w/o the user having to > press the Menu key? > Thanks! > Stoyan --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: signature issue when set share user id to android,media
Oh and this doesn't belong on android-developers because it is not related to using the SDK. :) On Mon, Feb 2, 2009 at 3:32 PM, Dianne Hackborn wrote: > You need to build everything yourself, and sign it all with the same > certificate that you own. In the make files for the .apks you will see a > line telling the build system which certificate file to use and you should > use the same line in your own .apk. > > > On Mon, Feb 2, 2009 at 3:21 PM, MayFirst wrote: > >> >> I made some modifications in cupcake camera source code using Eclipse, >> and try to load to emulator for testing. But it fails installing the >> apk to the emulator due to the mis-matched signature of android,media, >> which is set as share user id in manifest.xml. >> The android,media is pre-built in the emulator. does any one know >> how those preload packages are signed and how to set correct signature >> (or keystore) in Eclipse ? >> >> Thank you for the kindly helps >> >> >> >> > > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: signature issue when set share user id to android,media
You need to build everything yourself, and sign it all with the same certificate that you own. In the make files for the .apks you will see a line telling the build system which certificate file to use and you should use the same line in your own .apk. On Mon, Feb 2, 2009 at 3:21 PM, MayFirst wrote: > > I made some modifications in cupcake camera source code using Eclipse, > and try to load to emulator for testing. But it fails installing the > apk to the emulator due to the mis-matched signature of android,media, > which is set as share user id in manifest.xml. > The android,media is pre-built in the emulator. does any one know > how those preload packages are signed and how to set correct signature > (or keystore) in Eclipse ? > > Thank you for the kindly helps > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Mediaplayer, retrieving after starting a new activity
The only reason that your playback continues in the background is because you're not stopping it, and the system hasn't garbage collected your MediaPlayer object yet. If you want to do reliable background playback while your UI exits, you will have to do this in a service. On Sun, Feb 1, 2009 at 4:04 AM, ph...@grantmidwinter.com < ph...@grantmidwinter.com> wrote: > > I'm using a mediaplayer to play a sound file, when you leave the > application the sound continues in the background, which is the > desired behaviour. > > However, when the app is resumed, the mediaplayer isn't retrieved, so > hitting pause just starts a new player so now there are two sounds > playing. > > Is the mediaplayer a type of service? How can I access the original > player again? > > > --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] signature issue when set share user id to android,media
I made some modifications in cupcake camera source code using Eclipse, and try to load to emulator for testing. But it fails installing the apk to the emulator due to the mis-matched signature of android,media, which is set as share user id in manifest.xml. The android,media is pre-built in the emulator. does any one know how those preload packages are signed and how to set correct signature (or keystore) in Eclipse ? Thank you for the kindly helps --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Audio in the emulator...
Sorry, I don't have a Windows machine for testing. Maybe one of our developer advocates can help you with that. >From the debug spew from the audio input driver, it sounds like it should be recording. Do you see the file being written to the SD card? On Feb 1, 2:45 am, Nicolas Cosson wrote: > Thanks for the advice, > > I work on windows vista, > > the audio found is: > winaudioWindows wave audio > But it doesn't work with audio-out and audio-in at the same time for me. > emulator: warning: opening audio output failed > > audio-out works alone > I tested it with the sample provided with the sdk when reading ressources. > It doesn't when trying to read the sdcard. > > the sdcard isn't readable in settings too, and it won't launch itself from > eclipse with the additionnal emulator command line option, but only from > cmd.exe with the arguments -sdcard sdimg.iso > > However, the logcat says this repetitivly when I click on record with > audio-in: > D/AudioHardware< 25>: AudioStreamInGeneric::read<0x40308160, 320> from fd > 7 > > I finally found the sound recorder application you where talking about, I > haven't tested it yet, but the source code is 100* bigger than > mine...http://android.git.kernel.org/?p=platform/packages/apps/SoundRecorder... > > Maybe I have made a mistake somewhere, any help is greatly appreciated > > thanks for your time > > > > On Sun, Feb 1, 2009 at 5:15 AM, Dave Sparks wrote: > > > Try this: > > > emulator -help-audio-in > > > It will tell you which audio backends are available on your system. > > You didn't specify what OS you are using. > > > I think there was also some sample code in the SDK at one point. Maybe > > one of the developer advocates can point you to it. Another option is > > to look for the source for the Sound Recorder application on > > source.android.com. It should be in packages/apps/SoundRecorder. > > > On Jan 31, 10:45 am, nicolas cosson wrote: > > > Hello, > > > > I have been searching for some time and I can't find a detailled > > > tutorial on how to easily record and then read audio on the emulator > > > under eclipse. I have found these steps: > > > > - You have to install a virtual sd card with mksdcard.exe 1024M > > > sdimg.iso > > > > -then run the emulator : emulator.exe -sdcard > > > sdimg.iso//where sdimg.iso it is the path to > > > the sdcard > > > > -then run adb.exe : adb push local_file sdcard/remote_file > > > > -then you should put : > > android:name="android.permission.RECORD_AUDIO"> in > > > the androidmanifest.xml > > > > -then there is some code to implement which should look like : > > > private void startRecord() { > > > >recorder = new MediaRecorder(); > > > recorder.setAudioSource(MediaRecorder.AudioSource.MIC); //ok > > so > > > I say audio source is the microphone, is it windows/linux microphone > > > on the emulator? > > > recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); > > > recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); > > > recorder.setOutputFile("/sdcard/test.3gpp"); > > > > recorder.prepare(); > > > recorder.start(); > > > > } > > > > -then you should stop with : recorder.stop(); // at some point (I have > > > no idea when and where to decide to stop but I haven't searched yet) > > > > -then you should play it. > > > > I have also heard about : > >http://code.google.com/intl/fr/android/reference/emulator.html#sdcard > > > in this page of the manual (~1/4 of the total scroll), there are some > > > informations about "Emulator Startup Options", one of them is about > > > Media -audio > > > I couldn't find much about that backend thing, google didn't said much > > > about it. I still don't know if it's important to the audio recording > > > process. > > > > The fact is all these steps are pretty blurry to me, and I believe I > > > am not the only android newbie trying to record some sound :) > > > > Anyone knows where we can find a complete tutorial "for dummies" > > > teaching this feature? > > > > Any help is of course greatly appreciated > > > > Thanks. > > > > On 27 jan, 20:08, Breno wrote: > > > > > Hey Andrei, > > > > >To recordaudioit's pretty easy. But, you must record in > > > > sdcard, only. Be sure your path to file it's pointing to sdcard, and > > > > you have one mounted in eclipse (or something else). It's working > > > > perfectly. > > > > > Regards > > > > > Breno > > > > > On Jan 15, 8:58 am, "Andrei Craciun" wrote: > > > > > > Thanks David... > > > > > > 2009/1/15 David Turner > > > > > > > the emulator now supportsaudiorecording. If you have problems with > > it, > > > > > > you should report mode detailed information about it here > > > > > > > On Thu, Jan 15, 2009 at 11:05 AM, Andrei Craciun < > > avcrac...@gmail.com>wrote: > > > > > > >> Hi All, > > > > > >> As reported on this blog: > > >http://blog.roychowdhury.org/2008/04/
[android-developers] Re: Mediaplayer, retrieving after starting a new activity
If your application is properly written, you should be calling release () on the MediaPlayer object in your onPause() method. There is no guarantee that your app won't be killed while it's sitting in background, which will stop the audio. If you want audio in the background, you need to write a service. On Feb 1, 4:04 am, "ph...@grantmidwinter.com" wrote: > I'm using a mediaplayer to play a sound file, when you leave the > application the sound continues in the background, which is the > desired behaviour. > > However, when the app is resumed, the mediaplayer isn't retrieved, so > hitting pause just starts a new player so now there are two sounds > playing. > > Is the mediaplayer a type of service? How can I access the original > player again? --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: About media player
What kind of plug-in do you want to write? "media player" is kind of a vague term. There is the Music player application, the MusicPlaybackService, the MovieView activity, the VideoView activity, and the MediaPlayer object. Source for all of those is available at source.android.com. On Feb 1, 12:36 am, "Jerry Yang" wrote: > Hi, all > > I have a simple question, except the default player, is there any open > source media player we can modify or is there anyway we can add some > feature to the media player in android platform? Like we add a plug-in > into the MS media player? > > Thanks > > With best wishes > > Jerry Yang > > Client System Engineer Intertrust. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to make layout "fill" available space in middle
Worked like a charm - thanks Mike On Feb 2, 2:28 pm, Romain Guy wrote: > Use a veritcal LinearLayout and simply give the middle TextView the > attribute android:layout_weight="1.0". That's all. > > > > On Mon, Feb 2, 2009 at 12:17 PM, Mike wrote: > > > Let's say I want to make a layout that has 3 TextViews, one on top of > > the other. But, I want the top TextView to always "stick" to the top > > of the screen (regardless of orientation), and I want the bottom > > TextView to always "stick" to the bottom of the screen. Then I want > > the middle TextView to always fill the available space in between > > (again, regardless of screen orientation). > > > I've had no luck with LinearLayout and I've come close with > > RelativeLayout but neither have provided by desired solution. > > > Any ideas? > > > Mike > > -- > Romain Guy > Android framework engineer > romain...@android.com > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How does one sell on the Android Market?
Thanks! On Mon, Feb 2, 2009 at 4:47 PM, Josh Dobbs wrote: > You can charge for your application however the ability to sell through the > android market as not yet been implemented. > > > > > On Mon, Feb 2, 2009 at 1:41 PM, Rob Franz wrote: > >> Hi all When did Google start allowing devs to charge for their >> applications? I thought this was currently not permitted (but would be at >> some point). Perhaps I missed an announcement? >> >> On Mon, Feb 2, 2009 at 4:13 PM, Mark Murphy wrote: >> >>> >>> Shane Isbell wrote: >>> > I'm aware that one can post free applications on the Android >>> Market. >>> > However, if one wishes to sell an app, how does one go about doing >>> > this? Do we have to sell apps from our own websites? >>> > >>> > You can sell apps at http://slideme.org. We have a client similar to >>> the >>> > G1 Market. There are some other places like AndAppStore, which I think >>> > offer payment or donations through paypal. Otherwise, you just have to >>> > wait for Google. >>> >>> In the interests of completeness, though, they *can* sell through their >>> own Web site, if they so choose. Markets like SlideME are probably >>> easier and may have better reach, but one is not limited to only using >>> markets (a la iPhone, and there only one market at that). >>> >>> -- >>> Mark Murphy (a Commons Guy) >>> http://commonsware.com >>> _The Busy Coder's Guide to Android Development_ Version 2.0 Published! >>> >>> >>> >> >> >> > > > > > > --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Audio Volume
The volume adjustment is context sensitive. You can tell which volume is being adjusted by the volume display. If YouTube or the music player, adjusting the volume will affect only the music/video playback volume. The volume display will read "Media Volume". If you're in the home screen, or most other apps that don't use audio, adjusting the volume will affect the ringtone/notification volume. The volume display will read "Ringtone Volume". On Feb 1, 12:46 pm, Bala wrote: > In the Android phone, while I am watching YouTube videos, I may reduce > the audio volume. Once I am done watching, I close all applications > and leave the phone. Then when there is a incoming call, the ringer is > very feeble. I may miss that call. > > Can you make the volume adjustment apply only for that application? I > don't want the ringer volume get changed. > > Thanks > Bala --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: dbus_bus_get failure in audio flinger
This forum is for application developers. You should try this question in android-porting. On Feb 2, 9:34 am, "henry.lon...@gmail.com" wrote: > Hi, > > I tried to play with audio flinger code. What i did is to call > dbus_bus_get to connect to dbus daemon. However I got the errror > "Failed to coonect to socket /dev/socket/dbus: Permission denied", > though the dbus-daemon is up running. > > I'd appreciate any help regardsing this! > > 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Image to the screen
I feel you on this issue. I am having the same problem trying to find in depth code with good explanations of what's going on. Hell...at this point I just want to launch a app from my phone (icon and all that). I can't find any good documentation. I did pick up a book, "Android Application Developer". Good book but poor and incomplete examples On Feb 2, 1:19 pm, Stoyan Damov wrote: > Take a look at the app demos in the SDK. > > On Mon, Feb 2, 2009 at 9:30 PM, Alowishus wrote: > > > Hello All, > > > As an avid G1 user and a developer I am tasked with developing > > applications for the G1, im currently reading a couple of books and > > none seem go too in depth with tutorials and what not. I am a hands on > > kind of person when it comes to learning. I've done the hello world > > application and now im ready for something a bit more in depth. I want > > to launch an app and display a picture to the screen. Where can I look > > for information on doing this? > > > Kevin --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How can to remote debug with android emulator
Hi, I am trying to follow the steps below (found in an earlier email thread from Anil Yadav (anily0...@gmail.com): Step 1: First launch emulator from command line (by typing Emulator command) Step 2: Then launch DDMS using command line (by typing DDMS command) Step 3: Start your application in emulator which you want to debug and you can check the process into DDMS (DDMS will automatically sync with emulator on 8700 port) Step 4: Start eclipse and open your source project (you will get one error regarding port 8700, please ignore it this is due to DDMS already sync on 8700 port) Step 5: Put break pointer in your source code to debug it Step 6: Right click on your project -> Debug as -> Debug Configurations then you will see Debug configuration window Step 7: Right click on 'Remote Java Application' and select 'New' then give name 'android-debug' or anything you like. Step 8: Set the 'Project' to your source project Step 9: Keep the 'Host' set to 'localhost', but change 'Port' to 8700. Step 10: Click the 'Debug' button and navigate in your application on emulator. First, I can debug my Android project (on Mac) by clicking my project and then 'Debug' and then select 'Android'. My application can run on the emulator, and it hits the break points I set. However, when I try to follow the step above in remote debugging for the same project, I get this error: 47:33 W/ddms: Connection on 'debug selected' port, but none selected 50:40 W/ddms: Connection on 'debug selected' port, but none selected 51:44 W/ddms: Connection on 'debug selected' port, but none selected Can you please tell me how to fix my problem? I have put port 8700 in my remote debugging. Thank you for any pointers. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: I am getting SICK of 1 star ratings for charging!
Pretty sure it's a no to that too On Feb 2, 3:52 pm, Josh Dobbs wrote: > FORGOT TO ASK > Does anyone know if we can block specific users from downloading our apps? > > > > On Mon, Feb 2, 2009 at 1:51 PM, Josh Dobbs wrote: > > I have people giving me one star because my app is not open office or > > cupcake. I also have people giving me one star annd leaving me comments > > that have nothing at all to do with my app(racial slurs and such). Can we > > reply to comments? If so I really don't know how. I have been using cyrket > > to view the comments. > > > On Mon, Feb 2, 2009 at 1:48 PM, Beshoy wrote: > > >> Come on. All these people giving 1 star JUST BECAUSE someone wants to > >> make some money?! WHAT THE HECK! I'm making two versions: ONE FREE > >> and one for a buck. The free one will have ads... and I've got tons > >> of people giving one star saying "won't pay"... seriously.. this > >> rating system is flawed for that reason and the whole "first" thing > >> going around. :-/ sorry... just needed to vent about this. > > -- > cell: 714-588-4077 - feel free to send me txt msgs at this number > email: joshdo...@gmail.com, joshdo...@hotmail.com > Yahoo Messenger: makef...@yahoo.com > AIM: JoshDFlexGuy > MSN: joshdo...@hotmail.com > Google Talk: joshdo...@gmail.com --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: I am getting SICK of 1 star ratings for charging!
I'm using the G1 to check comments, and no.. no way to reply or contact the poster :( no way to anything.. all you can do is read it and weep! lol On Feb 2, 3:51 pm, Josh Dobbs wrote: > I have people giving me one star because my app is not open office or > cupcake. I also have people giving me one star annd leaving me comments > that have nothing at all to do with my app(racial slurs and such). Can we > reply to comments? If so I really don't know how. I have been using cyrket > to view the comments. > > On Mon, Feb 2, 2009 at 1:48 PM, Beshoy wrote: > > > Come on. All these people giving 1 star JUST BECAUSE someone wants to > > make some money?! WHAT THE HECK! I'm making two versions: ONE FREE > > and one for a buck. The free one will have ads... and I've got tons > > of people giving one star saying "won't pay"... seriously.. this > > rating system is flawed for that reason and the whole "first" thing > > going around. :-/ sorry... just needed to vent about this. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: I am getting SICK of 1 star ratings for charging!
FORGOT TO ASK Does anyone know if we can block specific users from downloading our apps? On Mon, Feb 2, 2009 at 1:51 PM, Josh Dobbs wrote: > I have people giving me one star because my app is not open office or > cupcake. I also have people giving me one star annd leaving me comments > that have nothing at all to do with my app(racial slurs and such). Can we > reply to comments? If so I really don't know how. I have been using cyrket > to view the comments. > > > On Mon, Feb 2, 2009 at 1:48 PM, Beshoy wrote: > >> >> Come on. All these people giving 1 star JUST BECAUSE someone wants to >> make some money?! WHAT THE HECK! I'm making two versions: ONE FREE >> and one for a buck. The free one will have ads... and I've got tons >> of people giving one star saying "won't pay"... seriously.. this >> rating system is flawed for that reason and the whole "first" thing >> going around. :-/ sorry... just needed to vent about this. >> >> >> > > -- cell: 714-588-4077 - feel free to send me txt msgs at this number email: joshdo...@gmail.com, joshdo...@hotmail.com Yahoo Messenger: makef...@yahoo.com AIM: JoshDFlexGuy MSN: joshdo...@hotmail.com Google Talk: joshdo...@gmail.com --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: I am getting SICK of 1 star ratings for charging!
I have people giving me one star because my app is not open office or cupcake. I also have people giving me one star annd leaving me comments that have nothing at all to do with my app(racial slurs and such). Can we reply to comments? If so I really don't know how. I have been using cyrket to view the comments. On Mon, Feb 2, 2009 at 1:48 PM, Beshoy wrote: > > Come on. All these people giving 1 star JUST BECAUSE someone wants to > make some money?! WHAT THE HECK! I'm making two versions: ONE FREE > and one for a buck. The free one will have ads... and I've got tons > of people giving one star saying "won't pay"... seriously.. this > rating system is flawed for that reason and the whole "first" thing > going around. :-/ sorry... just needed to vent about this. > > > --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] I am getting SICK of 1 star ratings for charging!
Come on. All these people giving 1 star JUST BECAUSE someone wants to make some money?! WHAT THE HECK! I'm making two versions: ONE FREE and one for a buck. The free one will have ads... and I've got tons of people giving one star saying "won't pay"... seriously.. this rating system is flawed for that reason and the whole "first" thing going around. :-/ sorry... just needed to vent about this. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How does one sell on the Android Market?
You can charge for your application however the ability to sell through the android market as not yet been implemented. On Mon, Feb 2, 2009 at 1:41 PM, Rob Franz wrote: > Hi all When did Google start allowing devs to charge for their > applications? I thought this was currently not permitted (but would be at > some point). Perhaps I missed an announcement? > > On Mon, Feb 2, 2009 at 4:13 PM, Mark Murphy wrote: > >> >> Shane Isbell wrote: >> > I'm aware that one can post free applications on the Android Market. >> > However, if one wishes to sell an app, how does one go about doing >> > this? Do we have to sell apps from our own websites? >> > >> > You can sell apps at http://slideme.org. We have a client similar to >> the >> > G1 Market. There are some other places like AndAppStore, which I think >> > offer payment or donations through paypal. Otherwise, you just have to >> > wait for Google. >> >> In the interests of completeness, though, they *can* sell through their >> own Web site, if they so choose. Markets like SlideME are probably >> easier and may have better reach, but one is not limited to only using >> markets (a la iPhone, and there only one market at that). >> >> -- >> Mark Murphy (a Commons Guy) >> http://commonsware.com >> _The Busy Coder's Guide to Android Development_ Version 2.0 Published! >> >> >> > > > > --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How does one sell on the Android Market?
On Mon, Feb 2, 2009 at 1:41 PM, Rob Franz wrote: > Hi allWhen did Google start allowing devs to charge for their > applications? I thought this was currently not permitted (but would be at > some point). Perhaps I missed an announcement? > Google currently has no-charge restriction for applications downloaded from their Android Market. Alternative markets are outside of Google's distribution channel and already allow paid downloads. Shane --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Trackball Event
How would I ensure it has input focus? It is the only view in the app so far. On Feb 2, 1:01 pm, Dianne Hackborn wrote: > Trackball events are dispatched to the focused view, make sure your view has > input focus. > > > > On Sun, Feb 1, 2009 at 4:38 PM, Ikon wrote: > > > Hi, > > > I have an activity which then set's a custom View class. Most of my > > app's functionality is coded into the View. I detect motion events > > from this class. However, when I overrided "onTrackballEvent", it > > never gets called. > > > I then inserted this same method into my Activity class, and the > > trackball event got processed. However, I need to process this event > > in my View class (where my main update loop is). > > > I tried returning false from my Activity class onTrackballEvent > > function, to see if it would then pass the Event to the View's event > > function, but this did not work. I also tried implementing a onKeyUp > > event in the View, to see if it got called if i returned false from > > the Activity class, but it did not work. > > > Any help appreciated! > > > Thanks, > > Ayan > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How does one sell on the Android Market?
Hi allWhen did Google start allowing devs to charge for their applications? I thought this was currently not permitted (but would be at some point). Perhaps I missed an announcement? On Mon, Feb 2, 2009 at 4:13 PM, Mark Murphy wrote: > > Shane Isbell wrote: > > I'm aware that one can post free applications on the Android Market. > > However, if one wishes to sell an app, how does one go about doing > > this? Do we have to sell apps from our own websites? > > > > You can sell apps at http://slideme.org. We have a client similar to the > > G1 Market. There are some other places like AndAppStore, which I think > > offer payment or donations through paypal. Otherwise, you just have to > > wait for Google. > > In the interests of completeness, though, they *can* sell through their > own Web site, if they so choose. Markets like SlideME are probably > easier and may have better reach, but one is not limited to only using > markets (a la iPhone, and there only one market at that). > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 2.0 Published! > > > > --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android Developers in Atlanta, GA
I am in Marietta. I would like to participate, especially if some game developers start joining...or at least someone with valuable experience with OpenGL. On Feb 2, 4:30 pm, BarbieDahl wrote: > Great, do you know any other people in this area interested in > Android?? If you are on google chat, send me an email so I can add you > to my contacts. > > Thanks, > Barbara > > On Jan 30, 4:22 pm, Simon wrote: > > > I'd be interested in possibly getting together. > > > On Jan 30, 9:10 am, BarbieDahl wrote: > > > > Are there any developers inAtlanta, GA that would like to meet and > > > discuss android app ideas as well as learn new and advanced android > > > topics? I would like to network with some other developers in and > > > aroundAtlanta, GA for help, mentoring and support. Please reply if > > > you are interested. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: G1 support for OpenGL ES 1.1?
I sure would love to know more on this subject also. Any game developer really. To clearly understand the current supported subset of the 1.1 API that is presently available in Android SDK 1.0 r2 would be great. I mean, the fact that we can cast the GL context to either GL10 or GL11 is a little strange. If nothing else, a clearer vision of the future plans for OpenGL ES on Android would help us plan accordingly. I tried some 1.1 API calls to try to use vertext buffer objects as I understand that would provide the possibility for a much more optimized rendering pipeline in many cases. Since I am pretty inexperienced in OpenGL, I was unsure if it my test blew up the emulator becuase of my misuse of the API, or because Google's recommendation not to rely on 1.1 API was great advice for now. I noticed the emulator blew up on the following calls: -gl.glGetString(GL10.GL_EXTENSIONS) // and using GL11 -gl.glBufferData(GL11.GL_ARRAY_BUFFER, 4 * squareFX.length, vertexBufferData, GL11.GL_STATIC_DRAW); On Feb 2, 3:36 am, kostmo wrote: > Does anyone know whether the G1 device is capable of supporting OpenGL > ES 1.1? Is this something that depends on both the graphics chip and > the OS, or is it purely software? If Android/the G1 only supports > OpenGL ES 1.0, are there any pieces of the 1.1 spec that are supported? --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android Developers in Atlanta, GA
Great, do you know any other people in this area interested in Android?? If you are on google chat, send me an email so I can add you to my contacts. Thanks, Barbara On Jan 30, 4:22 pm, Simon wrote: > I'd be interested in possibly getting together. > > On Jan 30, 9:10 am, BarbieDahl wrote: > > > Are there any developers in Atlanta, GA that would like to meet and > > discuss android app ideas as well as learn new and advanced android > > topics? I would like to network with some other developers in and > > around Atlanta, GA for help, mentoring and support. Please reply if > > you are interested. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Image to the screen
Take a look at the app demos in the SDK. On Mon, Feb 2, 2009 at 9:30 PM, Alowishus wrote: > > Hello All, > > As an avid G1 user and a developer I am tasked with developing > applications for the G1, im currently reading a couple of books and > none seem go too in depth with tutorials and what not. I am a hands on > kind of person when it comes to learning. I've done the hello world > application and now im ready for something a bit more in depth. I want > to launch an app and display a picture to the screen. Where can I look > for information on doing this? > > Kevin > > > > --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Extending the WebView
Still having problems with this... So when I try to use the above code on an Item inserted in a ListView it still does not work. I tried inflating the following code which did not work. http://schemas.android.com/apk/res/ android" android:id="@+id/webview" android:layout_width="fill_parent" android:layout_height="0px" android:layout_weight="1" /> I then tried wrapping the above in a LinearLayout and that did not work either... The shouldOverrideUrlLoading is never called. Any ideas. I assume it is a problem with the ListView but I am not sure thanks, Mark On Feb 2, 2:28 pm, Mark Nuetzmann wrote: > Yes. thank you. > > For others, here is the code that I am currently using that appears to > work. > > WebView web = (WebView) findViewById(R.id.webview); > > web.getSettings().setJavaScriptEnabled(true); > web.getSettings().setJavaScriptCanOpenWindowsAutomatically > (false); > web.getSettings().setPluginsEnabled(false); > web.getSettings().setSupportMultipleWindows(false); > web.getSettings().setSupportZoom(false); > web.setVerticalScrollBarEnabled(false); > web.setHorizontalScrollBarEnabled(false); > > web.loadData( YOUR_URL_DATA, "text/html", "utf-8"); > > web.setWebViewClient(new WebViewClient() { > @Override public boolean shouldOverrideUrlLoading > (WebView view, String url) { > // return true to handle the click yourself > return true; > } > }); > > On Feb 2, 1:28 pm, Mark Murphy wrote: > > > Mark Nuetzmann wrote: > > > I want toextendtheWebViewso that I can override the action of > > > clicking on a link in thewebview. > > > You want to set a WebViewClient on theWebView, where in the > > WebViewClient you put your logic in shouldOverrideUrlLoading(). > > > -- > > Mark Murphy (a Commons Guy)http://commonsware.com > > Android Training in Sweden --http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Starting an activity with FLAG_ACTIVITY_MULTIPLE_TASK to see multiple instances
Here is an use case we are trying .. Apk .. MyEmail main -> Inbox view -> composer view -> msgview If the above apk contains 3 activities .. User launches the "MyEmail: and sees the Inbox .. User selects one of the messages .. thus launching the "msgview" activity .. User goes back to home .. and launches .. composer directly .. () Now the user must be able to switch back and forth between "msgview" and "composer" .. Note this composer window has no association with the Inbox->msgview .. One possible method is to launch the MyEmail in own task and launch another activity (eg.composer) as a separate instance .. This is what I was trying to show in the code above .. I did read through the 'warning' in the docs of FLAG_ACTIVITY_MULTIPLE_TASK usage. Assuming for now we use the RecentAppsDialog(long key press) as the task switcher .. any suggestions ? -Dan On Feb 2, 12:23 pm, Dianne Hackborn wrote: > Please please please don't use FLAG_ACTIVITY_MULTIPLE_TASK unless you really > know what you are doing. At the very least, you need to read and fully > understand the material here: > > http://code.google.com/android/intro/appmodel.html > > > > On Mon, Feb 2, 2009 at 12:11 PM, Dan Raaka wrote: > > > I am trying to launch an activity from another activity .. > > Within the com.android.SingleLauncher.. > > > I have activity launch code as .. > > > Intent intent = new Intent(Intent.ACTION_MAIN); > > intent.addCategory(Intent.CATEGORY_LAUNCHER); > > intent.setComponent(new > > ComponentName("com.android.TargetSL", > > "com.android.TargetSL.TargetSL")); > > intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | > > Intent.FLAG_ACTIVITY_MULTIPLE_TASK); > > > I have set the android:multiprocess="true" in the AndroidManifest.xml > > of TargetSL > > I don't seem to see the multiple instances of TargetSL, which i am > > expecting .. > > > All i see is 2 process, where i was hoping to see an instance of > > TargetSL, for each launch that was invoked by the singleLauncher !! > > > # ps > > ps > > USER PID PPID VSIZE RSS WCHAN PC NAME > > .a bunch of stuff ... > > app_30 157 23 91484 12140 afe0c824 S > > com.android.SingleLauncher > > app_31 236 23 90452 11580 afe0c824 S > > com.android.TargetSL > > > Am I missing something here ? > > > -Dan > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How does one sell on the Android Market?
Shane Isbell wrote: > I'm aware that one can post free applications on the Android Market. > However, if one wishes to sell an app, how does one go about doing > this? Do we have to sell apps from our own websites? > > You can sell apps at http://slideme.org. We have a client similar to the > G1 Market. There are some other places like AndAppStore, which I think > offer payment or donations through paypal. Otherwise, you just have to > wait for Google. In the interests of completeness, though, they *can* sell through their own Web site, if they so choose. Markets like SlideME are probably easier and may have better reach, but one is not limited to only using markets (a la iPhone, and there only one market at that). -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Share text options ACTION_SEND
is it possible at all to have an Send via email and send via SMS option together at all ? On Feb 2, 1:27 pm, Alexey wrote: > Hi all, i'm trying to display a choice to send a text via email/sms. > public void onClick(View v) { > Intent sendIntent = new Intent(Intent.ACTION_SEND); > sendIntent.putExtra(Intent.EXTRA_TEXT, Body); > sendIntent.putExtra(Intent.EXTRA_SUBJECT,Title); > //sendIntent.setType("plain/text"); > sendIntent.setType("message/rfc822"); > try { > > getContext().startActivity(Intent.createChooser(sendIntent, > getContext().getText(R.string.share_this_story))); > } catch (android.content.ActivityNotFoundException ex) { > Toast.makeText(getContext(), "Can't share", > Toast.LENGTH_SHORT).show > (); > } > } > > and it uses my gmail account as default for this action. I'd like to > have a dialog with options of > gmail, imap mail ( if setup) and messaging) ( kind of like share > pictures ). I thought that wrapping action_send in Chooser will give > me that. But i'm defaulting to gmail. > Permission to send sms is set. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How does one sell on the Android Market?
On Mon, Feb 2, 2009 at 12:45 PM, Gw1921 wrote: > > Hi > > I'm aware that one can post free applications on the Android Market. > However, if one wishes to sell an app, how does one go about doing > this? Do we have to sell apps from our own websites? You can sell apps at http://slideme.org. We have a client similar to the G1 Market. There are some other places like AndAppStore, which I think offer payment or donations through paypal. Otherwise, you just have to wait for Google. Shane --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How does one sell on the Android Market?
Hi I'm aware that one can post free applications on the Android Market. However, if one wishes to sell an app, how does one go about doing this? Do we have to sell apps from our own websites? What instructions do we give our users (in terms of the installation procedure etc). Any ideas would be helpful, 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: g1 for developers
Well, I was just about to repost that I was incorrect about 3G. ;) I blazed by the question and realized afterwards, before I saw Dianne's response, that it works on their data network in general, it works on "edge," but no it doesn't work on their 3g. Sorry to have misinformed there. On Feb 2, 3:16 pm, Charlie Collins wrote: > 1. Yes, it works fine on AT&T (see other threads in this group, just > set the ACN, it works) > > 2. It connects fine to AT&T's 3G as well - so long as you have a data > plan, it works fine ($30 a month on top of any existing plan at > present for AT&T) > > And yes, I do have one (the dev G1 that is), and do use it on AT&T > exclusively, everything works fine. > > On Feb 2, 2:00 am, "sbsengin...@gmail.com" > wrote: > > > a few quick questions that i was hoping someone could answer. > > -the developers edition g1 should work fine on the at&t network, > > correct? > > -Will it be able to connect to at&t's 3g network? > > if you could answer these i will be forever in debt to you, I have > > looked everywhere for this information only to lead me here, still > > confused. > > sorry if this is in the wrong spot, his is just as close as I have > > gotten to getting an answer(hopefully) --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ImageButton resizes within TableLayout -- How do i fix?
Unfortunately, to me this seems like a hack. Is there really no way to force the button not to resize (filling its cell within the table) beyond its needed space? On Feb 2, 12:51 am, Chander Pechetty wrote: > android:text="please send this" > android:maxWidth="10dip" /> > > If your text requirements are complex, you can use other views below > the image. You can also set the number of lines of text etc. > > On Feb 2, 7:54 am, Pete wrote: > > > *Scenario* > > I'm attempting to host Image Buttons with a descriptor TextView below > > each button. To do this elegantly, I decided to use a TableLayout. > > > The resulting image should look something like like: > > > [img1] [img2] [img3] > > hi please send this exit > > > As you can see above, each image is properly centered within its cell > > and some text is displayed below. > > > *Issue* > > Unfortunately, if the descriptive text is longer than the ImageButton > > is wide, then the ImageButton associated with that text is stretched. > > See below: > > > [img1] [ img2 ] [img3] > > hi please send this exit > > > *Failed Attempts* > > Setting Height Width: I've already tried to fix this by setting > > layout_width & layout_height for each element, but within a > > TableLayout it does not seem to work (these seem to be ignored for the > > stretched item). > > > Also I thought I could nest each row within a LinearLayout (vertical > > orientation) but for some reason the layout file will not render if an > > ImageButton is nested within a TableLayout > TableRow > LinearLayout. > > > *Example Code* > > You can use this example XML to reproduce the issue at hand. > > > > android:layout_height="wrap_content" > > android:layout_gravity="center_horizontal"> > > > > android:layout_width="fill_parent"> > > > android:src="@drawable/ > > icon" /> > > > android:src="@drawable/ > > icon" /> > > > android:src="@drawable/ > > icon" /> > > > > > > android:layout_width="fill_parent"> > > > > > > > > > > > > > > > *Question Restated* > > How can I host an ImageButton within a TableLayout (or at least make > > it look like a table layout) without stretching having the TableLayout > > ImageButtons to fit the width of their columns? Most importantly is > > still keeping the text below the ImageButton. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Failed to upload myapp.apk on 'HT841GZ03224': Too many open files
BTW, reinstalling the app after each and every small change doesn't seem to me to be a good development practice unless you're learning Android development and are constantly experimenting with the SDK. Otherwise it smells like you're trying to do something, struggling with it and going the trial and error route which leads to, well, no memory on the device ;) Cheers, Stoyan P.S. I've had a bit more coffee today and am trying to guess what you're doing, feel free to curse me :) On Mon, Feb 2, 2009 at 10:29 PM, Stoyan Damov wrote: > Unfortunately I'm not. Do search this list for "TERRIBLE BUG" where > you'll find me ranting about that, and Android engineers confirming > that there's a bug related to unlinking files, which causes your phone > memory the decrease after each reinstall (that is a failed attempt to > delete the app, and then the successful install) to the point where > you won't have any memory. I lost all hope until someone (can't > remember who, but God bless him) at Google confirmed the bug and gave > 2 workarounds. > > I feel your pain :) > > Cheers, > Stoyan > > On Mon, Feb 2, 2009 at 8:32 PM, Mark Nuetzmann > wrote: >> >> You must be joking... If I am developing/debugging an app we have to >> uninstall every time we want to test a change to some code. I find >> this very hard to believe. >> >> On Jan 29, 2:38 am, Stoyan Damov wrote: >> > I don't know the reason for this particular error message, but I >> > strongly advise you to always uninstall your app before reinstalling, >> > otherwise you'll run out of device memory and would have to do the >> > "double shutdown" or "battery pull" trick to get it back. >> > >> > Cheers >> > >> > On Wed, Jan 28, 2009 at 9:22 PM, Mark Nuetzmann >> > >> > wrote: >> > >> > > I have been debugging my app for weeks now on both the emulator and >> > > device. All of a sudden I am getting the following error when I try >> > > to debug. >> > >> > > Failed to upload myapp.apk on 'HT841GZ03224': Too many open files >> > >> > > I figure I could simply uninstall the app and try again but is there a >> > > quicker fix? >> > >> > > thanks, >> > > Mark >> >> > --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Failed to upload myapp.apk on 'HT841GZ03224': Too many open files
Unfortunately I'm not. Do search this list for "TERRIBLE BUG" where you'll find me ranting about that, and Android engineers confirming that there's a bug related to unlinking files, which causes your phone memory the decrease after each reinstall (that is a failed attempt to delete the app, and then the successful install) to the point where you won't have any memory. I lost all hope until someone (can't remember who, but God bless him) at Google confirmed the bug and gave 2 workarounds. I feel your pain :) Cheers, Stoyan On Mon, Feb 2, 2009 at 8:32 PM, Mark Nuetzmann wrote: > > You must be joking... If I am developing/debugging an app we have to > uninstall every time we want to test a change to some code. I find > this very hard to believe. > > On Jan 29, 2:38 am, Stoyan Damov wrote: > > I don't know the reason for this particular error message, but I > > strongly advise you to always uninstall your app before reinstalling, > > otherwise you'll run out of device memory and would have to do the > > "double shutdown" or "battery pull" trick to get it back. > > > > Cheers > > > > On Wed, Jan 28, 2009 at 9:22 PM, Mark Nuetzmann > > > > wrote: > > > > > I have been debugging my app for weeks now on both the emulator and > > > device. All of a sudden I am getting the following error when I try > > > to debug. > > > > > Failed to upload myapp.apk on 'HT841GZ03224': Too many open files > > > > > I figure I could simply uninstall the app and try again but is there a > > > quicker fix? > > > > > thanks, > > > Mark > > --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to make layout "fill" available space in middle
Use a veritcal LinearLayout and simply give the middle TextView the attribute android:layout_weight="1.0". That's all. On Mon, Feb 2, 2009 at 12:17 PM, Mike wrote: > > Let's say I want to make a layout that has 3 TextViews, one on top of > the other. But, I want the top TextView to always "stick" to the top > of the screen (regardless of orientation), and I want the bottom > TextView to always "stick" to the bottom of the screen. Then I want > the middle TextView to always fill the available space in between > (again, regardless of screen orientation). > > I've had no luck with LinearLayout and I've come close with > RelativeLayout but neither have provided by desired solution. > > Any ideas? > > Mike > > > > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Extending the WebView
Yes. thank you. For others, here is the code that I am currently using that appears to work. WebView web = (WebView) findViewById(R.id.webview); web.getSettings().setJavaScriptEnabled(true); web.getSettings().setJavaScriptCanOpenWindowsAutomatically (false); web.getSettings().setPluginsEnabled(false); web.getSettings().setSupportMultipleWindows(false); web.getSettings().setSupportZoom(false); web.setVerticalScrollBarEnabled(false); web.setHorizontalScrollBarEnabled(false); web.loadData( YOUR_URL_DATA, "text/html", "utf-8"); web.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading (WebView view, String url) { // return true to handle the click yourself return true; } }); On Feb 2, 1:28 pm, Mark Murphy wrote: > Mark Nuetzmann wrote: > > I want toextendtheWebViewso that I can override the action of > > clicking on a link in thewebview. > > You want to set a WebViewClient on theWebView, where in the > WebViewClient you put your logic in shouldOverrideUrlLoading(). > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > Android Training in Sweden --http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Music player, mute app sound
On Mon, Feb 2, 2009 at 12:20 PM, bleucalme wrote: > > Hi, > > I would like to mute my application's music when the user is > listening to mp3 with the OS music player. I'm using 2 channels in my > app so I can't use AudioManager.isMusicActive(). I can't think of any way to do what you want to do, but I'm wondering if it would even be the right thing to do. If the user is using one player and then starts another without stopping the first one, I'd assume they want to play 2 things at the same time. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to make layout "fill" available space in middle
Let's say I want to make a layout that has 3 TextViews, one on top of the other. But, I want the top TextView to always "stick" to the top of the screen (regardless of orientation), and I want the bottom TextView to always "stick" to the bottom of the screen. Then I want the middle TextView to always fill the available space in between (again, regardless of screen orientation). I've had no luck with LinearLayout and I've come close with RelativeLayout but neither have provided by desired solution. Any ideas? Mike --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Image to the screen
Hello All, As an avid G1 user and a developer I am tasked with developing applications for the G1, im currently reading a couple of books and none seem go too in depth with tutorials and what not. I am a hands on kind of person when it comes to learning. I've done the hello world application and now im ready for something a bit more in depth. I want to launch an app and display a picture to the screen. Where can I look for information on doing this? Kevin --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: fitness or workout program
WorkItOut 1.1 is out, new functions include: -Update/Upgrade Notifier -Notes field -Quick add list for over 30 common exercises -Save function on menu (not just on the number pad) -Show/hide number pad -Set date for workouts -Choose number of sets ( 1-8 ) -No more default 0’s displayed on a new exercise -Data saved when switching screen orientation On Jan 20, 1:54 pm, MJB wrote: > There is also JogTracker that has been out for quite some time. This > program tracks your runs and integrates with a website as well. > > http://www.jogtracker.com";>www.jogtracker.com > > On Jan 20, 3:14 pm, Yossi wrote: > > > > > Buddy Runner was released. Check on the market > > >www.buddyrunner.com > > > On Dec 20 2008, 12:21 pm, Yossi wrote: > > > > I'm working on an app that will allow to track and monitor your > > > workout progress both on the device and on a web site. > > > First app will be for runners and planned to be shipped in a few > > > weeks. > > > In case you have any feature requests I would be happy to know about > > > them. > > > > Yossi > > > > On Dec 19, 11:10 pm, "Xavier Mathews" wrote: > > > > > What does the app do let you watch work out on the phone or time you > > > > while you run or tell you what and when to eat for the day??? Ihave > > > > never heard of this app.. > > > > > On 12/19/2008, Mark K wrote: > > > > > > I think there's a new one at the app store 'WorkItOut' don't know > > > > > anything else about. Please be kind to the developers, we are after > > > > > all just giving away software. > > > > > > Mark > > > > > > On Dec 18, 5:12 am, Peli wrote: > > > > >> What would you expect from a fitness or workout program? > > > > > >> I've outlined a possible version > > > > >> here:http://groups.google.com/group/openintents/browse_frm/thread/2a07c31b... > > > > > >> That one would be loosely based on our Timesheet application > > > > >> (http://www.openintents.org/en/node/153) - just instead of tracking > > > > >> jobs one would track a workout program that one could load from a > > > > >> file. Would this be something you would be looking for, or did you > > > > >> have something completely else in mind? > > > > > >> Peli > > > > > >> On Dec 17, 6:41 pm, Dave wrote: > > > > > >> > I've been waiting for someone to create a workout or fitness > > > > >> > program. > > > > >> > Anything in the works?- Hide quoted text - > > > > > >> - Show quoted text - > > > > > -- > > > > Xavier A. Mathews > > > > Student/Browser Specialist/Developer/Web-Master > > > > Client Based Tech Support Specialist > > > > Hazel Crest Illinois > > > > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com > > > > "Fear of a name, only increases fear of the thing itself."- Hide quoted > > > > text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] App Idea: Very interesting, unique, and information efficient text-entry method -- (no keyboard(not even on screen KB))
(To see this message in a much better format -- follow this link) http://androidcommunity.com/forums/showthread.php?p=133454 I think someone should port Dasher to Android. Dasher is free software, that takes an extremely unique approach to achieve information efficient text entry. It allows lots of different input methods, and is very adaptable, and customizable. Here is a description from the Dasher Website. [quote]Dasher is an information-efficient text-entry interface, driven by natural continuous pointing gestures. Dasher is a competitive text- entry system wherever a full-size keyboard cannot be used - for example, * when operating a computer one-handed, by joystick, touchscreen, trackball, or mouse; * when operating a computer with zero hands (i.e., by head-mouse or by eyetracker); * on a palmtop computer; * on a wearable computer. ...using a mouse[/touchpad/trackball], experienced users can write at 39 words per minute. [/quote] Quick video, just to show it work http://www.youtube.com/watch?v=0d6yIquOKQ0 An hour long video, that goes into detail, as to how it works, all the different ways it can be used. http://video.google.com/videoplay?docid=5078334075080674416&ei=caEsSZiUGZOwqwL306zQCA&q=dasher Dasher on an IPAQ http://www.youtube.com/watch?v=4jxhJjkwleo&feature=related The Dasher Website http://www.inference.phy.cam.ac.uk/dasher/ And just want to point out, that Dasher already has support for all sorts of languages, so if someone ported Dasher to Android, it would give it another unique option for text input in all sorts of languages. Here is a link that shows the language files already available for Dasher. http://www.inference.phy.cam.ac.uk/dasher/download/alphabets/ALPHABETS.html EDIT: By "No Keyboard" I just mean that this method does not involve a KB of any kind I do NOT mean to imply that this is a total replacement for the physical keyboard.. rather I think of it as a one handed on-screen text entry method to be used when convenient --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: looking for an answer about the g1 for developers
Please take care to search this forum specifically for answers before posting. http://groups.google.com/group/android-developers/search?group=android-developers&q=developer+phone+1+at%26t&qt_g=Search+this+group The link above is for the search term "developer phone 1 at&t" on this group. Android Beginners can also be a useful group to search, and depending on the topic, Android Discuss. Cheers, Justin Android Team @ Google On Feb 2, 6:22 am, Sam Brown-Steiner wrote: > a few quick questions that i was hoping someone could answer. > -the developers edition g1 should work fine on the at&t network, > correct? > -Will it be able to connect to at&t's 3g network? > if you could answer these i will be forever in debt to you, I have > looked everywhere for this information only to lead me here, still > confused. > sorry if this is in the wrong spot, his is just as close as I have > gotten to getting an answer(hopefully) --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How do I display the menu programatically?
Hi, Is there a way to programmatically display the menu, w/o the user having to press the Menu key? Thanks! Stoyan --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Starting an activity with FLAG_ACTIVITY_MULTIPLE_TASK to see multiple instances
Please please please don't use FLAG_ACTIVITY_MULTIPLE_TASK unless you really know what you are doing. At the very least, you need to read and fully understand the material here: http://code.google.com/android/intro/appmodel.html On Mon, Feb 2, 2009 at 12:11 PM, Dan Raaka wrote: > > I am trying to launch an activity from another activity .. > Within the com.android.SingleLauncher.. > > I have activity launch code as .. > >Intent intent = new Intent(Intent.ACTION_MAIN); >intent.addCategory(Intent.CATEGORY_LAUNCHER); >intent.setComponent(new > ComponentName("com.android.TargetSL", >"com.android.TargetSL.TargetSL")); > intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | > Intent.FLAG_ACTIVITY_MULTIPLE_TASK); > > I have set the android:multiprocess="true" in the AndroidManifest.xml > of TargetSL > I don't seem to see the multiple instances of TargetSL, which i am > expecting .. > > All i see is 2 process, where i was hoping to see an instance of > TargetSL, for each launch that was invoked by the singleLauncher !! > > # ps > ps > USER PID PPID VSIZE RSS WCHANPC NAME > .a bunch of stuff ... > app_30 157 2391484 12140 afe0c824 S > com.android.SingleLauncher > app_31 236 2390452 11580 afe0c824 S > com.android.TargetSL > > Am I missing something here ? > > -Dan > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Share text options ACTION_SEND
Sorry I don't know enough about the individual apps to be able to help you there. On Mon, Feb 2, 2009 at 11:55 AM, Alexey wrote: > > So ACTION_SEND is not handled by email client ( Imap ) ? > What i need to specify as a parameters for the intent ( or may be use > different action ) so SMS and Imap email will be an option ? All the > data i have is a plain text. > > On Feb 2, 1:51 pm, Dianne Hackborn wrote: > > That would happen because Gmail is the only app on the device that knows > how > > to execute the intent you have created. > > > > > > > > On Mon, Feb 2, 2009 at 11:27 AM, Alexey wrote: > > > > > Hi all, i'm trying to display a choice to send a text via email/sms. > > > public void onClick(View v) { > > >Intent sendIntent = new Intent(Intent.ACTION_SEND); > > >sendIntent.putExtra(Intent.EXTRA_TEXT, Body); > > >sendIntent.putExtra(Intent.EXTRA_SUBJECT,Title); > > >//sendIntent.setType("plain/text"); > > >sendIntent.setType("message/rfc822"); > > >try { > > > > > getContext().startActivity(Intent.createChooser(sendIntent, > > > getContext().getText(R.string.share_this_story))); > > >} catch (android.content.ActivityNotFoundException ex) { > > >Toast.makeText(getContext(), "Can't share", > > > Toast.LENGTH_SHORT).show > > > (); > > >} > > >} > > > > > and it uses my gmail account as default for this action. I'd like to > > > have a dialog with options of > > > gmail, imap mail ( if setup) and messaging) ( kind of like share > > > pictures ). I thought that wrapping action_send in Chooser will give > > > me that. But i'm defaulting to gmail. > > > Permission to send sms is set. > > > > -- > > Dianne Hackborn > > Android framework engineer > > hack...@android.com > > > > Note: please don't send private questions to me, as I don't have time to > > provide private support. All such questions should be posted on public > > forums, where I and others can see and answer them. > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] onTouch event for scrolling a list
Hi: I am working on scrolling a list using our touching mechanism. I can get the x and y pixel information from the onTouchEvent. However, I wonder how we can pass the calculated scroll amount to scrollBy or scrollTo? I did not find sample or source for the android scrolling mechanism. Where can I get the code how scrolling works? Thanks in advance, Allie --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: g1 for developers
It almost certainly does NOT work with 3G on AT&T. The G1 radio uses a different frequency than AT&T uses, so there is no way it can work. On Mon, Feb 2, 2009 at 12:16 PM, Charlie Collins wrote: > > 1. Yes, it works fine on AT&T (see other threads in this group, just > set the ACN, it works) > > 2. It connects fine to AT&T's 3G as well - so long as you have a data > plan, it works fine ($30 a month on top of any existing plan at > present for AT&T) > > And yes, I do have one (the dev G1 that is), and do use it on AT&T > exclusively, everything works fine. > > > > On Feb 2, 2:00 am, "sbsengin...@gmail.com" > wrote: > > a few quick questions that i was hoping someone could answer. > > -the developers edition g1 should work fine on the at&t network, > > correct? > > -Will it be able to connect to at&t's 3g network? > > if you could answer these i will be forever in debt to you, I have > > looked everywhere for this information only to lead me here, still > > confused. > > sorry if this is in the wrong spot, his is just as close as I have > > gotten to getting an answer(hopefully) > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Music player, mute app sound
Hi, I would like to mute my application's music when the user is listening to mp3 with the OS music player. I'm using 2 channels in my app so I can't use AudioManager.isMusicActive(). Any suggestions? --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Cannot View Images from SD Card Image on Emulator
Read my last post. I simply reverted the SDK to 'release 1'. --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: g1 for developers
1. Yes, it works fine on AT&T (see other threads in this group, just set the ACN, it works) 2. It connects fine to AT&T's 3G as well - so long as you have a data plan, it works fine ($30 a month on top of any existing plan at present for AT&T) And yes, I do have one (the dev G1 that is), and do use it on AT&T exclusively, everything works fine. On Feb 2, 2:00 am, "sbsengin...@gmail.com" wrote: > a few quick questions that i was hoping someone could answer. > -the developers edition g1 should work fine on the at&t network, > correct? > -Will it be able to connect to at&t's 3g network? > if you could answer these i will be forever in debt to you, I have > looked everywhere for this information only to lead me here, still > confused. > sorry if this is in the wrong spot, his is just as close as I have > gotten to getting an answer(hopefully) --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Extending the WebView
Yes. thankyou. Here is the code I am using that appear to work WebView web = (WebView) findViewById(R.id.ad_webview); web.getSettings().setJavaScriptEnabled(true); web.getSettings().setJavaScriptCanOpenWindowsAutomatically (false); web.getSettings().setPluginsEnabled(false); web.getSettings().setSupportMultipleWindows(false); web.getSettings().setSupportZoom(false); web.setVerticalScrollBarEnabled(false); web.setHorizontalScrollBarEnabled(false); web.loadData(MYURL, "text/html", "utf-8"); web.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading (WebView view, String url) { // return true to handle the click yourself or false for the WebView to handle the click. return true; } }); On Feb 2, 1:28 pm, Mark Murphy wrote: > Mark Nuetzmann wrote: > > I want to extend the WebView so that I can override the action of > > clicking on a link in the webview. > > You want to set a WebViewClient on the WebView, where in the > WebViewClient you put your logic in shouldOverrideUrlLoading(). > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > Android Training in Sweden --http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Extending the WebView
Yes. thank you. For others, here is the code that I am currently using that appears to work. WebView web = (WebView) findViewById(R.id.ad_webview); web.getSettings().setJavaScriptEnabled(true); web.getSettings().setJavaScriptCanOpenWindowsAutomatically (false); web.getSettings().setPluginsEnabled(false); web.getSettings().setSupportMultipleWindows(false); web.getSettings().setSupportZoom(false); web.setVerticalScrollBarEnabled(false); web.setHorizontalScrollBarEnabled(false); web.loadData(adItem.AdMediaUrl, "text/html", "utf-8"); web.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading (WebView view, String url) { return true; } }); On Feb 2, 1:28 pm, Mark Murphy wrote: > Mark Nuetzmann wrote: > > I want to extend the WebView so that I can override the action of > > clicking on a link in the webview. > > You want to set a WebViewClient on the WebView, where in the > WebViewClient you put your logic in shouldOverrideUrlLoading(). > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > Android Training in Sweden --http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Starting an activity with FLAG_ACTIVITY_MULTIPLE_TASK to see multiple instances
I am trying to launch an activity from another activity .. Within the com.android.SingleLauncher.. I have activity launch code as .. Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_LAUNCHER); intent.setComponent(new ComponentName("com.android.TargetSL", "com.android.TargetSL.TargetSL")); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK); I have set the android:multiprocess="true" in the AndroidManifest.xml of TargetSL I don't seem to see the multiple instances of TargetSL, which i am expecting .. All i see is 2 process, where i was hoping to see an instance of TargetSL, for each launch that was invoked by the singleLauncher !! # ps ps USER PID PPID VSIZE RSS WCHANPC NAME .a bunch of stuff ... app_30 157 2391484 12140 afe0c824 S com.android.SingleLauncher app_31 236 2390452 11580 afe0c824 S com.android.TargetSL Am I missing something here ? -Dan --~--~-~--~~~---~--~~ 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 this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---