[android-developers] Example for ACCESSORY_SEND_HID_EVENT
Hi, Please someone provide an example for how to use ACCESSORY_SEND_HID_EVENT and ACCESSORY_SET_HID_REPORT_DESC using AOA 2.0 HID. Thanks in advance. Regards, Prabudas S. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to delete app in new console
in dungeons app data is stored in sqlite database. in order to get a fresh app, you have to increase version of database, then dungeons should work fine. If you want to delete app, you can do this in app manager and it uninstalls completely. W dniu środa, 19 grudnia 2012 07:15:03 UTC+1 użytkownik Keith Wiley napisał: In the old console, if you delete the last APK, the entire app goes away...for better or worse. However, in the new console there appears to be no way at all to delete an app. Is this correct? Is my console now littered with unintended apps that will persist forever? I have a version of the Dungeons app and I have draft versions of an app in-prep that I divided between free and paid before abandoning them in favor of a freemium model. Is there anyway to clean up this clutter in the console? 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] OpenGL ES 3.0 support on Android - timeframe?
Hi, The OpenGL ES 3.0 specification was released this summer: http://www.khronos.org/opengles/ Does anyone know when we can expect to see it supported on Android? Several newer mobile GPUs have the feature set required, and it would be nice to be able to access it. Thanks, Henrik -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 will combine download and then upload in a loop?
try using upload function in asynctask in onpostexecute method keeping data in local asynctask variable. W dniu środa, 19 grudnia 2012 02:01:41 UTC+1 użytkownik TreKing napisał: On Tue, Dec 18, 2012 at 3:59 AM, Antonis Kanaris ant...@in.grjavascript: wrote: How combine download and upload together? Do the upload only after the download has actually completed. Hint: it's probably not completed two lines after you called execute() on your Task. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: what does it mean? - java.lang.SecurityException: Unable to find app for caller android.app. ApplicationThreadProxy@42b3bcc0 (pid=28461) when publishing content providers
Hi, App still catch this problem. Could someone help me to figure out with it? воскресенье, 25 ноября 2012 г., 19:56:43 UTC+4 пользователь Dmitriy Kazakov написал: Hello, I have an app did a lot calculations, comunicate with a server and lives all time in backgound if user wants it. My service could be killed with an entire process and recreating again when memory have been available so I manage this behaviour. But issue is that in some rare cases I get an error which staktrase I post below. My guess is that some part of code which are executed in another thread try to post some results to component that has been deleted and recreated again in another process. Do you have a better eplanation? All help would be appreciated. E/AndroidRuntime(28461): FATAL EXCEPTION: main E/AndroidRuntime(28461): java.lang.SecurityException: Unable to find app for caller android.app. ApplicationThreadProxy@42b3bcc0 (pid=28461) when publishing content providers E/AndroidRuntime(28461): at android.os.Parcel.readException(Parcel.java:1327) E/AndroidRuntime(28461): at android.os.Parcel.readException(Parcel.java:1281) E/AndroidRuntime(28461): at android.app.ActivityManagerProxy.publishContentProviders(ActivityManagerNative.java:2325) E/AndroidRuntime(28461): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4021) E/AndroidRuntime(28461): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3963) E/AndroidRuntime(28461): at android.app.ActivityThread.access$1300(ActivityThread.java:128) E/AndroidRuntime(28461): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1199) E/AndroidRuntime(28461): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(28461): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime(28461): at android.app.ActivityThread.main(ActivityThread.java:4517) E/AndroidRuntime(28461): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(28461): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime(28461): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993) E/AndroidRuntime(28461): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760) E/AndroidRuntime(28461): at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Intercept an app
if i had to do this i would do an activity which is marked as launcher ( only this activity ) having text to enter password. if the password is correct i would open with intent a proper activity, otherwise would stop the application. W dniu wtorek, 18 grudnia 2012 18:52:57 UTC+1 użytkownik Kristopher Micinski napisał: It is impossible: your app should not be able to gain system level privileges. Apps exploiting this type of behavior typically read logs and then shut down other apps by killing them with a pid, relaunching after the user inputs a password. Fortunately, this behavior has been removed (no read logs permission) in newer Android builds. Kris On Tue, Dec 18, 2012 at 9:23 AM, Lucas Diego diego...@gmail.comjavascript: wrote: Hi everyone! Is it possible to intercept an app to launcher, in order to ask a password before? Like ZDBox ( https://play.google.com/store/apps/details?id=com.zdworks.android.toolboxhl=en) does? I created my onw launcher and there are some apps that I don't want to be opened, only if the user have the password. How can I do that? Any aswer would be appreciate. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android drag and drop gridview ordering using OnDragListener
I created a drag and drop gridview (using an 'OnDragListener'). Grid items can be dropped upon one another. However, I also want to be able to re-order them. I implemented this, but there is a major issue left standing: When I drag around my shadow object I want the items to make space for my dragged object while I am dragging it around. I already implemented the moving of the other items, but I cannot seem to figure out a way to find out IF/WHEN I am in between two items. I get drag events when I hoover ABOVE an item, but not in between then. The gridview does not get any 'onTouchEvent' calls when I am dragging, not even 'onInterceptTouchEvent' calls. Does anyone know a way in which I can implement this? I already tried: 1. Implementing 'onTouchEvent' and 'onInterceptTouchEvent' in the gridview. Problem: The gridview does not get any 'onTouchEvent' calls when I am dragging an item, not even 'onInterceptTouchEvent' calls. 2. Setting another 'draglistener' on the whole gridview. Problem: 'ACTION_DRAG_LOCATION' gets only called a few times, not on every move (location change), as is documented (!!). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OnDragListener ACTION_DRAG_LOCATION called only a few times
I implemented an 'OnDragListener' and notice that 'DragEvent.ACTION_DRAG_LOCATION' is called only a few times (2-4) when I drag my shadow around on top of a view (a view with this listener). After that, it keeps silent until I release my dragged item. The other 'DragEvents' (enter, drop, exited) I do receive as often as I expect them. But entered and exited are very slow. I get these events 500-1000 ms after entering/exiting a view). So: 1. The drag listener is slow (the events arrive late) 2. 'DragEvent.ACTION_DRAG_LOCATION' is called only a few times per gesture. Is this normal behaviour? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OnDragListener ACTION_DRAG_LOCATION called only a few times
it may depend on amount of o objects in memory. How many views with listener do You have? W dniu środa, 19 grudnia 2012 10:26:21 UTC+1 użytkownik Frank napisał: I implemented an 'OnDragListener' and notice that 'DragEvent.ACTION_DRAG_LOCATION' is called only a few times (2-4) when I drag my shadow around on top of a view (a view with this listener). After that, it keeps silent until I release my dragged item. The other 'DragEvents' (enter, drop, exited) I do receive as often as I expect them. But entered and exited are very slow. I get these events 500-1000 ms after entering/exiting a view). So: 1. The drag listener is slow (the events arrive late) 2. 'DragEvent.ACTION_DRAG_LOCATION' is called only a few times per gesture. Is this normal behaviour? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OnDragListener ACTION_DRAG_LOCATION called only a few times
around 15 right now. But it might be anything between 2 and 200. Op woensdag 19 december 2012 10:40:47 UTC+1 schreef Grzegorz Patynek het volgende: it may depend on amount of o objects in memory. How many views with listener do You have? W dniu środa, 19 grudnia 2012 10:26:21 UTC+1 użytkownik Frank napisał: I implemented an 'OnDragListener' and notice that 'DragEvent.ACTION_DRAG_LOCATION' is called only a few times (2-4) when I drag my shadow around on top of a view (a view with this listener). After that, it keeps silent until I release my dragged item. The other 'DragEvents' (enter, drop, exited) I do receive as often as I expect them. But entered and exited are very slow. I get these events 500-1000 ms after entering/exiting a view). So: 1. The drag listener is slow (the events arrive late) 2. 'DragEvent.ACTION_DRAG_LOCATION' is called only a few times per gesture. Is this normal behaviour? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OnDragListener ACTION_DRAG_LOCATION called only a few times
15 right now. but I also want to be able to handle up to 200 items in the end. Op woensdag 19 december 2012 10:40:47 UTC+1 schreef Grzegorz Patynek het volgende: it may depend on amount of o objects in memory. How many views with listener do You have? W dniu środa, 19 grudnia 2012 10:26:21 UTC+1 użytkownik Frank napisał: I implemented an 'OnDragListener' and notice that 'DragEvent.ACTION_DRAG_LOCATION' is called only a few times (2-4) when I drag my shadow around on top of a view (a view with this listener). After that, it keeps silent until I release my dragged item. The other 'DragEvents' (enter, drop, exited) I do receive as often as I expect them. But entered and exited are very slow. I get these events 500-1000 ms after entering/exiting a view). So: 1. The drag listener is slow (the events arrive late) 2. 'DragEvent.ACTION_DRAG_LOCATION' is called only a few times per gesture. Is this normal behaviour? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MapFragment
Android supports MapFragment now On Friday, 29 April 2011 23:15:49 UTC+8, Karl Wagner wrote: Any news on a way to get a MapView on to a fragment? I would have thought this was really quite an urgent flaw (it you're using fragments, it really messes up your app's workflow) I'm using the compatibility library, and the current way of doing things by extending making FragmentActivity extend MapActivity is horrible because you will eventually get a two mapviews on one mapactivity error. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: what does it mean? - java.lang.SecurityException: Unable to find app for caller android.app. ApplicationThreadProxy@42b3bcc0 (pid=28461) when publishing content providers
This means there was an error communicating with another process handling an Intent. The stack trace here is confusing and doesn't show the real cause of the problem. For example i've seen this error happen sending an intent with intent extras being too big, bigger than max transaction size (1Mb). To debug this it can be interesting to look at earlier logcat stack trace to see where it really fails. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 exit,close my application...
I make an application download data from web send to bluetooth,listen bluetooth and upload to web with loopbut when push button close my apk freeze...no work... /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity2); //txt=(TextView)findViewById(R.id.txt); myLabel = (TextView)findViewById(R.id.label); temptext = (TextView)findViewById(R.id.temptxt); SharedPreferences preferences = getSharedPreferences(dataioweb , MODE_PRIVATE); strValue = preferences.getString(Url,); TextView text = (TextView) findViewById(R.id.txt1); text.setText(strValue); strValue2 = preferences.getString(DevName,); TextView text2 = (TextView) findViewById(R.id.txt2); text2.setText(strValue2); } private class DownloadWebPageTask extends AsyncTaskString, Void, String { @Override protected String doInBackground(String... urls) { String response = ; for (String url : urls) { DefaultHttpClient client = new DefaultHttpClient(); HttpGet httpGet = new HttpGet(url); try { HttpResponse execute = client.execute(httpGet); InputStream content = execute.getEntity().getContent(); BufferedReader buffer = new BufferedReader(new InputStreamReader(content)); String s = ; while ((s = buffer.readLine()) != null) { response += s; } } catch (Exception e) { e.printStackTrace(); } } return response; } @Override protected void onPostExecute(String result) { TextView text3 = (TextView) findViewById(R.id.txt3); text3.setText(result); try { sendData(result); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } protected void onStart() { super.onStart(); try { findBT(); openBT(); } catch (IOException ex) { } runnable.run(); } private Runnable runnable = new Runnable() { public void run() { DownloadWebPageTask task = new DownloadWebPageTask(); task.execute(new String[] { strValue });//Download data on/off beginListenForData();//Listen Bluetooth temperature SimpleHttpPut task2 = new SimpleHttpPut(); task2.execute(new String[] { urlt,data });//Upload data class if(work){ handler.postDelayed(this, 3);}//Refresh page time } }; void findBT() { mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); if(mBluetoothAdapter == null) { myLabel.setText(No bluetooth adapter available); } if(!mBluetoothAdapter.isEnabled()) { //mBluetoothAdapter.enable(); Intent enableBluetooth = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableBluetooth, 0); } SetBluetoothDevice pairedDevices = mBluetoothAdapter.getBondedDevices(); if(pairedDevices.size() 0) { for(BluetoothDevice device : pairedDevices) { if(device.getName().equals(strValue2)) { mmDevice = device; break; } } } myLabel.setText(Bluetooth Device Found); } void openBT() throws IOException { UUID uuid = UUID.fromString(1101--1000-8000-00805f9b34fb); //Standard SerialPortService ID mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid); mmSocket.connect(); mmOutputStream = mmSocket.getOutputStream(); mmInputStream = mmSocket.getInputStream(); // beginListenForData(); myLabel.setText(Bluetooth Opened); } void sendData(String msg) throws IOException { msg += \n; mmOutputStream.write(msg.getBytes()); myLabel.setText(Data Sent); } void beginListenForData() { final Handler handler = new Handler(); final byte delimiter = 10; //This is the ASCII code for a newline character stopWorker = false; readBufferPosition = 0; readBuffer = new byte[1024]; workerThread = new Thread(new Runnable() { public void run() { while(!Thread.currentThread().isInterrupted() !stopWorker)
[android-developers] Re: Speaker Problem
SOLVED. Reading the jelly bean code source, i've found this code // This is not an error but might cause users' confusion. Add log just in case. Log.i(LOG_TAG, Forcing speaker off when initiating a new outgoing call...); PhoneUtils.turnOnSpeaker(app, false, true); So that's it, in version 4.1 android forces speaker off in incoming and outgoing calls. My solution is turn on the speaker in my call state broadcast receiver, after start to make a call On Tuesday, December 18, 2012 9:45:07 AM UTC-2, André Lima wrote: - I have the permission MODIFY_AUDIO_SETTINGS declared - I use the following code to make a call with speaker ON AudioManager am = null; am = (AudioManager)getSystemService(Context.AUDIO_SERVICE); am.setMode(AudioManager.MODE_IN_CALL); am.setSpeakerphoneOn(true); The problem is: This works fine in version 4.0 and lower. Version 4.1 and higher doesn't works, but I don't receive errors. Just doesn't work. Does anyone can help me with ideas? Best Regards, André -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 sync development projects?
Then you haven't worked in iOS development. There Apple have generously discontinued support for CVS, and are now huffing and puffing to discontinue support for SVN too. Git or nothing. On Tuesday, December 18, 2012 7:39:25 PM UTC-5, TreKing wrote: On Tue, Dec 18, 2012 at 2:35 AM, Piren gpi...@gmail.com javascript:wrote: In that case, you should really move to git as Nikolay suggested :) Its basically doing exactly what you want... Meh, I'm set in my ways with SVN. I don't use this that frequently that I feel it's worth the trouble learning and moving to a new version system right now. Good to know though for future reference. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] UI getting slow on video playing
Hi, In my application, I am majorly doing 2 things. 1) some part of the screen plays video 2) The remaining part of screen has a set of text views and I am updating them every one second. For playing video, I am using surface view approach and for updating textviews, I am using an async task which updates UI in onprogresschanged() method every one second. With this approach, the textviews are not getting refreshed with the latest data every one second. The refresh rate is keep on changing. Some times they update for 10 sec etc. When I comment the video playing code, the textviews are getting updated every 1 sec. properly. Can any one suggest me a approach such that both the video playing and textview updates on UI occur properly with out any delay? Thanks, Shashidhar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 record multimedia audio
Help me please! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to record multimedia audio
Google is your friend -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Identifying HTTP Get requests in Android
Hi, I m implementing threads first. Can I use Basic HTTP server from the link http://hc.apache.org/httpcomponents-core-ga/examples.html ? Can you please let me know the difference between handling blocking requests and blocking IO(as specified in the link). Thanks! On Tuesday, December 18, 2012 7:09:59 PM UTC+2, skink wrote: Archana wrote: I read using threads causes overhead, performance and scalability issues. It is efficient if there are a limited number of clients. So I think using java.nio would be the best option. Any example that shows handling the HTTP methods without blocking. how many concurrent requests do you expect? 10, 100, 1000, more? if ten or so its no problem, if more you probably should change the platform pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: UI getting slow on video playing
Shashidhar wrote: Hi, In my application, I am majorly doing 2 things. 1) some part of the screen plays video 2) The remaining part of screen has a set of text views and I am updating them every one second. For playing video, I am using surface view approach and for updating textviews, I am using an async task which updates UI in onprogresschanged() method every one second. With this approach, the textviews are not getting refreshed with the latest data every one second. The refresh rate is keep on changing. Some times they update for 10 sec etc. When I comment the video playing code, the textviews are getting updated every 1 sec. properly. Can any one suggest me a approach such that both the video playing and textview updates on UI occur properly with out any delay? Thanks, Shashidhar what async task?can you be more elaborate? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: UI getting slow on video playing
Below is the async task I am using to update the UI private class DisplayTask extends AsyncTaskVoid, Void, Void { public boolean isStopped = false; @Override protected Void doInBackground(Void... params) { try { while (!isStopped) { try { publishProgress(); Thread.sleep(1000); } catch(InterruptedException e) { e.printStackTrace(); } } }catch(Exception e) { e.printStackTrace(); } return null; } @Override protected void onProgressUpdate(Void... values) { //Code to update UI } } On Wed, Dec 19, 2012 at 5:26 PM, skink psk...@gmail.com wrote: Shashidhar wrote: Hi, In my application, I am majorly doing 2 things. 1) some part of the screen plays video 2) The remaining part of screen has a set of text views and I am updating them every one second. For playing video, I am using surface view approach and for updating textviews, I am using an async task which updates UI in onprogresschanged() method every one second. With this approach, the textviews are not getting refreshed with the latest data every one second. The refresh rate is keep on changing. Some times they update for 10 sec etc. When I comment the video playing code, the textviews are getting updated every 1 sec. properly. Can any one suggest me a approach such that both the video playing and textview updates on UI occur properly with out any delay? Thanks, Shashidhar what async task?can you be more elaborate? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: Identifying HTTP Get requests in Android
Archana wrote: Hi, I m implementing threads first. Can I use Basic HTTP server from the link http://hc.apache.org/httpcomponents-core-ga/examples.html ? Can you please let me know the difference between handling blocking requests and blocking IO(as specified in the link). Thanks! after two minute googling I got this: http://www.oracle.com/technetwork/java/socket-140484.html why don't you use Google for a basic socket stuff that has nothing to do with android? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: UI getting slow on video playing
Shashidhar wrote: Below is the async task I am using to update the UI private class DisplayTask extends AsyncTaskVoid, Void, Void { public boolean isStopped = false; @Override protected Void doInBackground(Void... params) { try { while (!isStopped) { try { publishProgress(); Thread.sleep(1000); } catch(InterruptedException e) { e.printStackTrace(); } } }catch(Exception e) { e.printStackTrace(); } return null; } @Override protected void onProgressUpdate(Void... values) { //Code to update UI } } don't use AsyncTask, use Handler instead pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: UI getting slow on video playing
In fact, the first thing I tried was the Handler approach, but it also had the same problem. Hence, I changed it to async task. On Wed, Dec 19, 2012 at 5:52 PM, skink psk...@gmail.com wrote: Shashidhar wrote: Below is the async task I am using to update the UI private class DisplayTask extends AsyncTaskVoid, Void, Void { public boolean isStopped = false; @Override protected Void doInBackground(Void... params) { try { while (!isStopped) { try { publishProgress(); Thread.sleep(1000); } catch(InterruptedException e) { e.printStackTrace(); } } }catch(Exception e) { e.printStackTrace(); } return null; } @Override protected void onProgressUpdate(Void... values) { //Code to update UI } } don't use AsyncTask, use Handler instead pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: UI getting slow on video playing
Shashidhar wrote: In fact, the first thing I tried was the Handler approach, but it also had the same problem. Hence, I changed it to async task. I'm using surface view with handlers and its working like a charm pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Intercept an app
ok... I might work... but what if another app launches a browse, how can I intercept that? On Wed, Dec 19, 2012 at 6:18 AM, Grzegorz Patynek gpaty...@gmail.comwrote: if i had to do this i would do an activity which is marked as launcher ( only this activity ) having text to enter password. if the password is correct i would open with intent a proper activity, otherwise would stop the application. W dniu wtorek, 18 grudnia 2012 18:52:57 UTC+1 użytkownik Kristopher Micinski napisał: It is impossible: your app should not be able to gain system level privileges. Apps exploiting this type of behavior typically read logs and then shut down other apps by killing them with a pid, relaunching after the user inputs a password. Fortunately, this behavior has been removed (no read logs permission) in newer Android builds. Kris On Tue, Dec 18, 2012 at 9:23 AM, Lucas Diego diego...@gmail.com wrote: Hi everyone! Is it possible to intercept an app to launcher, in order to ask a password before? Like ZDBox (https://play.google.com/**store/apps/details?id=com.** zdworks.android.toolboxhl=enhttps://play.google.com/store/apps/details?id=com.zdworks.android.toolboxhl=en) does? I created my onw launcher and there are some apps that I don't want to be opened, only if the user have the password. How can I do that? Any aswer would be appreciate. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: list adapter for complex dynamic layouts
Hi , OrderDate :Today Order1 Item 1 Item2 Order 2 Item1 OrderDate : Yesterday order 1 Item1 OrderDate : SomeDay Order 1 order 2 Order 3 Explanation: Many orders with their order numbers. Single day can have multile orders. Each order can have many items. If the order date is same day , Order Date is displayed only once. Please let me know Adapter class implementations. Thanks and regards, Nagaraj On Wednesday, April 30, 2008 4:18:42 AM UTC+9, kingkung wrote: I want to display an array of layouts... each layout has anywhere from 1-3 textviews, depending on how much content is filled in. So the display would basically look like this: 1) textview A textview B textview C --- 2) textview A textview B -- . . . -- n) textview A textview C Is there a simple way to do this through a listAdapter, like ArrayAdapter, etc.? The way I see it, an ArrayAdapter is only able to fill in ALL of the textview A's first, and then all of the textview B's, and then all of the textview C's. But there are clearly some entries which don't have all three text views, and hence the array would leave an empty space for that entry. I'm not positive how to make it so it does the above. Hope this question makes sense... any tips would be helpful, thanks! James -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Help needed.....
I need to know the idle time of my android phone to enable a screensaver. Also, how do I get to know the screen lock time? Please suggest. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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]
Hello u all, i have completed my mca this year. and now i am searching a job in C,C++,and java.will u plz help me to search and get the job. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Intercept an app
Like I said: you can't. Kris On Wed, Dec 19, 2012 at 8:24 AM, Lucas Diego diegoluc...@gmail.com wrote: ok... I might work... but what if another app launches a browse, how can I intercept that? On Wed, Dec 19, 2012 at 6:18 AM, Grzegorz Patynek gpaty...@gmail.com wrote: if i had to do this i would do an activity which is marked as launcher ( only this activity ) having text to enter password. if the password is correct i would open with intent a proper activity, otherwise would stop the application. W dniu wtorek, 18 grudnia 2012 18:52:57 UTC+1 użytkownik Kristopher Micinski napisał: It is impossible: your app should not be able to gain system level privileges. Apps exploiting this type of behavior typically read logs and then shut down other apps by killing them with a pid, relaunching after the user inputs a password. Fortunately, this behavior has been removed (no read logs permission) in newer Android builds. Kris On Tue, Dec 18, 2012 at 9:23 AM, Lucas Diego diego...@gmail.com wrote: Hi everyone! Is it possible to intercept an app to launcher, in order to ask a password before? Like ZDBox (https://play.google.com/store/apps/details?id=com.zdworks.android.toolboxhl=en) does? I created my onw launcher and there are some apps that I don't want to be opened, only if the user have the password. How can I do that? Any aswer would be appreciate. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Time Based Trigger in Android
You should not cross post: android-platform is for platform development only. You can do this easily using an AlarmManager: you hand it a PendingIntent, and it fires, you catch it in a receiver and everything's fine. Kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: UI getting slow on video playing
I am not running the app on a mobile phone or a tablet. I am running it on a smart android decive which has HDMI output and you can connect it to TV and see the UI on the TV. Can the processing speed limitation of the device be the reason for slow UI updates?? On Wed, Dec 19, 2012 at 6:44 PM, skink psk...@gmail.com wrote: Shashidhar wrote: In fact, the first thing I tried was the Handler approach, but it also had the same problem. Hence, I changed it to async task. I'm using surface view with handlers and its working like a charm pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to record multimedia audio
It sounds like what you want is a recording studio. Maybe a soundproof booth. Make sure you don't let your brother in either. On Tuesday, November 20, 2012 5:50:04 AM UTC-6, Meloy Común wrote: I don´t know why my last 2 post were deleted :( I said in those posts: I dont want to record from voice sound,(voice,cars,birds at the park,my brother laughing) i only want to record multimedia sound from the app, not from mic. I want to record piano sound because later i want to play piano with this sound recorded for make more complicated songs. I want to use the recorded sound like chords. Must be a way to record only multimedia sound without outer sounds Have a nice day -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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]
HI anamika, This is not job portal On Wed, Dec 19, 2012 at 8:06 PM, anamika yadav yadav anamikayadav.anam...@gmail.com wrote: Hello u all, i have completed my mca this year. and now i am searching a job in C,C++,and java.will u plz help me to search and get the job. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards Rambabu Mareedu 9581411199 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem exit,close my application...
Change this: runnable.run(); to this: *new Thread(runnable).start();* On Wednesday, December 19, 2012 5:25:01 AM UTC-6, Antonis Kanaris wrote: I make an application download data from web send to bluetooth,listen bluetooth and upload to web with loopbut when push button close my apk freeze...no work... /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity2); //txt=(TextView)findViewById(R.id.txt); myLabel = (TextView)findViewById(R.id.label); temptext = (TextView)findViewById(R.id.temptxt); SharedPreferences preferences = getSharedPreferences(dataioweb , MODE_PRIVATE); strValue = preferences.getString(Url,); TextView text = (TextView) findViewById(R.id.txt1); text.setText(strValue); strValue2 = preferences.getString(DevName,); TextView text2 = (TextView) findViewById(R.id.txt2); text2.setText(strValue2); } private class DownloadWebPageTask extends AsyncTaskString, Void, String { @Override protected String doInBackground(String... urls) { String response = ; for (String url : urls) { DefaultHttpClient client = new DefaultHttpClient(); HttpGet httpGet = new HttpGet(url); try { HttpResponse execute = client.execute(httpGet); InputStream content = execute.getEntity().getContent(); BufferedReader buffer = new BufferedReader(new InputStreamReader(content)); String s = ; while ((s = buffer.readLine()) != null) { response += s; } } catch (Exception e) { e.printStackTrace(); } } return response; } @Override protected void onPostExecute(String result) { TextView text3 = (TextView) findViewById(R.id.txt3); text3.setText(result); try { sendData(result); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } protected void onStart() { super.onStart(); try { findBT(); openBT(); } catch (IOException ex) { } runnable.run(); } private Runnable runnable = new Runnable() { public void run() { DownloadWebPageTask task = new DownloadWebPageTask(); task.execute(new String[] { strValue });//Download data on/off beginListenForData();//Listen Bluetooth temperature SimpleHttpPut task2 = new SimpleHttpPut(); task2.execute(new String[] { urlt,data });//Upload data class if(work){ handler.postDelayed(this, 3);}//Refresh page time } }; void findBT() { mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); if(mBluetoothAdapter == null) { myLabel.setText(No bluetooth adapter available); } if(!mBluetoothAdapter.isEnabled()) { //mBluetoothAdapter.enable(); Intent enableBluetooth = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableBluetooth, 0); } SetBluetoothDevice pairedDevices = mBluetoothAdapter.getBondedDevices(); if(pairedDevices.size() 0) { for(BluetoothDevice device : pairedDevices) { if(device.getName().equals(strValue2)) { mmDevice = device; break; } } } myLabel.setText(Bluetooth Device Found); } void openBT() throws IOException { UUID uuid = UUID.fromString(1101--1000-8000-00805f9b34fb); //Standard SerialPortService ID mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid); mmSocket.connect(); mmOutputStream = mmSocket.getOutputStream(); mmInputStream = mmSocket.getInputStream(); // beginListenForData(); myLabel.setText(Bluetooth Opened); } void sendData(String msg) throws IOException { msg += \n; mmOutputStream.write(msg.getBytes()); myLabel.setText(Data Sent); } void beginListenForData() { final Handler handler = new Handler(); final byte delimiter = 10; //This is the
Re: [android-developers] Re: UI getting slow on video playing
Why don't you not start the video and see if it updates once a second? On Wednesday, December 19, 2012 9:08:26 AM UTC-6, shashidhar wrote: I am not running the app on a mobile phone or a tablet. I am running it on a smart android decive which has HDMI output and you can connect it to TV and see the UI on the TV. Can the processing speed limitation of the device be the reason for slow UI updates?? On Wed, Dec 19, 2012 at 6:44 PM, skink psk...@gmail.com javascript:wrote: Shashidhar wrote: In fact, the first thing I tried was the Handler approach, but it also had the same problem. Hence, I changed it to async task. I'm using surface view with handlers and its working like a charm pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to delete app in new console
Where in the app manager is there a delete-app command? I honestly don't see 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] Intercept an app
ok! thanks Kris On Wed, Dec 19, 2012 at 11:54 AM, Kristopher Micinski krismicin...@gmail.com wrote: Like I said: you can't. Kris On Wed, Dec 19, 2012 at 8:24 AM, Lucas Diego diegoluc...@gmail.com wrote: ok... I might work... but what if another app launches a browse, how can I intercept that? On Wed, Dec 19, 2012 at 6:18 AM, Grzegorz Patynek gpaty...@gmail.com wrote: if i had to do this i would do an activity which is marked as launcher ( only this activity ) having text to enter password. if the password is correct i would open with intent a proper activity, otherwise would stop the application. W dniu wtorek, 18 grudnia 2012 18:52:57 UTC+1 użytkownik Kristopher Micinski napisał: It is impossible: your app should not be able to gain system level privileges. Apps exploiting this type of behavior typically read logs and then shut down other apps by killing them with a pid, relaunching after the user inputs a password. Fortunately, this behavior has been removed (no read logs permission) in newer Android builds. Kris On Tue, Dec 18, 2012 at 9:23 AM, Lucas Diego diego...@gmail.com wrote: Hi everyone! Is it possible to intercept an app to launcher, in order to ask a password before? Like ZDBox ( https://play.google.com/store/apps/details?id=com.zdworks.android.toolboxhl=en ) does? I created my onw launcher and there are some apps that I don't want to be opened, only if the user have the password. How can I do that? Any aswer would be appreciate. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to sync development projects?
On Wed, Dec 19, 2012 at 5:31 AM, lbendlin l...@bendlin.us wrote: Then you haven't worked in iOS development. Correct, though I hope to change that relatively soon... There Apple have generously discontinued support for CVS, and are now huffing and puffing to discontinue support for SVN too. Not to derail this thread further (I think the OP has long lost interest =P) but how did they manage that ...? Surely you can use whatever you want on your files, even if there is nothing built in to the IDE? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Custom notifications on Android v2.3
Does NotificationCompat.Builder setContent() API work on Android v2.3?. The reason why I ask is because I have managed to successfully display a status bar notification with a custom layout using setContent() in Android v4.X, but I cannot get it to work for Android v2.3 - I get a notification with the icon displayed, but no text (i.e. the rest is empty). 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] Re: Time Based Trigger in Android
You can use Android AlarmManager service to create alarm, you get a callback at the specified time, then you can execute your code. http://developer.android.com/reference/android/app/AlarmManager.html I am not sure whether it suits your requirement with sqlite but in general AlarmManager is the way to go. -br Arun On Wednesday, 19 December 2012 12:39:47 UTC, srinuvasareddy avula wrote: Hi, I have sqLite Table like this +--+--+ | FireTime | DeviceId | +--+--+ |08:00 | | +--+--+ i want to create a trigger which accepts mDeviceId parameter from user and checks for mDeviceId entry is there in table or not this trigger must be fire on 8 : 00.. How can is do so ? can any one suggest me that .. thanks in advance.. is there any mechanism to execute some peace of code based on time .. Thanks Regards Srinivas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MapView + Multiple Markers + Pan/Zoom
Hi, I have an application that should load to a MapView several markers as soon the zoom changes ou the map center location changes. I have been looking into the documentation but i have not found any listener for the zoom changes ou pan. Is there any to do this? Thanks Best Regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MapView + Multiple Markers + Pan/Zoom
Maps V1 didn't really have great support for that, and is now deprecated, anyway. Maps V2 allows you to associate an OnCameraChangeListener with a GoogleMap, to be informed when the camera changes position, tilt, or zoom. On Wed, Dec 19, 2012 at 5:54 PM, Filipe Batista batista.fil...@gmail.com wrote: Hi, I have an application that should load to a MapView several markers as soon the zoom changes ou the map center location changes. I have been looking into the documentation but i have not found any listener for the zoom changes ou pan. Is there any to do this? Thanks Best Regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 _The Busy Coder's Guide to Android Development_ Version 4.4 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] Send bug report from 4.1
Hi From discussions previously here, I am aware that Android 4.1 has rendered tools such as Sendlog worthless for collecting log cat logs. There was also mention of some secret keystrokes that might produce an error log. Something like power + volume up+ volume down. On Galaxy Nexus. I can't really push both volume up and volume down at the same time sine they are on a rocker type switch. I think I got it right once but I was lucky, and I think the method will be . There was also talk of making a more user friendly way in settings to do this. Is there any procedure that will work on, say, Razr Maxx HD, or ASUS Transformer TF700T. I of course know that the real solution is to write my own log collection dialog which will read from my own apps log only on 4.1 and above. But I am not inclined to tell a customer Just wait till next month's release if there are some alternate ways of diagnosing the problem. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SyncAdapter exception that I can't seem to trace.
I'm actually not calling any AsyncTasks at all in any part of the application *yet* and thats why the error was confusing me. That exception appears to be inside the Android API and popped up when I made the provider multiprocess (via the manifest). When you have that setting true, you are essentially telling the OS that it can create threads as needed for the provider, but the new threads don't have a proper environment. So, my guess its a bug in android, but I never had the time to go and try and find out if that is the case or not. I can tell you it was happening in ICE but not JB, which makes me think it was eventually fixed. - Brill On Tuesday, December 18, 2012 5:25:34 PM UTC-5, Jonathan S wrote: I am wondering why you are calling AsyncTask in SyncAdapter or ContentResolver? It is very odd. AsyncTask supposed to do run CPU heavy tasks on background then update it to UI threads. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Send bug report from 4.1
I tell users to install alogcat and send me a snapshot. This seems to work even on non-rooted devices. On Wednesday, December 19, 2012 7:45:23 PM UTC-5, Nathan wrote: Hi From discussions previously here, I am aware that Android 4.1 has rendered tools such as Sendlog worthless for collecting log cat logs. There was also mention of some secret keystrokes that might produce an error log. Something like power + volume up+ volume down. On Galaxy Nexus. I can't really push both volume up and volume down at the same time sine they are on a rocker type switch. I think I got it right once but I was lucky, and I think the method will be . There was also talk of making a more user friendly way in settings to do this. Is there any procedure that will work on, say, Razr Maxx HD, or ASUS Transformer TF700T. I of course know that the real solution is to write my own log collection dialog which will read from my own apps log only on 4.1 and above. But I am not inclined to tell a customer Just wait till next month's release if there are some alternate ways of diagnosing the problem. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Send bug report from 4.1
On Wed, Dec 19, 2012 at 7:58 PM, lbendlin l...@bendlin.us wrote: I tell users to install alogcat and send me a snapshot. This seems to work even on non-rooted devices. However, it will not work on Android 4.1 and higher. aLogCat can only report its own LogCat messages, not ones from other processes. That's because READ_LOGS can no longer be held by normal SDK apps (it is signatureOrSystem now). On Wednesday, December 19, 2012 7:45:23 PM UTC-5, Nathan wrote: There was also talk of making a more user friendly way in settings to do this. The hidden Developer Options on a 4.2+ device has a Take bug report option that emits the same report as does the magic key combination. Is there any procedure that will work on, say, Razr Maxx HD, or ASUS Transformer TF700T. Other than POWER + VOLUME UP + VOLUME DOWN, I am unaware of a way to collect the bug report on 4.1 without a copy of the Android SDK installed. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Send bug report from 4.1
On Thu, Dec 20, 2012 at 10:07 AM, Mark Murphy mmur...@commonsware.com wrote: On Wed, Dec 19, 2012 at 7:58 PM, lbendlin l...@bendlin.us wrote: I tell users to install alogcat and send me a snapshot. This seems to work even on non-rooted devices. However, it will not work on Android 4.1 and higher. aLogCat can only report its own LogCat messages, not ones from other processes. That's because READ_LOGS can no longer be held by normal SDK apps (it is signatureOrSystem now). An alternative is integrate ACRA in your app which can use the logcat command to read you app's log entries, no need for adding permissions. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 drag and drop gridview ordering using OnDragListener
Hi Frank I'm not sure I fully understand what effect you are trying to achieve withe drag and drop on a gridview (do you have an example to look at by any chance?). I may have done something similar with a custom listview though. To do drag and drop on my custom listview I don't make a space for my dragged object: instead I double the height of the row that is currently underneath the dragged object (which I assume is the shadow object in your email). In this way the touch events should continue to be registered. Once the dragged row is dragged more than 50% over the covered row I flip the location of the text so that it remains visible. As soon as the dragged object touches the next row I reset the previous one to the original height and double the size of the new 'covered' view. In addition you need to change the height of the original dragged view down to 1 pixel rather than changing the visibility of it. In this way my dragged object always has the listview under it and is never 'between' two items. Much as I'd like to claim that I came up with this clever trick myself I'm afraid I cannot: if you study the source for Google Music you can see it in action therealso if I recall correctly I think the estimable Mark Murphy extracted the useful bits from that app to build a custom listview class that you should be able to download from his site. Apologies if I completely misunderstood your problem! Best, Nick On Wednesday, December 19, 2012 4:23:49 AM UTC-5, Frank wrote: I created a drag and drop gridview (using an 'OnDragListener'). Grid items can be dropped upon one another. However, I also want to be able to re-order them. I implemented this, but there is a major issue left standing: When I drag around my shadow object I want the items to make space for my dragged object while I am dragging it around. I already implemented the moving of the other items, but I cannot seem to figure out a way to find out IF/WHEN I am in between two items. I get drag events when I hoover ABOVE an item, but not in between then. The gridview does not get any 'onTouchEvent' calls when I am dragging, not even 'onInterceptTouchEvent' calls. Does anyone know a way in which I can implement this? I already tried: 1. Implementing 'onTouchEvent' and 'onInterceptTouchEvent' in the gridview. Problem: The gridview does not get any 'onTouchEvent' calls when I am dragging an item, not even 'onInterceptTouchEvent' calls. 2. Setting another 'draglistener' on the whole gridview. Problem: 'ACTION_DRAG_LOCATION' gets only called a few times, not on every move (location change), as is documented (!!). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Send bug report from 4.1
I just uninstalled 4.2.1 because I couldn't find the developer options any more in the settings, and thus was unable to use adb. Why do they make that so difficult? On Wednesday, December 19, 2012 8:07:29 PM UTC-5, Mark Murphy (a Commons Guy) wrote: On Wed, Dec 19, 2012 at 7:58 PM, lbendlin lu...@bendlin.us javascript: wrote: I tell users to install alogcat and send me a snapshot. This seems to work even on non-rooted devices. However, it will not work on Android 4.1 and higher. aLogCat can only report its own LogCat messages, not ones from other processes. That's because READ_LOGS can no longer be held by normal SDK apps (it is signatureOrSystem now). On Wednesday, December 19, 2012 7:45:23 PM UTC-5, Nathan wrote: There was also talk of making a more user friendly way in settings to do this. The hidden Developer Options on a 4.2+ device has a Take bug report option that emits the same report as does the magic key combination. Is there any procedure that will work on, say, Razr Maxx HD, or ASUS Transformer TF700T. Other than POWER + VOLUME UP + VOLUME DOWN, I am unaware of a way to collect the bug report on 4.1 without a copy of the Android SDK installed. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Send bug report from 4.1
it is hidden. http://howto.cnet.com/8301-11310_39-57549207-285/restore-the-developer-options-menu-in-android-4.2/ On Wednesday, December 19, 2012 9:18:56 PM UTC-5, lbendlin wrote: I just uninstalled 4.2.1 because I couldn't find the developer options any more in the settings, and thus was unable to use adb. Why do they make that so difficult? On Wednesday, December 19, 2012 8:07:29 PM UTC-5, Mark Murphy (a Commons Guy) wrote: On Wed, Dec 19, 2012 at 7:58 PM, lbendlin lu...@bendlin.us wrote: I tell users to install alogcat and send me a snapshot. This seems to work even on non-rooted devices. However, it will not work on Android 4.1 and higher. aLogCat can only report its own LogCat messages, not ones from other processes. That's because READ_LOGS can no longer be held by normal SDK apps (it is signatureOrSystem now). On Wednesday, December 19, 2012 7:45:23 PM UTC-5, Nathan wrote: There was also talk of making a more user friendly way in settings to do this. The hidden Developer Options on a 4.2+ device has a Take bug report option that emits the same report as does the magic key combination. Is there any procedure that will work on, say, Razr Maxx HD, or ASUS Transformer TF700T. Other than POWER + VOLUME UP + VOLUME DOWN, I am unaware of a way to collect the bug report on 4.1 without a copy of the Android SDK installed. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 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] Bad View Behavior with Changing ListViews
Hey guys, I'm having some funny issues with my ListViews. Generally, I have a ListView activity where the list view takes up the entire activity. The list views are using a custom SimpleCursorAdapter and are using the supportLoaderManager to load in the data. The Loaders are connected to Observers and the data can be changed by background services. I'm getting some weird behavior when the data changes. When the data changes, I am doing an adapter.swapCursor( null ) while the new data is loading. When the list gets shorter, I'm getting black areas where the previous views where, and sometime I'm getting ~ghosting of older views if the removed views are at the bottom of the list. Is there some way to enforce invalidation or removal of these views? Is there some step I'm missing? Thanks! E -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to delete app in new console
you have uninstall button. it is on my phone. 2012/12/19 Keith Wiley kbwi...@gmail.com Where in the app manager is there a delete-app command? I honestly don't see 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 -- -- Pozdrawiam / Regards G.Patynek -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bluetooth input stream buffer overflows
I try to read a file via Bluetooth with HTC Desire. The code for connection is similar to BluetoothChat sample http://developer.android.com/tools/samples/index.html. The problem is in the ConnectedThread when reading files with size greater than 5 KB. This is the run() method of this thread (I removed the code that is unnecessary for the understanding of the problem): public void run() { // Keep listening to the InputStream while connected int bufferSize = 2048; byte[] buffer = new byte[bufferSize]; int num = 0; int offset = 0; while (true) { try { // Read from the InputStream offset = mmInStream.read(buffer, num, 1024); num = num + offset; Log.d(Read, offset = + offset); if(num bufferSize - 1024) { num = 0; offset = 0; } } catch (IOException e) { connectionLost(mAddress); break; } } } The local variable *offset* is never greater than 127. And when I try to read a 7K file mmInStream.read method blocks after a few seconds and doesn't return. I attempted to use different buffer sizes and read(buffer,0, bufferSize) method instead of the one given above. But it doesn't help. It seems like the inputstream internal buffer is overflowed before the reading completed. Does anyone have an idea how to prevent it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Send bug report from 4.1
Other than POWER + VOLUME UP + VOLUME DOWN, I am unaware of a way to collect the bug report on 4.1 without a copy of the Android SDK installed. If anyone from Google is reading: for the love of God, please put a toast or audible notation or similar in when this key combination is registered. Since it takes about 10 seconds to do anything you have no idea if you've hit the right key combination or not. You've just made debugging super-hard by reducing the system logging access, please at least make the workarounds usable. Trying to get the users to use this key combo or attempt to unlock the secret developer options (after you've found out if they're on 4.2 or not) is just embarrassing. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en