[android-developers] Re: Android
I think you might have missed it. --~--~-~--~~~---~--~~ 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: Camera preview
There seems to be a bug in the EXTRA_OPTIONS if you're using the default camera activity. That is why you are not getting full sized pictures. If you want to embed the preview you can use the Camera object directly. On Aug 28, 1:02 am, Pavel pavli...@gmail.com wrote: Hey tinyang, Could you please share the code you use for picture taking? I am working on the same thing and having weird issues with it - it does not take full sized pictures for unknown reason... And yeah, sorry, no answer to your question from my side at the moment. Pavlo On Thu, Aug 27, 2009 at 9:14 PM, tinyanggnay...@gmail.com wrote: Hello. I just got my camera preview working for my app, but it is not appearing where I want it to appear, and I'm not sure how to get it there. Instead of using the entire screen for the preview, I would like to put it inside a surfaceview in an activity xml gui. What do I need to change? Here is my code: public class TakePic extends Activity { SurfaceView camSurface; Preview camPreview; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE);//hide window title camPreview = new Preview(this); //create preview setContentView(R.layout.takepic); setContentView(camPreview); //set preview as activity content camSurface = (SurfaceView) findViewById(R.id.camsurface); } --~--~-~--~~~---~--~~ 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] parameter must be a descendant of this view in ViewGroup.java:2454
Hi All, Apologies if this is a repost as I tried replying a couple times on the web interface to this Google Group but didn't see my reply get posted. I am part of a team building an Android app and our application is experiencing the same problem as designated in this thread: http://groups.google.com/group/android-developers/browse_thread/thread/4e2a2ac4d363d1f/64cdeaa8bc46ba22?hl=enlnk=gst When the virtual keypad is up, we press a button and then get an exception that kills our app. From the thread it appears that this is a known issue and fixed in Donut, but we are experiencing this issue and are targeting Cupcake as that is the current OS deployed. Are there any ways to work around this issue? Our team would like to know either way so we can decide how to proceed from here. Any help very much appreciated! Thanks, steven --~--~-~--~~~---~--~~ 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 speed up the Android emulator.
On Aug 27, 6:49 pm, Dianne Hackborn hack...@android.com wrote: Trying to get a somewhat realistic environment running natively on a desktop is thus tricky enough if that desktop is Linux; it has actually been a very long time since the simulator did anything besides run all of the applications as threads inside of a single process, which is extremely different than the real environment. Someone could maybe cobble this together to work on Linux again (requiring you to install a desktop build of the binder driver etc), but it's really difficult to maintain even the single process version. Trying to get this running on something like Windows would be a long long rough road. Ah, so it has been tried and found ugly. Running an x86 build in a VM should work though (to the degree the x86 builds work), and should be substantially faster then emulating an arm chip, right? I do think emulating the processor was the right choice for the official sdk emulator (vs the pre sdk's x86 VM approach), but the VM approach does seem like it would be a great unofficial tool for speeding up less accuracy-critical work. Or we could go the other way... instead of trying to graft android onto a desktop linux, we could try to graft enough of a desktop linux userland onto an x86 android netbook to run eclipse and gcc and have ourselves a hosted development playground... --~--~-~--~~~---~--~~ 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 can I find adroid manual
On Aug 28, 1:57 am, li jiecong lijiec...@gmail.com wrote: Hi There is online manual on the developer.android.com. Is there any offline document about this manual? CHM,PDF,HTML are all ok. thanks. If you download and install the sdk, do open file in your web browser and browse to documentation.html in the sdk's directory. It's not 100% there, but the key parts work offline. --~--~-~--~~~---~--~~ 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] Accelerometer Speaker Interference Workarounds?
It's no secret that both the HTC Dream and HTC Magic have problems with sound from the built-in speaker interfering with the accelerometer. I'm currently having the problem with my new game and am not sure how I'm supposed to work around it. Quite frankly, the sound is a big part of the game and most people prefer to play with it on. I found a great way to use tilt-view control and it works really well until I turn sound on, then it all goes to crap. Sure, I could crank the sample rate up to highest and take a running average of the past 5 or so samples and pull out the outliers but it's still not very accurate. What are we supposed to do? This problem is REALLY bad on the G1. I'm getting readings jumping from 13 to 6 when my phone is sitting perfectly still (should be 9.8) but has music playing. When sound is on and volume is decent, it literally looks like the player is shaking the phone around as hard as they can. Is there any way to specify sensor sensitivity? Can we decrease it somehow? I'm targeting 1.5 so any of that API is good with me. Thanks for 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: Android
lol On Fri, Aug 28, 2009 at 9:10 PM, admin.androidsl...@googlemail.com admin.androidsl...@googlemail.com wrote: I think you might have missed it. --~--~-~--~~~---~--~~ 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: Bluetooth Support (lack of it)
On Aug 28, 12:04 pm, Usability Architect de...@infinite3.com wrote: Andriod doesn't support many profiles. (ummm 1, the headset profile) It is indeed pretty limited in the current official software. For GOD sakes, I can't even get a directory listing via USB connection. How does anyone load their own videos and music on this device? Enable USB mass storage, or get the adb tool out of the sdk. You will only be able to a access the sdcard with mass storage, but that's where you would want to put media content anyway. --~--~-~--~~~---~--~~ 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 i transfer username to next page by Intent:
Hi, Try with Intent intent = new Intent(arg); ... intent.putExtra(username, userNameValue); startActivity(intent); Then on next activity use String userNameValue = getIntent().getStringExtra(username); Amir Alagic Sony Ericsson Mobile Communications 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 Sony Ericsson Mobile Communications AB On Aug 28, 12:21 pm, ragavendran s sraghav.ra...@gmail.com wrote: How can i transfer username to next page by the Intent: package add.sam1; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; public class user extends Activity { /** Called when the activity is first created. */ EditText username,pass; Button enter; public static String str1; �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); username=(EditText)findViewById(R.id.username); pass=(EditText)findViewById(R.id.pass); enter=(Button)findViewById(R.id.enter); enter.setOnClickListener(new OnClickListener() { public void onClick(View v) { str1=username.getText().toString(); String str2=pass.getText().toString(); if(str1.equals(raghav) str2.equals(123)) { showint(); } else { Dialog locationError = new AlertDialog.Builder( user.this).setIcon(0).setTitle( Error).setPositiveButton(ok, null) .setMessage( Sorry, your u r not a Valid User) .create(); locationError.show(); username.setText(); pass.setText(); } } }); } public void showint( ) { Intent intent = new Intent(this,welcome.class); startActivity(intent); } }- 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: Accelerometer Speaker Interference Workarounds?
And that's almost exactly what I see. I notice extra bad numbers coming through on certain frequencies of sound. I know I've complained about one or two things in the past but this really is a pretty bad flaw. Let's hope future devices don't have the same problems. On Aug 28, 7:56 pm, Chris Stratton cs07...@gmail.com wrote: On Aug 28, 7:39 pm, Robert Green rbgrn@gmail.com wrote: It's no secret that both the HTC Dream and HTC Magic have problems with sound from the built-in speaker interfering with the accelerometer. I'm currently having the problem with my new game and am not sure how I'm supposed to work around it. Quite frankly, the sound is a big part of the game and most people prefer to play with it on. I found a great way to use tilt-view control and it works really well until I turn sound on, then it all goes to crap. Sure, I could crank the sample rate up to highest and take a running average of the past 5 or so samples and pull out the outliers but it's still not very accurate. Ugh, if your observation is accurate this sounds like a system design bug. Average actually won't fully work, because the sensor needs to be low pass filtered before the analog to digital conversion, in order to keep any frequency components above its nyquist limit out of the digitizer. Otherwise you will get really odd effects if you have an audio frequency that's near a multiple of the sample rate... they can alias back to near zero frequency and look like very slow variations in reading, which would go right through your averaging. --~--~-~--~~~---~--~~ 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] Its Urgent...(for adc2)Getting map api key when publishing the application..
Hi developers.. i refered http://code.google.com/android/add-ons/google-apis/mapkey.html to generate maps on dev phone for my application ... and is working fine and i also refred Final Steps to Enable MapView Elements .. i have a doubt regarding this about the note given below which says: Note that, when you are ready to publish your application, you must get a Maps API Key that is based on the certificate that you will use to sign the application for release. You must then change the Maps API Key strings referenced by all of your MapView elements, so that they reference the new Key. i am not understanding this note ... We need to follow any other procedure to generate map api key during publishing the application..if yes.. where the linkj which describes it ? Or the My_Maps_ApiKey_String is enough to generate maps during the publish application.. com.google.android.maps.MapView android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=My_Maps_ApiKey_String / Kindly help me in this or guide how to move next .. i am almost finished with my application .. only needed to publish it and its my first app and needed guidance on this.. Thanks regards Sheik. --~--~-~--~~~---~--~~ 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] BroadcastReceiver on Service
Can I Receive a Broadcast from a Service? It seem I have to extend BroadcastReceiver to receive broadcasts but I'm already extending Service and I can't extend 2 classes. Do I set up an additional Activity to receive broadcasts and then just pass stuff to the already running Service. And if so, how to I pass additional info to an existing Service? Is there a better way? 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] How can i use Scroll bar in my Linear layout view.....
How can i use Scroll bar in my Linear layout view... can u pls tell me thanks Raghav.S --~--~-~--~~~---~--~~ 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: BroadcastReceiver on Service
Looks like I answered my own question. There is a peekService method in BroadcastReceiver for interacting with existing Services. On Aug 28, 11:50 pm, GodsMoon godsm...@gmail.com wrote: Can I Receive a Broadcast from a Service? It seem I have to extend BroadcastReceiver to receive broadcasts but I'm already extending Service and I can't extend 2 classes. Do I set up an additional Activity to receive broadcasts and then just pass stuff to the already running Service. And if so, how to I pass additional info to an existing Service? Is there a better way? 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: How to override ContactsProvider like GoogleContactsProvider
Reason? It sounds like very limited room for 3rd party developers to do something. On Aug 22, 12:56 am, Dianne Hackborn hack...@android.com wrote: Sorry, you can't do this. On Thu, Aug 20, 2009 at 11:14 PM, Kenny Yu yxw...@gmail.com wrote: To develop an APK, I want to modify or expand ContactsProvider functionality. GoogleContactsProvider is my role model. But I can't put my code to Android repository, like GoogleContactsProvider does. Mine is a 3rd party APK to develop. http://groups.google.com/group/android-developers/browse_thread/threa... was the idea. Just curious how to make a customized provider for Android ContactsProvider. Kenny -- 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.- 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] How to add the image on surface view?
Hi, I am trying to add an image on surface view. I have coded some thing like this: public void surfaceCreated(final SurfaceHolder holder) { // The Surface has been created, acquire the camera and tell it where // to draw. Runnable r = new Runnable() { public void run() { Rect rect = new Rect(); rect.set(0, 0, 60, 60); Canvas canvas = mHolder.lockCanvas(rect); InputStream is = context.getResources().openRawResource (R.drawable.karaoke48x48); //Bitmap bitmap = BitmapFactory.decodeResource(getResources (), R.drawable.karaoke48x48); Bitmap bitmap = BitmapFactory.decodeStream(is); Paint p = new Paint(); if(bitmap != null) canvas.drawBitmap(bitmap, 0,0, p); mHolder.unlockCanvasAndPost(canvas); //mHolder. } }; new Thread(r).start(); try { videoRecorder.setPreviewDisplay(mHolder.getSurface()); } catch (Exception e) { e.printStackTrace(); } if (videoRecorder != null) { try { videoRecorder.prepare(); System.out.println(video recorder prepared.); videoRecorder.start(); System.out.println(video recorder started.); } catch (IllegalStateException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (Exception ex) { ex.printStackTrace(); } } } I got an image over the screen, but no preview is there. But when I see the recorded media file, it is showing the recorded video. Can any one please help me to solve this? Thanks, 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] ItemizedOverlay botches bounds of non-default marker?
If I extend ItemizedOverlay, why does this work as expected: public MyItemizedOverlay(Drawable defaultMarker) { super(boundCenterBottom(defaultMarker)); populate(); } public void addOverlayItem(OverlayItem overlayItem) { if (useNonDefaultMarker) { overlayItem.setMarker(boundCenterBottom(otherMarker); } mOverlays.add(overlay); populate(); } But this does not. It draws the shadow as if the shadow was boundCenterBottom()ed, but the otherMarker is properly drawn centered on the point. public MyItemizedOverlay(Drawable defaultMarker) { super(boundCenter(defaultMarker)); populate(); } public void addOverlayItem(OverlayItem overlayItem) { if (useNonDefaultMarker) { overlayItem.setMarker(boundCenter(otherMarker)); } mOverlays.add(overlay); populate(); } --~--~-~--~~~---~--~~ 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: Accelerometer Speaker Interference Workarounds?
it might be interesting to slowly sweep a sine wave across the audio range while plotting variation in the accelerometer reading... On Aug 28, 9:40 pm, Robert Green rbgrn@gmail.com wrote: And that's almost exactly what I see. I notice extra bad numbers coming through on certain frequencies of sound. I know I've complained about one or two things in the past but this really is a pretty bad flaw. Let's hope future devices don't have the same problems. On Aug 28, 7:56 pm, Chris Stratton cs07...@gmail.com wrote: On Aug 28, 7:39 pm, Robert Green rbgrn@gmail.com wrote: It's no secret that both the HTC Dream and HTC Magic have problems with sound from the built-in speaker interfering with the accelerometer. I'm currently having the problem with my new game and am not sure how I'm supposed to work around it. Quite frankly, the sound is a big part of the game and most people prefer to play with it on. I found a great way to use tilt-view control and it works really well until I turn sound on, then it all goes to crap. Sure, I could crank the sample rate up to highest and take a running average of the past 5 or so samples and pull out the outliers but it's still not very accurate. Ugh, if your observation is accurate this sounds like a system design bug. Average actually won't fully work, because the sensor needs to be low pass filtered before the analog to digital conversion, in order to keep any frequency components above its nyquist limit out of the digitizer. Otherwise you will get really odd effects if you have an audio frequency that's near a multiple of the sample rate... they can alias back to near zero frequency and look like very slow variations in reading, which would go right through your averaging. --~--~-~--~~~---~--~~ 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] code for simple client server http communication
I am new to android development can u give anybody .code for simple client server http communication i dont know how these client interact with server can u tel me the steps for this network concept...how we send the url connection to the serve. pls. thanks, with regards, Raghav.S --~--~-~--~~~---~--~~ 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] Force Close-Wait
When i'm trying to execute my project. It will show one alert dialog in run time. That Shows to Forceclose or Wait. Why this alert dialog is showing. There is any way to stop these. In my project i'm reading xml files. is this cause any problem. Reply me. 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: How to customize the lock screen?
Anyone? Or is it impossible with the sdk? --~--~-~--~~~---~--~~ 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 i use Scroll bar in my Linear layout view.....
use Scrollview for scroll bar... On Aug 29, 9:03 am, ragavendran s sraghav.ra...@gmail.com wrote: How can i use Scroll bar in my Linear layout view... can u pls tell me thanks Raghav.S --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---