Re: [android-developers] Problem with fragments
The problem was solved in the same weird way, as it appeared - I've only removed activity_main.xml and now I can see a big calendar and a button under it. In addition, I've removed some strings from res and the button name in string.xml. So, everything works fine for now. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Problem with fragments
Yeah, and one more thing, I've removed if -statements. With if -statements it doesn't work. In this case, there is the a problem in manuals... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem with fragments
One more thing, in if -statement =) There is a kind of typo: R.*layout*.container_calendar. The right way it suppose to be is R.*id*.calendar_container... since I'm using findViewById -method =) Noh, at least I found out it. Problem can be marked as SOLVED. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Window.FEATURE_NO_TITLE /Theme.NoTitleBar - Leaks Launching Activity
You can give theme as Dialog and hide the window title bar. Otherwise, to display an Activity, I believe you cnanot hide the title bar without using any of the below options. Regards, On Saturday, 1 September 2012 22:12:19 UTC+5:30, itai wrote: Filled bug below… Anyone know how to hide the title bar without using either requestWindowFeature(Window.FEATURE_NO_TITLE) or XML Theme.NoTitleBar to avoid this ? https://code.google.com/p/android/issues/detail?id=36950colspec=ID%20Type%20Status%20Owner%20Summary%20Stars tnx. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Window.FEATURE_NO_TITLE /Theme.NoTitleBar - Leaks Launching Activity
Tnx. So after further investigation it seems this bug was introduced in API 11 and is somehow related to the ActionBar. The leak does not occur on versions prior to that, so using either android:theme=@android:style/ Theme.NoTitleBar.Fullscreen or requestWindowFeature(Window.FEATURE_NO_TITLE) will not leak the Activity prior to API 11. If targeting HONEYCOMB and above, you can hide the ActionBar like this *after* setContentView @TargetApi(11) private void hideActionBar() { if (Build.VERSION.SDK_INT = Build.VERSION_CODES.HONEYCOMB) { ActionBar actionBar = getActionBar(); // This check might be unnecessary, but it helped me find that getActionBar() should be called after setContentView !! if (actionBar != null) { actionBar.hide(); } } else { requestWindowFeature(Window.FEATURE_NO_TITLE); } } The noticeable problem with this approach is that the ActionBar will appear for a fraction of a moment, plus you will not have access to the options menu in HONEYCOMB What I decided to do, in the absence of a better solution, is simply avoid all this: uses-sdk android:minSdkVersion=8 android:targetSdkVersion=8 / Personally, I always prefer framework stability and correctness on top of new api’s ... On Sep 2, 11:27 am, tvdalia truptida...@gmail.com wrote: You can give theme as Dialog and hide the window title bar. Otherwise, to display an Activity, I believe you cnanot hide the title bar without using any of the below options. Regards, On Saturday, 1 September 2012 22:12:19 UTC+5:30, itai wrote: Filled bug below… Anyone know how to hide the title bar without using either requestWindowFeature(Window.FEATURE_NO_TITLE) or XML Theme.NoTitleBar to avoid this ? https://code.google.com/p/android/issues/detail?id=36950colspec=ID%2... tnx. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Window.FEATURE_NO_TITLE /Theme.NoTitleBar - Leaks Launching Activity
On Sun, Sep 2, 2012 at 7:29 AM, itai i...@live.com wrote: So after further investigation it seems this bug was introduced in API 11 and is somehow related to the ActionBar. You have not demonstrated that there is a bug. The leak does not occur on versions prior to that You have not demonstrated that there is a leak. Use heap dumps and MAT to demonstrate a leak and identify its cause. Do not rely on Cause GC to do a complete GC, because AFAIK it won't. -- 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.1 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] What is the best way to Download Images and texts and use them in my app?
Dear Developers, I created an app which load data from server and format it in specific format in android UI components, like text view and image view, but the loading take long time, i want to know what is the best way to decrease the load time and increase the loading speed and the quality of my app, if you know a book name or blog or wiki don't hesitate to till me. If you want to see the developed and published app which I'm talking about, please visit Wasfatihttps://play.google.com/store/apps/details?id=com.alameenTech.android app on android market. Many 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: Window.FEATURE_NO_TITLE /Theme.NoTitleBar - Leaks Launching Activity
On Sep 2, 2:50 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 2, 2012 at 7:29 AM, itai i...@live.com wrote: So after further investigation it seems this bug was introduced in API 11 and is somehow related to the ActionBar. You have not demonstrated that there is a bug. Yes I have: https://code.google.com/p/android/issues/detail?id=36950colspec=ID%20Type%20Status%20Owner%20Summary%20Stars The leak does not occur on versions prior to that You have not demonstrated that there is a leak. Use heap dumps and MAT to demonstrate a leak and identify its cause. I'm not developing for Android, I'm developing on top of Android. The framework engineers have more than enough information/reasonable doubt to investigate this and respond. Do not rely on Cause GC to do a complete GC, because AFAIK it won't. AFAIK, Cause GC reliably shows there is a problem, as the Activity gets GC'd instantly upon Configuration Change when the ActionBar is present (Visible or Hidden). -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.1 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: Window.FEATURE_NO_TITLE /Theme.NoTitleBar - Leaks Launching Activity
On Sun, Sep 2, 2012 at 8:02 AM, itai i...@live.com wrote: The framework engineers have more than enough information/reasonable doubt to investigate this and respond. You are welcome to your opinion. My guess is that their opinion will be akin to my opinion, which is that you have not done sufficiently rigorous analysis to be worthy of further investigation. There have been many people on this list (and elsewhere) who have used similar analysis to point out leaks, only to be found to be wrong once real analysis (e.g., heap dumps and MAT) have been employed. Hence, while it is entirely possible that you are indeed correct, it is more likely that you are crying wolf and will be treated as such. AFAIK, Cause GC reliably shows there is a problem, as the Activity gets GC'd instantly upon Configuration Change when the ActionBar is present (Visible or Hidden). Once again, you are welcome to your opinion. -- 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.1 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: Window.FEATURE_NO_TITLE /Theme.NoTitleBar - Leaks Launching Activity
On Sep 2, 3:14 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 2, 2012 at 8:02 AM, itai i...@live.com wrote: The framework engineers have more than enough information/reasonable doubt to investigate this and respond. You are welcome to your opinion. My guess is that their opinion will be akin to my opinion, which is that you have not done sufficiently rigorous analysis to be worthy of further investigation. I think your fundamentally wrong here. Application developers should not debug the underlying framework. I even consider it unprofessional and a waste of resources (unless you are developing for the framework). I observed what seems to be an important anomaly and I have made reasonable effort to prove it in the form of a bug report. So regardless of any speculation of what experts might think, this is as far as I’m willing to go. You are welcome to apply “rigorous analysis” and take the credit, if you think there might be merit here ... given your opinion. There have been many people on this list (and elsewhere) who have used similar analysis to point out leaks, only to be found to be wrong once real analysis (e.g., heap dumps and MAT) have been employed. Hence, while it is entirely possible that you are indeed correct, it is more likely that you are crying wolf and will be treated as such. Least of my concerns :) As noted above I found a solution that I'm comfortable with and shared it in detail (which is way more than I got in any response to any question). It’s up to the framework guys to decided how to move forward with this... AFAIK, Cause GC reliably shows there is a problem, as the Activity gets GC'd instantly upon Configuration Change when the ActionBar is present (Visible or Hidden). Once again, you are welcome to your opinion. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.1 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: GL_POINTS not drawing points
Hello! Thanks for answering. Actually, i already know how to draw lines and rectangles, but i would like to draw points. Can you provide me with the calls to the Matrix methods that would achieve the 2D projection using screen coordinates for the given surface width and height? I made some tests with just a few points and it looks really strange. For example, if i call this: coords[0] = 10; coords[1] = 10; coords[3] = 11; coords[4] = 10; vertexBuffer.put(coords); vertexBuffer.position(0); GLES20.glVertexAttribPointer(mPositionHandle, 3, GLES20.GL_FLOAT, false, 3 * 2, vertexBuffer); // Prepare the triangle coordinate data GLES20.glDrawArrays(GLES20.GL_POINTS, 0,2); Then i get a point at 0,0 and another at 10,10. If i add a new coordinate at 12,10, i get two points side by side, but if i add a new point at 13,10, i get only 1 point again! 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] GL_POINTS not drawing points
Sorry this line Finally to get your gl_position = mvp * gl_position; and not the other way. should read Finally to get your gl_position = mvp * positionAttributeVariable; and not the other way. On Sat, Sep 1, 2012 at 11:10 PM, Satya Komatineni satya.komatin...@gmail.com wrote: Guich, Given a number of ways how to do the same thing in OpenGL it will be quite hard to debug. On Sat, Sep 1, 2012 at 9:11 AM, guich guiha...@gmail.com wrote: Hi, I've spent a full day trying to draw a series of points using GL_POINTS. I know i could use a texture, but i want to learn how to draw points. The resulting image (zoomed) is shown here: The code is written below. Any help on why are only 4 points appearing is greatly appreciated. Although it is possible to create your model, view, and projection matrices, it is better to use Matrix class and use the methods available on that class to generate the required matrices. To get the view matrix you can call Matrix.setLookAtM(viewMatrix) To get the projection matrix Matrix.frustumM(projectionMatrix) Then you can get your ModelViewProjection matrix by doing Matrix.multiplyMM(mvp, projmatrix, viewmatrix) Finally to get your gl_position = mvp * gl_position; and not the other way. I would start with a simple program that works and then gradually increase the complexity. A triangle or a square is a good place to start and then make it work using the examples in the tutorial on the android developer site. If there is a specific issue that you are not clear ask that specifically and you may be able to debug it that way http://satyakomatineni.com/android/training http://satyakomatineni.com http://androidbook.com http://twitter.com/SatyaKomatineni https://lh5.googleusercontent.com/-lelPSZoY4dw/UEIH5mVQfII/AD4/o5q5GMFuL00/s1600/points.png public class MainActivity extends Activity { class MyGLSurfaceView extends GLSurfaceView { public MyGLSurfaceView(Context context) { super(context); setEGLContextClientVersion(2); // Create an OpenGL ES 2.0 context. setEGLConfigChooser(8, 8, 8, 8, 0, 0); getHolder().setFormat(PixelFormat.RGBA_); setRenderer(new MyGLRenderer()); // Set the Renderer for drawing on the GLSurfaceView // setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY); // Render the view only when there is a change in the drawing data (must be after setRenderer!) } } public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new MyGLSurfaceView(this)); } } class MyGLRenderer implements GLSurfaceView.Renderer { byte[][] bitmap = { {1,1,1,1,1,1,1,1}, {1,0,0,1,1,0,0,1}, {1,0,0,1,1,0,0,1}, {1,0,0,1,1,0,0,1}, {1,0,0,1,1,0,0,1}, {1,0,0,1,1,0,0,1}, {1,0,0,1,1,0,0,1}, {1,0,0,1,1,0,0,1}, {1,1,1,1,1,1,1,1}}; static final int COORDS_PER_VERTEX = 3; // Set color with red, green, blue and alpha (opacity) values float color[] = { 0,0,0, 1.0f }; float coords[] = new float[4 * COORDS_PER_VERTEX]; int w,h; public void onSurfaceCreated(GL10 unused, EGLConfig config) { } public void onDrawFrame(GL10 unused) { try { drawText(); } catch (Exception e) {debug(e.getMessage());} } private String vertexShaderCode(int w, int h) { return // http://www.songho.ca/opengl/gl_projectionmatrix.html attribute vec4 vPosition; + mat4 projectionMatrix = mat4( 2.0/+w+.0, 0.0, 0.0, -1.0,+ 0.0, -2.0/+h+.0, 0.0, 1.0,+ 0.0, 0.0, -1.0, 0.0,+ 0.0, 0.0, 0.0, 1.0);+ void main() {gl_Position = vPosition*projectionMatrix;}; // the matrix must be included as a modifier of gl_Position } private final String fragmentShaderCode = precision mediump float; + uniform vec4 vColor; + void main() {gl_FragColor = vColor;}; private int mProgram; private int mPositionHandle; private int mColorHandle; public void onSurfaceChanged(GL10 unused, int width, int height) { w = width; h = height; // Adjust the viewport based on geometry changes, such as screen rotation GLES20.glViewport(0, 0, width, height); // prepare shaders and OpenGL program int vertexShader = MyGLRenderer.loadShader(GLES20.GL_VERTEX_SHADER,vertexShaderCode(width,height)); int fragmentShader = MyGLRenderer.loadShader(GLES20.GL_FRAGMENT_SHADER,fragmentShaderCode); mProgram = GLES20.glCreateProgram(); // create empty OpenGL Program GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program
Re: [android-developers] GL_POINTS not drawing points
I am on my way to take my kids to the beach. I will look at it a bit closer next week. May be just give me the simple problem defintion and I will try to create the program for you and send the zip file. ButI will try a quick answer Say you want a 20x20 graph. Specify your point vertices as (0,0) (1,1,)(5,5) all x,y and specify the z as 0 if needed. Then you need to set your camera using Matrix.setLookAtM(mVMatrix, 0, 0, 0, -15, 0f, 0f, 0f, 0f, 1.0f, 0.0f); This is saying set your camera on the 'z' axis at -15 and look at the origin (0,0,0) and make it look up (0,1,0) See the docs for full detail. This populate your client memory mVMatrix. then do //take your width and height of the window and do float ratio = (float) w / h; Matrix.frustumM(mProjMatrix, 0, -ratio * 30, ratio * 30, -30 //top, 30//bottom, 3, 7); Read up on frustum to give it enough height and width and some depth to fit your coords. You get the projection matrix. Now do Matrix.Multiply to do final MVP = projection * mVMarix; then send your position attributes to the shader and in the shader gl_position = final MVP * your_position_attribute; //like all matrix multiplications order is important On Sun, Sep 2, 2012 at 10:39 AM, Satya Komatineni satya.komatin...@gmail.com wrote: Sorry this line Finally to get your gl_position = mvp * gl_position; and not the other way. should read Finally to get your gl_position = mvp * positionAttributeVariable; and not the other way. On Sat, Sep 1, 2012 at 11:10 PM, Satya Komatineni satya.komatin...@gmail.com wrote: Guich, Given a number of ways how to do the same thing in OpenGL it will be quite hard to debug. On Sat, Sep 1, 2012 at 9:11 AM, guich guiha...@gmail.com wrote: Hi, I've spent a full day trying to draw a series of points using GL_POINTS. I know i could use a texture, but i want to learn how to draw points. The resulting image (zoomed) is shown here: The code is written below. Any help on why are only 4 points appearing is greatly appreciated. Although it is possible to create your model, view, and projection matrices, it is better to use Matrix class and use the methods available on that class to generate the required matrices. To get the view matrix you can call Matrix.setLookAtM(viewMatrix) To get the projection matrix Matrix.frustumM(projectionMatrix) Then you can get your ModelViewProjection matrix by doing Matrix.multiplyMM(mvp, projmatrix, viewmatrix) Finally to get your gl_position = mvp * gl_position; and not the other way. I would start with a simple program that works and then gradually increase the complexity. A triangle or a square is a good place to start and then make it work using the examples in the tutorial on the android developer site. If there is a specific issue that you are not clear ask that specifically and you may be able to debug it that way http://satyakomatineni.com/android/training http://satyakomatineni.com http://androidbook.com http://twitter.com/SatyaKomatineni https://lh5.googleusercontent.com/-lelPSZoY4dw/UEIH5mVQfII/AD4/o5q5GMFuL00/s1600/points.png public class MainActivity extends Activity { class MyGLSurfaceView extends GLSurfaceView { public MyGLSurfaceView(Context context) { super(context); setEGLContextClientVersion(2); // Create an OpenGL ES 2.0 context. setEGLConfigChooser(8, 8, 8, 8, 0, 0); getHolder().setFormat(PixelFormat.RGBA_); setRenderer(new MyGLRenderer()); // Set the Renderer for drawing on the GLSurfaceView // setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY); // Render the view only when there is a change in the drawing data (must be after setRenderer!) } } public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new MyGLSurfaceView(this)); } } class MyGLRenderer implements GLSurfaceView.Renderer { byte[][] bitmap = { {1,1,1,1,1,1,1,1}, {1,0,0,1,1,0,0,1}, {1,0,0,1,1,0,0,1}, {1,0,0,1,1,0,0,1}, {1,0,0,1,1,0,0,1}, {1,0,0,1,1,0,0,1}, {1,0,0,1,1,0,0,1}, {1,0,0,1,1,0,0,1}, {1,1,1,1,1,1,1,1}}; static final int COORDS_PER_VERTEX = 3; // Set color with red, green, blue and alpha (opacity) values float color[] = { 0,0,0, 1.0f }; float coords[] = new float[4 * COORDS_PER_VERTEX]; int w,h; public void onSurfaceCreated(GL10 unused, EGLConfig config) { } public void onDrawFrame(GL10 unused) { try { drawText(); } catch (Exception e) {debug(e.getMessage());} } private String vertexShaderCode(int w, int h) { return // http://www.songho.ca/opengl/gl_projectionmatrix.html attribute vec4 vPosition; + mat4 projectionMatrix = mat4( 2.0/+w+.0, 0.0, 0.0, -1.0,+
Re: [android-developers] What is the best way to Download Images and texts and use them in my app?
You don't really have any choice, there's no speed up the internet method :-). What you can do is perhaps package the top foods with your app, and then show up those images before they load from the internet on the app side. You could also consider storing a bunch of the images statically at low resolution (e.g., facebook does this for AJAX image requests, show you a low res version before downloading the high res one and replacing it). But the basic idea is to show something silly until the high res image can load.. kris On Sun, Sep 2, 2012 at 6:52 AM, Mohammad Abu Hmead mohammad.ka...@gmail.com wrote: Dear Developers, I created an app which load data from server and format it in specific format in android UI components, like text view and image view, but the loading take long time, i want to know what is the best way to decrease the load time and increase the loading speed and the quality of my app, if you know a book name or blog or wiki don't hesitate to till me. If you want to see the developed and published app which I'm talking about, please visit Wasfati app on android market. Many 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 get and post JSON with Android?
Look at Gson by Google. On Saturday, June 12, 2010 6:16:53 AM UTC-7, Joshua Partogi wrote: Hi all, Is there any code snippet for getting and postiing JSON object to a http server in Android? I want to call the API in my website and get the JSON response to be displayed in the Android apps. I am still new to Android so please bear with me. Thanks for the assistance. Kind regards, Joshua. -- http://twitter.com/scrum8 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] may upload a paid App, and after one month link my account to a Savings usa account?
every when I get paid from sales of my App in Play? may upload a paid App, and after one month link my account to a Savings usa account? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Copy paste from Google Drive documents to Gmail from Android device
Is it possible to do? Il giorno mercoledì 29 agosto 2012 02:17:30 UTC+2, AltraCasa ha scritto: How do I copy and paste the text formatting from Google Drive on Gmail inbox preserving the formatting of the text? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] may upload a paid App, and after one month link my account to a Savings usa account?
On Sun, Sep 2, 2012 at 12:38 PM, lselwd webmas...@poliscarhire.com wrote: every when I get paid from sales of my App in Play? may upload a paid App, and after one month link my account to a Savings usa account? This is hard to understand, but if you're asking how often you get paid, it's about once a month. If you're asking if you can link an account a month after starting to sell apps, then, no, I think you need an account set up from the get go. - 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] in java file Russian chars for Strings...means works in all phones
in java file Russian chars for Strings... enRu = new HashMapString, String(); enRu.put(Africa, Африка); textView = (TextView)findViewById(R.id.ru); textView.setText(enRu.get(Africa)+ +getKeyByValue(enRu,Африка)); well I went in other WORKSPACE and opeded the file.java(with ru char in Strings) but non-understandable chars appear for russian unlike old workspace that converted java file to utf-8 and appear normally... if work only in old workspace, and upload apk in my device and works, means works in all phones??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: PNG loading that doesn't premultiply alpha?
Hi, I think it would make sense that either Bitmap could be without premultiplied alpha, or GLUtils.texImage2D method could take as parameter whether to load with or without premultiplied alpha. Since you say Bitmaps will never be without premultiplied alpa, I suggest the latter, plus as you suggest a convenience method on the Bitmap, which returns its content in an array without premultiplied alpha. It makes sense to me to add the option to GLUtils.texImage2D since the very purpose of the GLUtils class is '... to help bridging OpenGL ES and Android APIs.' (javadoc class reference). Cheers Alex On Friday, 29 June 2012 21:18:59 UTC+2, Romain Guy (Google) wrote: Another big issue similar to alpha-premultiply is that 32Bit ARGB Images are changed to 16Bit after scaling (especially if all alpha values are 255), without some dirty tricks. This is a big issue to, it's far away from the precission needed for good normal mapping. There was a bug in the scaling code that I fixed. a 32 bits image will now always be scaled to another 32 bits image. -- 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
Re: [android-developers] in java file Russian chars for Strings...means works in all phones
Are you on Windows? There, Eclipse assumes that your Java source files use the default system encoding, which is never UTF-8 and is likely to be windows-1251 (Cyrillic) or On Linux, Eclipse uses UTF-8. There is a way to change the default on a per-file, per-folder, per-project, and per-workspace (global) basis (right click on a project - properties). You might want to either convert all your files to utf-8 and tell Eclipse about it, or at least check those settings in you two workspaces and ensure that they're consistent. -- K 2012/9/2 lselwd webmas...@poliscarhire.com in java file Russian chars for Strings... enRu = new HashMapString, String(); enRu.put(Africa, Африка); textView = (TextView)findViewById(R.id.ru); textView.setText(enRu.get(Africa)+ +getKeyByValue(enRu,Африка)); well I went in other WORKSPACE and opeded the file.java(with ru char in Strings) but non-understandable chars appear for russian unlike old workspace that converted java file to utf-8 and appear normally... if work only in old workspace, and upload apk in my device and works, means works in all phones??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] in java file Russian chars for Strings...means works in all phones
utf-8 converting Project means all files should be utf-8 including java, xml,... files, and device should be able to work and view without problem, *even in not Russian language setting*? correct? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] in java file Russian chars for Strings...means works in all phones
Eclipse already defaults to UTF-8 for XML. The behavior at runtime does not depend on the encoding in Eclipse (you don't have to use utf-8 in Eclipse to make apps in Russian) however If your Java source files are in windows-1251 and Eclipse is set up to assume something else, or the other way around, then those text literals will not be interpreted correctly at compile time. This will very likely cause issues at runtime. And actually, one other thing you can do, is to move those Russian strings to an Android XML resource file. Since those are assumed by Eclipse to be UTF-8, they should work regardless of character set settings in Eclipse or Windows. -- K 2012/9/3 lselwd webmas...@poliscarhire.com utf-8 converting Project means all files should be utf-8 including java, xml,... files, and device should be able to work and view without problem, *even in not Russian language setting*? correct? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Annoying shutter click undermines scientific research.
I am involved in a project to use camera enabled Android devices to detect cosmic ray events ( http://www.distributedsensorweb.org/wiki/index.php/DECO). It is enjoying some modest funding from the American Physics Society and interest from Fermi Labs and Standford Univ. The intent of the app is to run while the phone is plugged in and charging, like while the user is sleeping. As such the shutter sound must be defeated. In fact, even if you were running it on your desk while working the shutter sound is so annoying as to inspire you to reach for a hammer. For most phones we have been able to make use of the mechanisms seen in previous posts: mute streams and/or set volume to 0. However, for a recent phone, the LG Optimus Elite (were using low cost Virgin Mobile devices as some of the test devices to reduce costs), none of the old tricks work: the shutter sound always plays. BUT!!! I can download a camera app from the Google Play -- aptly named SilentCamera -- which will take pictures, well, silently. And whatever solution it is employing is not using the MODIFY_AUDIO_SETTINGS permission. I have already burned several hours researching and trying a variety of things. As I've indicated I have tried muting and setting volume to 0 for all streams, just before the camera.takePicture() call. And have tried to do the same in onShutter(). What I have learned is (according to the logs) that the camera is playing the shutter sound BEFORE the onShutter() call. Obviously, I am hoping someone on the list can help. Thanks. /J Note: The LG Optimus Elite is running 2.3.7 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Annoying shutter click undermines scientific research.
IF all else fails : put a plug of blu-tack or similar firmly into the hole the sounds comes from... it solved the proplem for myself, and its easy to remove with a toothpick ! On 2 September 2012 22:02, Jeffrey Peacock jeffp.ea...@gmail.com wrote: I am involved in a project to use camera enabled Android devices to detect cosmic ray events ( http://www.distributedsensorweb.org/wiki/index.php/DECO). It is enjoying some modest funding from the American Physics Society and interest from Fermi Labs and Standford Univ. The intent of the app is to run while the phone is plugged in and charging, like while the user is sleeping. As such the shutter sound must be defeated. In fact, even if you were running it on your desk while working the shutter sound is so annoying as to inspire you to reach for a hammer. For most phones we have been able to make use of the mechanisms seen in previous posts: mute streams and/or set volume to 0. However, for a recent phone, the LG Optimus Elite (were using low cost Virgin Mobile devices as some of the test devices to reduce costs), none of the old tricks work: the shutter sound always plays. BUT!!! I can download a camera app from the Google Play -- aptly named SilentCamera -- which will take pictures, well, silently. And whatever solution it is employing is not using the MODIFY_AUDIO_SETTINGS permission. I have already burned several hours researching and trying a variety of things. As I've indicated I have tried muting and setting volume to 0 for all streams, just before the camera.takePicture() call. And have tried to do the same in onShutter(). What I have learned is (according to the logs) that the camera is playing the shutter sound BEFORE the onShutter() call. Obviously, I am hoping someone on the list can help. Thanks. /J Note: The LG Optimus Elite is running 2.3.7 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Annoying shutter click undermines scientific research.
Jeff, In the worst case scenario, you could just disassemble the app and reverse engineer it... In the best case scenario you should email the developer and ask him how he's doing it, citing your research as why you need it (providing proof you won't rip off his app, presumably).. kris On Sun, Sep 2, 2012 at 4:02 PM, Jeffrey Peacock jeffp.ea...@gmail.com wrote: I am involved in a project to use camera enabled Android devices to detect cosmic ray events ( http://www.distributedsensorweb.org/wiki/index.php/DECO). It is enjoying some modest funding from the American Physics Society and interest from Fermi Labs and Standford Univ. The intent of the app is to run while the phone is plugged in and charging, like while the user is sleeping. As such the shutter sound must be defeated. In fact, even if you were running it on your desk while working the shutter sound is so annoying as to inspire you to reach for a hammer. For most phones we have been able to make use of the mechanisms seen in previous posts: mute streams and/or set volume to 0. However, for a recent phone, the LG Optimus Elite (were using low cost Virgin Mobile devices as some of the test devices to reduce costs), none of the old tricks work: the shutter sound always plays. BUT!!! I can download a camera app from the Google Play -- aptly named SilentCamera -- which will take pictures, well, silently. And whatever solution it is employing is not using the MODIFY_AUDIO_SETTINGS permission. I have already burned several hours researching and trying a variety of things. As I've indicated I have tried muting and setting volume to 0 for all streams, just before the camera.takePicture() call. And have tried to do the same in onShutter(). What I have learned is (according to the logs) that the camera is playing the shutter sound BEFORE the onShutter() call. Obviously, I am hoping someone on the list can help. Thanks. /J Note: The LG Optimus Elite is running 2.3.7 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Annoying shutter click undermines scientific research.
Have you tried inserting a headphone lead? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ANN: Jekejeke Prolog 0.9.5 (runtime console, google play)
Dear All, This is an out of band release of Jekejeke Prolog. It is mainly an infrastructure update. The highlights are: - Runtime Library (free) I: The Swing version has now a console. - Runtime Library (free) II: The Android version has now a console. - Runtime Library (free) III: The Android version is now also available on Google Play. But the Development Environment and the Minlog Module are currently not on Google Play. - Minlog Module (Chart Parser, CLP(FD)): There is now an Android version. Happy coding! http://www.jekejeke.ch/ Jan Burse Sep 3. 2012 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: EditText hint shows extra spaces when inputType=textpassword
Check here! it is marked as resolved. http://stackoverflow.com/questions/7245220/edittext-hint-shows-extra-spaces-when-inputtype-textpassword?rq=1 Op dinsdag 5 januari 2010 03:33:31 UTC+1 schreef csyperski het volgende: I am seeing the same behavior, did you find any fix for this? On Dec 23 2009, 7:22 am, GDroid baron...@gmail.com wrote: Hi, Just wondered, am I the only one to encounter this strange behavior. When placing an EditText inside my activity and setting its inputType=textPassword as follow: EditText android:text= android:id=@+id/EditText01 android:hint=This is a hint android:inputType=textPassword android:layout_width=wrap_content android:layout_height=wrap_content/EditText The hint is displayed with bigger/double spaces between the words. If I remove the inputType attribute it all goes back to normal. I couldn't find a known issue regarding this behavior. BTW- If you wonder why this is important (it isn't that much) try putting two EditText widgets one below the other and set the inputType of one of them to textpassword it doesn't look good. Any comments? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 set android:fillViewport=true for scrool view programatically?
понедельник, 19 сентября 2011 г., 13:29:44 UTC+4 пользователь Krishna Prasad написал: Hi all, I had a problem in my linear layout which is inside a scroll view .The background image is not showing in full screen. My sample code is ScrollView sv = new ScrollView(this); sv.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); LinearLayout ll = new LinearLayout(this); ll.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); ll.setBackgroundResource(R.drawable.bg_plain_background); ll.setOrientation(LinearLayout.VERTICAL); sv.addView(ll); setContentView(sv); Thanks. sv.setFillViewport(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] android winusb driver -- odd behavior effecting adb
I am developing an Android app on Windows, and have successfully loaded it on probably 10-12 different phone models now. Each time I have used the Android win-usb driver supplied with the SDKhttp://developer.android.com/sdk/win-usb.html. In fact, I have had great success using it even with phones that are not listed as applicable devices. For the first time, I have run into trouble, and strangely, it is with the T-Moblie myTouch -- which *is* listed as one of the supported devices. Windows installs the diver fine -- just as with the other phones I have used -- but something is not right. ADB does not recognize the device when connected -- adb devices returns nothing (no devices connected). One bit of information that is probably useful is that Device Manager lists the myTouch as Android Phone Android ADB Interface, whereas with the phones that work, they instead list as ADB Interface Mot Composite ADB Interface (Motorola Droid, for example). The driver install process appeared to go exactly the same as with all other phones. I guess I can try going and getting the myTouch custom driver from T-Mobile, but I hate just trying things without some understanding of what is going on -- especially since in this case, as I said, documentation says the myTouch is supposed to work with the Google driver in the SDK. I've done quite a bit of searching for this issue, and found many posts that seem closely related to what I'm experiencing, but nothing that recommends something I haven't tried already. Anyone know how to fix this? Thanks, Andrew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Refunding
I am developing an app where there are in-app products and I was testing refunding. So I bought the in-app products, refunded it on Google Merchant account, and then when I try to rebuy the in-app product, it says You already own this item. I have cleared the cache in both apps, but nothing has helped. Any Ideas? Also, I have tried to add more test accounts in the developer console, but when attempting to buy in-app products it says The item you have selected is not available at this time. Is there a limit of emails you could use for test accounts? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Read Heap from DDMS
Did anyone find a solution to this. I am still getting this.Developing for ICS and above.. On Monday, July 2, 2012 8:34:19 PM UTC+5:30, Ryan Hanna wrote: Seems like I am getting the same thing on my Phonegap / JQM app. Mine is taking up 5.5MB which is killing my heap size and eventually as my app runs it will stop allowing sounds. Did anyone find any clues on this particular heap hog? On Thursday, May 17, 2012 12:00:43 AM UTC-4, Ashwin Suresh wrote: Hi, I have the same problem and a similar dominator tree.Did you guys find a solution ??? On Thursday, 2 February 2012 22:27:31 UTC-5, Dmitrij wrote: I have the same problem https://lh5.googleusercontent.com/-itXwQBVHmOA/TytT8nWvLqI/ALQ/XgQqXx932p8/s1600/2012-02-03-062503_1920x1080_scrot.png On Thursday, 2 February 2012 22:27:31 UTC-5, Dmitrij wrote: I have the same problem https://lh5.googleusercontent.com/-itXwQBVHmOA/TytT8nWvLqI/ALQ/XgQqXx932p8/s1600/2012-02-03-062503_1920x1080_scrot.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
[android-developers] How can I get a test device from google?
I need to test out my apps that I am working on. But I have no phone to test them on. So I was wondering who to contact? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Picture Switcher
https://lh4.googleusercontent.com/-_xL3-lHQBT8/UEPDvASMvnI/ACg/nrB7oErDfmo/s1600/EditScreen.png Hi I'm making an app, I want the include include a smooth transition between the images. I want to display three images at a time but I don't know how to do that. The image above is an illustration of what I mean. Please help. adeebnqo.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: ToggleButton has broken.
Have you found any workaround for this? On Thursday, May 20, 2010 3:34:03 PM UTC+5:30, Sasaki wrote: I found DateWidgets also broken. http://www.downspade.com/images/device2.png I have checked ToggleButton image in resource file using getResource Method, But, ToggleButton image named button_onoff_indicator_off has not broken. What's happen in my device? Some one give me advice. -- 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] Unable to move 3rd party apps to external sd card in Samsung Galaxy S3
Hi, I recently purchased Samsung Galaxy S3. i downloaded games and apps from play store and when i tried to move it to my external sd card. Am unable to move any of my 3rd party applications from phone memory to external sd. I have checked the application apk file and the install location is set as auto, still am not able to move. I have contacted samsung customer support and they updated me that moving apps to external sd card is an additional feature provided by samsung and the same is not provided to Samsung Galaxy S3. I just wanted to confirm that it is a core android feature? Thanks Balaji. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Play audio during call
Being a beginner with Android (both usage and hobby dev.), I found it kind-of hard to believe that it is not possible to make 'Personal Call Assistant' or 'Answering machine' type application do not exist, since these are common on Symbian and iOS side of things. On checking google play, I was surprised to find that all auto-answer solutions use SMS/short-messaging for such things. I am still hoping that I am missed using the right keywords. On Saturday, September 1, 2012 12:28:05 PM UTC+5:30, Kristopher Micinski wrote: On Sat, Sep 1, 2012 at 12:16 AM, Nakul Maheshri nakulma...@gmail.com javascript: wrote: I want to play audio file during call (like answering machine) i am using following code final AudioManager am; MediaPlayer mp=MediaPlayer.create(getApplicationContext(), R.raw.na); am=(AudioManager) getSystemService(AUDIO_SERVICE); am.setSpeakerphoneOn(false); am.adjustStreamVolume(AudioManager.STREAM_VOICE_CALL, AudioManager.ADJUST_LOWER, 0); mp.start(); it play audio file but by using speaker. but i do not want this i want only caller can hear.. How to do that?? It Require any hardware support?? Thanks in advance You cannot do this ever under any circumstance. Unfortunate end of story, even at the firmware level you have no access to the in call audio stream. Is this in the FAQ for this group? Perhaps it should be included.. 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] In app store for Indian App?
Hi, We want to have an inapp store for our app which deals with eBooks. We are based out of India. Google currently does not have merchant account supported for India, neither does it support in app content display in INR (Indian Rupees) Pricing. In this case can we build our own inapp store with our own payment processing system or we still have to list our content through Google in-app feature? -Team Attano www.attano.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] Twitter widget can't be placed after OAuth
Hello, I'm facing this weird bug in which the twitter widget i'm building can't be placed on home screen after authentication is complete. The configuration activity works perfectly, firing the browser to get the OAuth token, once the authentication is complete, and the activity is finished instead of being led to the home screen to place the widget; the activity terminates and i find myself at the browser i used for authentication earlier. naturally i'm not able to place the widget on the home screen. please help i'm trying to find a way to dismiss the browser after authentication but I'm not able to find a way to do so. best regards Badr -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Programming Porting in Android v Win8
My buddy and I are starting an app project. He's doing Win8, and I'm doing Android. For simple apps not requiring external keyboards, graphic tablets or pointing devices, where is the 'best' entry point viz simplicity of codex, versus upward porting ability? Our target audience would be 2.0, but if the app grows we'll want to port to 3.0 / 4.0. Is it simpler to code in 4.0, then limit functionality and down-port to 3.0, then 2.0?? And is there an online sim for beta testing, or do we have to hunt-and-peck this puppy? Last, is there an app library for remotely accessing and using Google Spreadsheets? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] almost bricked htc desire
hi i have a rooted htc desire bravo 2.2 fryo and i had a small sd card so i tried to change to a larger one. i moved all the stuff on the old one to the new one but it didn't work. i think i messed up some system files, now the phone wont boot it stays at the boot logo and vibrate and then go back to the boot screen. also my clock work recovery is not working. i can go in but it cant mount -W: can't mount/dev/block/mmcblk0p1(or/ dev/block /mmcblk0) (no such file or directory ) E:can't mount /sdcard. is there a way i can reset my phone to nothing not just clearing the user data, but make it like i never did anything to it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] DateWidget Bug in Android 4.0 and Above
Hi, I have an issue with the DateWidget. I have posted a http://stackoverflow.com/q/12197171/568613*Question at Stackoverflow.com* http://stackoverflow.com/q/12197171/568613. Please take a look at it. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Known problem ? Editing AVD hw properties on Linux, freezes the window
Using latest Android SDK Tools (20.0.3), with Android 2.3.3 (API 10) , on Ubuntu Linux 11.10 oneric (x86_64). Only difference from documentated procedure is that I am using OpenJDK, instead of Sun/Oracle Java. Created new AVD, which goes fine, only if I do not try to add certain (or in certain order) HW properties s.a. emulated camera, keyboard, GPS, GPU etc. Alternatively, if I just create AVD with defaults, and try to edit properties, then few properties can be added, but for others, again the Edit AVD window stalls/hangs. This is 100% repeatable. Search the list of known-issues with some obvious keywords, but that didn't turn up anything, although I've seen some really strange issues reported where-in one must ensure that focus is removed from the values col. while editing hw-properties, but I'm doing none of that. Note that I can add the hw properties, or edit them by directly editing the .ini file for the AVD, but it is the GUI which doesn't work. The exact set of hw-parameters or their order, which leads to the stall/hang, isn't very clear, but as mentioned above, that I did face the stall/hang while adding GPS, GPU, camera, keyboard... although adding the properties like enable sound, via GUI did work well. Should I create a new issue for this ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Stopping ADB server failed (code -1).
I have another computer that I was Downloading and Installing the packages and some point it stop, adding the same to my other PC, and It work but this is what the logg says: Done loading packages. Preparing to install archives Downloading Android SDK Platform-tools, revision 14 Installing Android SDK Platform-tools, revision 14 Stopping ADB server failed (code -1). Installed Android SDK Platform-tools, revision 14 Downloading Documentation for Android SDK, API 16, revision 2 Installing Documentation for Android SDK, API 16, revision 2 Should I worry about this?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Annoying shutter click undermines scientific research.
We've tried this. The sound is so percussive (I think) that we only get a little relief. Also, it won't work when we release the app to the wild as it is intended to be used by people all over the world to build a large scale observatory. Mucking/altering the speaker of the phone isn't going to appeal to the widest possible audience. /J On 09/02/2012 02:40 PM, Fred Niggle wrote: IF all else fails : put a plug of blu-tack or similar firmly into the hole the sounds comes from... it solved the proplem for myself, and its easy to remove with a toothpick ! On 2 September 2012 22:02, Jeffrey Peacock jeffp.ea...@gmail.com mailto:jeffp.ea...@gmail.com wrote: I am involved in a project to use camera enabled Android devices to detect cosmic ray events ( http://www.distributedsensorweb.org/wiki/index.php/DECO). It is enjoying some modest funding from the American Physics Society and interest from Fermi Labs and Standford Univ. The intent of the app is to run while the phone is plugged in and charging, like while the user is sleeping. As such the shutter sound must be defeated. In fact, even if you were running it on your desk while working the shutter sound is so annoying as to inspire you to reach for a hammer. For most phones we have been able to make use of the mechanisms seen in previous posts: mute streams and/or set volume to 0. However, for a recent phone, the LG Optimus Elite (were using low cost Virgin Mobile devices as some of the test devices to reduce costs), none of the old tricks work: the shutter sound always plays. BUT!!! I can download a camera app from the Google Play -- aptly named SilentCamera -- which will take pictures, well, silently. And whatever solution it is employing is not using the MODIFY_AUDIO_SETTINGS permission. I have already burned several hours researching and trying a variety of things. As I've indicated I have tried muting and setting volume to 0 for all streams, just before the camera.takePicture() call. And have tried to do the same in onShutter(). What I have learned is (according to the logs) that the camera is playing the shutter sound BEFORE the onShutter() call. Obviously, I am hoping someone on the list can help. Thanks. /J Note: The LG Optimus Elite is running 2.3.7 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Ubuntu Speech input https://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinput is now available on Google Play, along with Magnetic Door Alarm app https://play.google.com/store/apps/details?id=com.nds.magneticdooralarm. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Password protect app before users can download from google play store
Is there a way I can password protect an app I created, so that before a user can download the app, they would have to enter a password? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Need Help ....
Hello folks, I need a help me from you guys. ex: Game type here and are two buttons and game type is text view,when i click on button the text should be replace by another text like AI. this should be done in custom dialog box. please help me out. Thanks Regards Ch.Madhuri -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can I get a test device from google?
anyone that sells phones, Google doesn't have a special test phone, you just buy one yourself. kris On Sat, Sep 1, 2012 at 11:12 AM, TechGelman 529...@gmail.com wrote: I need to test out my apps that I am working on. But I have no phone to test them on. So I was wondering who to contact? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can I get a test device from google?
On Sat, Sep 1, 2012 at 12:12 PM, TechGelman 529...@gmail.com wrote: I need to test out my apps that I am working on. But I have no phone to test them on. So I was wondering who to contact? You can contact your local mobile carrier, phone retailer, or electronics retailer, and buy one. Or purchase a used device (eBay, craiglist, etc.). There is no loaner program for Android from Google, though occasionally specific device manufacturers may have a loaner program. -- 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
[android-developers] masterdetailflow ADT + OpenGL
What changes do I need to do in order to make the masterdetailflow ADT to show OpenGL in the detail-window? GLSurfaceView? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Path or Canvas changes in API-Level 14 / Problems on Nexus 7
Yes, I am. Still, you mentioning hardware acceleration was what I needed as I found the answer in your blog posthttp://android-developers.blogspot.de/2011/03/android-30-hardware-acceleration.html. Turning off hardware acceleration actually helps. I'm not calling any methods methods you mentioned there, but I suspect they are called internally. If useful for anyone, I already set up a sample projecthttps://github.com/georgwiese/Path-Test--Android-on Github in which I describe two situations in which I had those problems. Basically, it's an empty project except for this CustomView classhttps://github.com/georgwiese/Path-Test--Android-/blob/master/src/com/example/pathtest/CustomView.javain which all the work is done. Thank you for your answer ;) On Friday, August 31, 2012 5:46:43 PM UTC+2, Romain Guy (Google) wrote: With API 14 your app is hardware accelerated. Are you sure you are calling invalidate() on the View that contains this drawPath code? On Thu, Aug 30, 2012 at 9:05 AM, Georg Wiese georg...@gmail.comjavascript: wrote: I'm having several issues dealing with android.graphics.Path when I set my target API-Level to 14 or higher and only on certain devices. One has already been described here, another one is this: I used to be able to create a Path and then in View.onDraw() do something like: canvas.drawPath(p, paint); pTest.offset(1, 1); This would offset the path by 1 pixel each dimension every time View.invalidate() is called. At target API-Level 14+ however, this offsets it only once and then never again, when running on the Nexus 7. On the emulator, it works just as it should. Does anyone know, what the problem is here? 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-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: -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Suggestions for Data Sync?
Hello, I am an experienced programmer who is just starting to design programs in Android. I'm hoping some one can please help me get started in the right direction (unlike I usually do it). When a transaction is performed in my app on Device A, I would like to transmit data to other devices in a 'Group' to keep them in sync. The minimum data per transaction could be a 3 element string array. I was thinking about using messaging to accomplish this because of the small payload and I can only assume that would be the closest thing to realtime notification. I've only read a little about using texts for process communications, and that is one area I might like to investigate. On the other hand, using a central database would offer the benefit of being to keep a centralized log of activity and I would prefer to use a database in general. I am starting out now on trying to find methods of using 'cloud' based data store from multiple devices for SQLite. Would I need to buy hosting? If anyone can please suggest some areas for me to investigate, I'll go do some reading. Thanks for your help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: [BluetoothHeadset] Could not receive BluetoothHeadset.ACTION_VENDOR_SPECIFIC_HEADSET_EVENT intent
Hi Sho. I just tried similar and got the same result as yours. 0. Ensure that Bluetooth events are observable: uses-permission android:name=android.permission.BLUETOOTH / 1. Set up broadcast intent listener: IntentFilter filter1 = new IntentFilter(BluetoothHeadset.ACTION_VENDOR_SPECIFIC_HEADSET_EVENT); this.registerReceiver(mReceiver, filter1); 2. Handle caught event: if (BluetoothHeadset.ACTION_VENDOR_SPECIFIC_HEADSET_EVENT.equals(action)) Toast.makeText(getBaseContext(), String.format(AT command), Toast.LENGTH_SHORT).show(); Feedback from anyone who has used/verified the use of this Intent would be gladly appreciated. Thank you. -- On Friday, August 31, 2012 3:46:10 PM UTC+8, Sho Lin wrote: Hi All, I implemented an app. which register a BroadcastReceiver to handle BluetoothHeadset.ACTION_VENDOR_SPECIFIC_HEADSET_EVENT intent. When my phone connects to a headset which sends AT command AT+XEVENT=foo,3 via handsfree profile, I expected my app. to get a broadcast intent of BluetoothHeadset.ACTION_VENDOR_SPECIFIC_HEADSET_EVENT. But my app. got nothing. (I wrote another app. to broadcast a BluetoothHeadset.ACTION_VENDOR_SPECIFIC_HEADSET_EVENT intent, my app. could receive it) For what kind of handsfree AT commands that android would broadcast a BluetoothHeadset.ACTION_VENDOR_SPECIFIC_HEADSET_EVENT intent? Or did I miss anything to receive correctly? Any help would be greatly appreciated, thanks. Sincerely, Sho -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ADT Plugin Installation
I am currently beginning a course on Android Application Development at my local community college, and have setup Eclipse with the ADT Plugin on my laptop (running Ubuntu Linux 12.04) with no problems. I am now attempting to set it up on my Windows 7 desktop and am having issues installing the ADT Plugin. I went to the Eclipse website but was referred back to here. The problem: When I do Install New Software and use https://dl-ssl.google.com/android/eclipse/ it will begin, hit 26% then after a period of time go to 49%, but after having waited over 25minutes with no change I eventually cancel and try again. After having done this a number of times I finally resolved to post here for a solution. I have tried making program exceptions in the firewall, gone into the DMZ to try getting things running, turning off my firewall, using HTTP instead of HTTPS. Nothing changes. Any ideas? Using Eclipse 4.2 Juno, Windows 7 64-bit. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Ice Cream Sandwich 4.0.4
Could you please Please, return the Emoticons back to normal yellow smilley faces, the green toaddy looking thing is rediculous, i know there are apps that do this, but the reciever also most have the app. People would use the emoticons more if you'd change them back to standard yellow ones. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SDK Issues
I'm having issues downloading the intel x86 atom system image through the sdk. the dl just hangs every time. The other sdk packages install just fine. I found some comments about it during a quick search but no solutions. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Password protect app before users can download from google play store
No, if you require this then you should protect the app's workings with a code, i.e., put some amount of calls inside a web service requires authentication. kris On Sat, Sep 1, 2012 at 7:09 AM, cjs264 corystew...@gmail.com wrote: Is there a way I can password protect an app I created, so that before a user can download the app, they would have to enter a password? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Pulling data from a server and inserting it into a ListView. Works with TextView
Hi all. Something I'm trying to do. Just to note; the code works when inserting the data into a TextView but not with a ListView. I definitely think I'm doing something wrong in regardings to coding the ListView. I just don't know what. The logcat isn't helping much since it's showing the same things it's showed when I've had various other errors. I'm hoping to have two columns if that is possible. I'm getting the database from a mySQL server. Here is my code: http://pastebin.com/LpLBMsKU Hopefully someone can help. I would really appreciate it. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Excessive delay setting brightness: 173ms, mask=2
I am facing this exact issue now in my phone. Donno why this is happening? On Friday, 24 August 2012 14:39:47 UTC+5:30, jean-francois labbe wrote: I've found this error on my nexus S jelly bean logs. E/PowerManagerService(260): Excessive delay setting brightness: 173ms, mask=2 it appears every time I turn on or off the screen. What does it mean? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] New SDK 5.0 from Airpush to comply with Google Play new policies?
Quick Question: Do we need to upgrade (new version) our current apps with the new SDK in order to comply with Google PLay policies or is this only for New Apps uploaded to the market? I use Airpush. Thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] System menu changing
a href=https://picasaweb.google.com/lh/photo/ q1Yk9nFto8dIK0lkx_rtzq1UzT3h9OiaKJgpNdLujpA?feat=embedwebsiteimg src=https://lh5.googleusercontent.com/-QSOzp7Tr-_4/UEMtbjmLztI/ ADE/bTnt-GG7WrU/s144/DSC00849.JPG height=108 width=144 / /a How to change stadard system menu when selecting text, to add new options to web search and send to menu? (nonprogramically!) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SDK Manager does not fetch any package for installation (no error reported)
any solution for tis??? pls reply friends !! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] run app in smartphone
I can`t run app's in phone. I'm using Eclipse SDK 4.2 and the phone Samsumg GT-I9003. The emulator the eclipse is very slowly. Anybody can help me? Thank. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] [scaling_governor] How can I overwite scaling_governor on Java framework codes?
Hi all, I am meeting a problem that, I have to change the CPU performance to increase the LTE data rate. So, I have to write perfomance the /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor. Unfortunately, I cannot access that file for writing my command. when I am using adb shell command to check the file attributes, I see that. -rw-r--r-- root scaling_governor I think the file allows us to edit it, but I cannot write it on my source code. I implemented my code at com.android.systemui.statusbar.policy.NetworkController.java. Any comments would be appreciated. Thanks, Dale -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Little Problem with converting a InputStream into a String.
Hey I am new to Java and developing apps for android. I tried without success to convert a InputStream into a String. public String Request(String url) { InputStream content = null; try { HttpGet httpGet = new HttpGet(url); HttpClient httpclient = new DefaultHttpClient(); // Execute HTTP Get Request HttpResponse response = httpclient.execute(httpGet); content = response.getEntity().getContent(); } catch (Exception e) { //handle the exception ! } try { return convert(content); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); return e.getMessage(); } } public String convert(InputStream is) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(is)); StringBuilder sb = new StringBuilder(); String line = null; while ((line = reader.readLine()) != null) { sb.append(line); } is.close(); return sb.toString(); } If i use this Code my App crashes. The Website only contains the word Test, nothing more. I really hope you are able to help me. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problems seeing mobile device via ADB
Hi, I've written a simple hello world app and can run it on the emulator, but I can't get it to load onto my android device. Even when my device is physically connected via usb adb cannot see it on the device list. The device is visible via file explorer. using eclipse, samsung galaxy S3 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: onActivityResult is called immediately after startActivityForResult
On Wednesday, December 23, 2009 6:35:25 AM UTC-8, Lance Nanek wrote: Changing the launch mode fixed it. Sorry to necro an old thread and maybe you won't even see this, but I'm having a similar problem... changing the launch mode *HOW* ? Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Play audio during call
As I just said, this app will be impossible to write. kris On Sat, Sep 1, 2012 at 4:31 AM, falcon74 banibrata.du...@gmail.com wrote: Being a beginner with Android (both usage and hobby dev.), I found it kind-of hard to believe that it is not possible to make 'Personal Call Assistant' or 'Answering machine' type application do not exist, since these are common on Symbian and iOS side of things. On checking google play, I was surprised to find that all auto-answer solutions use SMS/short-messaging for such things. I am still hoping that I am missed using the right keywords. On Saturday, September 1, 2012 12:28:05 PM UTC+5:30, Kristopher Micinski wrote: On Sat, Sep 1, 2012 at 12:16 AM, Nakul Maheshri nakulma...@gmail.com wrote: I want to play audio file during call (like answering machine) i am using following code final AudioManager am; MediaPlayer mp=MediaPlayer.create(getApplicationContext(),R.raw.na); am=(AudioManager) getSystemService(AUDIO_SERVICE); am.setSpeakerphoneOn(false); am.adjustStreamVolume(AudioManager.STREAM_VOICE_CALL, AudioManager.ADJUST_LOWER, 0); mp.start(); it play audio file but by using speaker. but i do not want this i want only caller can hear.. How to do that?? It Require any hardware support?? Thanks in advance You cannot do this ever under any circumstance. Unfortunate end of story, even at the firmware level you have no access to the in call audio stream. Is this in the FAQ for this group? Perhaps it should be included.. 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] Password protect app before users can download from google play store
On Sat, Sep 1, 2012 at 8:09 AM, cjs264 corystew...@gmail.com wrote: Is there a way I can password protect an app I created, so that before a user can download the app, they would have to enter a password? If you distribute it yourself through your own Web site, you are welcome to put whatever passwords you want on that Web site. -- 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
[android-developers] Re: File not found
I am having the same problem when I try to install an Android Support Library update. On Saturday, August 18, 2012 5:01:03 AM UTC-7, Swami R wrote: Hi All, I have just joined andriod developers. When i try to update my sdk manager it is giving the following error. please help me out in this issue. Preparing to install archives Downloading Android SDK Tools, revision 20.0.3 File not found: C:\Program Files (x86)\Android\android-sdk\temp\tools_r20.0.3-windows.zip (Access is denied) Downloading Android SDK Platform-tools, revision 14 File not found: C:\Program Files (x86)\Android\android-sdk\temp\platform-tools_r14-windows.zip (Access is denied) Downloading Documentation for Android SDK, API 16, revision 2 File not found: C:\Program Files (x86)\Android\android-sdk\temp\docs-16_r02.zip (Access is denied) Downloading SDK Platform Android 4.1, API 16, revision 2 File not found: C:\Program Files (x86)\Android\android-sdk\temp\android-16_r02.zip (Access is denied) Downloading SDK Platform Android 4.0.3, API 15, revision 3 File not found: C:\Program Files (x86)\Android\android-sdk\temp\android-15_r03.zip (Access is denied) Downloading Samples for SDK API 16, revision 1 File not found: C:\Program Files (x86)\Android\android-sdk\temp\samples-16_r01.zip (Access is denied) Downloading Samples for SDK API 15, revision 2 File not found: C:\Program Files (x86)\Android\android-sdk\temp\samples-15_r02.zip (Access is denied) Downloading ARM EABI v7a System Image, Android API 15, revision 2 File not found: C:\Program Files (x86)\Android\android-sdk\temp\sysimg_armv7a-15_r02.zip (Access is denied) Downloading Sources for Android SDK, API 16, revision 2 File not found: C:\Program Files (x86)\Android\android-sdk\temp\sources-16_r02.zip (Access is denied) Downloading Sources for Android SDK, API 15, revision 2 File not found: C:\Program Files (x86)\Android\android-sdk\temp\sources-15_r02.zip (Access is denied) Downloading Android Support Library, revision 10 File not found: C:\Program Files (x86)\Android\android-sdk\temp\support_r10.zip (Access is denied) Skipping 'ARM EABI v7a System Image, Android API 16, revision 2'; it depends on 'SDK Platform Android 4.1, API 16, revision 2' which was not installed. Done. Nothing was installed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Suggestions for Data Sync?
You could look into Google App Engine, or a custom backend solution like Parse, there are other similar solutions that do exist. Otherwise, yes, you will need to buy hosting space and write your own backend. kris On Fri, Aug 31, 2012 at 5:57 PM, Droob frankjlin...@gmail.com wrote: Hello, I am an experienced programmer who is just starting to design programs in Android. I'm hoping some one can please help me get started in the right direction (unlike I usually do it). When a transaction is performed in my app on Device A, I would like to transmit data to other devices in a 'Group' to keep them in sync. The minimum data per transaction could be a 3 element string array. I was thinking about using messaging to accomplish this because of the small payload and I can only assume that would be the closest thing to realtime notification. I've only read a little about using texts for process communications, and that is one area I might like to investigate. On the other hand, using a central database would offer the benefit of being to keep a centralized log of activity and I would prefer to use a database in general. I am starting out now on trying to find methods of using 'cloud' based data store from multiple devices for SQLite. Would I need to buy hosting? If anyone can please suggest some areas for me to investigate, I'll go do some reading. Thanks for your 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] run app in smartphone
You don't provide any information other than that it doesn't work, why doesn't it work? kris On Sat, Sep 1, 2012 at 1:47 PM, nanmi mmhalva...@gmail.com wrote: I can`t run app's in phone. I'm using Eclipse SDK 4.2 and the phone Samsumg GT-I9003. The emulator the eclipse is very slowly. Anybody can help me? Thank. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Password protect app before users can download from google play store
No, but there is something even better: on-line license verification. http://developer.android.com/guide/google/play/licensing/index.html Your app can ask Android Market any time whether the current user has a license to use it. If they aren't, then you can decide what to do about it. (For example, you could display a dialog offering them an incentive to pay for it.) On Saturday, September 1, 2012 2:09:23 PM UTC+2, cjs264 wrote: Is there a way I can password protect an app I created, so that before a user can download the app, they would have to enter a password? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Annoying shutter click undermines scientific research.
Each of those is possible. Going through the front door channel might invoke more resistance as it would then be a kind-of official reply. I was hoping s/he might be on this list. I'm also betting that someone here knows the answer. /J On 09/02/2012 02:49 PM, Kristopher Micinski wrote: Jeff, In the worst case scenario, you could just disassemble the app and reverse engineer it... In the best case scenario you should email the developer and ask him how he's doing it, citing your research as why you need it (providing proof you won't rip off his app, presumably).. kris On Sun, Sep 2, 2012 at 4:02 PM, Jeffrey Peacock jeffp.ea...@gmail.com wrote: I am involved in a project to use camera enabled Android devices to detect cosmic ray events ( http://www.distributedsensorweb.org/wiki/index.php/DECO). It is enjoying some modest funding from the American Physics Society and interest from Fermi Labs and Standford Univ. The intent of the app is to run while the phone is plugged in and charging, like while the user is sleeping. As such the shutter sound must be defeated. In fact, even if you were running it on your desk while working the shutter sound is so annoying as to inspire you to reach for a hammer. For most phones we have been able to make use of the mechanisms seen in previous posts: mute streams and/or set volume to 0. However, for a recent phone, the LG Optimus Elite (were using low cost Virgin Mobile devices as some of the test devices to reduce costs), none of the old tricks work: the shutter sound always plays. BUT!!! I can download a camera app from the Google Play -- aptly named SilentCamera -- which will take pictures, well, silently. And whatever solution it is employing is not using the MODIFY_AUDIO_SETTINGS permission. I have already burned several hours researching and trying a variety of things. As I've indicated I have tried muting and setting volume to 0 for all streams, just before the camera.takePicture() call. And have tried to do the same in onShutter(). What I have learned is (according to the logs) that the camera is playing the shutter sound BEFORE the onShutter() call. Obviously, I am hoping someone on the list can help. Thanks. /J Note: The LG Optimus Elite is running 2.3.7 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Annoying shutter click undermines scientific research.
Yup. Sound plays through speaker anyway. But thanks. It shows people are listening (pun intended) and helpful. /J On 09/02/2012 02:50 PM, RichardC wrote: Have you tried inserting a headphone lead? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] [scaling_governor] How can I overwite scaling_governor on Java framework codes?
I don't think having the status bar control the CPU frequency is a good architecture :) On Fri, Aug 31, 2012 at 7:21 PM, Dale lenhatta...@gmail.com wrote: Hi all, I am meeting a problem that, I have to change the CPU performance to increase the LTE data rate. So, I have to write perfomance the /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor. Unfortunately, I cannot access that file for writing my command. when I am using adb shell command to check the file attributes, I see that. -rw-r--r-- root scaling_governor I think the file allows us to edit it, but I cannot write it on my source code. I implemented my code at com.android.systemui.statusbar.policy.NetworkController.java. Any comments would be appreciated. Thanks, Dale -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Programming Porting in Android v Win8
On Sat, Sep 1, 2012 at 9:31 PM, Robert Marmaduke ant...@gmail.com wrote: My buddy and I are starting an app project. He's doing Win8, and I'm doing Android. I'm not sure that's relevant, they are substantially APIs? For simple apps not requiring external keyboards, graphic tablets or pointing devices, where is the 'best' entry point viz simplicity of codex, versus upward porting ability? Entry point in what sense? Our target audience would be 2.0, but if the app grows we'll want to port to 3.0 / 4.0. Is it simpler to code in 4.0, then limit functionality and down-port to 3.0, then 2.0?? you don't have to do anything to port the app up to 3.0/4.0. If you need features in 2.3 (for example) then you can't use 2.0: if you don't then stick with the widest audience. It's simplest to code with whatever API level gives you enough features for what you need. And is there an online sim for beta testing, or do we have to hunt-and-peck this puppy? There are online services that will test your apps, I would recommend testing on an actual device myself. There are automated testing solutions available, as well, for example monkeyrunner, etc.. Last, is there an app library for remotely accessing and using Google Spreadsheets? You're asking if Google docs has an API, I believe the answer is yes.. 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
Re: [android-developers] Annoying shutter click undermines scientific research.
For that specific device, I'm guessing not, this sounds fairly targeted and (knowing most of the API) nothing stands out to me as a red flag about how it's done, I'd mess aroudn with the app for a while and decompile it if I couldn't figure it out.. kris On Sun, Sep 2, 2012 at 5:42 PM, Jeffrey Peacock jeffp.ea...@gmail.com wrote: Each of those is possible. Going through the front door channel might invoke more resistance as it would then be a kind-of official reply. I was hoping s/he might be on this list. I'm also betting that someone here knows the answer. /J On 09/02/2012 02:49 PM, Kristopher Micinski wrote: Jeff, In the worst case scenario, you could just disassemble the app and reverse engineer it... In the best case scenario you should email the developer and ask him how he's doing it, citing your research as why you need it (providing proof you won't rip off his app, presumably).. kris On Sun, Sep 2, 2012 at 4:02 PM, Jeffrey Peacock jeffp.ea...@gmail.com wrote: I am involved in a project to use camera enabled Android devices to detect cosmic ray events ( http://www.distributedsensorweb.org/wiki/index.php/DECO). It is enjoying some modest funding from the American Physics Society and interest from Fermi Labs and Standford Univ. The intent of the app is to run while the phone is plugged in and charging, like while the user is sleeping. As such the shutter sound must be defeated. In fact, even if you were running it on your desk while working the shutter sound is so annoying as to inspire you to reach for a hammer. For most phones we have been able to make use of the mechanisms seen in previous posts: mute streams and/or set volume to 0. However, for a recent phone, the LG Optimus Elite (were using low cost Virgin Mobile devices as some of the test devices to reduce costs), none of the old tricks work: the shutter sound always plays. BUT!!! I can download a camera app from the Google Play -- aptly named SilentCamera -- which will take pictures, well, silently. And whatever solution it is employing is not using the MODIFY_AUDIO_SETTINGS permission. I have already burned several hours researching and trying a variety of things. As I've indicated I have tried muting and setting volume to 0 for all streams, just before the camera.takePicture() call. And have tried to do the same in onShutter(). What I have learned is (according to the logs) that the camera is playing the shutter sound BEFORE the onShutter() call. Obviously, I am hoping someone on the list can help. Thanks. /J Note: The LG Optimus Elite is running 2.3.7 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: What is the best way to Download Images and texts and use them in my app?
Fetch your data from the network off the UI thread so the app remains responsive. Either use AsyncTask or a Service, and update the UI when the data is ready. On Sunday, September 2, 2012 1:52:46 PM UTC+2, Mohammad Abu Hmead wrote: Dear Developers, I created an app which load data from server and format it in specific format in android UI components, like text view and image view, but the loading take long time, i want to know what is the best way to decrease the load time and increase the loading speed and the quality of my app, if you know a book name or blog or wiki don't hesitate to till me. If you want to see the developed and published app which I'm talking about, please visit Wasfatihttps://play.google.com/store/apps/details?id=com.alameenTech.android app on android market. Many 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] [scaling_governor] How can I overwite scaling_governor on Java framework codes?
If you don't have root, you can't (shouldn't).. kris On Fri, Aug 31, 2012 at 9:21 PM, Dale lenhatta...@gmail.com wrote: Hi all, I am meeting a problem that, I have to change the CPU performance to increase the LTE data rate. So, I have to write perfomance the /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor. Unfortunately, I cannot access that file for writing my command. when I am using adb shell command to check the file attributes, I see that. -rw-r--r-- root scaling_governor I think the file allows us to edit it, but I cannot write it on my source code. I implemented my code at com.android.systemui.statusbar.policy.NetworkController.java. Any comments would be appreciated. Thanks, Dale -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] almost bricked htc desire
If you read the description of this group it is for SDK related questions only, you may try asking your question on a forum dedicated to Android rooting.. kris On Fri, Aug 31, 2012 at 6:19 PM, lee caleb calebt...@gmail.com wrote: hi i have a rooted htc desire bravo 2.2 fryo and i had a small sd card so i tried to change to a larger one. i moved all the stuff on the old one to the new one but it didn't work. i think i messed up some system files, now the phone wont boot it stays at the boot logo and vibrate and then go back to the boot screen. also my clock work recovery is not working. i can go in but it cant mount -W: can't mount/dev/block/mmcblk0p1(or/ dev/block /mmcblk0) (no such file or directory ) E:can't mount /sdcard. is there a way i can reset my phone to nothing not just clearing the user data, but make it like i never did anything to it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Annoying shutter click undermines scientific research.
After reading this : http://stackoverflow.com/questions/10383083/how-to-mute-camera-shutter-sound-on-android-phone it seems you can best manage this by coding as best you can to disable the shutter click, and perhaps providing a help screen of tips that will tip the users on how to manage the problem themselves. Personally, if I wanted such an app, and my device was noisy, I would find a physical means to mute it... On 2 September 2012 23:45, Kristopher Micinski krismicin...@gmail.comwrote: For that specific device, I'm guessing not, this sounds fairly targeted and (knowing most of the API) nothing stands out to me as a red flag about how it's done, I'd mess aroudn with the app for a while and decompile it if I couldn't figure it out.. kris On Sun, Sep 2, 2012 at 5:42 PM, Jeffrey Peacock jeffp.ea...@gmail.com wrote: Each of those is possible. Going through the front door channel might invoke more resistance as it would then be a kind-of official reply. I was hoping s/he might be on this list. I'm also betting that someone here knows the answer. /J On 09/02/2012 02:49 PM, Kristopher Micinski wrote: Jeff, In the worst case scenario, you could just disassemble the app and reverse engineer it... In the best case scenario you should email the developer and ask him how he's doing it, citing your research as why you need it (providing proof you won't rip off his app, presumably).. kris On Sun, Sep 2, 2012 at 4:02 PM, Jeffrey Peacock jeffp.ea...@gmail.com wrote: I am involved in a project to use camera enabled Android devices to detect cosmic ray events ( http://www.distributedsensorweb.org/wiki/index.php/DECO). It is enjoying some modest funding from the American Physics Society and interest from Fermi Labs and Standford Univ. The intent of the app is to run while the phone is plugged in and charging, like while the user is sleeping. As such the shutter sound must be defeated. In fact, even if you were running it on your desk while working the shutter sound is so annoying as to inspire you to reach for a hammer. For most phones we have been able to make use of the mechanisms seen in previous posts: mute streams and/or set volume to 0. However, for a recent phone, the LG Optimus Elite (were using low cost Virgin Mobile devices as some of the test devices to reduce costs), none of the old tricks work: the shutter sound always plays. BUT!!! I can download a camera app from the Google Play -- aptly named SilentCamera -- which will take pictures, well, silently. And whatever solution it is employing is not using the MODIFY_AUDIO_SETTINGS permission. I have already burned several hours researching and trying a variety of things. As I've indicated I have tried muting and setting volume to 0 for all streams, just before the camera.takePicture() call. And have tried to do the same in onShutter(). What I have learned is (according to the logs) that the camera is playing the shutter sound BEFORE the onShutter() call. Obviously, I am hoping someone on the list can help. Thanks. /J Note: The LG Optimus Elite is running 2.3.7 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Unable to move 3rd party apps to external sd card in Samsung Galaxy S3
Sorry, but this has nothing to do with Android Development. On 31 August 2012 12:15, balaji velmurugan balaji.velmuru...@gmail.comwrote: Hi, I recently purchased Samsung Galaxy S3. i downloaded games and apps from play store and when i tried to move it to my external sd card. Am unable to move any of my 3rd party applications from phone memory to external sd. I have checked the application apk file and the install location is set as auto, still am not able to move. I have contacted samsung customer support and they updated me that moving apps to external sd card is an additional feature provided by samsung and the same is not provided to Samsung Galaxy S3. I just wanted to confirm that it is a core android feature? Thanks Balaji. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Stopping ADB server failed (code -1).
ADB (android debug bridge) is used for connecting a physical android device to your computer for debugging apps - if your content to use the emulator then this is no problem, else google the error and you'll find the solution :) On 2 September 2012 19:22, andromeda623 andromeda...@gmail.com wrote: I have another computer that I was Downloading and Installing the packages and some point it stop, adding the same to my other PC, and It work but this is what the logg says: Done loading packages. Preparing to install archives Downloading Android SDK Platform-tools, revision 14 Installing Android SDK Platform-tools, revision 14 Stopping ADB server failed (code -1). Installed Android SDK Platform-tools, revision 14 Downloading Documentation for Android SDK, API 16, revision 2 Installing Documentation for Android SDK, API 16, revision 2 Should I worry about this?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Need Help ....
you need to google for button.settext... On 31 August 2012 12:37, Madhuri Cherukuri ch.madhuri...@gmail.com wrote: Hello folks, I need a help me from you guys. ex: Game type here and are two buttons and game type is text view,when i click on button the text should be replace by another text like AI. this should be done in custom dialog box. please help me out. Thanks Regards Ch.Madhuri -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ADT Plugin Installation
Since you have working development environment working fine on Ubuntu, why bother with windows? On 1 September 2012 16:07, Ryan Kelso deathmat...@gmail.com wrote: I am currently beginning a course on Android Application Development at my local community college, and have setup Eclipse with the ADT Plugin on my laptop (running Ubuntu Linux 12.04) with no problems. I am now attempting to set it up on my Windows 7 desktop and am having issues installing the ADT Plugin. I went to the Eclipse website but was referred back to here. The problem: When I do Install New Software and use https:// dl-ssl.google.com/android/eclipse/ it will begin, hit 26% then after a period of time go to 49%, but after having waited over 25minutes with no change I eventually cancel and try again. After having done this a number of times I finally resolved to post here for a solution. I have tried making program exceptions in the firewall, gone into the DMZ to try getting things running, turning off my firewall, using HTTP instead of HTTPS. Nothing changes. Any ideas? Using Eclipse 4.2 Juno, Windows 7 64-bit. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Little Problem with converting a InputStream into a String.
You need to learn about debugging... On 2 September 2012 21:06, TheSky mhenke...@googlemail.com wrote: Hey I am new to Java and developing apps for android. I tried without success to convert a InputStream into a String. public String Request(String url) { InputStream content = null; try { HttpGet httpGet = new HttpGet(url); HttpClient httpclient = new DefaultHttpClient(); // Execute HTTP Get Request HttpResponse response = httpclient.execute(httpGet); content = response.getEntity().getContent(); } catch (Exception e) { //handle the exception ! } try { return convert(content); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); return e.getMessage(); } } public String convert(InputStream is) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(is)); StringBuilder sb = new StringBuilder(); String line = null; while ((line = reader.readLine()) != null) { sb.append(line); } is.close(); return sb.toString(); } If i use this Code my App crashes. The Website only contains the word Test, nothing more. I really hope you are able to help me. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Route Google Maps
Thank you and sorry for posting in the wrong place Em sexta-feira, 31 de agosto de 2012 15h32min48s UTC-3, TreKing escreveu: On Fri, Aug 31, 2012 at 9:48 AM, Jayme Vara jaym...@gmail.comjavascript: wrote: Before the change of API, the path was perfect in the streets, but now appears like the image I posted If you're question is regarding the Google Directions API, then you will have to ask your question on a group or forum related to that API. This has nothing to do with Android. - 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] New SDK 5.0 from Airpush to comply with Google Play new policies?
On Sat, Sep 1, 2012 at 8:18 PM, John michaelpho...@yahoo.com wrote: Quick Question: Do we need to upgrade (new version) our current apps with the new SDK in order to comply with Google PLay policies or is this only for New Apps uploaded to the market? I use Airpush. Ask a lawyer, or possibly Airpush. - 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] Android Ice Cream Sandwich 4.0.4
On Fri, Aug 31, 2012 at 6:08 PM, Diane58 diga...@gmail.com wrote: Could you please Please, return the Emoticons back to normal yellow smilley faces, the green toaddy looking thing is rediculous, i know there are apps that do this, but the reciever also most have the app. This forum is for developing app on the Android platform. For suggestions or feature requests, try b.android.com. People would use the emoticons more if you'd change them back to standard yellow ones. Do you have statistical evidence to defend this statement, beyond your own personal opinion? - 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] In app store for Indian App?
On Fri, Aug 31, 2012 at 6:29 AM, Attano Learn attanole...@gmail.com wrote: In this case can we build our own inapp store with our own payment processing system or we still have to list our content through Google in-app feature? That's a question for a lawyer. - 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] 【android-developers】 Manifest.xml android:icon
thank you for return message . but...Since a difference is looked at by my contents of a question, and reply, a question is asked once again. || Manifest.xml -- |receiver class=.AReceiver android:name=.AReceiver intent-filter action android:name=android.net.conn.CONNECTIVITY_CHANGE / /intent-filter /receiver service class=.service android:name=.service android:enabled=true android:icon=@drawable/icon /service | |android:icon=@drawable/icon|← It is used where? url :http://stackoverflow.com/questions/2301057/starting-a-service-on-android-platform help me. (2012/08/31 22:05), Parthi K wrote: hi buddy that is not icon go - your project .open resources open drawable image name(icon)--change icon add images- On Fri, Aug 31, 2012 at 4:31 PM, Parthi K parthisof...@gmail.com mailto:parthisof...@gmail.com wrote: Hi dude what problem manifest just mention the problem. will slove.. On Fri, Aug 31, 2012 at 4:09 PM, 安藤玲生 ando.reo...@gmail.com mailto:ando.reo...@gmail.com wrote: im japanese programer. || Manifest.xml -- |receiver class=.AReceiver android:name=.AReceiver intent-filter action android:name=android.net.conn.CONNECTIVITY_CHANGE / /intent-filter /receiver service class=.service android:name=.service android:enabled=true android:icon=@drawable/icon /service | |android:icon=@drawable/icon|← Is it an icon set up where? url :http://stackoverflow.com/questions/2301057/starting-a-service-on-android-platform help 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 mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Play audio during call
On Sun, Sep 02, 2012 at 05:38:20PM -0500, Kristopher Micinski wrote: As I just said, this app will be impossible to write. Anyone want to place any bets on how many minutes (seconds?) it'll be until the next time someone asks this question? Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running Mac OS X Lion spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W Saw something on TV about Psych-os. H, Psych OS. Perhaps the next freeware OS --me Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android unwanted screen on with error in logcat: Excessive delay setting brightness: 197ms, mask=2
I have developed an app that uses alarm/notification services of the android system. In the recent few days I found my phone (Nexus S Jelly Bean) display is switching on unwantedly. I am worried whether this is due to my app. The screen goes on and becomes off immediately with no reason. I have noticed the following message in the logcat when this thing happens: Excessive delay setting brightness: 197ms, mask=2 Can anyone faced this problem earlier? I am worried whether my app is causing this issue. But, i am very sure this was not happening earlier. Any help on this would be appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this 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: problem_screenshot.png
Re: [android-developers] Unable to move 3rd party apps to external sd card in Samsung Galaxy S3
Hi Niggle, Thanks for the reply. If moving applications from internal memory works on other phones like sony,HTC and even in samsung S2, Galaxy note etc, why it is not the same in Samsung Galaxy S3. Note : ICS 4.0.4 is installed in my Samsung Galaxy S3. I have checked few other mobiles like Samsung Galaxy note, Samsung Galaxy S2, Sony Xperia Ion etc which has ICS 4.0.4 installed. In all the mentioned phones am able to move installed applications from Internal memory to external SD. All i wanted to know is moving applications from internal memory is a core andriod feature or not. (if am correct this was released in Android 2.2). If it is a core android feature then why samasung doesnt provide that feature in Samsung Galaxy S3 alone. Expecting your reply. Thanks Balaji. On Monday, September 3, 2012 4:53:52 AM UTC+5:30, Fred Niggle wrote: Sorry, but this has nothing to do with Android Development. On 31 August 2012 12:15, balaji velmurugan balaji.v...@gmail.comjavascript: wrote: Hi, I recently purchased Samsung Galaxy S3. i downloaded games and apps from play store and when i tried to move it to my external sd card. Am unable to move any of my 3rd party applications from phone memory to external sd. I have checked the application apk file and the install location is set as auto, still am not able to move. I have contacted samsung customer support and they updated me that moving apps to external sd card is an additional feature provided by samsung and the same is not provided to Samsung Galaxy S3. I just wanted to confirm that it is a core android feature? Thanks Balaji. -- 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 -- Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: anyway to zoom in webview and to scroll complete content in both side(vertically and horizontally)
Any solutions?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ADT Plugin Installation
Yeah, don't bother with Windows, stick with development on Ubuntu. It'll run a lot easier with less hacks. On Sun, Sep 2, 2012 at 7:27 PM, Fred Niggle fred.nig...@googlemail.comwrote: Since you have working development environment working fine on Ubuntu, why bother with windows? On 1 September 2012 16:07, Ryan Kelso deathmat...@gmail.com wrote: I am currently beginning a course on Android Application Development at my local community college, and have setup Eclipse with the ADT Plugin on my laptop (running Ubuntu Linux 12.04) with no problems. I am now attempting to set it up on my Windows 7 desktop and am having issues installing the ADT Plugin. I went to the Eclipse website but was referred back to here. The problem: When I do Install New Software and use https ://dl-ssl.google.com/android/eclipse/ it will begin, hit 26% then after a period of time go to 49%, but after having waited over 25minutes with no change I eventually cancel and try again. After having done this a number of times I finally resolved to post here for a solution. I have tried making program exceptions in the firewall, gone into the DMZ to try getting things running, turning off my firewall, using HTTP instead of HTTPS. Nothing changes. Any ideas? Using Eclipse 4.2 Juno, Windows 7 64-bit. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Jacky Alcine Blog http://blog.jalcine.me | Launchpadhttps://launchpad.net/~jackyalcine -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 create Hexagon in android ?
Hi all, I wanna create Hexagon in android . I have no idea how to create buttons in hexagonal shape . Please can anyone suggest me . I have tried a lot in google. No sources i have found. Could anyone suggest me a link for coding or any codes ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 create Hexagon in android ?
What is your exact requirement ? On Mon, Sep 3, 2012 at 10:58 AM, Meena Rengarajan meenasoft...@gmail.comwrote: Hi all, I wanna create Hexagon in android . I have no idea how to create buttons in hexagonal shape . Please can anyone suggest me . I have tried a lot in google. No sources i have found. Could anyone suggest me a link for coding or any codes ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en