[android-developers] Re: Varied accelerometer sample rate
You might try writing your data to the LogCat and then capturing it from there. Writing to a file might be introducing some of the delays your are seeing. Another option is to just write to LogCat when the time between samples exceeds a certain amount. I've seen file and other I/O impact results on other resource limited systems when trying to capture real-time data. At least eliminate that possibility before proceeding. Rud http://mysticlakesoftware.blogspot.com/ On Jul 9, 8:52 am, "House n @ MIT" wrote: > Hello, > > Has anyone been able to get the accelerometer on the G1 to sample > consistently for long periods of time? > > We’ve been doing some testing of the G1 accelerometer on Android, and > wanted to see if others have gotten the same result. Our test uses a > partial wake lock to keep the CPU alive. It stores the xyz values and > time to local storage and then writes them to a file on the SD card > once a second. The code below produces a csv file. > > The xyz values we’re getting are within the expected range, but the > sample rate of the accelerometer varies greatly. To determine that > using the file produced, for each sample, we found the difference > between the sample’s timestamp (taken from the SensorEvent) and the > timestamp from the previous sample. The test results showed the time > between samples ranging from 30 milliseconds up to 4.6 second > spikes. > > We’re interested to know if other people are seeing similar behavior > from their phones. If you have the time and means, please run the > code below and post your results. > > Thanks > > package edu.acceltest; > > import java.io.File; > import java.io.FileNotFoundException; > import java.io.FileOutputStream; > import java.io.PrintWriter; > import java.util.Arrays; > import java.util.List; > import java.util.Timer; > import java.util.TimerTask; > > import android.app.Activity; > import android.content.Context; > import android.hardware.Sensor; > import android.hardware.SensorEvent; > import android.hardware.SensorEventListener; > import android.hardware.SensorManager; > import android.os.Bundle; > import android.os.PowerManager; > > public class AccelTest extends Activity { > > private SensorManager mSensorManager; > private PowerManager.WakeLock mWakelock; > private PowerManager mPowerMgr; > > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.main); > > // Set up the accelerometer reading > mSensorManager = (SensorManager)getSystemService > (Context.SENSOR_SERVICE); > // Get the list of all sensors, and find the accelerometer > within > List sensorList = mSensorManager.getSensorList > (Sensor.TYPE_ACCELEROMETER); > > mSensorManager.registerListener(mSensorListener, > sensorList.get(0), > SensorManager.SENSOR_DELAY_GAME); > > mPowerMgr = (PowerManager)getSystemService(POWER_SERVICE); > if (mWakelock == null) > { > mWakelock = > mPowerMgr.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK > , > "Test"); > mWakelock.acquire(); > } > > } > > @Override > public void onDestroy() { > if (mWakelock.isHeld()) > mWakelock.release(); > > } > > //Accelerometer > private final SensorEventListener mSensorListener = new > SensorEventListener() { > > private PrintWriter mCurrentFile; > private Timer second = null; > boolean never = true; > String comma = new String(","); > volatile int index = 0; > float zam[] = new float[2000]; > > public void runOnce() > { > > //Creating a file to print the data into > > String nameStr = new String("/sdcard/Activity - game > cached.csv"); > File outputFile = new File(nameStr); > mCurrentFile = null; > try { > mCurrentFile = new PrintWriter(new > FileOutputStream(outputFile)); > } catch (FileNotFoundException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > > // Create a 1-second timer to check the sample rate > second = new Timer(); > second.scheduleAtFixedRate(new TimerTask() { > > @Override > public void run() { > > // dump to file and reset > index, eventually overwriting all the > data >
[android-developers] Re: sensor event and augmented reality
I did some testing on the compass direction and the results are, eh, interesting. I compared the readings I was getting with the Google Sky Map and they were basically the same. Here is what I did. With both my app and SkyMap I had the phone in camera position. I positioned the phone on a piece of paper and drew a line on along the side in contact with the paper. I did this for N, E, W, & S. As I said, the lines from my app agreed with the ones from Sky Map. I drew a N/S line using a physical compass. The lines for N & S were rotated a bit clockwise from being right angles to the N/S line. The E/ W lines were both skewed even more clockwise from the N/S line. [Yeah, I've calibrated the phone doing figure 8's and flipping it while rotating it, etc.] It also appears that the sensors expect the phone to be in camera position, i.e. left side down, because when the right side is down all the compass points are even worse. I'd be curious to see if other phones get similar results. Rud http://mysticlakesoftware.blogspot.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] How to measuring elapsed time without currentTimeMillis?
Hi, I want to develop a game, so I need to know elapsed time at lots places in my game. For example, to measuring FPS. I see there is some example use "System.currentTimeMillis" to measure elapsed time. But I see the warning on document: http://developer.android.com/intl/zh-TW/reference/java/lang/System.html#currentTimeMillis%28%29 "This method shouldn't be used for measuring timeouts or other elapsed time measurements, as changing the system time can affect the results." So, if this method should not be used for measuring elapsed time, then what will be suitable? Thanks. Victor Lin. --~--~-~--~~~---~--~~ 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] EditText number only?
Hi: I have an EditText field that is intended for only numbers ( digits, decimal point, +/- signs). How do I tell the software keyboard to jump to numeric mode directly? Wah --~--~-~--~~~---~--~~ 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: ListView inside LinearLayout inside ScrollView
Thank you Mark! I've been looking for a better way to do section headers in Android 1.5 and no one has been able to help. I can't believe that the Android developers didn't build an easy way to do this into the API. Your SectionedDemo has been a life safer. Thanks again! On Jul 8, 4:18 pm, Michael J wrote: > You're a genius! I pretty much did exactly what you said and it works > perfectly now! > > BTW, I will be getting at least your Advanced Dev book, if not the > Tutorials book as well! > > On Jul 8, 2:03 pm, Mark Murphy wrote: > > > Michael J wrote: > > > So I'm using a modified version of the SectionedAdapter and it seems > > > to be working quite well. The only issue is that I want to let each > > > "section" adapter to determine the clickability of it's items. It > > > seems like with the SectionedAdapter, all items except the headers are > > > clickable. How exactly would I modify SectionedAdapter.isEnabled() to > > > use the corresponding section's isEnabled()? > > > Off the cuff, I'd try: > > > Step #1: Modify the Section inner class of SectionedAdapter to hold an > > isEnabled boolean, with an appropriate constructor parameter > > > Step #2: Modify SectionedAdapter#addSection() to take an isEnabled > > boolean and pass it to the Section constructor > > > Step #3: Modify SectionedAdapter#isEnabled() to do a logical AND between > > the current logic (getItemViewType(position)!=TYPE_SECTION_HEADER) and > > the Section's isEnabled flag, for whatever Section corresponds to the > > supplied position > > > > I've spent time looking > > > at the methods used for getItem(), getViewType(), and getView() which > > > seem to do similar things, but honestly don't quite understand what's > > > being done... > > > Well, um, it's, er, explained in the book. :-) And if you've read the > > chapter and still don't understand, then I need to do a better job on > > that chapter. > > > Upshot: SectionedAdapter implements a variant of the Aggregator pattern. > > It implements the Adapter methods in such a way that the Section for a > > given position determines what happens (e.g., what View goes with a > > given position). Right now, isEnabled() only needs to worry about > > whether or not the position corresponds to a heading -- in what you want > > to do, you need to also see what the Section thinks. > > > Also, bear in mind that it *is* just a book example, designed to > > demonstrate a technique (in concert with the book itself). Use of this > > code in a nuclear power plant or heart monitor -- let alone a > > nuclear-powered heart monitor -- is not recommended... ;-) > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://twitter.com/commonsguy > > > Android App Developer Training:http://commonsware.com/training.html --~--~-~--~~~---~--~~ 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] Lazy-load images into a ListView
Hey all, I will be surprised if this hasn't been asked before, but I've been Googling for days now and haven't found anything very helpful. My problem is this: I'm trying to lazy-load images into a ListView--almost exactly how Market does it, if you're familiar with that. It's not exactly like Market because the images there comes in batches whereas mine are one at a time, but I digress... I have the following adapter: http://paste2.org/p/318634 This adapter lazy-loads pages and each row's corresponding image (if applicable) and caches it to disk for faster loading next time. This all works perfectly *except* when loading images over the network, they come in on the wrong rows and are sometimes duplicated. I assume that this has to do with the adapter reusing views, but I haven't been able to stamp it out. Thanks for any help or pointers you can provide. Cheers, Evan Charlton --~--~-~--~~~---~--~~ 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: Media AspectRatio
Is the aspect ration is really different, or do you think youtube app just re sizes video to fit the screen? You can dynamically adjust SurfaceView layout parameters to take all you screen, maintaining aspect ration. On Jul 10, 8:26 am, glory wrote: > Hi, > > I am playing the video from the you tube link.But the video played by > my Application has different aspect ratio then what played by the > youtube application. How to play the video in the same aspect ratio as > that of the youtube application. > > I am using Video View for playing the application. > > Please help me out > > Thanks in advance > Glory --~--~-~--~~~---~--~~ 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: sensor event and augmented reality
I've been looking at all of this the last couple days. I have an application that puts the three numeric values on the display. The code is below and I _think_ it is working okay. My test is to hold the phone against a wooden(!) door so I have a nearly vertical, steady surface. Say I put the back of the phone against the wall. I then rotate it through 360 degrees. The bearing (compass reading - (outR[0])) remains steady. The third value (value [2]) rotates through 0 to 180, -180 to -1. If I put the end of the phone against the door the second value (value[1]) rotates through 0 (right side pointing up) to 80 (laying flat, screen up) to 0 (left side up) to -80 (-81) when upside down. {It goes 0 to 80 to 0 to -80 to -1, in short). So basically the numbers look good for determing the position on a sphere similar to that used in the Google SkyMap application. I haven't looked at the scaling etc. The only conversion, as you see, is from raidians to degrees. This is my first result that looked approximetly correct so there maybe some fine adjustments needed on conversions, etc and the code needs clean up. I'm doing the calculation only after receiving an update from the accelerometer, skipping the magnetic update. I figured doing it each time was to fast. Hope this helps. I now need to determine if the three results do actually give the spherical position. I don't think it is given directly but needs to be interpolated. Once I get it figured out I'll put it on my blog. A word of caution - being near a computer or monitor can distort the magnetic field. As can being by a metal door. Make sure you are away from these when testing. Any comments appreciated. Rud http://mysticlakesoftware.blogspot.com/ // make sure there are values from magnetic field, accelerometer, and only calc after an accerlometer reading. // if (mags != null && accels != null && isA) { boolean b = SensorManager.getRotationMatrix(R, I, accels, mags); // remap to "camera" mode - right side up, screen facing me SensorManager.remapCoordinateSystem(R, SensorManager.AXIS_X, SensorManager.AXIS_Z, outR); SensorManager.getOrientation(outR, values); int[] v = new int[3]; v[0] = (int) (values[0] * 57.2957795); // radians to degrees v[1] = (int) (values[1] * 57.2957795); v[2] = (int) (values[2] * 57.2957795); isA = false; // update display Exp.mText01.setText("" + v[0]); Exp.mText02.setText("" + v[1]); Exp.mText03.setText("" + v[2]); } On Jul 10, 4:53 am, RS wrote: > Anybody using sensors and changing orientation > 90deg? > > On Jun 30, 4:31 pm, RS wrote: > > --~--~-~--~~~---~--~~ 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: "Complete Action Using" dialog
It's not actually a dialog. PackageManagerService returns the information for a special activity when resolveIntentActivity() finds multiple matching activities. So that code does the detection, and the component it returns is the one that ends up getting launched and displays the list of matching activities. On Sat, Jul 11, 2009 at 8:25 PM, n179911 wrote: > > Hi, > > Can you please tell me where in the android source code which invokes > the "Complete Action Using" dialog? i.e. when I start an Intent, > Android pops up a "Complete Action Using" dialog. > > Thank you for any help/pointer. > > > > -- 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, and so won't reply to such e-mails. 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] "Complete Action Using" dialog
Hi, Can you please tell me where in the android source code which invokes the "Complete Action Using" dialog? i.e. when I start an Intent, Android pops up a "Complete Action Using" dialog. Thank you for any help/pointer. --~--~-~--~~~---~--~~ 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: Updating framework - How to include new Java classes for android.jar
Hi, Even for your own modifications, please do not use the com.android package name. Even though this package is reserved for private APIs, your changes in this package might conflict with future changes made in Android itself (core dev team or contributions to the project.) Just use the package name corresponding to your company/organization. On Sat, Jul 11, 2009 at 7:46 PM, clemsongrad wrote: > > > Folks, > > I updated the android framework ( java code), and I was able to > compile the new java classes and test it. My issue is that i want to > make some of the new java classes part of the android.jar, and i am > unable to figure out the best way to add it to be build file. > > For example: > I want to include another class just like > com.android,internal.util.Predicate.class is included in the > android.jar. > > Any ideas on how to make this happen? How and where do one indicate > that the Predicate.class needs to be included in the android.jar? > > Any tip is greatly appreciated. > > Best Regards, and Thank you in advance. > > > -- 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] Updating framework - How to include new Java classes for android.jar
Folks, I updated the android framework ( java code), and I was able to compile the new java classes and test it. My issue is that i want to make some of the new java classes part of the android.jar, and i am unable to figure out the best way to add it to be build file. For example: I want to include another class just like com.android,internal.util.Predicate.class is included in the android.jar. Any ideas on how to make this happen? How and where do one indicate that the Predicate.class needs to be included in the android.jar? Any tip is greatly appreciated. Best Regards, and Thank you 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: HTC Magic
You will need to root your device, before you can flash a new ROM. So, yes, it appears your device is locked. On Jul 11, 1:58 am, Nima wrote: > Hi, > > I have followed the instructions in > link:http://android-dls.com/wiki/index.php?title=Magic_Rooting > > but the following error is reported > > fastboot boot recovery-RAv1.0H.img > downloading 'boot.img'... FAILED (remote: not allow) > > Whether any locking is there in the device > Please advice > > Thanks&Regards > > fastboot boot recovery-RAv1.0H.img > < waiting for device > > downloading 'boot.img'... FAILED (remote: not allow) > > On Jul 11, 7:48 am, Nima wrote: > > > Hi, > > > Thanks a lot for your quick response. > > We are not able to see the option > > "settings->applications->development->"USB Debugging" in device > > > Please advice. > > > Thanks & Regards, > > > On Jul 10, 10:33 pm, "Yusuf T. Mobile" > > wrote: > > > > As a T-Mobile employee, I discourage you in the strongest possible > > > terms from rooting yourMagicand upgrading it to 1.5 at the same time > > > using this link:http://android-dls.com/wiki/index.php?title=Magic_Rooting > > > > Yusuf Saib > > > Android > > > ·T· · ·Mobile· stick together > > > The views, opinions and statements in this email are those of the > > > author solely in their individual capacity, and do not necessarily > > > represent those of T-Mobile USA, Inc. > > > > On Jul 10, 8:22 am, Nima wrote: > > > > > hi, > > > > > We have bought newHTCMagicwith the following specifications: > > > > > 1.Firmware version- 1.5 > > > > 2.Baseband Version - 62.52s.20.18U_3.22.20.17 > > > > 3.Kernel Version- 2.6.27-cb85e129htc-ker...@and18-2 #3 > > > > 4.Build number-2.16.720.2 146733 CL#38755 release-keys > > > > > Can any one please tell us whether we can flash Android1.5 image > > > > under the following linkhttp://www.htc.com/www/support/android/adp.html > > > > > Where we can get factory image forHTCMagic? > > > > > Thanks&Regards,- 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] Re: Video with MediaRecorder
Zeeshan, does (the intent solution) work on the emulator or not ? On Jul 12, 1:10 am, Zeeshan Muhammad wrote: > i am testing it on real device, i can see only the application title. my > automatic orientation is already disabled .please let me know if anybody has > tested video capture intent? > > > > On Sat, Jul 11, 2009 at 10:58 AM, hanged_man wrote: > > > @Zeeshan > > Are you getting a black screen ? if yes that's probably due to a bug > > in the emulator (i think starting from the latest 1.5 sdk), you might > > as well have noticed that you can't run either the camera or the > > camcorder from the emulator, it's not a problem in your code it's > > problem in the emulator itself, to fix this please check the last post > > in this thread: > > >http://groups.google.com/group/android-developers/browse_thread/threa... > > > Hope this works for 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: Modifying the UI within Java, not XML
Breezy wrote: > ListView, okay, that works. Now how do I make multiple TextViews and > insert them into the ListView on the fly? A cursory description of the process can be found here: http://developer.android.com/guide/topics/ui/binding.html (in their case they use a Spinner, though the technique is similar) The Notepad tutorial shows a ListActivity with a ListView: http://developer.android.com/guide/tutorials/notepad/index.html as does the Hello, ListView sample: http://developer.android.com/guide/tutorials/views/hello-listview.html The API samples in your SDK have a dozen or so using ListView. If you are trying to get fancier with your ListViews, I have an excerpt from one of my books that discusses that process: http://commonsware.com/Android/excerpt.pdf with sample code available from: http://commonsware.com/Android In a nutshell, you create an Adapter object that maps from raw data (e.g., an array of strings) to Views that go in each row (e.g., a TextView). How simple or complex that process is depends on how fancy the rows are. For really simple rows, it's about four lines of code. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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] Turn off Gtalk
Hello everyone Is any way to turn off gtalk (go offline) grammatically? --~--~-~--~~~---~--~~ 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: any help of live video streaming?
Zeeshan Muhammad wrote: > thanks for the quick reply, this is really usefull. > can u please guide how can i receive this stream on server side? You would have to ask them -- I have not tried their techniques. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: Modifying the UI within Java, not XML
ListView, okay, that works. Now how do I make multiple TextViews and insert them into the ListView on the fly? Thanks for the fast response BTW. On Jul 11, 6:02 pm, Mark Murphy wrote: > Breezy wrote: > > Kinda like if you search for > > an app in the market. There's no way of telling how many results > > would be returned so I figured I would have to create each textview on > > the fly within the .java file. > > Use a ListView. I'm 90% certain that is what they do. It automatically > scrolls, manages an arbitrary number of rows, etc. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android 1.5 Programming Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: Video with MediaRecorder
i am testing it on real device, i can see only the application title. my automatic orientation is already disabled .please let me know if anybody has tested video capture intent? On Sat, Jul 11, 2009 at 10:58 AM, hanged_man wrote: > > @Zeeshan > Are you getting a black screen ? if yes that's probably due to a bug > in the emulator (i think starting from the latest 1.5 sdk), you might > as well have noticed that you can't run either the camera or the > camcorder from the emulator, it's not a problem in your code it's > problem in the emulator itself, to fix this please check the last post > in this thread: > > http://groups.google.com/group/android-developers/browse_thread/thread/60005bb7fff2e14f/eec39e24877d8b42?hl=en&lnk=gst&q=black+screen+camera+hanged_man#eec39e24877d8b42 > > Hope this works for 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: Modifying the UI within Java, not XML
Breezy wrote: > Kinda like if you search for > an app in the market. There's no way of telling how many results > would be returned so I figured I would have to create each textview on > the fly within the .java file. Use a ListView. I'm 90% certain that is what they do. It automatically scrolls, manages an arbitrary number of rows, etc. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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] Modifying the UI within Java, not XML
So I have the basics down... I can create a UI with the XML, I can show it and change the screen to another UI (another XML file) but how do I add to the UI? Hmmm, hard to explain... Say I have a header (just 2 textviews) that will remain at the top and below that is a search box and button (main.xml). The user searches and I have it display the search UI (search.xml). This UI will have the same header (2 textviews) and below it will have several textviews each one containing a search result... Kinda like if you search for an app in the market. There's no way of telling how many results would be returned so I figured I would have to create each textview on the fly within the .java file. I'm not sure how to do this. Most likely would require a loop of some sort, but whats the syntax to create a new textview and display it right below the one above it? I'm working with linear here so I would assume just creating a new textview it will by default go to the next one down which is what I want. Any help? I searched a lot but I'm not sure what it's called that I'm looking for exactly. Also, say I have 30 results... How do I get those to scroll but leave the 2 textview header in place? Would I create a ScrollView and put the new TextViews in that? I'm probably way off here, but any correcting is fine. 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: any help of live video streaming?
thanks for the quick reply, this is really usefull.can u please guide how can i receive this stream on server side? On Sat, Jul 11, 2009 at 11:40 PM, Mark Murphy wrote: > > zeeshan wrote: > > i am looking for any help in live video streaming to my server. > > anybody can direct where can i find some help > > > http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > Android Development Wiki: http://wiki.andmob.org > > > > --~--~-~--~~~---~--~~ 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: any help of live video streaming?
zeeshan wrote: > i am looking for any help in live video streaming to my server. > anybody can direct where can i find some help http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ 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: tools dex
ssfss wrote: > Hi. Thank you for your answer. * > What's recompiling*? How can I do it? Please explain that completely > with details. Uh, I can't give too many details, as I am not familiar with the source code in question. You need to get the source code and build scripts for those JARs, download them to your machine, adjust the build scripts if needed, and run the build to create your own copy of the JAR files, compiled with your compiler. Full instructions for doing that should be available from the open source projects where you got the JARs. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ 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] any help of live video streaming?
Hi Experts, i am looking for any help in live video streaming to my server. anybody can direct where can i find some help --~--~-~--~~~---~--~~ 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: When Parsing the Soap response problem...
I am not familiar with KSOAP, but if that's the json response you get, you can parse it with xstream or any json parser. On Jul 11, 12:55 pm, "android.vinny" wrote: > HI > > I want to Consume the SOAP Web Services in Android > > i downloaded KSOAP2 Library > > i have done some thing like this .. > > private static final String SOAP_ACTION = "getRating"; > private static final String METHOD_NAME = "getRating"; > private static final String NAMESPACE = "http://www.w3.org/2001/12/ > soap-envelope"; > private static final String URL = "http://www.galatta.com/iphone/ > isizzle/isizzle.php"; > private ContextWrapper context; > > /** Called when the activity is first created. */ > @Override > public void onCreate(Bundle icicle) > { > super.onCreate(icicle); > setContentView(R.layout.list); > > //CALL the web service method > SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); > SoapSerializationEnvelope envelope = new SoapSerializationEnvelope > (SoapEnvelope.VER11); > > envelope.setOutputSoapObject(request); > > AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport > (URL); > > try > { > > androidHttpTransport.call(SOAP_ACTION, envelope); > > // Get the SAOP Envelope back and the extract the body > SoapObject resultsRequestSOAP = (SoapObject) envelope.bodyIn; > > } > > i am getting the response from the server like this ..not know > what is this type... > > getRatingResponse{return=ContestInfo{item=anyType{name=Ankitha; > totalimages=2; rating=2.5; }; item=anyType{name=Anushka; > totalimages=4; rating=9.5; }; item=anyType{name=Apsara; totalimages=1; > rating=0; }; > > how can i parse this response. > > can any body help me regarding this . > > it urgent ... --~--~-~--~~~---~--~~ 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: Couldn't get connection factory client
I take it there's something wrong with your View: > 07-11 05:13:48.969: ERROR/ZoomButtonsController(776): Cannot make the > zoom controller visible if the owner view is not attached to a window. --~--~-~--~~~---~--~~ 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] Mix tab with ImageView and TextView
How can I best mix in one activity a tab activity with an ImageView / TextView? Any thoughts would be highly appreciated. thanks, christian --~--~-~--~~~---~--~~ 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 Multiple Adapters for one ListView
The alternative would be, if I understand your question correctly, to have one listadapter that takes data from various sources, depending on some variable that is set. Your app would prepare the various sources of data independently, and the getView in your listadapter determines which of the sources is used at what time. I think that would be less complex than having a number of list adapters on one listview in one Activity. But again, I may misinterpret your question. On Jul 11, 7:35 pm, Moto wrote: > The reason for this post was to use one ListView for multiple adapters > because I thought it would help decrease the level of complexity my > xml layout would have, therefore starting my activity much faster. > Apparently it's not such a good idea. > > As of now, if this matters anyways, my fatty Activity uses at most 70% > of the given 3.9MB Heap size. > > Thanks Mark and well I'll take into consideration your ideas and try > to make it one slim and faster Activity. > > Thanks, > Moto! --~--~-~--~~~---~--~~ 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: tools dex
I forgot that say I used which jar files: collection of jetty jar files version6.1.12rc2 jetty-client-6.1-20090306.224120-1 cometd-jetty-6.1-20090306.224120-1 On Sat, Jul 11, 2009 at 2:18 PM, ssfss wrote: > Hi. Thank you for your answer[?]. * > What's recompiling*? How can I do it? Please explain that completely with > details. > I don't know which jar file has problems.[?] > Please help me! I'm very confused[?]I dont have any time for run this > project.[?] > > > On Fri, Jul 10, 2009 at 1:42 PM, Dan Bornstein wrote: > >> >> > That being said, recompiling the code in question is the only way that I >> > know of to perhaps get past this problem. >> >> Yep, that's almost certainly the right way to proceed. I never meant >> to dispute that. >> >> >> -dan >> >> > -- > fatemeh nakhaie > -- fatemeh nakhaie --~--~-~--~~~---~--~~ 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: tools dex
Hi. Thank you for your answer[?]. * What's recompiling*? How can I do it? Please explain that completely with details. I don't know which jar file has problems.[?] Please help me! I'm very confused[?]I dont have any time for run this project.[?] On Fri, Jul 10, 2009 at 1:42 PM, Dan Bornstein wrote: > > > That being said, recompiling the code in question is the only way that I > > know of to perhaps get past this problem. > > Yep, that's almost certainly the right way to proceed. I never meant > to dispute that. > > > -dan > > -- fatemeh nakhaie --~--~-~--~~~---~--~~ 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] Broadcast on SIM state change
Hi, Am I right if I say that, there is no broadcast action currently for the SIM card state changes ? Thanks, Zod. --~--~-~--~~~---~--~~ 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: query regarding InputMethodManager
There isn't one; you find out what is going on with the IME by your window being resized to accommodate it. On Sat, Jul 11, 2009 at 4:35 AM, Albert Pinto wrote: > > Hi Android Developers, > > I need a function to know whether keypad is opened or not. > > Please provide me the API/function to know whether the Virtual Keypad > is OPENED or CLOSED if anybody knows. > > I know already how to open/hide the keypad by using InputMethodManager. > > Thanks in advance, > > > Regards, > Albert Pinto > > > > -- 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, and so won't reply to such e-mails. 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: Where to find native resources?
It's not part of the SDK. (Actually I may not even be part of the platform, but built into th camera app). On Sat, Jul 11, 2009 at 7:36 AM, doubleslash wrote: > > This is where one can find a lot of the native drawables > http://developer.android.com/reference/android/R.drawable.html > I've been informed to use in xml @android:drawable/ic_menu_camera to > get the camera icon. It's not the big blue camera icon one would see > in the home screen though. It'd be better if Google could show the > images corresponding to the different annotations so we don't have to > guess what they represent. Can someone please tell me how to access > the shutter sound? R.raw is empty. > Thanks > > On Jul 10, 10:34 pm, doubleslash wrote: > > Hi, > > Could someone please tell me how to access android's native resources? > > In particular, I would like to use the camera icon and shutter sound > > in my own app. > > Thanks > > > -- 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, and so won't reply to such e-mails. 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: GpsStatus
Maps.Huge.Info (Maps API Guru) wrote: > Answered my own question, but now I have another... > > In this code: (which works fine) > > case GpsStatus.GPS_EVENT_SATELLITE_STATUS: > GpsStatus xGpsStatus = locMgr.getGpsStatus(null) ; > Iterable iSatellites = xGpsStatus.getSatellites() ; > Iterator it = iSatellites.iterator() ; > while ( it.hasNext() ) > { > GpsSatellite oSat = (GpsSatellite) it.next() ; > Log.v("TEST","LocationActivity - onGpsStatusChange: Satellites: > " + > oSat.getSnr() ) ; > } > break ; > > there is a warning error on this line: > > Iterator it = iSatellites.iterator() ; > > "Iterator is a raw type. References to generic type Iterator should > be parameterized" > > As I am a relative newcomer to Java, I can't find out how to fix this, > although the code runs as expected. Is this an important error or > something that can be ignored? I would prefer to fix it if possible. Try Iterator instead of just Iterator. The code will run just fine in this case, but you lose any compile-time type-safety checks for down the road (e.g., you accidentally try assigning an Iterator instead of an Iterator). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ 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: GpsStatus
Excellent! That removed the warning. Thanks... I haven't seen any examples of this code anywhere, so for those that want to get detailed information about the status of a GPS fix, this code works. -John Coryat On Jul 11, 1:02 pm, Mark Murphy wrote: > Maps.Huge.Info (Maps API Guru) wrote: > > > > > Answered my own question, but now I have another... > > > In this code: (which works fine) > > > case GpsStatus.GPS_EVENT_SATELLITE_STATUS: > > GpsStatus xGpsStatus = locMgr.getGpsStatus(null) ; > > Iterable iSatellites = xGpsStatus.getSatellites() ; > > Iterator it = iSatellites.iterator() ; > > while ( it.hasNext() ) > > { > > GpsSatellite oSat = (GpsSatellite) it.next() ; > > Log.v("TEST","LocationActivity - onGpsStatusChange: Satellites: > > " + > > oSat.getSnr() ) ; > > } > > break ; > > > there is a warning error on this line: > > > Iterator it = iSatellites.iterator() ; > > > "Iterator is a raw type. References to generic type Iterator should > > be parameterized" > > > As I am a relative newcomer to Java, I can't find out how to fix this, > > although the code runs as expected. Is this an important error or > > something that can be ignored? I would prefer to fix it if possible. > > Try Iterator instead of just Iterator. The code will run > just fine in this case, but you lose any compile-time type-safety checks > for down the road (e.g., you accidentally try assigning an > Iterator instead of an Iterator). > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android Development Wiki:http://wiki.andmob.org --~--~-~--~~~---~--~~ 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: GpsStatus
Answered my own question, but now I have another... In this code: (which works fine) case GpsStatus.GPS_EVENT_SATELLITE_STATUS: GpsStatus xGpsStatus = locMgr.getGpsStatus(null) ; Iterable iSatellites = xGpsStatus.getSatellites() ; Iterator it = iSatellites.iterator() ; while ( it.hasNext() ) { GpsSatellite oSat = (GpsSatellite) it.next() ; Log.v("TEST","LocationActivity - onGpsStatusChange: Satellites: " + oSat.getSnr() ) ; } break ; there is a warning error on this line: Iterator it = iSatellites.iterator() ; "Iterator is a raw type. References to generic type Iterator should be parameterized" As I am a relative newcomer to Java, I can't find out how to fix this, although the code runs as expected. Is this an important error or something that can be ignored? I would prefer to fix it if possible. -John Coryat --~--~-~--~~~---~--~~ 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 Multiple Adapters for one ListView
The reason for this post was to use one ListView for multiple adapters because I thought it would help decrease the level of complexity my xml layout would have, therefore starting my activity much faster. Apparently it's not such a good idea. As of now, if this matters anyways, my fatty Activity uses at most 70% of the given 3.9MB Heap size. Thanks Mark and well I'll take into consideration your ideas and try to make it one slim and faster Activity. Thanks, Moto! --~--~-~--~~~---~--~~ 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 Multiple Adapters for one ListView
Moto wrote: > Currently my lists can contain max 60 items and the > elements are fairly complex, about 5 TextViews no backgrounds. > > So multiple ListViews is not good for one activity? "Good" versus "not good" is a binary statement. In reality, it is more a continuum of increasing "not good" as you increase the number of ListViews, the number of rows in those ListViews, and the number of widgets per row (TextViews, layouts, etc.) that you wind up holding onto to achieve your desired effects. The "fatter" your activity becomes, the more likely it is that it will be "not good" in the eyes of users, because: -- It crashes due to out of memory errors, perhaps on lower-end handsets that come with less RAM for applications -- It kicks too many other applications out of memory when it runs -- It generates so much garbage that the garbage collector slows down whatever application they run next (e.g., a game or video that cannot keep up the frame rate) -- It winds up being killed off forcibly, rather than gracefully shut down and saving its state, because it uses up too much memory and Android needs that memory quickly to handle some incoming phone call or text message or something -- And so on Whether your app meets any of those criteria is impossible to say based on a set of emails -- only you and your users will be able to tell. So, while I am convinced that several thin, cheap activities are better than one fat, expensive activity that performs all the same functions, that is just a rule of thumb. Only you and your users have the application and can determine if, indeed, you are using more memory than is wise. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ 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 Multiple Adapters for one ListView
Hey Mark, Let me explain a little better the situation: I only have one ListView and I'm displaying only one list at a time. The reason that I'm doing all this work inside one activity is that it gives me better flexibility when animating. If I could animate activities in and out on top of my graphics would definitely be worth looking into. Currently my lists can contain max 60 items and the elements are fairly complex, about 5 TextViews no backgrounds. So multiple ListViews is not good for one activity? Thanks Mark.. Moto! --~--~-~--~~~---~--~~ 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: problem in receiving the status of call
The activity you specified is not present on the device that you ran your app on. You generally shouldn't explicitly name activities like that. You should use a 'send' or 'share' intent, and the system will figure out which activities support it. On Mon, Jul 6, 2009 at 9:30 PM, Tian Yingying wrote: > thanks ,i have another problem that i upload photos to picasa, the followed > is code and i make android:name="android.permission.GET_ACCOUNTS"> > android:name="com.google.android.googleapps.permission.GOOGLE_AUTH"> > in manifest.xml , but a error occured: > android.content.ActivityNotFoundException: Unable to find explicit activity > class > {com.google.android.apps.uploader/com.google.android.apps.uploader.picasa.PicasaUploadActivity}; > have you declared this activity in your AndroidManifest.xml? > i add the activity in manifest.xml, but it says the activity doesn't exist, > i think i should import the com.google ..but how can i do ,please help me > thanks. > Intent picasaupload = new Intent(Intent.ACTION_SEND); > picasaupload.setType("image/jpeg"); > picasaupload.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); > picasaupload.putExtra(Intent.EXTRA_STREAM, imageURI); > picasaupload.setComponent(new ComponentName( > "com.google.android.apps.uploader", > "com.google.android.apps.uploader.picasa.PicasaUploadActivity")); > EntryActivity.instance.startActivity(picasaupload); > > 2009/7/7 Honest >> >> Thanks Marco for your quick reply. I used LISTEN_DATA_ACTIVITY so >> when call starts and both side start communication then data should be >> transfer and i can know that the call is active now. Please make me >> correct if i am wrong. if this is not proper way then can you tell me >> any other way or work around to know when the call becomes active or >> it is being picked up by other side or not. >> >> On Jul 6, 8:42 pm, Marco Nelissen wrote: >> > On Mon, Jul 6, 2009 at 6:00 AM, Honest wrote: >> > >> > > My application is making call. I need to be notified when that call is >> > > being pickeed up by other side. So i used TelephonyManager and >> > > PhoneStateListner as below. Basically i wanted to know data activity >> > > status. >> > >> > > my code is as below. >> > >> > > public void register() >> > > { >> > > TelephonyManager tm=(TelephonyManager)getSystemService >> > > (TELEPHONY_SERVICE); >> > > tm.listen(new CallState(this), >> > > PhoneStateListener.LISTEN_CALL_STATE| >> > > PhoneStateListener.LISTEN_DATA_ACTIVITY); >> > >> > LISTEN_DATA_ACTIVITY will inform you of changes to data traffic, and >> > has nothing to do with voice calls. >> > I don't think you can actually find out if the other side picked up >> > the phone or not. >> > > > > > --~--~-~--~~~---~--~~ 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: Speech Recognition
I'm unclear about the availability of the voice recognition service. I tried the above example on my Vodafone branded HTC Magic (API version 1.5) but it's "Recognizer not present". There seems to be no application in the Android Market that provides this service (unlike Text To Speech functionality which is installed by downloading an application). Any suggestions? Do I have to wait for the next major firmware update? Thanks, Joe. --~--~-~--~~~---~--~~ 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] GpsStatus
How can I derive the getMaxSatellites(), getSatellites() and getTimeToFirstFix() from the GpsStatus Listener? -John Coryat I've got the listener for GpsStatus working like this: LocationManager locMgr = (LocationManager)getSystemService (Context.LOCATION_SERVICE); locMgr.addGpsStatusListener(onGpsStatusChange) ; // Listener for GPS Status... private final Listener onGpsStatusChange=new GpsStatus.Listener() { public void onGpsStatusChanged(int event) { switch( event ) { case GpsStatus.GPS_EVENT_STARTED: // Started... break ; case GpsStatus.GPS_EVENT_FIRST_FIX: // First Fix... break ; case GpsStatus.GPS_EVENT_STOPPED: // Stopped... break ; } } } ; Thanks... -John Coryat --~--~-~--~~~---~--~~ 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: Where to find native resources?
This is where one can find a lot of the native drawables http://developer.android.com/reference/android/R.drawable.html I've been informed to use in xml @android:drawable/ic_menu_camera to get the camera icon. It's not the big blue camera icon one would see in the home screen though. It'd be better if Google could show the images corresponding to the different annotations so we don't have to guess what they represent. Can someone please tell me how to access the shutter sound? R.raw is empty. Thanks On Jul 10, 10:34 pm, doubleslash wrote: > Hi, > Could someone please tell me how to access android's native resources? > In particular, I would like to use the camera icon and shutter sound > in my own app. > 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] Hiding Soft input like using BACK buton
Hello, In my app I have AutoCompleteTextView and "search" button. When user clicks "enter" or "search" an Intent is fired and new Activity is started. But in that "new" Activity SoftInput should be invisible, so I make ((InputMethodManager)getSystemService (INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(this.getCurrentFocus ().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); But when user clicks BACK and returns to activity with form he is unable to show soft input back by touching AutoCompleteTextView. He mus use trackball to select "search" button and than touch ACTextView. Bud when he is in "form" activity first time, shows soft input by touching AutoCompleteTextView and presses BACK button he is able to show soft Input by touching field. How can I hide soft input "correctly" (so it can be shwed back in intuitive way?) or hide it like BACK button does? Regs, Skyman --~--~-~--~~~---~--~~ 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 AudioTrack?
I now ran into the very same problem on my ADP phone as well after applying settings for more strict JNI checking: by default, JNI checking is active on the emulator but not on the phone, so that is why I did not readily see it on the phone until activating JNI checking there for unrelated reasons. I have now filed a bug report at http://code.google.com/p/android/issues/detail?id=3234 Regards On Jul 6, 4:07 am, Morné Pistorius wrote: > Ah, thanks for the hint. I assumed the same thing would happen on the > device, but never checked it outside the emulator... > > Regards, > Morne > > On Jul 3, 5:54 pm, blindfold wrote: > > > I should add that I only see theGREFcount increasing with the > > emulator, not when I run my app on the ADP (connected via USB). On the > > ADP I did even after over 300AudioTrackcreations not get the message > > thatGREFcount went above 101 or whatever. I use SDK 1.5 r2 and my > > ADP has Cupcake. Curiously, I also found thatGREFgrows fast when > > using some native code from the NDK 1.5 r1 on the SDK 1.5 r2 emulator, > > and not when running the same native code on the ADP. Is the > > emulatormemorymanagement somehow different from Cupcake on ADP? > > > Regards > > > On Jul 3, 12:25 pm, blindfold wrote: > > > > Yes, I'm facing the exact same problem. It looks like a bug in > > >AudioTrack. For me theGREFcount seems to increase by 2 for every > > > creation and use ofAudioTrack, and it never goes down. I do not see > > > this problem when instead creating and using MediaPlayer (and writing > > > synthesized sound to flashmemory), supporting the conclusion that the > > > problem lies withAudioTrack. > > > > Thanks > > > > On Jun 27, 5:59 pm, Morné Pistorius wrote: > > > > > Hi all, > > > > > If I create and release multipleAudioTrackobjects, theGREFcount > > > > continually increases which eventually causes an application crash. > > > > This small test code snipped illustrates the problem: > > > > > byte[] buffer = readAudioFile( "audio.raw" ); > > > > for ( int n = 0; n < 10; ++n ) > > > > { > > > > for ( int i = 0; i < 100; ++i ) > > > > { > > > > Log.v("Info", "Track " + n + "," + i ); > > > > AudioTracknewTrack = newAudioTrack > > > > ( AudioManager.STREAM_MUSIC, 16000, > > > > > > > > AudioFormat.CHANNEL_CONFIGURATION_MONO, > > > > > AudioFormat.ENCODING_PCM_16BIT, > > > > > buffer.length,AudioTrack.MODE_STATIC ); > > > > > newTrack.write( buffer, 0, > > > > buffer.length ); > > > > newTrack.flush(); > > > > newTrack.release(); > > > > } > > > > > Runtime.getRuntime().gc(); > > > > } > > > > > Even with a forced garbage collection, I end up with the same > > > > highGREFcount at the end of the loop. In my application, I continuously > > > > create AudioTracks from variable lenght buffers. I guess I can try > > > > and use a fixed size pool of AudioTracks each with a buffer large > > > > enough to fit my longest sound, and try and reuse them. Is there a > > > > better/correct way to completely clear resources used by an > > > >AudioTrack? > > > > > Any help will be greatly appreciated, > > > > Thanks! > > > > Morne --~--~-~--~~~---~--~~ 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] HTC Magic vs G1 performance
I find that my ADP1 phone has a better performance than my Google IO phone. In some cases, the Magic gets a timeout error where the G1 doesn't, running the same software. Also, I've seen a situation where a service would accidentally take too much resources, which the Magic couldn't handle - the screen would freeze - while the G1 could. The phones have identiical sim cards from the same provider. This means I use my IO phone for testing, mostly :-) --~--~-~--~~~---~--~~ 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: Canvas.drawText failing to draw on a second call
any clue, how to resolve this problem On Jul 3, 6:14 pm, Casper wrote: > Hi > > thanks for the reply. > > i even tried that. > Interesting part is, except cavas.drawText for drawing text any other > paint call is working. if you try by your self, you will see the same > thing happening. > i added a statement for canvas.drawLine(); this is working on every > call. But canvas.drawText is able to render my text only once. i > verified the textpaint value. i verified the bottom, top and i even > hardcoded everything and found the same thing happening. its kind of > weird. the api call only mentions that, as per the chosen alignment, > the text will drawn with respect to the x, y origin. I struggled with > this problem till night 3, couldn't find the solution. i even tried > extending the view and calling drawText in the overridden OnDraw > method, is doing the same thing. > > Stephen suggested trying setTextSize, even that didnt work. The point > is, first instance of my extended CheckBox is able to draw the text, > the second time, i create an instance and its the same onDraw method > that gets called, and the text is not visible, but the checkBox is > visible if i have super.onDraw in that method. > > On Jul 3, 7:17 am, MrChaz wrote: > > > you're calling canvas.restore() which clears out all changes since the > > last call of canvas.save() > > I'd try taking out that line. > > > On Jul 2, 8:57 pm, Casper wrote: > > > > public class TCheckBox extends CheckBox{ > > > public void onDraw(Canvas canvas){ > > > > Paint tTextPaint = new Paint(); > > > tTextPaint.setColor(Color.BLACK); > > > > canvas.drawText("mtext1", getPaddingLeft(), getBottom(), > > > tTextPaint); > > > > int width = getWidth(); > > > > Paint tTextPaint2 = new Paint(); > > > tTextPaint2.setColor(Color.BLACK); > > > int tSize = (int)tTextPaint2.measureText("$.00"); > > > canvas.drawText("mtext2", width - tSize, getBottom(), > > > tTextPaint2); > > > canvas.restore(); > > > } > > > > } > > > > public void renderCheckBox(){ > > > mTCheckBox[mCheckBoxCounter] = new TCheckBox(this); > > > > if(mTCheckBox[mCheckBoxCounter] != null){ > > > > > > > linearLayout.addView(mTCheckBox[mCheckBoxCounter]); > > > mCheckBoxCounter++; > > > } > > > sView.postInvalidate(); > > > } > > > } > > > > My first call to renderCheckBox could render the check box with text1, > > > and text2. From second time onwards, my text is not being rendered but > > > the checkBox is getting rendered. I am not knowing what might be the > > > reason for the failure. Could some one help with this problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@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 load maps with Production API Key.
Ian wrote: > yes please! > > my release is blocked for similar reason. > > I got the maps key, compiled with new key, signed, but now it's all > grey. > > when I redo with debug key, it works... help! You need separate Maps API keys for debug versus production, since they are tied to the fingerprint of your debug versus production signing key. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ 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] query regarding InputMethodManager
Hi Android Developers, I need a function to know whether keypad is opened or not. Please provide me the API/function to know whether the Virtual Keypad is OPENED or CLOSED if anybody knows. I know already how to open/hide the keypad by using InputMethodManager. Thanks in advance, Regards, Albert Pinto --~--~-~--~~~---~--~~ 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] When Parsing the Soap response problem...
HI I want to Consume the SOAP Web Services in Android i downloaded KSOAP2 Library i have done some thing like this .. private static final String SOAP_ACTION = "getRating"; private static final String METHOD_NAME = "getRating"; private static final String NAMESPACE = "http://www.w3.org/2001/12/ soap-envelope"; private static final String URL = "http://www.galatta.com/iphone/ isizzle/isizzle.php"; private ContextWrapper context; /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.list); //CALL the web service method SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope (SoapEnvelope.VER11); envelope.setOutputSoapObject(request); AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport (URL); try { androidHttpTransport.call(SOAP_ACTION, envelope); // Get the SAOP Envelope back and the extract the body SoapObject resultsRequestSOAP = (SoapObject) envelope.bodyIn; } i am getting the response from the server like this ..not know what is this type... getRatingResponse{return=ContestInfo{item=anyType{name=Ankitha; totalimages=2; rating=2.5; }; item=anyType{name=Anushka; totalimages=4; rating=9.5; }; item=anyType{name=Apsara; totalimages=1; rating=0; }; how can i parse this response. can any body help me regarding this . it urgent ... --~--~-~--~~~---~--~~ 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] Browser can not access website on IIS
Clicking on https://brtel0009000.wss3online.de should normally popup a dialog box for entering some account/pw. This works fine on any Windows, Mac, Linux, iPhone, but it does not work on Android/G1 (I am using 1.5) You will get the information: You are not authorized to view this page Http Error 401.2 We asked the provider, whether he could configure something on IIS side, but he told us, that it is a problem of the device (=Android) What's going on there? Please help. --~--~-~--~~~---~--~~ 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] View Problem
Hi, I want when I open my Activity it shows Built-in Control that is id/metronome_image in given xml. but when i click over it should replace with my Custom control that is CustomMetronome in given xml. when i click again outside it should replace back to Built-In. -- Thank & Regards Peeyush Varshney --~--~-~--~~~---~--~~ 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: WebView
> Really strange...I found a lot of similar example, but with SDK > 1.5_R2, the web content stays blank. > I've set correctly permission. If I load my URL without a WebView > Client my page is loaded correctly in default browser. > I saw some opened bugs in Google Android tool. > > Can you give a status of this code with the last SDK? WebView certainly works. Make sure you have Javascript enabled (setJavaScriptEnabled()), in case the site in question needs it. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: WebView
Really strange...I found a lot of similar example, but with SDK 1.5_R2, the web content stays blank. I've set correctly permission. If I load my URL without a WebView Client my page is loaded correctly in default browser. I saw some opened bugs in Google Android tool. Can you give a status of this code with the last SDK? Regards On Jun 24, 2:06 pm, Mark Murphy wrote: > Sukitha Udugamasooriya wrote: > > I have awebviewand need to trigger a function when a user clicks on > > particular url. > > > How can I achieve this? > > 1. Implement a WebViewClient subclass > > 2. OverrideshouldOverrideURLLoading() on your WebViewClient subclass > > 3. Attach an instance of your WebViewClient subclass to theWebViewvia > setWebViewClient() > > 4. Put smarts inshouldOverrideURLLoading() to handle your particular URL > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _The Busy Coder's Guide to *Advanced* Android Development_ > Version 0.9 Available! --~--~-~--~~~---~--~~ 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: Video with MediaRecorder
@Zeeshan Are you getting a black screen ? if yes that's probably due to a bug in the emulator (i think starting from the latest 1.5 sdk), you might as well have noticed that you can't run either the camera or the camcorder from the emulator, it's not a problem in your code it's problem in the emulator itself, to fix this please check the last post in this thread: http://groups.google.com/group/android-developers/browse_thread/thread/60005bb7fff2e14f/eec39e24877d8b42?hl=en&lnk=gst&q=black+screen+camera+hanged_man#eec39e24877d8b42 Hope this works for 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: HTC Magic
Hi, I have followed the instructions in link: http://android-dls.com/wiki/index.php?title=Magic_Rooting but the following error is reported fastboot boot recovery-RAv1.0H.img downloading 'boot.img'... FAILED (remote: not allow) Whether any locking is there in the device Please advice Thanks&Regards fastboot boot recovery-RAv1.0H.img < waiting for device > downloading 'boot.img'... FAILED (remote: not allow) On Jul 11, 7:48 am, Nima wrote: > Hi, > > Thanks a lot for your quick response. > We are not able to see the option "settings->applications->development->"USB > Debugging" in device > > Please advice. > > Thanks & Regards, > > On Jul 10, 10:33 pm, "Yusuf T. Mobile" > wrote: > > > As a T-Mobile employee, I discourage you in the strongest possible > > terms from rooting yourMagicand upgrading it to 1.5 at the same time > > using this link:http://android-dls.com/wiki/index.php?title=Magic_Rooting > > > Yusuf Saib > > Android > > ·T· · ·Mobile· stick together > > The views, opinions and statements in this email are those of the > > author solely in their individual capacity, and do not necessarily > > represent those of T-Mobile USA, Inc. > > > On Jul 10, 8:22 am, Nima wrote: > > > > hi, > > > > We have bought newHTCMagicwith the following specifications: > > > > 1.Firmware version- 1.5 > > > 2.Baseband Version - 62.52s.20.18U_3.22.20.17 > > > 3.Kernel Version- 2.6.27-cb85e129htc-ker...@and18-2 #3 > > > 4.Build number-2.16.720.2 146733 CL#38755 release-keys > > > > Can any one please tell us whether we can flash Android1.5 image > > > under the following linkhttp://www.htc.com/www/support/android/adp.html > > > > Where we can get factory image forHTCMagic? > > > > Thanks&Regards,- 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] NullPointerException when adding an ExpandableListView
Hi all, I want to add an ExpandableListView in a LinearLayout defined in main.xml. But I met "NullPointerException:null" when I added it to the xml file. I don't know what's wrong with it. Could anyone help me to solve this problem? Thank you in advance! Here is the code of main.xml: --~--~-~--~~~---~--~~ 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: Demo App
2009/7/10 UK Android Apps UK Android Apps > I want to release a demo version of my app. > > I added a restriction that the app could only be used 5 times by > storing a counter in the db. > > However a user can easily uninstall and install the demo again! > > What the best way to manage this? > Grab the unique device ID or SIM ID etc and send it to a database system that stores the count off line and tells the phone how many uses are left. --~--~-~--~~~---~--~~ 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: Play YouTube videos in WebView?
*bump* ;-) On Thu, Jul 9, 2009 at 9:03 PM, Mariano Kamp wrote: > Hi, > when accessing a website with embedded YouTube video from within the > browser, I can play the video. When accessing it from WebView I haven't been > able to do that. Is that not possible or is there anything I do wrong? > > WebView webView = (WebView) findViewById(R.id.content_web_view); > > webView.loadUrl(" > http://strobist.blogspot.com/2009/07/creative-light-launches-with-class.html > "); // sample url contains videos > > > Cheers, > > Mariano > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---