[android-developers] Problem with OpenGL ES and shaders
Hello I am learning now OpenGL ES and the use of shaders. I have written a test class that should only paint the application icon into the screen. So far no luck. Can anyone see what I am doing wrong or maybe point me to the right direction? public class GLTester { final int FLOAT_SIZE_BYTES = 4; int glProgramHandle = 0; int glVertexShaderHandle = 0; int glFragmentShaderHandle = 0; int glPositionHandle = 0; int glTextCoordHandle = 0; int glTextureHandle = 0; int frameTextureHandle = 0; FloatBuffer vertexBuffer = null; final float squareVertices[] = { -1.0f, -1.0f, 0.0f, 1.0f, -1.0f, 0.0f, -1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 0.0f }; FloatBuffer textureBuffer = null; final float textureVertices[] = { -1.0f, -1.0f, 1.0f, -1.0f, -1.0f, 1.0f, 1.0f, 1.0f }; final String vertexShaderCode= attribute vec4 a_position; attribute vec2 a_texcoord; varying vec2 v_texcoord; void main() {v_texcoord = a_texcoord; gl_Position = a_position;}; final String fragmentShaderCode = precision mediump float; varying vec2 v_texcoord; uniform sampler2D u_texture; void main() {gl_FragColor = texture2D(u_texture, v_texcoord.st);}; Bitmap bitmap = null; void test(final Context context) { BitmapFactory.Options options = new BitmapFactory.Options(); options.inScaled = false; bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.icon, options); setupGLES(); createProgram(); setupTexture(); draw(); } void setupGLES() { GLES20.glEnable(GLES20.GL_TEXTURE_2D); GLES20.glEnable(GLES20.GL_CULL_FACE); GLES20.glCullFace(GLES20.GL_BACK); GLES20.glDisable(GLES20.GL_DEPTH_TEST); GLES20.glViewport(0, 0, 400, 800); GLES20.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); } void createProgram() { glProgramHandle = GLES20.glCreateProgram(); glVertexShaderHandle = setupShader(GLES20.GL_VERTEX_SHADER, vertexShaderCode); glFragmentShaderHandle = setupShader(GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode); GLES20.glLinkProgram(glProgramHandle); glPositionHandle = GLES20.glGetAttribLocation(glProgramHandle, a_position); glTextCoordHandle = GLES20.glGetAttribLocation(glProgramHandle, a_texcoord); glTextureHandle = GLES20.glGetUniformLocation(glProgramHandle, u_texture); vertexBuffer = ByteBuffer.allocateDirect(squareVertices.length * FLOAT_SIZE_BYTES).order(ByteOrder.nativeOrder()).asFloatBuffer(); vertexBuffer.put(squareVertices).position(0); textureBuffer = ByteBuffer.allocateDirect(textureVertices.length * FLOAT_SIZE_BYTES).order(ByteOrder.nativeOrder()).asFloatBuffer(); textureBuffer.put(textureVertices).position(0); } int setupShader(final int type, final String code) { int shaderHandle = GLES20.glCreateShader(type); GLES20.glShaderSource(shaderHandle, code); GLES20.glCompileShader(shaderHandle); GLES20.glAttachShader(glProgramHandle, shaderHandle); return shaderHandle; } void setupTexture() { int texture[] = new int[1]; GLES20.glGenTextures(1, texture, 0); frameTextureHandle = texture[0]; texture = null; GLES20.glActiveTexture(GLES20.GL_TEXTURE0); GLES20.glBindTexture(GL10.GL_TEXTURE_2D, frameTextureHandle); GLES20.glUniform1i(glTextureHandle, 0); GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_NEAREST); GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_NEAREST); } void draw() { GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT); glUseProgram(glProgramHandle); vertexBuffer.position(0); GLES20.glVertexAttribPointer(glPositionHandle, 3, GLES20.GL_FLOAT, false, 0, vertexBuffer); GLES20.glEnableVertexAttribArray(glPositionHandle); textureBuffer.position(0); GLES20.glEnableVertexAttribArray(glTextCoordHandle); GLES20.glVertexAttribPointer(glTextCoordHandle, 2, GLES20.GL_FLOAT, false, 0, textureBuffer); GLES20.glActiveTexture(GLES20.GL_TEXTURE0); GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, frameTextureHandle); GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); GLES20.glUniform1i(glTextureHandle, 0); GLES20.glDrawArrays(GLES20.GL_TRIANGLE_STRIP, 0, squareVertices.length / 3); GLES20.glDisableVertexAttribArray(glPositionHandle); GLES20.glDisableVertexAttribArray(glTextCoordHandle); GLES20.glDisableVertexAttribArray(glTextureHandle); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Incoming Call number
hello, i am using the sip demo.I want to get the incoming call number.So how can i get the \number.I have use the broadcast receiver and in that used the telephonymanager but the number will come as null.So can anybody know how to get the number.I am not using the dilapad of emulator. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] problem in radioGroup.getCheckedRadioButtonId()
At 10:55 PM 3/8/2012, you wrote: ... please see code below. seems like i had the wrong OnCheckedChangeListener. it needs to be a RadioGroup.OnCheckedChangeListener. thanks --- co-chair http://ocjug.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Touchscreen sensivity
Hi, Is there any way to increase touchscreen sensivity on the Android mobile either through settings of the Android mobile or through programmatically. Could somebody also let me know what is Horizontal calibration and gyro sensor calibration that is available in the display settings of Android mobiles? Thank you, B.Arunkumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 : BluetoothChat
Hi members, I tried the bluetoothchat sample from the following link http://developer.android.com/resources/samples/BluetoothChat/index.html But i m getting the error No resource identifier found for attribute 'showAsAction' in package 'android' what may be the problem is? - Vivek -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Dell Streak 10 don't have com.google.android.maps.jar
I want to develop a application of Maps in the Dell Streak 10, I want to use the com.google.android.maps.jar. How should I do? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 encode h.264 with the hardware chip
I want to encode h.264 video from raw bmp files with the hardware chip. From android document, i get the opencore will call the hardware encoder. But in my android source code tree and the target library, i cannot find the opencore libraries. Has it been remove from android 4.0? Whether i can use other libraries? 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] can't camera
help me please.handle massage(-1) .i can't camera. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] I need to install driver to Galaxy nexus.
I need to install driver to Galaxy nexus. But I have no Idea.Plase Help me. It's driver is here. http://www.tricklestar.com/intl/support/driver.html (http://trickles.nextmp.net/dk/head/download/ld_pl2303_v0728.rar) The device Maker triclestar say I don't know how to do it . Please 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 To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] WifiManager disables all networks
I have a really weird issue with WifiManager: I connect to a network using WifiManager.enableNetwork(int netId, boolean disableOthers), with setting disableOthers to 'true'. This seems necessary in order to reliably establish a connection. However, this sets all other saved networks to 'disabled', meaning that I cannot connect to them until I re-activate them in the wifi settings. I tried to enable the previously enabled networks like this: wifiConfiguration.status = WifiConfiguration.Status.ENABLED; wifiManager.updateNetwork(wifiConfiguration); ... wifiManager.saveConfiguration(); However, after this, all networks' 'status' fields are still set to 1 (WifiConfiguration.Status.DISABLED). I also get a weird log message on saveConfiguration(): 03-08 16:14:26.125: W/BackupManagerService(110): dataChanged but no participant pkg='com.android.providers.settings' uid=10060 Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Big memory leak if heap 64MB
I have noticed memory leaks while there is more than 64MB memory assigned on heap. Please find attached the source code. I have compiled the progranmme using API level 11. Application has specified android:largeHeap=true in its manifest. Is there any solution/workaround to this problem? public class LeakActivity extends Activity { private Vectorbyte[] m_field = null; @Override public void onCreate( Bundle savedInstanceState ) { super.onCreate( savedInstanceState ); setContentView( R.layout.main ); Button btn; btn = (Button) findViewById( R.id.b_alloc ); btn.setOnClickListener( new OnClickListener() { public void onClick( View a_view ) { // for( int index = 0 ; index 10 ; ++ index ) // no leak for( int index = 0 ; index 20 ; ++ index ) // ~20MB leak { byte[] item = new byte[ 4*1024*1024 ]; m_field.add( item ); } Log.w( LeakActivity, allocate ); } } ); btn = (Button) findViewById( R.id.b_free ); btn.setOnClickListener( new OnClickListener() { public void onClick( View a_view ) { m_field.clear(); Log.w( LeakActivity, release ); } } ); if( m_field == null ) { m_field = new Vectorbyte[](); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: i get an error when i try and launch my apk file saying there is a problem passing the package
Try exporting the application using the eclipse's export wizard . On Thursday, March 8, 2012 4:26:13 PM UTC+5:30, alexb wrote: I built an application in eclipse for testing purposes it works in the emulator without any problems. I then copied the project named listviews from my workspace to a dropbox folder. I then went onto my phone went to the drop-box went to the bin directory and found the listviews.apk file. I then clicked on it and an error was thrown which said There is a problem passing the package. Could someone suggest a solution to this problem. Any help would be greatly 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=en
[android-developers] SDK and ADB errors
i get this... Downloading Android SDK Platform-tools, revision 10 Installing Android SDK Platform-tools, revision 10 Stopping ADB server failed (code -1). Installed Android SDK Platform-tools, revision 10 Stopping ADB server succeeded. Starting ADB server succeeded. Done. 1 package installed. Done loading packages. when trying to set up SDK and then ADB never works i get theses errors adb shell error: insufficient permissions for device -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Analytics in Widget
Hi, Do you know if it's possible to ad an analytics tracker (like google analytics) in a widget ? I would like to know of my widget is used/seen ... Thx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] patten lock developing
sir,can you please tell me where i can find android pattern lock projects with source code? it would be a great help to our project.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Game Programming help
Hello, I would like to know if there are any good sources or materials that I can study off of to learn how to make games on Android. The game in specific i'm trying to learn is a Worms-like game. If there is any information that would be useful in making android-based games please tell me. In addition, i would also like to know good places to learn android game programming, as well as to start off. I've already downloaded Eclipse and installed the SDK, but I'm wondering what is the best way to make android games. Thank you for your help, Ahmad -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: DeviceMonitor]Failed to start monitoring Device-number
Got the same error using an USB 3.0 port, connecting the phone on another port solved it for me. El jueves 5 de agosto de 2010 06:43:55 UTC-5, Rahul Garg escribió: Hi, I am facing this DeviceMonitor]Failed to start monitoring device- number in my eclipse, thats why I not able to launch my application in the device. To make it work I need to restart my system, it works for 2-3 mins and after that it start showing this error. Please help me in this issue. -- Rahul Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Instant Messenger on Android
Guys I want to make instant messenger on android I have decided to implement server in PHP and MYSQL I am using HttpClient to connect the android app to server. Is this (HttpClient) the most efficient way or should i use something else. Any suggestions for me ? Should sockets be used for connecting instead of HttpClient ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 clear the USB endpoints stall using the USB host API?
None of the Java classes of the USB host API provide a method to clear the endpoints stall (halt) condition. I even looked at underlying native codes for the USB Host API and noticed the USBDEVFS_CLEAR_HALT request is defined but did not find a function in the usbhost.c file that issues an ioctl call with this request. Is this important USB request (USBDEVFS_CLEAR_HALT) not exposed in the USB Host API intentionally? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google map is not displaying well in the Samsung galaxy s551 and LG Optimus ME.
Google map is not displaying well in the Samsung galaxy s551 and LG Optimus ME but the same application is run in LG Optimus PRO well Able to find the root between the two latitudes and longitudes values.The above said 2 phones the google map is not displaying well.It is half loaded google map Note: Using Webview in android with jquery mobile for the UI Design. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Custom Style Rating Bar not working in Android 2.1 and 2.2
Im having the same problem..has any one find any solution?? On Sunday, October 31, 2010 10:33:10 AM UTC+5:30, abangkis wrote: Hello, I have a gridview with an image an a rating bar for each item. I was following this article http://kozyr.zydako.net/2010/05/23/pretty-ratingbar/ . It's great I've managed to do the thing in the article and create my own gold colored rating bar. But now I'm facing two problem. First, In one of my activity i need to do the layout programatically , using the default style creating the Rating bar this way : RatingBar rb = new RatingBar(this,null, android.R.attr.ratingBarStyleSmall); would work just fine, but if i change the style to use my own custom style RatingBar rb = new RatingBar(this,null, R.style.goldRatingBarSmall); the rating bar just wouldn't show. And second, although it works very well with android 1.6 , when i test with 2.1 and 2.2 the small rating bar that supposed to be read only now is change-able. And also when i click the image in the gridview, nothing happens. When i change the style back to the original style, everything works fine. When i click the image, it will go to the next activity in my apllication. Can anyone helps ? Thanks in Advance. Abangkis -- http://www.mreunion-labs.net/ twitter : @mreunionlabs blog : mreunion.wordpress.com Follow our android survey at : http://www.mreunion-labs.net/downloads:dlapk/MySurvey.apk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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.media.Mediaplayer - Send sounds to internal speakers, when Bluetooth-Headset is connected
I wonder if it is possible to play sounds on the internal speakers of an Android-Device using android.media.MediaPlayer if a BlueTooth- Headset is connected. Example: A user has paired his BlueTooth-Headset and my app running in the background wants to inform the user with some annoying sounds about an event. I don't want this sound to be played on the paired Bluetooth-Headset, but on the internal speakers of the Android device. Is this possible using android.media.MediaPlayer? If yes, how? Any help will be appreciated. Regards, Christian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] problem about gallery and imageswitcher
I used gallery and imageswitcher to show pics of Internet if there were 3 items in the gallery, when I chose item1, the imageswitcher showed item1 of big version but then I chose item 3, the imageswitcher firstly showed item 2 of big version, and then showed item 3 of big version why did it happen? I want imageswitcher to show item 3 directly, what should I do? thanks, all! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] LG Optimus PRO phone runs out of memory.
When i ran an application in the LG Optimus PRO phone. It shows some of the service running on the back of it. When i stop some of the service and RAM get the free space and then only able to run the application. Will it possible to stop the service which are running at background.. Note: Using Webview in android to run the application. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Draw icons depending of zoom
Check this link for finding incoming no.. http://stackoverflow.com/questions/1853220/retrieve-incoming-calls-phone-number-in-android On Wednesday, March 7, 2012 7:36:12 PM UTC+5:30, Grontag wrote: Hi all. I am developing an application that draws icons on a map. But i need to draw them dynamically: if the user does zoom in the map, if zoomLevel is 10, draw this icon, in other case draw that other icon. I've been the whole morning reading and searching the web, and found nothing that works. Any idea? Thank you in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Get Bluetooth State changed Notification
Hi. I wanted my application to know when the bluetooth of the device is turned on and when it has been turned off. I register the receiver intentfilter IntentFilter i = new IntentFilter(); i.addAction(BluetoothAdapter.ACTION_STATE_CHANGED); bluetooth_manager.registerReceiver(receiver, i); in the receiver objects class, I wrote this: String action = intent.getAction(); if (BluetoothAdapter.ACTION_STATE_CHANGED.equals(action)) { Log.d(TAG,Bluetooth State Changed); String state = intent.getStringExtra(BluetoothAdapter.ACTION_STATE_CHANGED); Log.d(TAG,State: +state); } When I turn my bluetooth on or off, my log shows me Bluetooth State Changed. But the State always comes a null. Can someone 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: location based app
The android devloper site is very useful, you can start your first step there. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] GyroSensor
Needs some tutorial for GyroSensor on android please help ASAP...! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] getting sensor data directly without listeners
I've read many posts on this topic and it appears there is no way to do it in android. I need to get a sensor's value at regular intervals. From my tests on the eventlistener, the values do not arrive consistently. And even set to max update frequency (zero milliseconds) the best I've seen is around 11 or 12 milliseconds between updates (orientation sensor, for example). That is only about 75 hz. I need upwards of 250 hz. Does anybody know of a way to get at the sensors directly? If not, does anybody know if the iPhone iOS can do it? This is an android show stopper for me. Ultimately, I am wanting to integrate custom medical sensors, like EEG and ECG. Anybody have ideas how to do that? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Media player problems with android 2.3 (gingerbread), I can't open a service connection....
isnt' there any method to control the android default music player other than using the IMediaPlaybackService? Do comment if any... I tired with it and the functions in the IMediaPlaybackService like prev()/seek() etc were not working( both in Froyo2.2 and ICS 4.0.3). Then tried with a custom built ICS whose service access to the public has been changed from service android:name=com.android.music.MediaPlaybackService android:exported=false / to service android:name=com.android.music.MediaPlaybackService android:exported=true / Successfully worked But i need to work my application in all android OS and so I am searching for an alternative method to control the android default music player. On Tuesday, 21 December 2010 02:13:43 UTC+5:30, neuromit wrote: I'm trying to setup a service connection to control the stock android media player. This works great under 2.1 and 2.2. However, when I tried to run my application on the 2.3 emulator my application crashes and I get the following error: ERROR/AndroidRuntime(466): Caused by: java.lang.SecurityException: Not allowed to bind to service Intent {cmp=com.android.music/.MediaPlaybackService } Have the permissions to bind to the IMediaServiceConnetion been revoked for gingerbread? Here is the code I'm running from my class that is a child of ServiceConnection Intent i = new Intent(); i.setClassName(com.android.music, com.android.music.MediaPlaybackService); a.bindService(i, (ServiceConnection) this, 0); On Tuesday, 21 December 2010 02:13:43 UTC+5:30, neuromit wrote: I'm trying to setup a service connection to control the stock android media player. This works great under 2.1 and 2.2. However, when I tried to run my application on the 2.3 emulator my application crashes and I get the following error: ERROR/AndroidRuntime(466): Caused by: java.lang.SecurityException: Not allowed to bind to service Intent {cmp=com.android.music/.MediaPlaybackService } Have the permissions to bind to the IMediaServiceConnetion been revoked for gingerbread? Here is the code I'm running from my class that is a child of ServiceConnection Intent i = new Intent(); i.setClassName(com.android.music, com.android.music.MediaPlaybackService); a.bindService(i, (ServiceConnection) this, 0); On Tuesday, 21 December 2010 02:13:43 UTC+5:30, neuromit wrote: I'm trying to setup a service connection to control the stock android media player. This works great under 2.1 and 2.2. However, when I tried to run my application on the 2.3 emulator my application crashes and I get the following error: ERROR/AndroidRuntime(466): Caused by: java.lang.SecurityException: Not allowed to bind to service Intent {cmp=com.android.music/.MediaPlaybackService } Have the permissions to bind to the IMediaServiceConnetion been revoked for gingerbread? Here is the code I'm running from my class that is a child of ServiceConnection Intent i = new Intent(); i.setClassName(com.android.music, com.android.music.MediaPlaybackService); a.bindService(i, (ServiceConnection) this, 0); On Tuesday, 21 December 2010 02:13:43 UTC+5:30, neuromit wrote: I'm trying to setup a service connection to control the stock android media player. This works great under 2.1 and 2.2. However, when I tried to run my application on the 2.3 emulator my application crashes and I get the following error: ERROR/AndroidRuntime(466): Caused by: java.lang.SecurityException: Not allowed to bind to service Intent {cmp=com.android.music/.MediaPlaybackService } Have the permissions to bind to the IMediaServiceConnetion been revoked for gingerbread? Here is the code I'm running from my class that is a child of ServiceConnection Intent i = new Intent(); i.setClassName(com.android.music, com.android.music.MediaPlaybackService); a.bindService(i, (ServiceConnection) this, 0); On Tuesday, 21 December 2010 02:13:43 UTC+5:30, neuromit wrote: I'm trying to setup a service connection to control the stock android media player. This works great under 2.1 and 2.2. However, when I tried to run my application on the 2.3 emulator my application crashes and I get the following error: ERROR/AndroidRuntime(466): Caused by: java.lang.SecurityException: Not allowed to bind to service Intent {cmp=com.android.music/.MediaPlaybackService } Have the permissions to bind to the IMediaServiceConnetion been revoked for gingerbread? Here is the code I'm running from my class that is a child of ServiceConnection Intent i = new Intent(); i.setClassName(com.android.music, com.android.music.MediaPlaybackService); a.bindService(i, (ServiceConnection) this, 0); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to
[android-developers] Re: java.net.SocketException: sendto failed: ETIMEDOUT (Connection timed out)
On Feb 20, 8:45 am, ankit singh ankitsingh.0...@gmail.com wrote: Hi All, I am facing java.net.SocketException: sendto failed: ETIMEDOUT (Connection timed out) exception in ICS. After above exception, I am not able to do data transfer through sslSocket, which i created. Please help me on this. I have some doubts and correct me if i am wrong : Steps: 1. Make a socket connection 2.Start transfering data using sslSocket. 3.Data connectivity goes down and come up. - snip- Please help me on this... for GB we never face thesetype of problem. I am having the exact same issue. It happens to a healthy socket connection over wi-fi some time after putting the device (GN 4.0.3) to sleep (and despite Keep Wi-Fi on during sleep being activated). Doing the same on 2.x devices works well. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 set or control onWindowFocusChanged(boolean hasFocus ) to true in other than first tabs of tablayout in android?
Hi Droids, It's a beginner Droid developer question!!! how to make the method onWindowFocusChanged(boolean hasFocus ) to true in tabs of tablayout in android.. Exp: In tablayout onWindowFocusChanged( boolean hasFocus ) called automatically in default(first) activity (first tab button) , But when we click/touch on to the next tab ( which call another activity) not able to call the onWindowFocusChanged( boolean hasFocus ) !! how to call onWindowFocusChanged() in second tab? or any other way to make tabview and call the activities?? source code: public class TabTestActivity extends TabActivity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Resources res = getResources(); TabHost tabHost = getTabHost(); TabHost.TabSpec spec; Intent intent; // Create an Intent to launch an Activity for the tab (to be reused) intent = new Intent().setClass(this, TabOne.class); // Initialize a TabSpec for each tab and add it to the TabHost spec = tabHost.newTabSpec(TabOne).setIndicator(TabOne, res.getDrawable(R.drawable.ic_tab_One)) .setContent(intent); tabHost.addTab(spec); // Do the same for the other tabs intent = new Intent().setClass(this, TabTwo.class); spec = tabHost.newTabSpec(TabTwo).setIndicator(TabTwo, res.getDrawable(R.drawable.ic_tab_az)) .setContent(intent); tabHost.addTab(spec); //tabHost.setCurrentTab(2); } public void onWindowFocusChanged(boolean hasFocus) { // TODO Auto-generated method stub Toast.makeText(this, +hasFocus , Toast.LENGTH_LONG).show(); super.onWindowFocusChanged(hasFocus); } } - public class TabOne extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView textview = new TextView(this); textview.setText(This is the Coll tab); setContentView(textview); } @Override public void onWindowFocusChanged(boolean hasFocus) {//called when this tab clicked // TODO Auto-generated method stub Toast.makeText(this, On window One+hasFocus , Toast.LENGTH_LONG).show(); super.onWindowFocusChanged(hasFocus); } } -- public class TabTwo extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView textview = new TextView(this); textview.setText(This is the Coll tab); setContentView(textview); } @Override public void onWindowFocusChanged(boolean hasFocus) { //Not called when this tab clicked // TODO Auto-generated method stub Toast.makeText(this, On window TabTwo+hasFocus , Toast.LENGTH_LONG).show(); super.onWindowFocusChanged(hasFocus); } } // TabTwo's onWindowFocusChanged not called while touching on to the second tab(TabTwo).. please give the solution. I tried to provide tabHost.setFocusable(true); I doesn't worked!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Google Play on Android ICS
I have the official 4.0.3 update on my Nexus S and it is not updating to Google Play. Why? On Thursday, March 8, 2012 7:40:54 AM UTC-5, Mark Murphy (a Commons Guy) wrote: On Wed, Mar 7, 2012 at 8:29 PM, monimi m.michelle.villega...@gmail.com wrote: Hi, i downloaded Google Play and installed it on Android ICS (running on Pandaboard) but it didn't work, when i try to run it, it just gets closed and never works, i don't know what could be the problem with it, the same behavior was with the Android Market App, neither of both have worked, if someone could help me it would be great, thanks in advanced. Stop pirating software. You cannot download Google Play from an authorized source. It is licensed to device manufacturers only. -- 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 *Advanced* Android Development_ Version 2.5 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: Folding animation on Android 3.0+
You are telling about page curling effect right.. You have to use Andengine openGL framework I guess!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Monkey] How to pass a continual 25 hrs' Monkey testing
Hi, I am trying Monkey testing on android devices, and here met several questions during my running Monkey testing on my tablet. 1. How to deal with the issue that the device will be shutted down by device itself during automated Monkey testing? 2. Is there any requirement from Google to say that the android devices have to pass some hours' Monkey testing, like 25 hours? 3. If we indeed have to pass a continual 25 hours' Monkey testing, which parameters should I use, for example, do we need to use throttle, ignore crash, and so on. Thanks in advance. BR, Summer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Background and foreground image views
Ok, I tried the frame layout. And my XML file is something like this: FrameLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent ImageView android:scaleType=fitXY android:src=@drawable/sbk android:contentDescription=@string/app_name android:layout_gravity=fill android:id=@+id/bk android:layout_width=fill_parent android:layout_height=fill_parent / ImageView android:layout_gravity=center android:id=@+id/fg android:padding=2dip android:scaleType=fitCenter android:src=@drawable/sfg android:contentDescription=@string/app_name android:layout_width=wrap_content android:layout_height=wrap_content / /FrameLayout Now it did work on my phone. But it still doesn't behave well on my 7 tablet. My first problem is that it doesn't fill the entire screen. Why is that? I have mentioned fill_parent for the frame layout. On Friday, March 9, 2012 2:07:57 AM UTC+5:30, MagouyaWare wrote: Or you can just display an image view and set the background and foreground to what you want them to be... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 8, 2012 at 5:42 AM, sha m temptes...@gmail.com wrote: FrameLayout helps to draw one view above another On Thu, Mar 8, 2012 at 6:10 PM, Put_tiMe putt...@gmail.com wrote: I need to have a background and a foreground image views in a LinearLayout. Obviously the background has to be drawn before the foreground. How can I do 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 On Friday, March 9, 2012 2:07:57 AM UTC+5:30, MagouyaWare wrote: Or you can just display an image view and set the background and foreground to what you want them to be... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 8, 2012 at 5:42 AM, sha m temptes...@gmail.com wrote: FrameLayout helps to draw one view above another On Thu, Mar 8, 2012 at 6:10 PM, Put_tiMe putt...@gmail.com wrote: I need to have a background and a foreground image views in a LinearLayout. Obviously the background has to be drawn before the foreground. How can I do 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 disable the installation of device administrator application?
Hi All, We can create device administrator application which supposedly have escalated privileges to enforce certain policies like password quality, device encryption etc. See: http://developer.android.com/guide/topics/admin/device-admin.html But for example the device is provisioned the first time by the administrator (administrator install the app for user) and the device is passed to the user, it can be easily disabled (Under Settings - Security - Device Administrator) or even uninstalled. Is there any way this can be prevented? Like a password is required to disable the device administrator? Can this be done? Is there any other way? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Can not find Standard-Widget in Documentation / Can anybody help?
That's a SeekBar: http://developer.android.com/reference/android/widget/SeekBar.html 09.03.2012 11:49, Christian Hartmann пишет: Hi there, can anybody tell me what kind of Widget/Control/View the control is that you can see on the attached screenshot under 'Default Range'? I mean the one with the green bar to control the range in that case. Maybe a good example how to set this up in a layout xml would also be nice. Currently I am using HorizontalSlider hs = new HorizontalSlider(getContext(), null, android.R.attr.progressBarStyleHorizontal); but I want this delimiter to be also shown. Currently it is not in my app if I use the above mentioned line. Any help will be appreciated. Regards, Christian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 in radioGroup.getCheckedRadioButtonId()
Yes, this behavior is expected: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/CompoundButton.java#L108 The mOnCheckedChangeListener is your (application-provided) listener. The mOnCheckedChangeWidgetListeneris installed by the radio group, and is what updates the currently checked radio button index. The former is called before the latter. -- Kostya 09.03.2012 10:55, Ray Tayek ?: OnCheckedChangeListener onCheckedChangeListener=new OnCheckedChangeListener(){ public void onCheckedChanged(CompoundButton buttonView,boolean isChecked) { RadioButton radioButton=(RadioButton)buttonView; int a=radioButton.getId(); ViewParent viewParent=buttonView.getParent(); RadioGroup radioGroup=(RadioGroup)viewParent; if(isChecked) { button.setText(radioButton.getText()); int a2=radioGroup.getCheckedRadioButtonId(); if(a2!=a) { System.err.println(CompoundButton id=+a); System.err.println(radioGroup.getCheckedRadioButtonId()=+a2); } } } }; -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] RenderScript Carousel Custom View
I have found many example related with RenderScript Carousel and their user experience is greater than widget.Gallery. However, I would like to put some layouts inside RenderScript Carousel but cannot. For e.q. in below code, all parameters are not null but Allocation.createFromBitmapResource throw null pointer exception. mScript.set_gTex_00(Allocation.createFromBitmapResource(mRS, mRes, R.layout.laytest)); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] images
- Original Message - From: TreKing To: android-developers@googlegroups.com Sent: Thursday, March 08, 2012 10:14 PM Subject: Re: [android-developers] images On Thu, Mar 8, 2012 at 10:35 AM, Knutsford Software i...@knutsford-software.co.uk wrote: If you write an app that uses a lot of images where do you store them? In the app? On the SD card? In the cloud? It would depend on various factors. I would imagine that sqllite won't have room to hold too many. Define too many. I would imagine Sqlite would have as much room as disk space would allow. I am curious as what the best practice is I doubt there is a best practice for something as vague as image storage. There are many, many use cases for the generic image storage problem and, as such, many different solutions. Say a thousand. I would image that might be too many for sqlite on a phone as you wouldn't want an app to take up too much room and definately too much as an ordinary image file? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] WifiManager disables all networks
09.03.2012 0:52, Johannes пишет: I have a really weird issue with WifiManager: I connect to a network using WifiManager.enableNetwork(int netId, boolean disableOthers), with setting disableOthers to 'true'. This seems necessary in order to reliably establish a connection. Yes, that's how the old, pre-3.0, WiFi API works. However, this sets all other saved networks to 'disabled', meaning that I cannot connect to them until I re-activate them in the wifi settings. Yep. Although - some firmwares do connect to disabled networks, if those are the only ones found by scanning. I tried to enable the previously enabled networks like this: wifiConfiguration.status = WifiConfiguration.Status.ENABLED; wifiManager.updateNetwork(wifiConfiguration); ... wifiManager.saveConfiguration(); However, after this, all networks' 'status' fields are still set to 1 (WifiConfiguration.Status.DISABLED). Are you specifying the networkId? When are you doing this? I know this works if done once the connection (kicked off by enableNetwork(n, true) and startScan()) fully completes or fails. Trying to do this immediately after you've kicked off the connection process might not work. You should be able to clarify things by grabbing a copy of packages/apps/Settings from the source repository. Staying close to what the Settings app does will improve the chances of your code working. I also get a weird log message on saveConfiguration(): 03-08 16:14:26.125: W/BackupManagerService(110): dataChanged but no participant pkg='com.android.providers.settings' uid=10060 I believe this means that the backup manager was notified of a network configuration change, but you haven't configured your device to back up and restore personal data and settings. In other words, ignore. -- Kostya Any ideas? -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Google Play on Android ICS
I guess they have a rollout schedule, as opposed to updating everyone at once. My Asus Transformer with 4.0.3 updated yesterday, while the Galaxy Nexus with 4.0.2 still has not. -- Kostya 08.03.2012 20:02, Travis Faubel пишет: I have the official 4.0.3 update on my Nexus S and it is not updating to Google Play. Why? -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 in radioGroup.getCheckedRadioButtonId()
At 02:49 AM 3/9/2012, you wrote: Yes, this behavior is expected: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/CompoundButton.java#L108https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/CompoundButton.java#L108 The mOnCheckedChangeListener is your (application-provided) listener. The mOnCheckedChangeWidgetListener is installed by the radio group, and is what updates the currently checked radio button index. The former is called before the latter. -- Kostya got it. thanks 09.03.2012 10:55, Ray Tayek : OnCheckedChangeListener onCheckedChangeListener=new OnCheckedChangeListener(){ public void onCheckedChanged(CompoundButton buttonView,boolean isChecked) { RadioButton radioButton=(RadioButton)buttonView; int a=radioButton.getId(); ViewParent viewParent=buttonView.getParent(); RadioGroup radioGroup=(RadioGroup)viewParent; if(isChecked) { button.setText(radioButton.getText()); int a2=radioGroup.getCheckedRadioButtonId(); if(a2!=a) { System.err.println(CompoundButton id=+a); System.err.println(radioGroup.getCheckedRadioButtonId()=+a2); } } } }; -- Kostya Vasilyev __ Information from ESET Smart Security, version of virus signature database 4628 (20091122) __ The message was checked by ESET Smart Security. http://www.eset.comhttp://www.eset.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=enhttp://groups.google.com/group/android-developers?hl=en --- co-chair http://ocjug.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: java.net.SocketException: sendto failed: ETIMEDOUT (Connection timed out)
I am facing java.net.SocketException: sendto failed: ETIMEDOUT (Connection timed out) exception in ICS. Also testing this with a Nexus S 4.0.3 device. The problem does not seem to show up there. Looks like a Galaxy Nexus specific Wi-Fi driver issue. More than a general ICS issue. However, on the Galaxy Nexus I can get ETIMEDOUT easily and reliably by establishing a socket connection over Wi-Fi and by putting the device into sleep once or twice. Submitted a bug report here: http://code.google.com/p/android/issues/detail?id=26643 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] sticky radio button
hi, the radio buttons work fine. except for the second. when i click on that one, it gets stuck and won't uncheck. please see small self contained code sample below. i am using 4.0.3. thanks package small.example; import android.app.Activity; import android.os.Bundle; import android.widget.*; public class SmallActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LinearLayout main=new LinearLayout(this); main.setOrientation(LinearLayout.VERTICAL); int question=1; button=new Button(this); button.setText(Make a choice); main.addView(button); button.setId(question); setContentView(main); int answers=4; radioButtons=new RadioButton[answers]; RadioGroup radioGroup=addRadioButtonsToGroup(question,radioButtons); LinearLayout linearLayout=new LinearLayout(this); linearLayout.addView(radioGroup); linearLayout.setId(question); // radioButtons[0].setChecked(true); main.addView(linearLayout); } private RadioGroup addRadioButtonsToGroup(int question,RadioButton[] radioButtons) { RadioGroup radioGroup=new RadioGroup(this); for(int i=0;iradioButtons.length;i++) { radioButtons[i]=new RadioButton(this); radioButtons[i].setText(Question +question+ Choice +(i+1)); radioButtons[i].setId(i); radioGroup.addView(radioButtons[i]); } radioGroup.setOnCheckedChangeListener(radioGroupOnCheckedChangeListener); radioGroup.setId(question); return radioGroup; } RadioButton[] radioButtons; Button button; RadioGroup.OnCheckedChangeListener radioGroupOnCheckedChangeListener=new RadioGroup.OnCheckedChangeListener(){ public void onCheckedChanged(RadioGroup group,int checkedId) { int id=checkedId; button.setText(radioButtons[id].getText()); } }; } --- co-chair http://ocjug.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] WifiManager disables all networks
Thanks, Kostya. Yep. Although - some firmwares do connect to disabled networks, if those are the only ones found by scanning. Okay, this is what I was afraid of, that this seems to be a very device-specific thing. Are you specifying the networkId? Yes. When are you doing this? I know this works if done once the connection (kicked off by enableNetwork(n, true) and startScan()) fully completes or fails. Trying to do this immediately after you've kicked off the connection process might not work. I did this right after disconnecting from the desired network and removing it from the networks list. But I somehow managed to make it work by disabling wifi completely before disconnectingremoving the network.. I believe this means that the backup manager was notified of a network configuration change, but you haven't configured your device to back up and restore personal data and settings. In other words, ignore. Sounds good. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] apk expansion patches (for larger apks)
Anyone know if this recently announced patch file mechanism http://android-developers.blogspot.com/2012/03/android-apps-break-50mb-barrier.html 1. Can a patch be conditionally downloaded based on an inapp purchase ? 2. Works for apks which are lesser than 50 MB in size ? 3. Can the additional patch files contain sources ? or is is just limited to resources ? I am about to try the sample they have put out, but just want to know if anyone already beat me to it and has anything interesting to share 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] Regarding android.intent.action.PACKAGE_ADDED,android.intent.action.PACKAGE_REMOVED
Hi, Hope all doing well.. I have a broadcast receiver in my app to check if my app is installed or deleted. So I have added following intent filter in the manifest.. receiver android:name=com.packagereceiver.PackageReceiver intent-filter action android:name=android.intent.action.PACKAGE_ADDED/ action android:name=android.intent.action.PACKAGE_REMOVED/ data android:scheme=package / /intent-filter /receiver But the problem is my receiver gets notification for any apps installed or deleted on phone.. Is there any way to get notification only for certain predefined packages(apps ) installation or uninstallation.. Thanks Regards, Ashiq sayyad -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 display a LinearLayout menu aligned to the right of a FrameLayout and 100px below the top of the screen?
I have a FrameLayout (all the screen is the FL) wich haves a openGLview and a header image on the top of the screen. Now i want to display a menu of two buttons, created with a LinearLayout. My LL Menu must be floating on the framelayout, aligned to the right of the screen and must be 100px below the top of the screen. How can i achieve that? i tryed with this code, but is not working, the Menu is being displayed on the left on the screen and it is painting the upper part of the menu, and i dont want that, i need that the upper part of the menu it's not painted with the colour of the menu. Must be a floating menu. ///sub menu de shareit LinearLayout sharell = new LinearLayout(this); sharell.setOrientation(LinearLayout.VERTICAL); sharell.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); sharell.setGravity(Gravity.RIGHT); sharell.setPadding(10, 100, 10, 10); sharell.setBackgroundColor(0xFF383838); share= new ImageButton(this); selector(share, R.drawable.but_share_up,R.drawable.but_share_down); LinearLayout.LayoutParams shareParams = new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); shareParams.setMargins(0, 0, 0, 10); //dejo un espacio entre este botón y el siguiente share.setLayoutParams(shareParams); sharell.addView(share); web= new ImageButton(this); selector(web, R.drawable.but_web_up,R.drawable.but_web_down); sharell.addView(web); // . . . fl.addView(squareGLSurfaceView); fl.addView(rl); fl.addView(sharell); setContentView(fl); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Google Play on Android ICS
Travis, try uninstalling all market updates on your device and re-launching a couple of times. Kicked the update through for me. On Thursday, March 8, 2012 4:02:00 PM UTC, Travis Faubel wrote: I have the official 4.0.3 update on my Nexus S and it is not updating to Google Play. Why? On Thursday, March 8, 2012 7:40:54 AM UTC-5, Mark Murphy (a Commons Guy) wrote: On Wed, Mar 7, 2012 at 8:29 PM, monimi : Hi, i downloaded Google Play and installed it on Android ICS (running on Pandaboard) but it didn't work, when i try to run it, it just gets closed and never works, i don't know what could be the problem with it, the same behavior was with the Android Market App, neither of both have worked, if someone could help me it would be great, thanks in advanced. Stop pirating software. You cannot download Google Play from an authorized source. It is licensed to device manufacturers only. -- 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 *Advanced* Android Development_ Version 2.5 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] Sip user-agent change
hello, I am using the asterisk for sip calling.when the user is registered with asterisk then the line below is come... -- Unregistered SIP '5001' -- Registered SIP '5001' at 192.168.1.23 port 56675 expires 3600 -- Saved useragent SIPAUA/0.1.001 for peer 5001 i want to change the useragent SIPAUA/0.1.001 to JAGRUTI.So how is it possible to change user agent through android application code.In sip Header user-agent is a method but how it is use and how to change the name through code that is i dont know.Can anybody know how to change user-agent name as describe above. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] images
Depends on the size of your images and how you're using them. Back it up, tell us what the problem you're trying to solve is and why you're looking at your current approach and then people can chip in. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] apk expansion patches (for larger apks)
On Fri, Mar 9, 2012 at 7:46 AM, androidmediadeveloper kamathaj...@gmail.com wrote: Anyone know if this recently announced patch file mechanism http://android-developers.blogspot.com/2012/03/android-apps-break-50mb-barrier.html 1. Can a patch be conditionally downloaded based on an inapp purchase ? I have no idea on this one. 2. Works for apks which are lesser than 50 MB in size ? It would have to. It is very difficult to arrange for an APK file to be precisely 50MB, down to the byte. 3. Can the additional patch files contain sources ? or is is just limited to resources ? Neither. It is just files. It is not DEX bytecode, nor is it resources (R.drawable.foo). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Regarding android.intent.action.PACKAGE_ADDED,android.intent.action.PACKAGE_REMOVED
Get rid of the data element. On Fri, Mar 9, 2012 at 8:02 AM, ashiq sayyad ashiqsay...@gmail.com wrote: Hi, Hope all doing well.. I have a broadcast receiver in my app to check if my app is installed or deleted. So I have added following intent filter in the manifest.. receiver android:name=com.packagereceiver.PackageReceiver intent-filter action android:name=android.intent.action.PACKAGE_ADDED/ action android:name=android.intent.action.PACKAGE_REMOVED/ data android:scheme=package / /intent-filter /receiver But the problem is my receiver gets notification for any apps installed or deleted on phone.. Is there any way to get notification only for certain predefined packages(apps ) installation or uninstallation.. Thanks Regards, Ashiq sayyad -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 disable the installation of device administrator application?
On Fri, Mar 9, 2012 at 5:45 AM, perumal316 perumal...@gmail.com wrote: Is there any way this can be prevented? Like a password is required to disable the device administrator? I hope not. Otherwise, malware will use this to block being uninstalled. Can this be done? Is there any other way? Create your own firmware and put the device admin app in the firmware. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Google Play
So, it seems we need a standard name to be used instead of Play. The App Formerly Known As Android Market doesn't cut it I think (TAFKAAM?). I have noticed a pattern of people writing ... Play. Maybe that's the one to go with. The ellipsis adds that nice sense of really? really?! 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
Re: [android-developers] I need to install driver to Galaxy nexus.
This list is for developing Android applications using the Android SDK. Your question is off-topic for this list. On Thu, Mar 8, 2012 at 8:15 PM, ok...@fujikom.com ok...@fujikom.com wrote: I need to install driver to Galaxy nexus. But I have no Idea.Plase Help me. It's driver is here. http://www.tricklestar.com/intl/support/driver.html (http://trickles.nextmp.net/dk/head/download/ld_pl2303_v0728.rar) The device Maker triclestar say I don't know how to do it . Please 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 To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] getting sensor data directly without listeners
On Thu, Mar 8, 2012 at 4:10 PM, hano greghanow...@gmail.com wrote: I've read many posts on this topic and it appears there is no way to do it in android. I need to get a sensor's value at regular intervals. From my tests on the eventlistener, the values do not arrive consistently. And even set to max update frequency (zero milliseconds) the best I've seen is around 11 or 12 milliseconds between updates (orientation sensor, for example). That is only about 75 hz. I need upwards of 250 hz. Does anybody know of a way to get at the sensors directly? You don't, except perhaps via custom firmware. If not, does anybody know if the iPhone iOS can do it? Possibly, but this has nothing whatsoever to do with this list. Ultimately, I am wanting to integrate custom medical sensors, like EEG and ECG. Those are not sensors, in Android's use of the term. If you look at SensorManager and related classes, you will notice that neither EEG nor ECG appear there. EEG and ECG have nothing whatsoever to do with the accelerometer, gyroscope, or any of the other standard sensors. Anybody have ideas how to do that? Use USB, Bluetooth, or WiFi, whichever your custom medical sensors support. Or, write your own custom firmware with direct hooks to your hardware (connected via soldering iron, I guess) and your own SDK add-on with an API for accessing said hardware, though this particular subject is out of scope for this list. You would want to visit http://source.android.com for more on this topic. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Game Programming help
See that box at the top of the page? Type Android Game Programming into it and select the Search in Android Developers option. You'll find plenty of material. The best way, as with everything, will entirely depend on what you're trying to achieve, what your starting knowledge is and how much time you're willing to invest. On Thursday, March 8, 2012 5:43:51 PM UTC, Ahmad Kaddoura wrote: Hello, I would like to know if there are any good sources or materials that I can study off of to learn how to make games on Android. The game in specific i'm trying to learn is a Worms-like game. If there is any information that would be useful in making android-based games please tell me. In addition, i would also like to know good places to learn android game programming, as well as to start off. I've already downloaded Eclipse and installed the SDK, but I'm wondering what is the best way to make android games. Thank you for your help, Ahmad -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] change default SIP user agent in android
hi all developers, i am developing one SIP application.while registering on SIP server through my android application.the default user agent displayed by android on SIP server is *SIPAUA/0.1.001*. how do i change that? i have searched on internet couldn't find anything? is there any method in android to change it? is there any one who have idea about this? 1. asterisk 1.8.7.1 2. android 2.3.3 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Google Play
9 марта 2012 г. 8:50 пользователь TreKing treking...@gmail.com написал: Not to mention that this app, store, site, center, whatever, is supposed to be a thing (the app) or a destination / place (the site). Naming it after a verb is just awkward and nonsensical. Particularly when the name implies that the app / site is some kind of media center that plays all of this different content, when it's not - it's a store to get content NOT play it. Maybe it's meant to be? Google's making a play to conquer the mobile content market? And now they're trying to shoehorn Play into their promotions: Play $0.49 Apps ... Play the Hunger Games followed immediately by Read the books... Play an email application... Play a to-do list... Play a medical first aid app... Seriously, who comes up with this sh*t? A committee of highly paid consultants, no doubt :) Seriously, though: The Society of the Spectacle was written in the sixties, now, almost 50 years later, it's The Society of Games and Playing :) -- K -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] What to use for supports-screens so that only 10 screens an alternatate APK?
On Thu, Mar 8, 2012 at 10:28 PM, jtoolsdev brianjto...@gmail.com wrote: I have now had a report that someone with the 1024x600 Samsung 6200 got the APK intended for the 10 and larger size screens. I'd try to validate the claim. Pirates probably don't have the sophisticated based on device, we'll give you a different APK logic that the Market does. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Game Programming help
hi ahmad, the best resource is google books use this link http://books.google.com/ all the best -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] images
Depends on the size of your images and how you're using them. Back it up, tell us what the problem you're trying to solve is and why you're looking at your current approach and then people can chip in. I was just a general question about what do people do if they want to write an App that needs lot of images or some other data as you only have limited capacity on a phone. How much would you think would be reasonable to store in an sqlite database before it would cause a problem? I don't have anything particular in mind -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] images
Knutsford, I'm not sure, but I think you should store it directly on SD and save the references to these files. Even on larger databases in Oracle and SQL Server people still use this pratice to not overload the database. Only make sure you're checking the file existence before using it. On SD the file can be deleted out of your application. Regards, Guilherme On 9 March 2012 10:45, Knutsford Software i...@knutsford-software.co.ukwrote: Depends on the size of your images and how you're using them. Back it up, tell us what the problem you're trying to solve is and why you're looking at your current approach and then people can chip in. I was just a general question about what do people do if they want to write an App that needs lot of images or some other data as you only have limited capacity on a phone. How much would you think would be reasonable to store in an sqlite database before it would cause a problem? I don't have anything particular in mind -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@**googlegroups.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] images
Since the original question was motivated by the limited amount of internal device storage ... using a SQLite database wouldn't help, since databases are stored in internal memory, and although it's possible to put databases on the memory card, it seems failure-prone. So, using regular image files on the memory card / external storage, perhaps indexed as necessary in a database, is what I'd recommend. -- K On 03/09/2012 05:52 PM, Guilherme Utrabo wrote: Knutsford, I'm not sure, but I think you should store it directly on SD and save the references to these files. Even on larger databases in Oracle and SQL Server people still use this pratice to not overload the database. Only make sure you're checking the file existence before using it. On SD the file can be deleted out of your application. Regards, Guilherme On 9 March 2012 10:45, Knutsford Software i...@knutsford-software.co.uk mailto:i...@knutsford-software.co.uk wrote: Depends on the size of your images and how you're using them. Back it up, tell us what the problem you're trying to solve is and why you're looking at your current approach and then people can chip in. I was just a general question about what do people do if they want to write an App that needs lot of images or some other data as you only have limited capacity on a phone. How much would you think would be reasonable to store in an sqlite database before it would cause a problem? I don't have anything particular in mind -- You received this 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] Expanding Galaxy?
It is running Android 3.1, so I guess there's nothing I can do? Strangely, that function is available in API 11, but the parameters are not available till API 14. I tried passing in a 0 and 1, but neither did anything. Thanks. On Thursday, March 8, 2012 11:58:22 AM UTC-8, Mark Murphy (a Commons Guy) wrote: On Thu, Mar 8, 2012 at 2:50 PM, bob b...@coolfone.comze.com wrote: I have the Samsung Galaxy Tab 10.1, and it has a status bar at the bottom of the screen with the Back, Home, Menu, and Screen Capture button. Is there a reasonable way to hide this to play a movie back in complete fullscreen? No. See Controls for system UI visibility on: http://developer.android.com/sdk/android-4.0.html In short: you can hide it on phones, not tablets (via setSystemUiVisibility()), though you can dim it on tablets. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] images
- Original Message - From: Kostya Vasilyev To: android-developers@googlegroups.com Sent: Friday, March 09, 2012 2:15 PM Subject: Re: [android-developers] images Since the original question was motivated by the limited amount of internal device storage ... using a SQLite database wouldn't help, since databases are stored in internal memory, and although it's possible to put databases on the memory card, it seems failure-prone. So, using regular image files on the memory card / external storage, perhaps indexed as necessary in a database, is what I'd recommend. Having an external database or space on a server somewhere you 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
Re: [android-developers] images
On 03/09/2012 07:08 PM, Knutsford Software wrote: Having an external database or space on a server somewhere you mean? I meant the external memory card or the space returned by Environment.getExternalStorageDirectory (and its newer counterparts). As far as the server goes - well, perhaps, if there are really a lot of images, with the obvious availability / performance implications. -- K -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: preferences.xml
My preferences.xml code is this. It is identical to the code given in the sip demo . I hane not changed anything. The Error report is Content is not allowed in prolog. (line 2) invalid resource directory name ( line 1 ) The folder i put it in is SIP DEMO/res Code: /*The file containing the source code shown below is located in the corresponding directory in sdk/samples/android-version/... */ ?xml version=1.0 encoding=utf-8? !-- Copyright (C) 2010 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -- PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/ android EditTextPreference android:name=SIP Username android:summary=Username for your SIP Account android:defaultValue= android:title=Enter Username android:key=namePref / EditTextPreference android:name=SIP Domain android:summary=Domain for your SIP Account android:defaultValue= android:title=Enter Domain android:key=domainPref / EditTextPreference android:name=SIP Password android:summary=Password for your SIP Account android:defaultValue= android:title=Enter Password android:key=passPref android:password=true / /PreferenceScreen On 5 Μαρ, 09:18, abhijeet tomar abhijeet...@gmail.com wrote: Clean your project or Build your project after that you got error than Paste your xml here -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] images
From: Kostya Vasilyev kmans...@gmail.com To: android-developers@googlegroups.com Sent: Friday, March 09, 2012 3:22 PM Subject: Re: [android-developers] images On 03/09/2012 07:08 PM, Knutsford Software wrote: Having an external database or space on a server somewhere you mean? I meant the external memory card or the space returned by Environment.getExternalStorageDirectory (and its newer counterparts). As far as the server goes - well, perhaps, if there are really a lot of images, with the obvious availability / performance implications. Is there a reasonable amount of space on there then? I was thinking there was more in the database I am new to this which must be obvious -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Background and foreground image views
Hmm... maybe it is just me, but this just seems WAY to complicated for what you are wanting to achieve... Why not just use a LinearLayout and set the background drawable on it, and then put the ImageView in that with what you want on top of it. Or, as I said before, you can play around with a single ImageView because you can set background and foreground drawables on it... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Mar 9, 2012 at 3:33 AM, Put_tiMe putt...@gmail.com wrote: Ok, I tried the frame layout. And my XML file is something like this: FrameLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent ImageView android:scaleType=fitXY android:src=@drawable/sbk android:contentDescription=@string/app_name android:layout_gravity=fill android:id=@+id/bk android:layout_width=fill_parent android:layout_height=fill_parent / ImageView android:layout_gravity=center android:id=@+id/fg android:padding=2dip android:scaleType=fitCenter android:src=@drawable/sfg android:contentDescription=@string/app_name android:layout_width=wrap_content android:layout_height=wrap_content / /FrameLayout Now it did work on my phone. But it still doesn't behave well on my 7 tablet. My first problem is that it doesn't fill the entire screen. Why is that? I have mentioned fill_parent for the frame layout. On Friday, March 9, 2012 2:07:57 AM UTC+5:30, MagouyaWare wrote: Or you can just display an image view and set the background and foreground to what you want them to be... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware On Thu, Mar 8, 2012 at 5:42 AM, sha m temptes...@gmail.com wrote: FrameLayout helps to draw one view above another On Thu, Mar 8, 2012 at 6:10 PM, Put_tiMe putt...@gmail.com wrote: I need to have a background and a foreground image views in a LinearLayout. Obviously the background has to be drawn before the foreground. How can I do 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en On Friday, March 9, 2012 2:07:57 AM UTC+5:30, MagouyaWare wrote: Or you can just display an image view and set the background and foreground to what you want them to be... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware On Thu, Mar 8, 2012 at 5:42 AM, sha m temptes...@gmail.com wrote: FrameLayout helps to draw one view above another On Thu, Mar 8, 2012 at 6:10 PM, Put_tiMe putt...@gmail.com wrote: I need to have a background and a foreground image views in a LinearLayout. Obviously the background has to be drawn before the foreground. How can I do 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at
Re: [android-developers] images
On 03/09/2012 07:36 PM, Knutsford Software wrote: Is there a reasonable amount of space on there then? I was thinking there was more in the database I am new to this which must be obvious As I already wrote, databases, by default, are stored in the same old internal memory, so I don't see any benefit to using a database to store the actual image bits. Besides the space issue, manipilating files is just easier than shuffling byte[] arrays. The size of internal storage varies greatly, but as far as I can tell, users tend to get nervious if an app uses more than, say, 5-10-15 megabytes. The external storage comes in two shapes: a real physical memory card, whose size can also vary greatly, and pseudo-external storage, such as that on tablets, Samsung's Galaxy phones including the Nexus (and maybe others). The API is the same for both types of external memory. As far external storage goes, consider using Context#getExternalCacheDir so that it integrates with Android's application management features. http://developer.android.com/guide/topics/data/data-storage.html#filesExternal -- K -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] हरीप्रसाद अर्याल wants to chat
I've been using Google Talk and thought you might like to try it out. We can use it to call each other for free over the internet. Here's an invitation to download Google Talk. Give it a try! --- हरीप्रसाद अर्याल wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-aaf6cdb6f4-23d37afe88-SxEd9SxbeEERJoncTrwonZ3zF_c You'll need to click this link to be able to chat with हरीप्रसाद अर्याल. To get Gmail - a free email account from Google with over 2,800 megabytes of storage - and chat with हरीप्रसाद अर्याल, visit: http://mail.google.com/mail/a-aaf6cdb6f4-23d37afe88-SxEd9SxbeEERJoncTrwonZ3zF_c Gmail offers: - Instant messaging right inside Gmail - Powerful spam protection - Built-in search for finding your messages and a helpful way of organizing emails into conversations - No pop-up ads or untargeted banners - just text ads and related information that are relevant to the content of your messages All this, and its yours for free. But wait, there's more! By opening a Gmail account, you also get access to Google Talk, Google's instant messaging service: http://www.google.com/talk/ Google Talk offers: - Web-based chat that you can use anywhere, without a download - A contact list that's synchronized with your Gmail account - Free, high quality PC-to-PC voice calls when you download the Google Talk client We're working hard to add new features and make improvements, so we might also ask for your comments and suggestions periodically. We appreciate your help in making our products even better! Thanks, The Google Team To learn more about Gmail and Google Talk, visit: http://mail.google.com/mail/help/about.html http://www.google.com/talk/about.html (If clicking the URLs in this message does not work, copy and paste them into the address bar of your browser). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 about gallery and imageswitcher
Step 1: Read this: http://catb.org/esr/faqs/smart-questions.html Step 2: Try again... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Mar 9, 2012 at 2:40 AM, Kidd Shih leung.s...@gmail.com wrote: I used gallery and imageswitcher to show pics of Internet if there were 3 items in the gallery, when I chose item1, the imageswitcher showed item1 of big version but then I chose item 3, the imageswitcher firstly showed item 2 of big version, and then showed item 3 of big version why did it happen? I want imageswitcher to show item 3 directly, what should I do? thanks, all! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] हरीप्रसाद अर्याल wants to chat
I've been using Google Talk and thought you might like to try it out. We can use it to call each other for free over the internet. Here's an invitation to download Google Talk. Give it a try! --- हरीप्रसाद अर्याल wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-aaf6cdb6f4-255db6aa20-G7e5LzWRznwJ8GZ0cVBT7zrnXRs You'll need to click this link to be able to chat with हरीप्रसाद अर्याल. To get Gmail - a free email account from Google with over 2,800 megabytes of storage - and chat with हरीप्रसाद अर्याल, visit: http://mail.google.com/mail/a-aaf6cdb6f4-255db6aa20-G7e5LzWRznwJ8GZ0cVBT7zrnXRs Gmail offers: - Instant messaging right inside Gmail - Powerful spam protection - Built-in search for finding your messages and a helpful way of organizing emails into conversations - No pop-up ads or untargeted banners - just text ads and related information that are relevant to the content of your messages All this, and its yours for free. But wait, there's more! By opening a Gmail account, you also get access to Google Talk, Google's instant messaging service: http://www.google.com/talk/ Google Talk offers: - Web-based chat that you can use anywhere, without a download - A contact list that's synchronized with your Gmail account - Free, high quality PC-to-PC voice calls when you download the Google Talk client We're working hard to add new features and make improvements, so we might also ask for your comments and suggestions periodically. We appreciate your help in making our products even better! Thanks, The Google Team To learn more about Gmail and Google Talk, visit: http://mail.google.com/mail/help/about.html http://www.google.com/talk/about.html (If clicking the URLs in this message does not work, copy and paste them into the address bar of your browser). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] can't camera
Interesting... I can't camera either. But then again, I have no idea how to camera in the first place. http://catb.org/esr/faqs/smart-questions.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware 2012/3/8 ? klou...@gmail.com help me please.handle massage(-1) .i can't camera. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] dynamically change the content of the data in the android screen
Step 1: Read this: http://catb.org/esr/faqs/smart-questions.html Step 2: Try again... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Mar 9, 2012 at 12:19 AM, ramalakshmi krishna.veni...@gmail.comwrote: Hai! I connect Android mobile to ms sql server through php(in this i convert the data into json format). The output is a table.now i want to change the values of the data dynamically.how can i achieve this.please help me -- ramalakshmi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Shift selected radioButton value from one activity to other other activity??
Create an intent, put the value in it, and send it to your other activity with startActivity() or startActivityForResult(). Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 8, 2012 at 11:12 PM, muhammad.ume...@hotmail.com muhammad.ume...@hotmail.com wrote: Hi, I want some radio button on one activity. how to submit selected radio button value from this activity to other activity, any suggestion? Thanks and Regards, umer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] RenderScript Carousel Custom View
Hi, You are trying to load an XML layout file as a bitmap, this is not going to work :) Renderscript is not meant to display XML layouts. On Fri, Mar 9, 2012 at 2:57 AM, Kubilay D. Yılmaz kubilayd.yil...@gmail.com wrote: I have found many example related with RenderScript Carousel and their user experience is greater than widget.Gallery. However, I would like to put some layouts inside RenderScript Carousel but cannot. For e.q. in below code, all parameters are not null but Allocation.createFromBitmapResource throw null pointer exception. mScript.set_gTex_00(Allocation.createFromBitmapResource(mRS, mRes, R.layout.laytest)); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] images
- Original Message - From: Kostya Vasilyev To: android-developers@googlegroups.com Sent: Friday, March 09, 2012 3:53 PM Subject: Re: [android-developers] images On 03/09/2012 07:36 PM, Knutsford Software wrote: Is there a reasonable amount of space on there then? I was thinking there was more in the database I am new to this which must be obvious As I already wrote, databases, by default, are stored in the same old internal memory, so I don't see any benefit to using a database to store the actual image bits. Besides the space issue, manipilating files is just easier than shuffling byte[] arrays. The size of internal storage varies greatly, but as far as I can tell, users tend to get nervious if an app uses more than, say, 5-10-15 megabytes. The external storage comes in two shapes: a real physical memory card, whose size can also vary greatly, and pseudo-external storage, such as that on tablets, Samsung's Galaxy phones including the Nexus (and maybe others). The API is the same for both types of external memory. As far external storage goes, consider using Context#getExternalCacheDir so that it integrates with Android's application management features. http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Thanks that has helped a lot -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Detecting if activity is running from service
I have a service that obtains and stores sample data from a web service. It is triggered by alarms, gets a sample which may or may not be new, stores it in my DB. At that point, if a new sample was added, and the activity that lists the samples is active, I want to notify it to refresh the cursor to include the new sample. If the activity isn't running, I don't care because it will be fine when it launches. If I set up a receiver and send a broadcast won't the broadcast cause it to launch if the activity isn't running? That is behavior that I don't want. This isn't really a show stopper, but I would appreciate any strategy ideas you might have in making this happen in a reasonable amount of effort. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Renderscript and video
Just to add to this - here is the documentation for SurfaceTexturehttp://developer.android.com/reference/android/graphics/SurfaceTexture.htmlin android reference. It describes that Camera and MediaPlayer output can use SurfaceTexture as the destination for output. Camera version works - how is MediaPlayer implemented in this, since the output for the MediaPlayer can only be a SurfaceView.holder? Or am I missing something very basic? On Thursday, March 8, 2012 7:45:20 PM UTC-5, narkis wrote: I am developing a UI in Renderscript that will need to handle video - several questions: RSTextureView can handle a Camera, MediaPlayer is mentioned as well, using functionality through setting the Camera.setPreviewTexture(surface) - how is the MediaPlayer usable in this? Is it possible to use MedaPlayer directy in Renderscript to fetch rs_allocation to use as a texture? That would be ideal! Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How can i make my texture (or polygon) transparent when i want? (opengl es 1.1)
That depends on how you currently display things. If you post some code perhaps someone could give you an idea of how to change it... On Mar 2, 1:31 am, saex elpablos...@gmail.com wrote: How can i do that? El viernes 2 de marzo de 2012 07:44:42 UTC+1, Yan escribió: Using the alpha values would add a huge layer of complexity to your program. Perhaps instead you may consider having a switch in your code to throw those polygons in your color buffer rather than your texture buffer... On Thursday, March 1, 2012 9:53:44 AM UTC-7, saex wrote: I have a square polygon with a texture (opengl es 1.1), and i need that when i want the polygon get's invisible and when i want the polygon turn's visible again. It's frustrating because seems to be a very easy thing but i can't find any tutorials or examples for do it on google or stackoverflow. please, can someone give me a sample to do 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] Configuring IDE (Eclipse or IntelliJ) for System Development
I'm looking to develop features, fix bugs in the android os, which is going decently with the make my changes, build, push to device, but am looking for something a bit more usable on a regular basis. I've managed to get both ide's able to show many of the projects, and some of the features like go to definition typically work, but I definitely cant build, debug through the ide's at this time. Is there a project file, or official way of setting up ide's for os development anywhere? I know there are development folders in the source tree, but there would appear to be 0 documentation and adding a new module to intellij with the IML in the development/ide/intellij/moduleDefiniitions/testing.iml Can any one provide any advice to development lifecycle stuff? Right now, I'll make the change, then m module adb shell stop adb remount adb shell sync and then adb shell start or just reboot. is there an easier way? Are there actual ipr's for Intellij development on the os source? I'd like to do things like add new screens in settings, and its becoming very time consuming. Any help would be greatly appreciated! Weston -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Detecting if activity is running from service
On Fri, Mar 9, 2012 at 11:28 AM, Ted Scott t...@hootinholler.com wrote: I have a service that obtains and stores sample data from a web service. It is triggered by alarms, gets a sample which may or may not be new, stores it in my DB. At that point, if a new sample was added, and the activity that lists the samples is active, I want to notify it to refresh the cursor to include the new sample. If the activity isn't running, I don't care because it will be fine when it launches. If I set up a receiver and send a broadcast won't the broadcast cause it to launch if the activity isn't running? That is behavior that I don't want. Use an ordered broadcast to notify your foreground activity, and possibly display a Notification if the activity is not in the foreground: http://commonsware.com/blog/2010/08/11/activity-notification-ordered-broadcast.html Here is a sample demonstrating this: https://github.com/commonsguy/cw-advandroid/tree/master/Broadcast/Ordered Or, have your activity get its data from the service via a ContentProvider, and use a ContentObserver (which happens automagically if you are using a CursorLoader). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Configuring IDE (Eclipse or IntelliJ) for System Development
On Fri, Mar 9, 2012 at 11:34 AM, Weston Weems wwe...@gmail.com wrote: I'm looking to develop features, fix bugs in the android os, which is going decently with the make my changes, build, push to device, but am looking for something a bit more usable on a regular basis. Questions regarding the firmware are better asked on a Google Group hosted at http://source.android.com, as this list is for developing apps with the Android SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Detecting if activity is running from service
You can take a look at this: http://developer.android.com/reference/android/app/ActivityManager.html#getRunningTasks%28int%29 But beware... The definition of a running app may not be what you think on Android. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Mar 9, 2012 at 9:28 AM, Ted Scott t...@hootinholler.com wrote: I have a service that obtains and stores sample data from a web service. It is triggered by alarms, gets a sample which may or may not be new, stores it in my DB. At that point, if a new sample was added, and the activity that lists the samples is active, I want to notify it to refresh the cursor to include the new sample. If the activity isn't running, I don't care because it will be fine when it launches. If I set up a receiver and send a broadcast won't the broadcast cause it to launch if the activity isn't running? That is behavior that I don't want. This isn't really a show stopper, but I would appreciate any strategy ideas you might have in making this happen in a reasonable amount of effort. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@**googlegroups.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Expanding Galaxy?
I am not sure but try looking at this code may help you to get rid of the status bar on tablet. TabletStatusBar.java On Fri, Mar 9, 2012 at 8:28 AM, bob b...@coolfone.comze.com wrote: It is running Android 3.1, so I guess there's nothing I can do? Strangely, that function is available in API 11, but the parameters are not available till API 14. I tried passing in a 0 and 1, but neither did anything. Thanks. On Thursday, March 8, 2012 11:58:22 AM UTC-8, Mark Murphy (a Commons Guy) wrote: On Thu, Mar 8, 2012 at 2:50 PM, bob b...@coolfone.comze.com wrote: I have the Samsung Galaxy Tab 10.1, and it has a status bar at the bottom of the screen with the Back, Home, Menu, and Screen Capture button. Is there a reasonable way to hide this to play a movie back in complete fullscreen? No. See Controls for system UI visibility on: http://developer.android.com/**sdk/android-4.0.htmlhttp://developer.android.com/sdk/android-4.0.html In short: you can hide it on phones, not tablets (via setSystemUiVisibility()), though you can dim it on tablets. -- 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/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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Detecting if activity is running from service
Thanks Mark. On 3/9/2012 11:36 AM, Mark Murphy wrote: On Fri, Mar 9, 2012 at 11:28 AM, Ted Scottt...@hootinholler.com wrote: At that point, if a new sample was added, and the activity that lists the samples is active, I want to notify it to refresh the cursor to include the new sample. If the activity isn't running, I don't care because it will be fine when it launches. If I set up a receiver and send a broadcast won't the broadcast cause it to launch if the activity isn't running? That is behavior that I don't want. Use an ordered broadcast to notify your foreground activity, and possibly display a Notification if the activity is not in the foreground: http://commonsware.com/blog/2010/08/11/activity-notification-ordered-broadcast.html Here is a sample demonstrating this: https://github.com/commonsguy/cw-advandroid/tree/master/Broadcast/Ordered I'll have a look and probably have some questions after I do. I already optionally send a notify that a new sample was stored. Or, have your activity get its data from the service via a ContentProvider, and use a ContentObserver (which happens automagically if you are using a CursorLoader). Ah, I'm coding to API level 8 so I'm using a managedQuery. It seemed like a lot of devices would be cut out if I went to a higher API level. I guess I'm feeling the frustrations of the moving platform 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] Detecting if activity is running from service
On Fri, Mar 9, 2012 at 12:29 PM, Ted Scott t...@hootinholler.com wrote: Ah, I'm coding to API level 8 so I'm using a managedQuery. It seemed like a lot of devices would be cut out if I went to a higher API level. I guess I'm feeling the frustrations of the moving platform now. The Android Support package supports the Loader framework going back to Android 1.6, if you are willing and able to inherit from FragmentActivity. And, you can still use a ContentObserver to let you know when the stuff you queried in your managedQuery() is altered(). It's just not automatic (IIRC). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Detecting if activity is running from service
Thanks Justin! I was already reading that page and thinking along the lines of maybe I'll just live with the minor issue. ;) On 3/9/2012 11:39 AM, Justin Anderson wrote: You can take a look at this: http://developer.android.com/reference/android/app/ActivityManager.html#getRunningTasks%28int%29 But beware... The definition of a running app may not be what you think on Android. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Mar 9, 2012 at 9:28 AM, Ted Scott t...@hootinholler.com mailto:t...@hootinholler.com wrote: I have a service that obtains and stores sample data from a web service. It is triggered by alarms, gets a sample which may or may not be new, stores it in my DB. At that point, if a new sample was added, and the activity that lists the samples is active, I want to notify it to refresh the cursor to include the new sample. If the activity isn't running, I don't care because it will be fine when it launches. If I set up a receiver and send a broadcast won't the broadcast cause it to launch if the activity isn't running? That is behavior that I don't want. This isn't really a show stopper, but I would appreciate any strategy ideas you might have in making this happen in a reasonable amount of effort. -- You received this 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] dynamically change the content of the data in the android screen
She needs only answer not for Learn How to ask a question (You are asking us to read entire document for to asking a question in the forums . Its so funny). On Friday, March 9, 2012 9:57:57 AM UTC-6, MagouyaWare wrote: Step 1: Read this: http://catb.org/esr/faqs/smart-questions.html Step 2: Try again... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Mar 9, 2012 at 12:19 AM, ramalakshmi krishna.veni...@gmail.comwrote: Hai! I connect Android mobile to ms sql server through php(in this i convert the data into json format). The output is a table.now i want to change the values of the data dynamically.how can i achieve this.please help me -- ramalakshmi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Shift selected radioButton value from one activity to other other activity??
Thanks justin. From: magouyaw...@gmail.com Date: Fri, 9 Mar 2012 08:59:42 -0700 Subject: Re: [android-developers] Shift selected radioButton value from one activity to other other activity?? To: android-developers@googlegroups.com Create an intent, put the value in it, and send it to your other activity with startActivity() or startActivityForResult(). Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 8, 2012 at 11:12 PM, muhammad.ume...@hotmail.com muhammad.ume...@hotmail.com wrote: Hi, I want some radio button on one activity. how to submit selected radio button value from this activity to other activity, any suggestion? Thanks and Regards, umer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
Re: [android-developers] dynamically change the content of the data in the android screen
The point is that the question asked is not a smart question and not enough information was given for anyone to be able to answer it. 1. It is too vague... databases and tables can be set up in a wide variety of ways. 2. There is no indication of has been tried already 3. There is no code to give anyone a starting point to even begin answering the question. So, my answer to the question was to read the document and figure out how to ask the question in a way that people will be able and willing to answer. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Mar 9, 2012 at 10:55 AM, Srinivas Nainala srito...@gmail.comwrote: She needs only answer not for Learn How to ask a question (You are asking us to read entire document for to asking a question in the forums . Its so funny). On Friday, March 9, 2012 9:57:57 AM UTC-6, MagouyaWare wrote: Step 1: Read this: http://catb.org/esr/faqs/**smart-questions.htmlhttp://catb.org/esr/faqs/smart-questions.html Step 2: Try again... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware On Fri, Mar 9, 2012 at 12:19 AM, ramalakshmi krishna.veni...@gmail.comwrote: Hai! I connect Android mobile to ms sql server through php(in this i convert the data into json format). The output is a table.now i want to change the values of the data dynamically.how can i achieve this.please help me -- ramalakshmi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Analytics in Widget
On Thu, Mar 8, 2012 at 8:08 AM, Jayer jrbonte...@gmail.com wrote: Do you know if it's possible to ad an analytics tracker (like google analytics) in a widget ? Why wouldn't it be possible? - 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] Re: Google Play
I wonder if we should now expect a google work where we can publish business apps ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: location based app
nearest places e exp. the nearest hotels or restaurants or sth else. You need a POI DB for this. I'm not sure (because I've never used it) but Google Places API can be useful. Check this thread: http://stackoverflow.com/questions/3830149/using-google-places-api-in-android But then, there are very good similar alternatives out there. TomTom Places is one of them. If you want to work on this for educational purposes, go for it. If you plan to enter the competition, you should think how to differentiate your work from the existing (and very good) alternatives. Also I want to draw the data from wikimapia or a similar site. Check if the sites you are interested in have online APIs (e.g. RESTful APIs). If yes, then you should study their documentation explaining how to use these APIs. Good luck. - Ali Chousein http://www.codeproject.com/KB/android/PayGol-Android.aspx http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 show a single country map rather then whole world map
Here is an example on net which is showing a custom map. Plz check it out. Let me know if you find a way that how can we implement that in Android. I am also trying to figure it out. Sure. But you forgot to tell what the deadline is. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en