[android-developers] Android camera orientation problem
Hi all For my application I am using android native camera and previewing the image using surface view. But everything is working except the camera orientation. When I open the camera by setting screenOrientation=landscape on manifest file I am getting the preview without any problem in landscape mode. But I need to take image in portrait mode, for this I changed my manifest like android:screenOrientation=portrait and change my code like mCamera.setDisplayOrientation(90), params.set(orientation, landscape),params.set(rotation, 90), but still I am getting 90 degree rotated image. I searched a lot but nothing solved my problem... And my code is public void setupCamera(int width, int height) { Log.i(TAG, setupCamera); synchronized (this) { if (mCamera != null) { Camera.Parameters params = mCamera.getParameters(); ListCamera.Size sizes = params.getSupportedPreviewSizes(); ListCamera.Size imgsize=params.getSupportedPictureSizes(); mFrameWidth = width; mFrameHeight = height; // mCamera.setDisplayOrientation(90); params.set(orientation, landscape); params.set(rotation, 90); // selecting optimal camera preview size { int minDiff = Integer.MAX_VALUE; for (Camera.Size size : sizes) { if (Math.abs(size.height - height) minDiff) { mFrameWidth = size.width; mFrameHeight = size.height; minDiff = Math.abs(size.height - height); } } } params.setPreviewSize(getFrameWidth(), getFrameHeight()); ListString FocusModes = params.getSupportedFocusModes(); if (FocusModes.contains(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO)) { params.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO); } mCamera.setParameters(params); mCamera.startPreview(); } } } I am using micromax A52 mmodel with android 2.3 -- 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] java.lang.NullPointerException and Unknown Source
In my code I am getting this error. I pasted full log cat java.lang.RuntimeException: Unable to start activity java.lang.RuntimeException: Unable to start activity ComponentInfo{ sa.app.activity.EmailRegistartionhttp://sa.appoptix.com/sa.appoptix.com.activity.EmailRegistartion}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity( ActivityThread.java:1970) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1995) at android.app.ActivityThread.access$600(ActivityThread.java:128) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1161) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4514) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run( ZygoteInit.java:790) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at sa.appoptix.com.activity.EmailRegistartion.onCreate(Unknown Source) at android.app.Activity.performCreate(Activity.java:4465) at android.app.Instrumentation.callActivityOnCreate( Instrumentation.java:1053) at android.app.ActivityThread.performLaunchActivity( ActivityThread.java:1934) ... 11 more My oncreate metode contains following code public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.registration); /* To calculate uId in email sending path */ TelephonyManager teleman = (TelephonyManager) getBaseContext() .getSystemService(Context.TELEPHONY_SERVICE); sws = new SaWebService(); deviceId = teleman.getDeviceId(); uId = deviceInfo(); re = RegisteredEmail.getInstance(this); prefs = getApplicationContext().getSharedPreferences(email_id, MODE_PRIVATE); btn = (Button) findViewById(R.id.email_submit); new_reg = (Button) findViewById(R.id.newuser_signup); new_reg.setOnClickListener(new OnClickListener() { public void onClick(View v) { Intent viewIntent = new Intent( android.intent.action.VIEW, Uri.parse(http://panel.strategyanalytics.com/default.aspx?mod=registrationfull;)); startActivity(viewIntent); } }); email = (EditText) findViewById(R.id.email); email.setOnFocusChangeListener(new OnFocusChangeListener() { public void onFocusChange(View v, boolean hasFocus) { email.setHint(); } }); btn.setOnClickListener(new OnClickListener() { public void onClick(View arg0) { email = (EditText) findViewById(R.id.email); emailStr = email.getText().toString(); new AddTask().execute(); setContentView(R.layout.main); email.setText(); } }); } Help me out where I am going wrong. Thanks for help in advance. Thanks, Thejaswi -- 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] Sending file between 2 instances of emulator
Hi, I want to send a text between 2 android emulator instances(by hard-coding the port numbers) using HTTP. I want a single apk file for this(so that it can run on 'n' instances later). Please let me know how to implement this? 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: Java SE
http://www.oracle.com/technetwork/java/javase/downloads/jdk7u9-downloads-1859576.html Am Donnerstag, 18. Oktober 2012 16:36:34 UTC+2 schrieb Alana Weaver: Hi I've downloaded Android SDK but the Java jdk wasn't apart of Android SDK download? Where can I find Java SE that's compatible windows 32? So that I can properly install Android SDK on my laptop. 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
Re: [android-developers] To ContentProvide Sqlite DB or Not
Why do you prefer ASyncTasks to Loaders? Since they are handicapped in ICS, isn't it better to stop using them? On Sunday, October 21, 2012 11:36:10 PM UTC+2, Mark Murphy (a Commons Guy) wrote: On Fri, Oct 19, 2012 at 8:13 PM, ncdroid jbl...@gmail.com javascript: wrote: Can someone please answer definitively for me the following: Are ContentProviders required to use Loaders w/Sqlite? No. If you really want to use loaders with SQLite directly, I have a SQLiteCursorLoader that works without a ContentProvider: https://github.com/commonsguy/cwac-loaderex If ContentProviders are *not* required to use Loaders w/Sqlite, is there any recommended example which shows how to use the two together? What is (are?) the two in this sentence? If Sqlite has a recommended way to achieve functional parity to Loaders with another method, what is that method? :: shrug :: I use ordinary AsyncTasks myself, way more often than Loaders. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.2 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
Re: [android-developers] Transferring VBO's through constructors?
On 21/10/2012 19:19, Braindrool wrote: I'm one of those people that think it's best to do something right the first time, as well as take advantage of Java's class system. Have a look on the VBO section of this site http://www.learnopengles.com - Fabien -- 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] Problems with the Power/Lock button after 4.1.2 update (Samsung Nexus S)
Hi I'm facing some problems with the power button of my Nexus S after installing the 4.1.2 JellyBean update. The thing is that after two days of using the new update the screen became to turn itself on like i would press the power button and on saturday evening the button stopped to respond at all. Any help ? 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: Strange behaviour with mediaplayer and seekTo (on start-up)
Did you solve this problem? I ve modified videoview to implement the onSeekCompleteListener but this still occurs On Wednesday, 16 June 2010 10:23:49 UTC+5:30, Mathias Lin wrote: I'm implementing a custom video player because I need custom video controls. I have an app with only one activity, which on start-up shall starts playing a video right away. Now, the problem I have (on my Nexus One): I don't want the video to start from the beginning, but from a later position. Therefore I do a seekTo(16867). Since seekTo is asynchronous, I place the start call of the mediaplayer (player.start()) in the onSeekComplete of the onSeekCompleteListener. **The strange behaviour I experience though is that I can see/hear the video playing from the beginning for a few millisecs before it actually plays from/jumps to the position I seeked to. But - on the other hand - the Log output I call before the player.start returns the correct position 16867, where I seeked to.** Below is the relevant code section, the complete class is at http://pastebin.com/jqAAFsuX private void playVideo(String url) { try { btnVideoPause.setEnabled(false); if (player==null) { player=new MediaPlayer(); player.setScreenOnWhilePlaying(true); } else { player.stop(); player.reset(); } url = /sdcard/myapp/main/videos/main.mp4; // --- just for test purposes hardcoded here now player.setDataSource(url); player.setDisplay(holder); player.setAudioStreamType(AudioManager.STREAM_MUSIC); player.setOnCompletionListener(this); player.setOnPreparedListener(this); player.setOnSeekCompleteListener(new MediaPlayer.OnSeekCompleteListener() { public void onSeekComplete(MediaPlayer mediaPlayer) { Log.d(APP, current pos... + player.getCurrentPosition() ); player.start(); // -- start playback on seek completed player.setOnSeekCompleteListener(null); } }); player.prepareAsync(); } catch (Throwable t) { Log.e(TAG, Exception in playVideo prep, t); } } public void onPrepared(MediaPlayer mediaplayer) { width=player.getVideoWidth(); height=player.getVideoHeight(); if (width!=0 height!=0) { holder.setFixedSize(width, height); progressBar.setProgress(0); progressBar.setMax(player.getDuration()); player.seekTo(16867); // -- seeking to position } btnVideoPause.setEnabled(true); } -- 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] AVD error Eclipse Juno under Fedora 17
I get this error message: [2012-10-21 20:59:45 - SDK Manager] Failed to create sdcard in the AVD folder. [2012-10-21 20:59:52 - SDK Manager] Failed to create the SD card. I tried to solve this running Eclipse Juno Android Device Manager and examined the ~/.android/avd it is empty. Any hint? BTW, I am running a Fedora 17 Linux distro, in a x_64 AMD Phenom II machine. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml
the same problem Windows XP Fetched Add-ons List successfully Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml Done loading packages. -- 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 reset the connection - PDP Session
Hi Team, I'm doing some networking test so I want close and start a new PDP session each time I run a connectivity test such as send data over a TCP connection or UDP also. I saw ConnectivityManager just provide information but not allow reset the connection. How should be the best way to do it? Many thanks Sergio -- 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
Re: [android-developers] TextureView canvas drawing problems
Hi All: I have tried this sample, it works great. But when I change lockCanvas(null) into lockCanvas(new Rect(x, y, x+20, y+20)), the example starts to flicker. It seems 'lockCanvas(Rect)' can not work well for TextureView or any other reasons? I am using Motorola XOOM with android 4.0.3. Thanks for any help! 在 2012年10月4日星期四UTC+8上午6时06分00秒,Romain Guy (Google)写道: Here is a fully working example of Canvas TextureView: http://pastebin.com/J4uDgrZ8 On Wed, Oct 3, 2012 at 3:01 PM, Romain Guy roma...@android.comjavascript: wrote: The problem is that you are calling updateTexImage() yourself. Do *not* do this. You are interfering with TextureView, preventing it from receiving the events that it uses to refresh the screen. On Tue, Oct 2, 2012 at 7:40 AM, Conrad Chapman chapman...@gmail.comjavascript: wrote: Also asked in StackOverflow here http://stackoverflow.com/questions/12688409/android-textureview-canvas-drawing-problems I have an app that used SurfaceView to draw dynamic 2D graphs. It worked ok but transormations etc as we know are not supported. So I went to TextureView. My old code used another class/thread to do the drawing via the Surfaceholder.lockCanvas(); So I changed this to TextureView.lockcanvas. When this runs the canvas is not accelerated (the view is). It does not display initially but if I touch the screen it displays??? The touch is handled by the main activity. Obviously it works as it will display eventually but why doesn't it display immediately? The TextureView class implements SurfaceTextureListener as such below. @Override public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { // TODO Auto-generated method stub isRunning = true; mySurface = surface; mChart.setTextureSurface(surface); mChart.setSurfaceSize(width, height); mPaint.setColor(ZOOM_BUTTONS_COLOR); //mySurface.setOnFrameAvailableListener(frameready); mChart.Redraw(true); } @Override public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { // TODO Auto-generated method stub isRunning = false; return false; } this block below also workswhen manipluating the view later on (pan and zoom) public void Render(Bitmap buffmap){ //mCanvas = null; post(new Runnable() { public void run() { invalidate(); mySurface.updateTexImage(); } }); The drawing from the worker thread/class is protected void RenderCanvas(){ //mCanvas = null; Canvas c = null; //synchronized (mCanvas) { //mCanvas = null; try { c = mChartView.lockCanvas(null); synchronized (mCanvas) { c.drawBitmap(buffBitmap, 0, 0, null); } } finally { if (c != null) { mChartView.unlockCanvasAndPost(c); } } mChartView.Render(null); } Can I work like this? Non-GL content in a TextureView? Please help desperate for an answer. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer roma...@android.com javascript: -- Romain Guy Android framework engineer roma...@android.com javascript: -- 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 delete videos from youtube
Hi everyone I had implemented uploading videos to youtube from android programatically using *YouTube Direct App for Android http://code.google.com/p/ytd-android/*. What i need is to delete the video which i had uploaded. http://code.google.com/p/ytd-android/Can anyone help? Thanks Varsha http://code.google.com/p/ytd-android/ -- 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] Somebody help me :)
https://lh3.googleusercontent.com/-1fb1NqVc9Lk/UIP3MlWRe4I/AAY/YuKc8nQ6_BI/s1600/img1.png How can I do simple a FlashLigth application like this. this content is five buttons(blue,red...). when I click on a button(ex:blue),screen must be blue. thanks for helps:) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Localized Images in Google Play
Is it possible to have localized images for an App in Google Play? I need to have a different Icon for Japan and this should be reflected by the icons displayed in Google Play. -- 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 delete videos from youtube
Hi I had uploaded video to YouTube from Android device using YouTube Direct App for Android(ytd-android) . I need to know how to delete the video which i had uploaded. Thanks Kiran -- 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 the Duak Sim Settings
We have many China cell phones dual SIM card support, say, aliyun system (according to Android modifications), you can go to research -- 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: GPU Acceleration - still not worth using on 4.1.1?
On Android 4.1.1 , i'm still getting this blink when a WebView is Hardware Accelerated. =/ Em quarta-feira, 17 de outubro de 2012 01h46min02s UTC-3, Anthony Prieur escreveu: Is anyone else seeing as much weirdness with GPU accel as I am? I do see troubles too with GPU, especially this one: ICS WebView blinks when Hardware Acceleration is used http://code.google.com/p/android/issues/detail?id=25722 , very annoying as no HW acceleration = no HTML5 video tag working. Seems you mentionned the Webview blink is fixed in 4.1.1, but the bug report looks it's not, could you confirm ? Le mardi 16 octobre 2012 19:00:48 UTC+2, Kostya Vasilyev a écrit : I'm seeing strange issues with GPU acceleration in my app. First, on 4.0.3 / 4.0.4, a WebView with a dark background color flashes white whenever I reload its data. It does this over the whole screen, which looks really nasty in a multi-panel (fragment) UI. This is on an Asus TF101, Sonty Tablet S, Acer A100 -- all Tegra 2 devices. Ok, so I turn off hardwareAccelerated in the manifest for API 16. Now, if the user forces GPU acceleration on, on some devices, with some content, WebView displays nothing, staying blank. Disabling force GPU in the device's settings magically makes everything work again. I've seen the advice to check if GPU is forced, and showing a warning message, but since the issue only happens occasionally, I'm not sure if it's worth it to irritate those who have force GPU on without bad consequences. This is WebView, it's not even my code (which is of course buggy and a crappy), but this is part of Android. I've not seen this failure on my devices, identical to those of users who'd run into this. Enter Android 4.1.1. Ok, the WebView background flash is fixed, so I enable hardwareAccelerated in the manifest as a conditional boolean just for API 16 and higher. New issue: I have an activity with an EditText, whose content I set from code (a message draft) and sometimes append to (a signature). The appended text sometimes renders on top of the other text, making a big mess. Ok, fine, I force a software layer on this EditText. This resolves the text overlap issue, but now some content appears to render white on white: the view scrolls as much as it's supposed to, shows the glowing overscroll indicators, but there is nothing to see. If I turn hardwareAccelerated off in the manifest or remove setLayerType(SOFTWARE), the same content (and I mean the same content, it's loaded from a database, and it's deterministic) renders just fine. So here what I'm trying to understand: - Is anyone else seeing as much weirdness with GPU accel as I am? - Am I just so special hitting one bug after another? - Is GPU acceleration, by and large, unexpectedly broken and randomly unusable, even in 4.1.1 on the Galaxy Nexus? - Do I have better things to do than chase one Android bug after another? (I'll leave the sad story about how action bar in 4.0 / 4.1 overlaps icons on top of the overflow button for some other time... good thing I have a replacement...) -- K -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] problem solving
i have a tablet with android OS and i am have a problem to start the apparatus. it start but free and it is not loading my desktop -- 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
Re: [android-developers] Re: It seems easy to get rid of a competitor’s app
On 20 October Kristopher Micinski wrote: Is there any possibility that Google would spend enough money for tons of lawyers to protect you on an individual basis? Probably not. But these cases almost never reach a stage where a lawyer is required. Normally neither the developer who issued the bogus DMCA complaint, nor the developer who’s apps are removed have the economical strength to start a court case, or hire a lawyer. The bad guy counts on the fact that he will never be challenged – and normally he gets away with it. He gets rid of the competitor’s apps at no cost and little risk. As this case seems to indicate, many of the DMCA takedown cases are false, and they are not sent to any court, which is required in order to have the app in question removed (in this case) from the Google Play Store. Hence it would be easy for Google to check if such a takedown request is really registered with a court – or not – and not take the requested material down before that happens. If the developer who’s app is removed sent a complaint to Google, reporting that no court case has started, Google could reinstate the app. This does not involve any lawyers, and does not have to cost Google much. The result would be better conditions for the good guy developers, and may be it could also be arranged that the bad guys were punished (by Google) in some way. As far as I understand, the level of false DMCA takedown cases has reached new heights during the past year, and it is about time that something was done in order to stop this unwanted trend. Such a simple procedure by Google would save many developers from loosing their apps for no reason, and it would also serve as a warning for the bad guys, and hopefully the number of false DMCA takedown requests would be reduced. It is never too late (for Google) to start such a procedure. Use this example as a trial case, and check the removals caused/done by this bad guy. All info should be easily available. kl. 23:46:08 UTC+2 lørdag 20. oktober 2012 skrev Kristopher Micinski følgende: On Sat, Oct 20, 2012 at 4:54 AM, Petersen pete...@gmail.com javascript: wrote: As far as I understand, these guys can remove any apps from the Play Store with minimal (or no?) risk for themselves – and there is nothing we can do about it. The next time they may remove your or mine apps! Even worse, if they remove another app from you, then Google will probably also remove your developer’s account, as they will claim that you have done a copyright violation more than once! I have heard that the content of a DMCA complaint and a DMCA counter notification does not matter much. Such emails are probably not even read by humans at all. (Can that be right?). The only thing that matters, is if the “complainant” afterwards sends a notification that he intends to take the matter to court. Then the requested material is removed – regardlessly. As a court case can be very expensive, it is of course tempting for an app developer to skip it, and only say that the plans a court case. But that is abusing the DMCA takedown system, if I have understood it right. I think it is pretty sad that we have come to this, that there are developers who use mafia like methods, and that Google does not seem to be interested in doing anything about it. Now that we know about at least one developer who seems to have abused the DMCA takedown system again and again, I would had hoped that Google could have a closer look at him, and make him pay the consequences. I think that it is his apps and his account which deserve to be removed. (It should not be too difficult to verify whether he has filed court cases or not.) http://www.google.com/transparencyreport/removals/copyright/owners/12173/Zero-Noise-Apps/ This developer is now cashing in, with his paid app currently high on the “Recommended for you” list of the Google’s Play Store. Made possible by getting rid of competitors, abusing the DMCA takedown system. This is not something Google should be proud of. Please read the developer agreement you signed. There is nothing in it that says that Google has the responsibility to take legal action on your behalf. Does it suck that this happens? Yes, it does. Is there any possibility that Google would spend enough money for tons of lawyers to protect you on an individual basis? I don't think that makes sense for them, economically. (However, of course, you can argue they do something for you legally, they routinely take quite a hit from lawsuits against the Android platform from every major player..) kris -- 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] video steaming in android
Dear All In my Android app i am playing video from a remote server, for that i use video view with the video url. The problem is the video uploaded from my phone to server is not playing in the device. from the server side they are converting and stored into mp4 format. To stream a video from url need any coding in android side? if the server need to add any streaming functions in php(server side) ? please anyone help -- -- ωιтн яєgαя∂ѕ Ratheesh * *... -- 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: NDK jni recommend some examples for me
All of the following: android-ndk-r8b\samples On Thursday, October 18, 2012 6:04:54 PM UTC+1, Tony-jiang wrote: NDK jni recommend some examples for me . How to link the .so file? How to write the .mk file? everything about this . My system environment is Ubuntu 12.04 .I set everything up. -- 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] Android Jelly Bean Container
Hi, I was wondering if it is possible to obtain the Andoid shaped Google Jelly Bean Container from anywhere. I know that it is a bit random but it is cute. BTW: I am a developer. -- 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] questions about how to get the replied message by utilizing android-serialport-api
Hi, every friend This is Jerry, and I am now working on a Android project, need to connect my android-based equipment with another equipment via serial port. I downloaded the source code from the famous android-serialport-api: http://code.google.com/p/android-serialport-api/wiki/Building_the_project. Now, I can re-compile to get serial_port.so via Cygwin, and run this app on my android device. But the problem is: I want to try to receive the related data informatio after sending (HEX)FE 00 21 01 20 to the connected device via serial port, however I found this app only send 01010101...to device. Moreover, I the data received from the connected device via serial port would be sent to the backend through internet. Therefore, I want to ask: (Question1) I modified the code of Sending01010101Activity.java to send what the message I want, but nothing I can see from the Console on the UI I am wondering whether it's Ok? and How I can get and see the replied message? (Question2)As for the android equipment, how to send those replied data information sent from the connected device to backend through internet(android device is connected with internet already)? Greatly appreciate for any suggestions. Thans a lot. Jerry -- 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] Weird accelerometer maximum value
Hi, When I use function *getMaximumRange()* to get maximum value of accelerometer I get curiously large number: *10320*. The maximum value of which I managed to get is *19.5999*. Can you please tell me what number is this *10320*? It's not maximum value of accelerometer for sure. I only get this value on the HTC EVO 3D. On HTC Wildfire it's proper maximum value. -- 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] Honeymoon vs Gingerbread : accentuated keyboard letters
I have a Honeymoon tablet and I observe that the Android soft keyboard can show various french and foreign accentuated letters (ISO-8859-1) when I touch hold my french keyboard. Is it the same for a Gingerbread mobile (the type with a menu button) ? If not, how do you type accentuated letters - for your language and other languages ? -- 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
Re: [android-developers] Honeymoon vs Gingerbread : accentuated keyboard letters
I think its *Honeycomb *please dont replace the names of android os. Br, Yogi. On Sun, Oct 21, 2012 at 10:41 AM, contact.houseto...@gmail.com contact.houseto...@gmail.com wrote: I have a Honeymoon tablet and I observe that the Android soft keyboard can show various french and foreign accentuated letters (ISO-8859-1) when I touch hold my french keyboard. Is it the same for a Gingerbread mobile (the type with a menu button) ? If not, how do you type accentuated letters - for your language and other languages ? -- 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 -- 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] WifiDirect WifiP2pManager.ConnectionInfoListener
Hi WifiP2pManager.ConnectionInfoListener has a onConnectionInfoAvailable()http://developer.android.com/reference/android/net/wifi/p2p/WifiP2pManager.ConnectionInfoListener.html#onConnectionInfoAvailable(android.net.wifi.p2p.WifiP2pInfo) call back. I am wondering what info this call back is returning. onConnectionInfoAvailable(final WifiP2pInfo info) I am interested in the info details provided by the call back. Is it giving info about the device with which the current device is connected or is it giving info about current device after its connected with the other device? 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
Re: [android-developers] Re: Need Help with Android Monkey
It seems that the /mnt/sdcard doesn't have rw permissions. Can you check the filesystem permissions for /mnt/sdcard by executing mount from shell.? On Fri, Apr 6, 2012 at 9:51 AM, Diego Torres Milano dtmil...@gmail.comwrote: It seems that monkey tries to log the events to scriptlog.txt in the external storage directory and it's not optional. On Thursday, 5 April 2012 03:19:01 UTC-4, naieem.khan wrote: Hi, I need help with android monkey. I am using sdk version 4.0.3, API 15. I am getting the same error/warning in every section. The error is as follows: java.io.FileNotFoundException: /mnt/sdcard/scriptlog.txt: open failed: EROFS (Read-only file system) I don't have any sd card mounted, and infact the above mentioned folders do not exist! I have no idea why the monkey is trying to read file from that location. I think there is a problem somewhere, can you tell me how to solve this? I am attaching the result for the following command, [our project package is android.se1 and I executed for seed (2 in this case]. The command is as follows: adb shell monkey –p android.se1 -s 2 –v 500 The results: :Monkey: seed=2 count=500 :AllowPackage: android.se1 :IncludeCategory: android.intent.category.**LAUNCHER :IncludeCategory: android.intent.category.MONKEY // Event percentages: // 0: 15.0% // 1: 10.0% // 2: 2.0% // 3: 15.0% // 4: 25.0% // 5: 15.0% // 6: 2.0% // 7: 2.0% // 8: 1.0% // 9: 13.0% :Switch: #Intent;action=android.intent.**action.MAIN;category=android.** intent.category.LAUNCHER;**launchFlags=0x1000;** component=android.se1/.**MavBulletinActivity;end // Allowing start of Intent { act=android.intent.action.MAIN cat=[android.intent.category.**LAUNCHER] cmp=android.se1/.**MavBulletinActivity } in package android.se1 java.io.FileNotFoundException: /mnt/sdcard/scriptlog.txt: open failed: EROFS (Read-only file system) java.io.FileNotFoundException: /mnt/sdcard/scriptlog.txt: open failed: EROFS (Read-only file system) java.io.FileNotFoundException: /mnt/sdcard/scriptlog.txt: open failed: EROFS (Read-only file system) :Sending Trackball (ACTION_MOVE): 0:(4.0,-2.0) java.io.FileNotFoundException: /mnt/sdcard/scriptlog.txt: open failed: EROFS (Read-only file system) java.io.FileNotFoundException: /mnt/sdcard/scriptlog.txt: open failed: EROFS (Read-only file system) java.io.FileNotFoundException: /mnt/sdcard/scriptlog.txt: open failed: EROFS (Read-only file system) ..**. In the end, Events injected: 500 :Dropped: keys=2 pointers=3 trackballs=0 flips=0 ## Network stats: elapsed time=41123ms (41123ms mobile, 0ms wifi, 0ms not connected) // Monkey finished I have attached the results for only one command, because rest of the commands show the same exception like above. Please give me some suggestions. I have an assignment due this monday. 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 -- Thanks Regards, M.Srikanth Kumar. -- 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
Re: [android-developers] Re: How to get a button id from an app(I don't have the source)
Thanks Diego, AndroidViewClient was really nice one and worked like a charm.. On Wed, Oct 17, 2012 at 8:30 PM, Diego Torres Milano dtmil...@gmail.comwrote: You mentioned you don't have the source, so we assume it's not your APK, then Instrumentation won't work because both packages must be signed by the same key otherwise you'll receive a SecurityException. I don't know what do you want the id for, but using AndroidViewClient [ https://github.com/dtmilano/AndroidViewClient] you can easily get the dump of the View tree and get Ids an other properties. On Wednesday, 17 October 2012 06:48:47 UTC-4, srikanth wrote: Hi Kris, How you will do/get these things via instrumentation? On Wed, Oct 17, 2012 at 7:40 AM, Kristopher Micinski krismi...@gmail.com wrote: Umm slight disagree I do this all the time in instrumentation. kris On Tue, Oct 16, 2012 at 8:14 AM, Dhruv Kumar dhru...@gmail.com wrote: Without Application you can't get the id . By the way you can get id e.g text = (TextView)findViewById(R.id.**text); where id mention in xml file. On Tuesday, October 16, 2012 6:55:11 AM UTC-4, srikanth wrote: Hi, I want to get the element/button id in an app(I don't have the apk).. can any one please tell me on how to get the id? 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-d...@**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=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**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=enhttp://groups.google.com/group/android-developers?hl=en -- Thanks Regards, M.Srikanth Kumar. -- Thanks Regards, M.Srikanth Kumar. -- 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] Html line(horizontal rule) is not supporting in Android Gmail client
Hello Everyone, [please find attached image] This is sample image( ) of compose message box of android gmail client , here i have to insert a line (Html line with the help of Hr tag or table) at position (Red mark between that two statements) with the *custom html message* , i try a lot but i am not getting any line. -- 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=enattachment: demo.png
[android-developers] hi, if u know the reason please help me.....:)
Hi, I am attached the using code for record and play the audio above. My Problem is.. My audio is save music player after closing the emulator I don't know the reason... But i need the recorded voice immediately play after recording so any know reason or know how to solve the problem?Please help me 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=enpackage com.varma.samples.audiorecorder; import java.io.BufferedInputStream; import java.io.DataInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import android.annotation.SuppressLint; import android.app.Activity; import android.media.AudioFormat; import android.media.AudioManager; import android.media.AudioRecord; import android.media.AudioTrack; import android.media.MediaRecorder; import android.os.Bundle; import android.os.Environment; import android.util.Log; import android.view.KeyEvent; import android.view.View; import android.widget.Button; import android.widget.Toast; @SuppressLint(SdCardPath) public class RecorderActivity extends Activity { private static final int RECORDER_SAMPLERATE = 8000; private static final int RECORDER_CHANNELS = AudioFormat.CHANNEL_IN_MONO; private static final int RECORDER_AUDIO_ENCODING = AudioFormat.ENCODING_PCM_16BIT; private AudioRecord recorder = null; private AudioTrack audioTrack=null; private Thread recordingThread = null; private Thread playingThread = null; private boolean isRecording = false; private boolean isPlaying = false; String filePath; short sData[]; byte bData[]; private File outfile = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); setButtonHandlers(); enableButtons(false); enableButtonsplay(false); int bufferSize = AudioRecord.getMinBufferSize(RECORDER_SAMPLERATE, RECORDER_CHANNELS, RECORDER_AUDIO_ENCODING); System.out.println(BUFFER SIZE VALUE IS + bufferSize); } private void enableButtonsplay(boolean isPlaying) { enableButton(R.id.play, !isPlaying); enableButton(R.id.btnplaystop, isPlaying); } private void setButtonHandlers() { ((Button) findViewById(R.id.btnStart)).setOnClickListener(btnClick); ((Button) findViewById(R.id.btnStoprecord)).setOnClickListener(btnClick); ((Button) findViewById(R.id.play)).setOnClickListener(btnClick); ((Button) findViewById(R.id.btnplaystop)).setOnClickListener(btnClick); } private void enableButton(int id, boolean isEnable) { ((Button) findViewById(id)).setEnabled(isEnable); } private void enableButtons(boolean isRecording) { enableButton(R.id.btnStart, !isRecording); enableButton(R.id.btnStoprecord, isRecording); } int BufferElements2Rec = 1024; // want to play 2048 (2K) since 2 bytes we use only 1024 int BytesPerElement = 2; // 2 bytes in 16bit format private void startRecording() { recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, RECORDER_SAMPLERATE, RECORDER_CHANNELS, RECORDER_AUDIO_ENCODING, BufferElements2Rec*BytesPerElement); recorder.startRecording(); isRecording = true; /*//filePath = Environment.getExternalStorageDirectory() + /Record/test_ + System.currentTimeMillis() + .3gp;; System.out.println(filePath: +filePath); */ recordingThread = new Thread(new Runnable() { public void run() { writeAudioDataToFile(); } }, AudioRecorder Thread); recordingThread.start(); } private byte[] short2byte(short[] sData) { int shortArrsize= sData.length; byte[] bytes = new byte[shortArrsize*2]; for (int i=0; i shortArrsize; i++) { bytes[i*2] = (byte) (sData[i] 0x00FF); bytes[(i*2)+1] = (byte) (sData[i] 8); sData[i] = 0; } return bytes; } private void writeAudioDataToFile() { // Write the output audio in byte File sd = Environment.getExternalStorageDirectory(); sd.mkdir(); try { outfile=File.createTempFile(file, .amr,sd); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } short sData[] = new short[BufferElements2Rec]; FileOutputStream os = null; try { os = new FileOutputStream(outfile); } catch (FileNotFoundException e) { e.printStackTrace(); } while (isRecording) { // gets the voice output from microphone to byte format
[android-developers] Re: NDK jni recommend some examples for me
There is a sample example as well as Documents which bundled with Android NDK Read the documents and try to compile it. if you face any problem then post it. definitely you will get 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
Re: [android-developers] Installation requires org.eclipse.wst.sse.core - how to download and install?
Tor, Thanks for the reply. I actually submitted this original post quite some time ago and it just now appeared. I wish I had your answer back then. It would have made my life a lot easier. I stumbled onto a solution myself just by trial and error: After installing Eclipse 4.2 (Juno), click on help - install new software... Click on the link Available Software Sites. If Juno is not already there click on the Add button. In the Add Site form type Juno into the Name field and http://download.eclipse.org/releases/juno; into the Location field. Click the OK button. I suspect if I had done either of your solutions, I would have never run into this problem in the first place. Thanks again. Dogulas On Sunday, October 21, 2012 11:51:51 PM UTC-4, Tor Norbye wrote: In the first page of the install wizard, make sure the Contact all update sites during the install to find required software is checked. Alternatively, download the Mobile edition which I think has all the WST components preinstalled. -- Tor On Thu, Oct 18, 2012 at 9:11 AM, dogulas doug@accipitersoftware.comjavascript: wrote: I have downloaded the Android SDK v20.0.3 and was going through the process of downloading and installing the Android ADT Plugin into Eclipse. As per the instructions on Installing the Eclipse Plugin ( http://developer.android.com/sdk/installing/installing-adt.html), I downloaded and installed Eclipse Classic 4.2.1 for Windows 64 Bit. Continuing with the instructions in Download the ADT Plugin on the same page, when I got to step 5 and clicked next, I got the following error: Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 20.0.3.v201208082019-427395 (com.android.ide.eclipse.adt.feature.group 20.0.3.v201208082019-427395) Missing requirement: Android Development Tools 20.0.3.v201208082019-427395 (com.android.ide.eclipse.adt.feature.group 20.0.3.v201208082019-427395) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found In the section Other install errors, it describes a condition similar to mine so I went to the page ADT Installation Error: requires plug-in org.eclipse.wst.sse.ui. ( http://developer.android.com/guide/faq/troubleshooting.html). In this paragraph it describes how to download components for Eclipse 3.3 and for Eclipse 3.4. I have the most recent version of Eclipse 4.2.1. Neither of the instructions seem compatable for my version of Eclipse. Can someone tell me how to download and install 'org.eclipse.wst.sse.core 0.0.0' into Eclipse 4.2.1? I have looked through the forum, FAQs, and have Googled for this and haven't found an answer. Any pointers are welcome. Dogulas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is it redundant to call invalidate() in the onSizeChanged method?
I looked at the setFrame() method of the parent view class. This method calls onSizeChanged() only if there is a change in size of that view. If there is a change in size it also calls invalidate(). So am I right in thinking that it is redundant to call invalidate() in onSizeChanged() method. Also I don't see any difference between taking the width and height from the onSizeChanged() or from the view methods of getTop(), getLeft() etc. am I missing something here? Thanks a lot Satya -- 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: Weird accelerometer maximum value
My Asus TF300T also returns an unusually high maximum range value, my other devices return a reasonable range, so I also have been wondering what that value actually is. On Monday, October 22, 2012 3:48:19 AM UTC-5, intersum wrote: Hi, When I use function *getMaximumRange()* to get maximum value of accelerometer I get curiously large number: *10320*. The maximum value of which I managed to get is *19.5999*. Can you please tell me what number is this *10320*? It's not maximum value of accelerometer for sure. I only get this value on the HTC EVO 3D. On HTC Wildfire it's proper maximum value. -- 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: If hdpi and xhdpi drawables defined, which drawable is used as base for an mdpi device?
Wouldn't it be better for mdpi to use xhdpi because wouldn't you get better quality by just halving the xhdpi resolution? Nope, it wouldn't be better. If the images are the same, just scaled versions of one particular base-image, lpdi and mdpi devices scale *down *to the desired size, which means that you throw away information. If you would use a larger image (xhdpi instead of the hdpi version), you'd just throw away more information than when scaling down form a smaller image. Using the smaller (hdpi) image is better for memory usage, since you won't load the larger (xhdpi) image into memory. On Sunday, October 21, 2012 8:38:18 PM UTC-4, Mark Carter wrote: So I ran some tests on Gingerbread with drawables only defined for hdpi and xhdpi. Both ldpi devices and mdpi devices used the hdpi drawables. Wouldn't it be better for mdpi to use xhdpi because wouldn't you get better quality by just halving the xhdpi resolution? BTW, currently xhdpi and hdpi collectively cover about 80% of devices: http://developer.android.com/about/dashboards/index.html On Friday, October 19, 2012 12:29:14 AM UTC+11, RichardC wrote: I think none of the above but you should read: http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch and also this is very easy to test just use different coloured bitmaps in each qualified folder. On Thursday, October 18, 2012 1:53:40 PM UTC+1, Mark Carter wrote: If I define a drawable in hdpi and xhdpi but not mdpi, will Android (on an mdpi device) take the xhdpi drawable and scale it down by a factor of two or will it use the nearest defined density (hdpi) drawable? -- 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] Can't setCurrentItem on orientation change correctly
I've got a ViewPager that should change the page displayed upon orientation change. What I would like to achieve is to restart from the first fragment when i switch from landscape to portrait or vice-versa. I supposed was just necessary to set a mViewPager.setCurrentItem(0, false); in the onCreate statement but it doesn't seems to work: It seems that the last position displayed is in someway cached and automatically restored by the system. I've logged all the steps involved by the adapter and by the SimpleOnPageChangeListener and I really don't understand what could be wrong... //Turning to the third page in Portrait Mode 10-22 16:51:25.781: D/ViewerActivity(11381): onPageSelected - position 2 10-22 16:51:26.039: D/ViewerActivity(11381): destroy 0 10-22 16:51:26.039: D/ViewerActivity(11381): instatiate 3 10-22 16:51:26.039: D/ViewerActivity(11381): getItem 3 //Switched to Landscape: call mViewPager.setCurrentItem(0); in the onCreate method 10-22 16:51:30.734: D/ViewerActivity(11381): current Item: 0 //Adapter calls restore state 10-22 16:51:30.761: D/ViewerActivity(11381): restoreState That's what is not clear to me: a call to the SimpleOnPageChangeListener.onPageSelected is issued with the same value as the last page shown before the orientation change *10-22 16:51:30.761: D/ViewerActivity(11381): onPageSelected - position 2* * * //the adapter Instantiate the current and the adjacents pages 10-22 16:51:30.801: D/ViewerActivity(11381): instatiate 2 10-22 16:51:30.801: D/ViewerActivity(11381): getItem 2 10-22 16:51:30.801: D/ViewerActivity(11381): instatiate 1 10-22 16:51:30.801: D/ViewerActivity(11381): getItem 1 10-22 16:51:30.804: D/ViewerActivity(11381): instatiate 3 10-22 16:51:30.804: D/ViewerActivity(11381): getItem 3 Anyone has 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] ViewPager not updating the current item using setCurrentItem on orientation change.
I've got a ViewPager that should change the page displayed upon orientation change. What I would like to achieve is to restart from the first fragment when i switch from landscape to portrait or vice-versa. I supposed was just necessary to set a mViewPager.setCurrentItem(0, false); in the onCreate statement but it doesn't seems to work: It seems that the last position displayed is in someway cached and automatically restored by the system. I've logged all the steps involved by the adapter and by the SimpleOnPageChangeListener and I really don't understand what could be wrong... //Turning to the third page in Portrait Mode 10-22 16:51:25.781: D/ViewerActivity(11381): onPageSelected - position 2 10-22 16:51:26.039: D/ViewerActivity(11381): destroy 0 10-22 16:51:26.039: D/ViewerActivity(11381): instatiate 3 10-22 16:51:26.039: D/ViewerActivity(11381): getItem 3 //Switched to Landscape: call mViewPager.setCurrentItem(0); in the onCreate method 10-22 16:51:30.734: D/ViewerActivity(11381): current Item: 0 //Adapter calls restore state 10-22 16:51:30.761: D/ViewerActivity(11381): restoreState That's what is not clear to me: a call to the SimpleOnPageChangeListener.onPageSelected is issued with the same value as the last page shown before the orientation change *10-22 16:51:30.761: D/ViewerActivity(11381): onPageSelected - position 2* * * //the adapter Instantiate the current and the adjacents pages 10-22 16:51:30.801: D/ViewerActivity(11381): instatiate 2 10-22 16:51:30.801: D/ViewerActivity(11381): getItem 2 10-22 16:51:30.801: D/ViewerActivity(11381): instatiate 1 10-22 16:51:30.801: D/ViewerActivity(11381): getItem 1 10-22 16:51:30.804: D/ViewerActivity(11381): instatiate 3 10-22 16:51:30.804: D/ViewerActivity(11381): getItem 3 Anyone has 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 camera orientation problem
Camera.setDisplayOrientation works for me, I could never seem to get any rotation stuff to work that I tried to set using the Camera.Parameters. -gw On Monday, October 22, 2012 2:23:46 AM UTC-4, Haris wrote: Hi all For my application I am using android native camera and previewing the image using surface view. But everything is working except the camera orientation. When I open the camera by setting screenOrientation=landscape on manifest file I am getting the preview without any problem in landscape mode. But I need to take image in portrait mode, for this I changed my manifest like android:screenOrientation=portrait and change my code like mCamera.setDisplayOrientation(90), params.set(orientation, landscape),params.set(rotation, 90), but still I am getting 90 degree rotated image. I searched a lot but nothing solved my problem... And my code is public void setupCamera(int width, int height) { Log.i(TAG, setupCamera); synchronized (this) { if (mCamera != null) { Camera.Parameters params = mCamera.getParameters(); ListCamera.Size sizes = params.getSupportedPreviewSizes(); ListCamera.Size imgsize=params.getSupportedPictureSizes(); mFrameWidth = width; mFrameHeight = height; // mCamera.setDisplayOrientation(90); params.set(orientation, landscape); params.set(rotation, 90); // selecting optimal camera preview size { int minDiff = Integer.MAX_VALUE; for (Camera.Size size : sizes) { if (Math.abs(size.height - height) minDiff) { mFrameWidth = size.width; mFrameHeight = size.height; minDiff = Math.abs(size.height - height); } } } params.setPreviewSize(getFrameWidth(), getFrameHeight()); ListString FocusModes = params.getSupportedFocusModes(); if (FocusModes.contains(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO)) { params.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO); } mCamera.setParameters(params); mCamera.startPreview(); } } } I am using micromax A52 mmodel with android 2.3 -- 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: Weird accelerometer maximum value
Please see this: http://www.specsensors.com/digital_accelerometer.asp?gclid=CNSfw9f3lLMCFXSSPAodhlcAUA g Range *±250 g or ±500 g* * * * * On Monday, October 22, 2012 3:48:19 AM UTC-5, intersum wrote: Hi, When I use function *getMaximumRange()* to get maximum value of accelerometer I get curiously large number: *10320*. The maximum value of which I managed to get is *19.5999*. Can you please tell me what number is this *10320*? It's not maximum value of accelerometer for sure. I only get this value on the HTC EVO 3D. On HTC Wildfire it's proper maximum value. -- 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] FTDI 232R and Android 4.0
Hi all, I have an FTDI 232R chip in my USB peripheral device. I have a Toshiba AT300 USB host (supposedly) tablet. The FTDI website says that I should be able to connect with their new driver package. there is even a test program. http://www.ftdichip.com/Support/Documents/TechnicalNotes/TN_134_FTDI_Android_D2XX_Driver.pdf The problem is my device is not getting power (it has a power LED) and so cannot be seen by the tablet. I do not want to root the device so I hope I can get around this. Any suggestions would be very helpful. -- 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: Weird accelerometer maximum value
BTW, if you drop your phone, you will probably get a huge G force (deceleration) when it hits the ground. The phone will go from X feet/second to 0 feet/second in a time of like .0001 seconds (sort of). accel = deltaV / deltaT accel = 9 / .1 (just say it is going 9 feet/second) accel = 9 (aka big number) On Monday, October 22, 2012 3:48:19 AM UTC-5, intersum wrote: Hi, When I use function *getMaximumRange()* to get maximum value of accelerometer I get curiously large number: *10320*. The maximum value of which I managed to get is *19.5999*. Can you please tell me what number is this *10320*? It's not maximum value of accelerometer for sure. I only get this value on the HTC EVO 3D. On HTC Wildfire it's proper maximum value. -- 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
Re: [android-developers] java.lang.NullPointerException and Unknown Source
On Mon, Oct 22, 2012 at 1:25 AM, thejaswi s thejasw...@gmail.com wrote: Help me out where I am going wrong. Thanks for help in advance. What is sa.appoptix.com.activity.EmailRegistartion ? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] How to delete videos from youtube
On Thu, Oct 18, 2012 at 1:11 AM, varsha pelliti varshapell...@gmail.comwrote: What i need is to delete the video which i had uploaded. http://code.google.com/p/ytd-android/Can anyone help? Read the YouTube API. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Somebody help me :)
On Sun, Oct 21, 2012 at 8:23 AM, Tayip TÜRK tayipt...@gmail.com wrote: How can I do simple a FlashLigth application like this. this content is five buttons(blue,red...). when I click on a button(ex:blue),screen must be blue. What specifically do you have a problem with? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] dtmf reading
Is it possible to read DTMF codes using andriod public apis? -- 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
Re: [android-developers] dtmf reading
On Tue, Oct 23, 2012 at 1:18 AM, coder_sym saj...@gmail.com wrote: Is it possible to read DTMF codes using andriod public apis? Since you can't record a conversation, I'd say no. If you are using SIP with out of band DTMF, you should be able get them, but I don't think the native SIP client provides this functionality (check though). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] dtmf reading
no, kris On Mon, Oct 22, 2012 at 12:18 PM, coder_sym saj...@gmail.com wrote: Is it possible to read DTMF codes using andriod public apis? -- 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 -- 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
Re: [android-developers] dtmf reading
So its a definite no? On Monday, October 22, 2012 8:42:57 PM UTC+3, Kristopher Micinski wrote: no, kris -- 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: dtmf reading
I seriously doubt DTMF is used anywhere. When you press a number key, the sound effect is just for fun. On Monday, October 22, 2012 11:18:21 AM UTC-5, coder_sym wrote: Is it possible to read DTMF codes using andriod public apis? -- 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
Re: [android-developers] dtmf reading
Yes. You can't read the in call audio stream, ever, for any reason, as Nicolay points out if you are using SIP out of band and don't need access to the in call stream then possibly. But Android has *no interface to the telephony hardware* other than RIL using a simple protocol. kris On Mon, Oct 22, 2012 at 1:44 PM, coder_sym saj...@gmail.com wrote: So its a definite no? On Monday, October 22, 2012 8:42:57 PM UTC+3, Kristopher Micinski wrote: no, kris -- 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 -- 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
Re: [android-developers] To ContentProvide Sqlite DB or Not
On Mon, Oct 22, 2012 at 3:48 AM, Piren gpi...@gmail.com wrote: Why do you prefer ASyncTasks to Loaders? Greater flexibility. Since they are handicapped in ICS, isn't it better to stop using them? Since they are not handicapped in ICS, they are perfectly fine to use. In fact, CursorLoader uses AsyncTask under the covers. If by handicapped in ICS you mean the new default serialized behavior for execute(), use executeOnExecutor() and opt into the full thread pool. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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
Re: [android-developers] To ContentProvide Sqlite DB or Not
On Mon, Oct 22, 2012 at 3:48 AM, Piren gpi...@gmail.com wrote: Why do you prefer ASyncTasks to Loaders? Since they are handicapped in ICS, isn't it better to stop using them? Why do you think they're handicapped? ... That doesn't make any sense. kris -- 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] foreground hither
Is there a way to use the Devices window to select an Activity and tell it to come to the foreground? -- 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
Re: [android-developers] Re: the Welcome to Android Development window doesn't appears
Thank you, Tor, but I did'nt see this window at first time, so I couldn't install the existing SDK on Eclipse, it's that what I'm trying to get. Would you know how can I do it? Thank you! El lunes, 22 de octubre de 2012 05:54:30 UTC+2, Tor Norbye escribió: The Welcome Wizard is only shown the very first time you run the Android tools (when we need to get you to point Eclipse to an SDK install, etc). In addition to storing the path to the Android SDK in the Eclipse workspace settings, it also stores it in your home directory's .android/ddms.cfg file. -- Tor On Thu, Oct 18, 2012 at 1:14 PM, Cristina Blanco cbc.cr...@gmail.comjavascript: wrote: I have the same problem. I use Ubuntu 32 bits and the same Eclipse and ADT's version. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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
Re: [android-developers] weak USB juice?
I think there is something wrong with the Samsung. When I look at the USB settings and compare it with the Nexus, for some reason it is only requiring 96 mA instead of 500. https://lh3.googleusercontent.com/-FKiUAisZ4y8/UIWWLEI1u8I/ACo/6BnhVI5juW4/s1600/Screen+Shot+2012-10-22+at+1.42.53+PM.png https://lh3.googleusercontent.com/-s6YR3967J8Y/UIWWHcywk8I/ACk/4nDqeF2gMMU/s1600/Screen+Shot+2012-10-22+at+1.41.02+PM.png On Friday, October 19, 2012 9:07:51 PM UTC-5, Kristopher Micinski wrote: This is a fairly well discussed issue, I think if you google android phone computer wall charger not as fast you could probably get the answer. Anyway,... http://electronics.stackexchange.com/questions/5498/how-to-get-more-than-100ma-from-a-usb-port kris On Fri, Oct 19, 2012 at 10:55 AM, bob b...@coolfone.comze.comjavascript: wrote: I noticed that when my Galaxy Tab is connected to my PC, the battery level continues to decline until I have to take it out and charge it from a wall. Is there a way around this? I would think it should be able to charge or at least maintain its level from the USB juice. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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] status bar clock stops updating
Hi all, I ran into a problem testing clock update. I am testing on Beagleboard with Gingerbread 2.3 Using a clock source like 3G modem, the network time can be updated to refresh the status bar clock but sometimes the status bar clock stops updating. the command line 'date' command is working as expected, so it appears to be a bug in the status bar. Any ideas on how to fix this? I'm not sure what android bit is updating the status bar clock but if you can point it out that might give a clue Thanks, Steve -- 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
Re: [android-developers] weak USB juice?
Most tablets need 11-12V to charge, while phones and the Nexus 7 need 5V. Read the fine print on the chargers. USB2 is 5V. -- K 2012/10/22 bob b...@coolfone.comze.com I think there is something wrong with the Samsung. When I look at the USB settings and compare it with the Nexus, for some reason it is only requiring 96 mA instead of 500. https://lh3.googleusercontent.com/-FKiUAisZ4y8/UIWWLEI1u8I/ACo/6BnhVI5juW4/s1600/Screen+Shot+2012-10-22+at+1.42.53+PM.png https://lh3.googleusercontent.com/-s6YR3967J8Y/UIWWHcywk8I/ACk/4nDqeF2gMMU/s1600/Screen+Shot+2012-10-22+at+1.41.02+PM.png On Friday, October 19, 2012 9:07:51 PM UTC-5, Kristopher Micinski wrote: This is a fairly well discussed issue, I think if you google android phone computer wall charger not as fast you could probably get the answer. Anyway,... http://electronics.**stackexchange.com/questions/** 5498/how-to-get-more-than-**100ma-from-a-usb-porthttp://electronics.stackexchange.com/questions/5498/how-to-get-more-than-100ma-from-a-usb-port kris On Fri, Oct 19, 2012 at 10:55 AM, bob b...@coolfone.comze.com wrote: I noticed that when my Galaxy Tab is connected to my PC, the battery level continues to decline until I have to take it out and charge it from a wall. Is there a way around this? I would think it should be able to charge or at least maintain its level from the USB juice. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**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=enhttp://groups.google.com/group/android-developers?hl=en -- 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 -- 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
Re: [android-developers] weak USB juice?
The charger for the Samsung Galaxy Tab I have appears to be five volts: https://lh6.googleusercontent.com/-zTCipNJep-M/UIWncXr_fII/AC8/e3kwq8RE6zk/s1600/fivevolts.jpg On Monday, October 22, 2012 2:07:36 PM UTC-5, Kostya Vasilyev wrote: Most tablets need 11-12V to charge, while phones and the Nexus 7 need 5V. Read the fine print on the chargers. USB2 is 5V. -- K 2012/10/22 bob b...@coolfone.comze.com javascript: I think there is something wrong with the Samsung. When I look at the USB settings and compare it with the Nexus, for some reason it is only requiring 96 mA instead of 500. https://lh3.googleusercontent.com/-FKiUAisZ4y8/UIWWLEI1u8I/ACo/6BnhVI5juW4/s1600/Screen+Shot+2012-10-22+at+1.42.53+PM.png https://lh3.googleusercontent.com/-s6YR3967J8Y/UIWWHcywk8I/ACk/4nDqeF2gMMU/s1600/Screen+Shot+2012-10-22+at+1.41.02+PM.png On Friday, October 19, 2012 9:07:51 PM UTC-5, Kristopher Micinski wrote: This is a fairly well discussed issue, I think if you google android phone computer wall charger not as fast you could probably get the answer. Anyway,... http://electronics.**stackexchange.com/questions/** 5498/how-to-get-more-than-**100ma-from-a-usb-porthttp://electronics.stackexchange.com/questions/5498/how-to-get-more-than-100ma-from-a-usb-port kris On Fri, Oct 19, 2012 at 10:55 AM, bob b...@coolfone.comze.com wrote: I noticed that when my Galaxy Tab is connected to my PC, the battery level continues to decline until I have to take it out and charge it from a wall. Is there a way around this? I would think it should be able to charge or at least maintain its level from the USB juice. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**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=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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
Re: [android-developers] To ContentProvide Sqlite DB or Not
Thanks a lot for your feedback Mark. Do you have a rule of thumb you apply to decide on AsyncTasks vs Loaders? For example, if you expect something to take less than x mins, use AsyncTask, otherwise use a Loader? On Sunday, October 21, 2012 5:36:10 PM UTC-4, Mark Murphy (a Commons Guy) wrote: On Fri, Oct 19, 2012 at 8:13 PM, ncdroid jbl...@gmail.com javascript: wrote: Can someone please answer definitively for me the following: Are ContentProviders required to use Loaders w/Sqlite? No. If you really want to use loaders with SQLite directly, I have a SQLiteCursorLoader that works without a ContentProvider: https://github.com/commonsguy/cwac-loaderex If ContentProviders are *not* required to use Loaders w/Sqlite, is there any recommended example which shows how to use the two together? What is (are?) the two in this sentence? If Sqlite has a recommended way to achieve functional parity to Loaders with another method, what is that method? :: shrug :: I use ordinary AsyncTasks myself, way more often than Loaders. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.2 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: How to do HTTP post requests from Android on my Mule service bus app.
You may also want to use java.net.Socket for finer control. On Thursday, October 18, 2012 2:50:29 PM UTC-5, Speedy31 wrote: Hi guys, I'm pretty new to Android software development, but have to say I like it more each day! I would like my android app to contact my servicebus over a simple HTTP post request, in which I'm able to specify: URL, portnumber, path and body, etc. Below you can see a screenshot of an old application called WebFetch what I always use to test the communication and check resulted data objects. Can someone explain me how to achieve the same results directly from the android code? Thanks in advance, Wim https://lh5.googleusercontent.com/-C2x5Lq6g8-0/UIBdIJfEv3I/AAM/KRKQPNE73F8/s1600/webfetch.png -- 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
Re: [android-developers] To ContentProvide Sqlite DB or Not
On Mon, Oct 22, 2012 at 4:25 PM, ncdroid jbla...@gmail.com wrote: Thanks a lot for your feedback Mark. Do you have a rule of thumb you apply to decide on AsyncTasks vs Loaders? For example, if you expect something to take less than x mins, use AsyncTask, otherwise use a Loader? CursorLoader and my loaders *use* AsyncTask under the covers. Hence, time (take less than x mins) is not a particularly useful metric here -- the behavior using Loaders or using AsyncTask directly should be roughly equivalent. If you like the Loader framework, use it, particularly if you are also using a ContentProvider. If you do not like the Loader framework, don't use it. Unlike, say, trying to avoid EditText, the use of Loaders is purely optional. In particular: -- you can't use Loaders on API Level 10 and below unless you are also inheriting from FragmentActivity -- you can only use Loaders from an Activity, not a Service, at least at present In those cases, your hands are tied: you have to avoid Loaders. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.2 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
Re: [android-developers] weak USB juice?
Interesting. All my 10.1 tablets (three of them) have chargers that output 10-11 V. But then, the 5V could be wired differently (from USB) at the charger end, or the device could talk to the charger to trigger the actual high current output (safety regulations? marketing?) -- K 2012/10/23 bob b...@coolfone.comze.com The charger for the Samsung Galaxy Tab I have appears to be five volts: On Monday, October 22, 2012 2:07:36 PM UTC-5, Kostya Vasilyev wrote: Most tablets need 11-12V to charge, while phones and the Nexus 7 need 5V. Read the fine print on the chargers. USB2 is 5V. -- K 2012/10/22 bob b...@coolfone.comze.com I think there is something wrong with the Samsung. When I look at the USB settings and compare it with the Nexus, for some reason it is only requiring 96 mA instead of 500. https://lh3.googleusercontent.com/-FKiUAisZ4y8/UIWWLEI1u8I/ACo/6BnhVI5juW4/s1600/Screen+Shot+2012-10-22+at+1.42.53+PM.png https://lh3.googleusercontent.com/-s6YR3967J8Y/UIWWHcywk8I/ACk/4nDqeF2gMMU/s1600/Screen+Shot+2012-10-22+at+1.41.02+PM.png On Friday, October 19, 2012 9:07:51 PM UTC-5, Kristopher Micinski wrote: This is a fairly well discussed issue, I think if you google android phone computer wall charger not as fast you could probably get the answer. Anyway,... http://electronics.**stackexchan**ge.com/questions/**5498/how-to-** get-more-than-**100ma-from-a-**usb-porthttp://electronics.stackexchange.com/questions/5498/how-to-get-more-than-100ma-from-a-usb-port kris On Fri, Oct 19, 2012 at 10:55 AM, bob b...@coolfone.comze.com wrote: I noticed that when my Galaxy Tab is connected to my PC, the battery level continues to decline until I have to take it out and charge it from a wall. Is there a way around this? I would think it should be able to charge or at least maintain its level from the USB juice. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscribe**@googlegroups.com For more options, visit this group at http://groups.google.com/**group**/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**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=enhttp://groups.google.com/group/android-developers?hl=en -- 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 -- 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
Re: [android-developers] To ContentProvide Sqlite DB or Not
Thanks again for sharing your experience and guidance on this subject Mark. After getting lost in the documentation for so many hours, nice to have this communicated in such matter of fact language. On Monday, October 22, 2012 4:54:10 PM UTC-4, Mark Murphy (a Commons Guy) wrote: On Mon, Oct 22, 2012 at 4:25 PM, ncdroid jbl...@gmail.com javascript: wrote: Thanks a lot for your feedback Mark. Do you have a rule of thumb you apply to decide on AsyncTasks vs Loaders? For example, if you expect something to take less than x mins, use AsyncTask, otherwise use a Loader? CursorLoader and my loaders *use* AsyncTask under the covers. Hence, time (take less than x mins) is not a particularly useful metric here -- the behavior using Loaders or using AsyncTask directly should be roughly equivalent. If you like the Loader framework, use it, particularly if you are also using a ContentProvider. If you do not like the Loader framework, don't use it. Unlike, say, trying to avoid EditText, the use of Loaders is purely optional. In particular: -- you can't use Loaders on API Level 10 and below unless you are also inheriting from FragmentActivity -- you can only use Loaders from an Activity, not a Service, at least at present In those cases, your hands are tied: you have to avoid Loaders. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.2 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
Re: [android-developers] Re: Updating progress bar in Application while downloading file using DownloadManager
Ok. It will be something like this: // Obtain the Download Manager Service. String serviceString = Context.DOWNLOAD_SERVICE; DownloadManager downloadManager; downloadManager = (DownloadManager)getSystemService(servicestring); // Create a query for paused downloads. Query pausedDownloadQuery = new Query(); pausedDownloadQuery.setFilterByStatus(DownloadManager.STATUS_PAUSED); // Query the Download Manager for paused downloads. Cursor pausedDownloads = downloadManager.query(pausedDownloadQuery); // Find the column indexes for the data we require. int reasonIdx = pausedDownloads.getColumnIndex(DownloadManager.COLUMN_REASON); int titleIdx = pausedDownloads.getColumnIndex(DownloadManager.COLUMN_TITLE); int fileSizeIdx = pausedDownloads.getColumnIndex(DownloadManager.COLUMN_TOTAL_SIZE_BYTES); int bytesDLIdx = pausedDownloads.getColumnIndex(DownloadManager.COLUMN_BYTES_DOWNLOADED_SO_FAR); // Iterate over the result Cursor. while (pausedDownloads.moveToNext()) { // Extract the data we require from the Cursor. String title = pausedDownloads.getString(titleIdx); int fileSize = pausedDownloads.getInt(fileSizeIdx); int bytesDL = pausedDownloads.getInt(bytesDLIdx); // Translate the pause reason to friendly text. int reason = pausedDownloads.getInt(reasonIdx); ... } *Meier, Reto (2012-04-05). Professional Android 4 Application Development (Wrox Professional Guides) (Kindle Locations 5761-5779). John Wiley and Sons. Kindle Edition. * * * * * On Friday, September 14, 2012 7:43:46 PM UTC-5, Vinay Kumar wrote: But AsyncTask doesn't had an option to resume the download from where it previously stopped (in case of device restart or network failure) On Sat, Sep 15, 2012 at 2:58 AM, bob b...@coolfone.comze.comjavascript: wrote: Sounds like a job for an AsyncTask. On Friday, September 14, 2012 4:56:15 AM UTC-5, Vinay Kumar wrote: Hi All, I was wondering if anybody knew how to update progress Bar in the application while attempting to download file using download manager for android? Please share your ideas. 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-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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
Re: [android-developers] dtmf reading
Its a bit strange :) i had high hopes on andriod ;) On 10/22/12, Kristopher Micinski krismicin...@gmail.com wrote: Yes. You can't read the in call audio stream, ever, for any reason, as Nicolay points out if you are using SIP out of band and don't need access to the in call stream then possibly. But Android has *no interface to the telephony hardware* other than RIL using a simple protocol. kris On Mon, Oct 22, 2012 at 1:44 PM, coder_sym saj...@gmail.com wrote: So its a definite no? On Monday, October 22, 2012 8:42:57 PM UTC+3, Kristopher Micinski wrote: no, kris -- 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 -- 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 -- Sent from my mobile device - Saju -- 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 come LinearLayout doesn't seem to measure wrap_content properly
I am doing more research to see if this indeed is the case. But here are the symptoms LinearLayoutheight=wrap_conent textviewheight=wrap_content some-custom-circle-viewheight=wrap_content textview ..height=wrap_content /LinearLayout In the custom circleview constructor I set the minimum height and width. I was hoping these minimum sizes will be used if the height of my custom view is wrap_content. But looks like linear layout never sends out the unspeicified but only does the 'at_most' making the getDefaultSIze return the entire space after the first text view. In fact the last textview is beyond the screen below. Do I have to write onMeasure() in the custom view and deal with wrap_content separately? why is LinearLayout not measuring the desired size? Your insights are greatly appreciated Thanks Satya -- 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
Re: [android-developers] How come LinearLayout doesn't seem to measure wrap_content properly
LinearLayout is doing the right thing. wrap_content results in an AT_MOST MeasureSpec. If you are writing a custom view that extends the base View class you really should override onMeasure(). On Mon, Oct 22, 2012 at 2:33 PM, Satya Komatineni satya.komatin...@gmail.com wrote: I am doing more research to see if this indeed is the case. But here are the symptoms LinearLayoutheight=wrap_conent textviewheight=wrap_content some-custom-circle-viewheight=wrap_content textview ..height=wrap_content /LinearLayout In the custom circleview constructor I set the minimum height and width. I was hoping these minimum sizes will be used if the height of my custom view is wrap_content. But looks like linear layout never sends out the unspeicified but only does the 'at_most' making the getDefaultSIze return the entire space after the first text view. In fact the last textview is beyond the screen below. Do I have to write onMeasure() in the custom view and deal with wrap_content separately? why is LinearLayout not measuring the desired size? Your insights are greatly appreciated Thanks Satya -- 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 -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android cuts off HttpURLConnection when screen timeout occurs.
I got it. Change WiFi sleep policy to NEVER. Settings.System.putInt(getContentResolver(), android.provider.Settings.System.WIFI_SLEEP_POLICY,android.provider.Settings.System.WIFI_SLEEP_POLICY_NEVER); On Sunday, October 21, 2012 6:20:53 AM UTC-7, LouieLiu wrote: The app I am writing uses a Streaming (REST) api that opens a HttpURLConnection and listens to a response from a server. I use IntentService for this function so it runs in the background. When my LG phone (ICS 4.03) goes dark (screen timeout), it terminates the connection. But it works fine on my ASUS tablet (ICS 4.03) and will continue to accept more responses from the server and process the data. So I wrote a small app which uses a timer to make a Http request every 30 seconds and then gets a response from the server. For the LG phone, this app will continue to function as long as the screen is on, but when the screen times out, it will stop the activity (timer) but it will resume making Http request when the screen is back on. But for the ASUS tablet the app will continue to make Http request continuously even when the screen time out occurs. Are there settings that I am not aware of that allow opened network connections to remain open and activities to continue to function when the screen times out? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to do HTTP post requests from Android on my Mule service bus app.
Here's some code to get you started: String myFeed = getString(R.strinq.my_feed); try { URL url = new URL(myFeed); // Create a new HTTP URL connection URLConnection connection = url.openConnection(); HttpURLConnection httpConnection = (HttpURLConnection)connection; int responseCode = httpConnection.getResponseCode(); if (responseCode == HttpURLConnection.HTTP_OK) { InputStream in = httpConnection.getInputStream(); processStream(in); } } catch (MalformedURLException e) { Log.d(TAG, Malformed URL Exception.) } catch(IOException e) { Log.d(TAG, IO Exception.); } *Meier, Reto (2012-04-05). Professional Android 4 Application Development (Wrox Professional Guides) (Kindle Location 5407). John Wiley and Sons. Kindle Edition. * On Thursday, October 18, 2012 2:50:29 PM UTC-5, Speedy31 wrote: Hi guys, I'm pretty new to Android software development, but have to say I like it more each day! I would like my android app to contact my servicebus over a simple HTTP post request, in which I'm able to specify: URL, portnumber, path and body, etc. Below you can see a screenshot of an old application called WebFetch what I always use to test the communication and check resulted data objects. Can someone explain me how to achieve the same results directly from the android code? Thanks in advance, Wim https://lh5.googleusercontent.com/-C2x5Lq6g8-0/UIBdIJfEv3I/AAM/KRKQPNE73F8/s1600/webfetch.png -- 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
Re: [android-developers] How come LinearLayout doesn't seem to measure wrap_content properly
Does wrap_content always result in AT_MOST? If it says 411 pixles at most, I would have thought I will take all of it because I could use that. I would not have thought to give back my content size. Just thinking aloud. what will match_parent do? Does that come in as EXACT, matching the size of the parent? Thank you so much for your help. It saved me hours of agony that I am about to jump into ... Satya On Mon, Oct 22, 2012 at 5:40 PM, Romain Guy romain...@android.com wrote: LinearLayout is doing the right thing. wrap_content results in an AT_MOST MeasureSpec. If you are writing a custom view that extends the base View class you really should override onMeasure(). On Mon, Oct 22, 2012 at 2:33 PM, Satya Komatineni satya.komatin...@gmail.com wrote: I am doing more research to see if this indeed is the case. But here are the symptoms LinearLayoutheight=wrap_conent textviewheight=wrap_content some-custom-circle-viewheight=wrap_content textview ..height=wrap_content /LinearLayout In the custom circleview constructor I set the minimum height and width. I was hoping these minimum sizes will be used if the height of my custom view is wrap_content. But looks like linear layout never sends out the unspeicified but only does the 'at_most' making the getDefaultSIze return the entire space after the first text view. In fact the last textview is beyond the screen below. Do I have to write onMeasure() in the custom view and deal with wrap_content separately? why is LinearLayout not measuring the desired size? Your insights are greatly appreciated Thanks Satya -- 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 -- Romain Guy Android framework engineer romain...@android.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 -- 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
Re: [android-developers] How come LinearLayout doesn't seem to measure wrap_content properly
When you receive an AT_MOST mesure spec you can return any size you want as long as it's = to the MeasureSpec's size. match_parent is indeed EXACTLY + size of the parent. On Mon, Oct 22, 2012 at 3:05 PM, Satya Komatineni satya.komatin...@gmail.com wrote: Does wrap_content always result in AT_MOST? If it says 411 pixles at most, I would have thought I will take all of it because I could use that. I would not have thought to give back my content size. Just thinking aloud. what will match_parent do? Does that come in as EXACT, matching the size of the parent? Thank you so much for your help. It saved me hours of agony that I am about to jump into ... Satya On Mon, Oct 22, 2012 at 5:40 PM, Romain Guy romain...@android.com wrote: LinearLayout is doing the right thing. wrap_content results in an AT_MOST MeasureSpec. If you are writing a custom view that extends the base View class you really should override onMeasure(). On Mon, Oct 22, 2012 at 2:33 PM, Satya Komatineni satya.komatin...@gmail.com wrote: I am doing more research to see if this indeed is the case. But here are the symptoms LinearLayoutheight=wrap_conent textviewheight=wrap_content some-custom-circle-viewheight=wrap_content textview ..height=wrap_content /LinearLayout In the custom circleview constructor I set the minimum height and width. I was hoping these minimum sizes will be used if the height of my custom view is wrap_content. But looks like linear layout never sends out the unspeicified but only does the 'at_most' making the getDefaultSIze return the entire space after the first text view. In fact the last textview is beyond the screen below. Do I have to write onMeasure() in the custom view and deal with wrap_content separately? why is LinearLayout not measuring the desired size? Your insights are greatly appreciated Thanks Satya -- 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 -- Romain Guy Android framework engineer romain...@android.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 -- 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 -- Romain Guy Android framework engineer romain...@android.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
Re: [android-developers] dtmf reading
People always give these passive aggressive insults to Android here, thinking somehow that people on this list take personal insult to their comments. We don't, I don't write Android, most other people don't either. The ability to intercept this isn't the decision of the Android developers, telephony providers won't give access to mobile operating systems, you interface to their modems through RIL. Can you do this on iphone? No? Oh, guess that platform sucks too. kris On Mon, Oct 22, 2012 at 5:32 PM, saju Thomas saj...@gmail.com wrote: Its a bit strange :) i had high hopes on andriod ;) On 10/22/12, Kristopher Micinski krismicin...@gmail.com wrote: Yes. You can't read the in call audio stream, ever, for any reason, as Nicolay points out if you are using SIP out of band and don't need access to the in call stream then possibly. But Android has *no interface to the telephony hardware* other than RIL using a simple protocol. kris On Mon, Oct 22, 2012 at 1:44 PM, coder_sym saj...@gmail.com wrote: So its a definite no? On Monday, October 22, 2012 8:42:57 PM UTC+3, Kristopher Micinski wrote: no, kris -- 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 -- 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 -- Sent from my mobile device - Saju -- 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 -- 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
Re: [android-developers] dtmf reading
someone has implemented this on top of RIL, there is a sendDTMF call in the RIL interface, but you can't touch it from the Android SDK, which is the topic of this list. I'll also note that this has been implemented for Boot2Gecko: https://bugzilla.mozilla.org/show_bug.cgi?id=709565 kris On Mon, Oct 22, 2012 at 6:32 PM, Kristopher Micinski krismicin...@gmail.com wrote: People always give these passive aggressive insults to Android here, thinking somehow that people on this list take personal insult to their comments. We don't, I don't write Android, most other people don't either. The ability to intercept this isn't the decision of the Android developers, telephony providers won't give access to mobile operating systems, you interface to their modems through RIL. Can you do this on iphone? No? Oh, guess that platform sucks too. kris On Mon, Oct 22, 2012 at 5:32 PM, saju Thomas saj...@gmail.com wrote: Its a bit strange :) i had high hopes on andriod ;) On 10/22/12, Kristopher Micinski krismicin...@gmail.com wrote: Yes. You can't read the in call audio stream, ever, for any reason, as Nicolay points out if you are using SIP out of band and don't need access to the in call stream then possibly. But Android has *no interface to the telephony hardware* other than RIL using a simple protocol. kris On Mon, Oct 22, 2012 at 1:44 PM, coder_sym saj...@gmail.com wrote: So its a definite no? On Monday, October 22, 2012 8:42:57 PM UTC+3, Kristopher Micinski wrote: no, kris -- 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 -- 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 -- Sent from my mobile device - Saju -- 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 -- 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: status bar clock stops updating
OK, the problem is in the TI distro status bar stuck clock on TI Beagleboard build is fixed with this patch: http://e2e.ti.com/support/embedded/android/f/509/t/111012.aspx that modifies AlarmManagerService.java On Monday, October 22, 2012 11:57:08 AM UTC-7, Steve Delaney wrote: Hi all, I ran into a problem testing clock update. I am testing on Beagleboard with Gingerbread 2.3 Using a clock source like 3G modem, the network time can be updated to refresh the status bar clock but sometimes the status bar clock stops updating. the command line 'date' command is working as expected, so it appears to be a bug in the status bar. Any ideas on how to fix this? I'm not sure what android bit is updating the status bar clock but if you can point it out that might give a clue Thanks, Steve -- 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: Difference between Android and Linux Kernel ?
MIPS rate isn't a particularly helpful measurement, especially if you're just looking at peak MIPS. This is particularly important when comparing two completely different instruction sets, but even on identical instruction sets this is a misleading measurement. The core architecture, cache sizes, and memory bus will have as much or more impact on real-world performance. Ian On Friday, October 19, 2012 12:05:27 AM UTC-7, chain_chelliah wrote: Thanks for quick reply, I'm not using same hardware platform for all. Android alone running ARM core with 750 MHz , others are Intel core with 2 GHz. Compare with MIPS rate both core equally same. Kindly tell me, If my platforms may differ which Android OS suitable for further development. On Friday, October 19, 2012 12:11:16 PM UTC+5:30, al wrote: Yes, the Android linux kernel has been modified. Android uses the bionic c lib. Your test results look like you are comparing apples and oranges. E.g. do you use the same hardware for the test? If so, you need to use Android-x86 or something similar which may not be optimized (drivers etc.) for your platform... Am Freitag, 19. Oktober 2012 08:13:53 UTC+2 schrieb chain_chelliah: I know Android uses the Linux kernel. I hope the Android developers did some modification with original Linux Kernel, especially in standard C libraries. My question is whether the processing speed of Linux and Android kernel are the same or different. I did some tests in different OS like windows and Redhat Linux and unbuntu and android. By the results Android is very slow. Android uses same Linux kernel... why this process variations but i know we cant expect same speed as in Linux, but I had huge differences (for example: Windows take 11 sec, Linux takes 4 sec, but Android takes 55 sec to complete my test) So What is the reason for this speed variation between these two linux kernels (Android and redhat both are 2.6)? I'm using Android Kernel version 3.2.0. Thanks and Regards, Sangili Pandian C -- 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] overriding button style Widget.Button
Hello, The button style has gravity specifications like center_vertical| center_horizontal in frameworks/base/core/res/res/values/styles.xml. I'm trying to override this style for a custom view to remove the gravity specifications but unable to do that. The android:gravity item of the new styles doesn't accept no_gravity or 0 and just errors out. Is there any way to override this button style and remove the default gravity specifications? 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
Re: [android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 24 Topics
QD wrote: android-d...@googlegroups.com javascript: wrote: Today's Topic Summary Group: http://groups.google.com/group/android-developers/topics - Honeymoon vs Gingerbread : accentuated keyboard letters#CAEE6hGzg11zWb9s-vgZ_bOzR287SaJpK-Bu3Ng_gPTNCs0L5tQ@mail.gmail.com_13a87dfcfdde37aa_group_thread_0[2 Updates] - Weird accelerometer maximum value#CAEE6hGzg11zWb9s-vgZ_bOzR287SaJpK-Bu3Ng_gPTNCs0L5tQ@mail.gmail.com_13a87dfcfdde37aa_group_thread_1[1 Update] [... etc.] What the Hell? -- Lew -- 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
Re: [android-developers] Re: dtmf reading
On Mon, Oct 22, 2012 at 10:44:45AM -0700, bob wrote: I seriously doubt DTMF is used anywhere. It is used for analog (POTS) phones with DTMF (last time I checked, some people still had dial phones, too). But on digital telephony, you're basically right---the tones in the receiver are for the customer's benefit only, so they know that the key has been pressed (imagine pressing the phone pad keys, and getting only silence...could be rather disconcerting). Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4) // NAHC Member #70781171 // Running Mac OS X Lion ICBM/Hurr.: 30.44406N 86.59909W Seen in alt.sysadmin.recovery: Priceless; that's better than telling him to use the Read Manual command with the Real Fast option. -- 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
Re: [android-developers] Re: Android cuts off HttpURLConnection when screen timeout occurs.
On Tue, Oct 23, 2012 at 6:46 AM, LouieLiu ckliu.em...@gmail.com wrote: I got it. Change WiFi sleep policy to NEVER. Settings.System.putInt(getContentResolver(), android.provider.Settings.System.WIFI_SLEEP_POLICY,android.provider.Settings.System.WIFI_SLEEP_POLICY_NEVER); Of course you cannot rely on this setting being set to NEVER on all devices. If you really need to this while the phone screen is off, you need to use a WakeLock. -- 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: Sending file between 2 instances of emulator
Hi, Use Socket ServerSocket classes Regards On Monday, October 22, 2012 5:29:16 PM UTC+11, Archana wrote: Hi, I want to send a text between 2 android emulator instances(by hard-coding the port numbers) using HTTP. I want a single apk file for this(so that it can run on 'n' instances later). Please let me know how to implement this? 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] Chennai MRTS @ Google Play - A brand new android app for Chennai people
Hi All, We are happy to release our first ANDROID application Chennai MRTS for every Chennai train traveler. Now you can access detailed Chennai sub-urban and MRTS Metro information from your smartphone. Much more than a timetable, 'Chennai MRTS' enables you to plan and re-plan your journey on the go and help you to catch the right train. Application published in TAMIL and English. OFFLINE application. With the features like Trip Planner, Train Schedule, Route Map, Fare Details, Favorite Route and customized crossing time. Now available at Google Play. Download it as FREE app and check it out. Your feedback/ comments/ suggestions are always welcome and will help us to do more. Google Play Link: https://play.google.com/store/apps/details?id=com.mrts.goldenbubble Thank you for using this app! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com 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: Chennai MRTS @ Google Play - A brand new android app for Chennai people
While there may be someone here interested in using your application, you will much more likely find here hundreds of developers ready and willing to dissect and, possibly, reverse-engineer and duplicate it ;) This forum is for discussion of app development, not really discussion of apps. Not sure where your post would fit better, wish I could recommend a better forum. Chris On Monday, October 22, 2012 8:52:49 PM UTC-7, kavitha chidambaram wrote: Hi All, We are happy to release our first ANDROID application Chennai MRTS for every Chennai train traveler. Now you can access detailed Chennai sub-urban and MRTS Metro information from your smartphone. Much more than a timetable, 'Chennai MRTS' enables you to plan and re-plan your journey on the go and help you to catch the right train. Application published in TAMIL and English. OFFLINE application. With the features like Trip Planner, Train Schedule, Route Map, Fare Details, Favorite Route and customized crossing time. Now available at Google Play. Download it as FREE app and check it out. Your feedback/ comments/ suggestions are always welcome and will help us to do more. Google Play Link: https://play.google.com/store/apps/details?id=com.mrts.goldenbubble Thank you for using this app! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com 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] play Audio one by one automatically
Hi everybody, I am making an sample in which i have to play multiple audio file one by one when first finish second and so on start automatically without click and the file is store in raw folder ,if any one have any idea please share with me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 cuts off HttpURLConnection when screen timeout occurs.
You may want to rethink your network strategy; unless your app clearly requires constant network activity, you would do well to heed the system's default peripheral-sleep policies. Nothing ticks off users more than apps that kill battery by insisting that they remain active when the phone's not being used. On Sunday, October 21, 2012 6:20:53 AM UTC-7, LouieLiu wrote: The app I am writing uses a Streaming (REST) api that opens a HttpURLConnection and listens to a response from a server. I use IntentService for this function so it runs in the background. When my LG phone (ICS 4.03) goes dark (screen timeout), it terminates the connection. But it works fine on my ASUS tablet (ICS 4.03) and will continue to accept more responses from the server and process the data. So I wrote a small app which uses a timer to make a Http request every 30 seconds and then gets a response from the server. For the LG phone, this app will continue to function as long as the screen is on, but when the screen times out, it will stop the activity (timer) but it will resume making Http request when the screen is back on. But for the ASUS tablet the app will continue to make Http request continuously even when the screen time out occurs. Are there settings that I am not aware of that allow opened network connections to remain open and activities to continue to function when the screen times out? 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: Android camera orientation problem
I don't know why it's not worked with me. If I set orientation as portrait in manifest file I am getting 90 degree rotated image in my preview. But in the case of landscape orientation I am getting normal image in my preview while my phone orientation is portrait I know it is 90 degree rotated from landscape , and while saving or drawing to a canvas I am getting 90 degree rotated image. For this issue I just rotated my image 90 degree backward. I thought it is better to set the orientation correctly rather than rotating the image after capture. On Monday, 22 October 2012 20:58:26 UTC+5:30, spartygw wrote: Camera.setDisplayOrientation works for me, I could never seem to get any rotation stuff to work that I tried to set using the Camera.Parameters. -gw On Monday, October 22, 2012 2:23:46 AM UTC-4, Haris wrote: Hi all For my application I am using android native camera and previewing the image using surface view. But everything is working except the camera orientation. When I open the camera by setting screenOrientation=landscape on manifest file I am getting the preview without any problem in landscape mode. But I need to take image in portrait mode, for this I changed my manifest like android:screenOrientation=portrait and change my code like mCamera.setDisplayOrientation(90), params.set(orientation, landscape),params.set(rotation, 90), but still I am getting 90 degree rotated image. I searched a lot but nothing solved my problem... And my code is public void setupCamera(int width, int height) { Log.i(TAG, setupCamera); synchronized (this) { if (mCamera != null) { Camera.Parameters params = mCamera.getParameters(); ListCamera.Size sizes = params.getSupportedPreviewSizes(); ListCamera.Size imgsize=params.getSupportedPictureSizes(); mFrameWidth = width; mFrameHeight = height; // mCamera.setDisplayOrientation(90); params.set(orientation, landscape); params.set(rotation, 90); // selecting optimal camera preview size { int minDiff = Integer.MAX_VALUE; for (Camera.Size size : sizes) { if (Math.abs(size.height - height) minDiff) { mFrameWidth = size.width; mFrameHeight = size.height; minDiff = Math.abs(size.height - height); } } } params.setPreviewSize(getFrameWidth(), getFrameHeight()); ListString FocusModes = params.getSupportedFocusModes(); if (FocusModes.contains(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO)) { params.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO); } mCamera.setParameters(params); mCamera.startPreview(); } } } I am using micromax A52 mmodel with android 2.3 -- 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] Error 41 while Building ICS android-4.0.1_r1 Using sun-jdk6
Hi, I am using 64 bit Ubuntu 10.04 Machine for building ICS android-4.0.1_r1 using the Android Source Link - http://source.android.com/source/downloading.html . I am using the sun-java6-jdk instead of Open Jdk, and I think that is the preferrred one.But after hours of building I am getting this error. make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-full-debug.jar] Error 41 This is very frustrating,Can any one plz suggest whats worng and how to resolve this.I have tried it so many times by doing make clobber , and then make -j4 .I an doing the full-eng build. Rgds, softy -- 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