[android-developers] How to set duration for video capture
I have code for capturing a video clip on Android. But this is not working Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); intent.putExtra(android.intent.extra.durationLimit, 3000); startActivityForResult(intent, REQUEST_VIDEO_CAPTURED); Thanks ravi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] sending large file transfer problem
this is a code for sending data streaming for file transfer. sender : File myFile = new File(message.toURI()); nosofpackets=Math.ceil(( (int)myFile.length())/4096); //mChatService.writeda(message.getName(), myFile.length()); for(double i=0; inosofpackets; i++) { BufferedInputStream bis = new BufferedInputStream(new FileInputStream(myFile)); byte[] send = new byte[4096]; bis.read(send, 0,send.length); mChatService.write(send); } receiver code as follows. receiver: Log.d(TAG, begin inputstream); bytes = mmInStream.read(buffer); Log.d(TAG, data incoming); System.out.println(bytes); Log.d(TAG, begin file writing); //bos.write(buffer, 0,buffer.length); while((bytes = mmInStream.read(buffer))0){ Log.d(TAG, data is there for writing); bos.write(buffer);} i am getting a prob ..i.e when i am send data from one cell to another ..the receiver file is getting too large and corrupted.plz help me. its not working properly. thankyou -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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]
this is a code for sending data streaming for file transfer. sender : File myFile = new File(message.toURI()); nosofpackets=Math.ceil(( (int)myFile.length())/4096); //mChatService.writeda(message.getName(), myFile.length()); for(double i=0; inosofpackets; i++) { BufferedInputStream bis = new BufferedInputStream(new FileInputStream(myFile)); byte[] send = new byte[4096]; bis.read(send, 0,send.length); mChatService.write(send); } receiver code as follows. receiver: Log.d(TAG, begin inputstream); bytes = mmInStream.read(buffer); Log.d(TAG, data incoming); System.out.println(bytes); Log.d(TAG, begin file writing); //bos.write(buffer, 0,buffer.length); while((bytes = mmInStream.read(buffer))0){ Log.d(TAG, data is there for writing); bos.write(buffer);} i am getting a prob ..i.e when i am send data from one cell to another ..the receiver file is getting too large and corrupted.plz help me. its not working properly. thankyou -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] meeting trouble when i am try to build my apk using the source code
Dear, I am try to build a apk using android source code but meet a error when build.When I use command mmm framework/base/samples to build the apk,it prompts like below: make: Entering directory `/home/luodaliang/android4' touch out/target/common/obj/APPS/Helloapk_intermediates/src/R.stamp make: touch: open: out/target/common/obj/APPS/Helloapk_intermediates/src/R.stamp: No such file or directory And samples is very simple. There are only serval files like: helloapk.java, android.mk, main.xml and strings.xml. I'm wondering where am i wrong? Please help! Thanks so much much!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: meeting trouble when i am try to build my apk using the source code
I can't attach my source file . But I guess it is fine. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: meeting trouble when i am try to build my apk using the source code
Why are you building from the framework samples? This is the Android SDK group and the samples are for the Android SDK are in the installed SDK samples folder. If you do need to build from the framework samples then the AOSP support groups are here: http://source.android.com/community/index.html On Tuesday, October 16, 2012 10:00:19 AM UTC+1, Nio wrote: I can't attach my source file . But I guess it is fine. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Getting to SharedPreferences from CustomListAdapter
This doesn't really have anything to do with SharedPreferences or your ListAdapter... this is Java basics. getApplication() isn't some global static function that can be called from anywhere, it can be called however from an Activity. Since your adapter is an instance with the Activity as a parent, you need to reference it. If your activity is named MyActivity you can do: SharedPreferences settings = PreferenceManager. getDefaultSharedPreferences(MyActivity.this.getApplication()); On Tuesday, October 16, 2012 3:16:33 AM UTC+2, lbendlin wrote: I have a custom list view adapter *public* *class* CustomListAdapter *extends* ArrayAdapterString that I use to modify list view cells. Now I have the need to modify some cells' content based on a global variable from the SharedPreferences. However, the adapter tells me it doesn't understand getApplication() so SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(getApplication()); doesn't work. How else am I supposed to get the application context ? via a static variable in the application singleton? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Information about publication of an app
I 'd like to know if i can publish my application on play store . This application is a logger for different Database on the phone.it permite to his owner to send logs to a dedicated server. it work like a spy.all the permissions are declared. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Getting to SharedPreferences from CustomListAdapter
This doesn't really have anything to do with SharedPreferences or your ListAdapter... this is Java basics. getApplication() isn't some global static function that can be called from anywhere, it can be called however from an Activity. Since your adapter is an instance with the Activity as a parent (most likely), you need to reference it. If your activity is named MyActivity you can do: SharedPreferences settings = PreferenceManager. getDefaultSharedPreferences(MyActivity.this.getApplication()); (if its in a Fragment, MyActivity.this should be replaced with getActivity() and so forth) On Tuesday, October 16, 2012 3:16:33 AM UTC+2, lbendlin wrote: I have a custom list view adapter *public* *class* CustomListAdapter *extends* ArrayAdapterString that I use to modify list view cells. Now I have the need to modify some cells' content based on a global variable from the SharedPreferences. However, the adapter tells me it doesn't understand getApplication() so SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(getApplication()); doesn't work. How else am I supposed to get the application context ? via a static variable in the application singleton? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Finish all previous Activities?
Did it worked? not for me :( On Tuesday, June 2, 2009 1:20:43 AM UTC+5:30, guruk wrote: !!! thanks !!! looks great chris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 import sample.zip of android training
I know how to use Eclipse but I can not import sample zip on Eclipse smoothly. Please teach me how to import sample zip file of android training on Eclipse. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] My Android App does not support all mobiles.
I have developed an Android application that communicate with our web application through Xml parsing .It works correctly on some devices like carbon phones,Samsung galaxy note (Android 4.0).But it does not work on some devices like Samsung galaxy S3.It shows message like force close.How can i solve this problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 import sample.zip of Android training material.
Hello there, I'm studying Android development according to Android training session on android developer site. But I can not import sample.zip file well. Could you tell me how to import sample.zip file into Eclipse? Sincerely, Musashi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Webview question - text selection and highlighting
hi Mike Jones, i ran through your post, i have also working on web view text selection and highlighting. i am not understand how to implement this. i need some idea or sample example. can u please help me. Thank you for your work Bijaya Guin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Ctrl+F11 key for Mac
Hello there, I would like to switch view of emulator of ADT using keyboard. I know how to use key for Windows machine it's Ctrl+F11 to switch view. But I don't know about Mac. Please teach me how to do on Mac. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 I tell if a Bitmap is blank?
Hi, Does anyone know if there's an easy way to tell whether a Bitmap is all black (blank)? Thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Virtual device doesn't work?
Hello, I was trying to test out some OpenGL sample code, but it doesn't run on the AVD I set up. It does run directly on my device, a Samsung Galaxy Note N7000. How can I tell what to change about the emulator to get it to run? I am new to Android development. After the emulator boots up, it seems to try to run the app, but then it gives me the messge: Unfortunatel, app name has ended. Here's how I have the AVD set up: Target: Android 4.1 - API Level 16 CPU/ABI: ARM (armeabi-v7a) SD card: 32 MiB Skin: Built in WVGA800 Below I've listed the errors that appear in the console. Thanks Bob 10-15 10:06:41.912: E/Trace(707): error opening trace file: No such file or directory (2) 10-15 10:06:42.503: D/libEGL(707): Emulator without GPU support detected. Fallback to software renderer. 10-15 10:06:42.513: D/libEGL(707): loaded /system/lib/egl/libGLES_android.so 10-15 10:06:42.533: D/gralloc_goldfish(707): Emulator without GPU emulation detected. 10-15 10:06:42.593: W/dalvikvm(707): threadid=11: thread exiting with uncaught exception (group=0x40a13300) 10-15 10:06:42.603: E/AndroidRuntime(707): FATAL EXCEPTION: GLThread 78 10-15 10:06:42.603: E/AndroidRuntime(707): java.lang.IllegalArgumentException: No configs match configSpec 10-15 10:06:42.603: E/AndroidRuntime(707): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:863) 10-15 10:06:42.603: E/AndroidRuntime(707): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024) 10-15 10:06:42.603: E/AndroidRuntime(707): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401) 10-15 10:06:42.603: E/AndroidRuntime(707): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Special commands with NFC
Hi all, I've started designing an application who needs send some special commands from my NFC reader to my TAG, but Android API doesn't provide me this freature, what can i do to send this special commands. Are there any example for this purpose or any guidelines to follow? Regards, Berni69 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is there a way to determine locations inside buildings ?
Hi guys ,These days I work on a program to locate a user application inside the buildings, I think it can done by GPS . But I read on the Internet that GPS does not work inside buildings, is there a way to determine the user's location inside the building or user tracking inside the building. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Changes in AndroidManifest.xml for Status notification to work
I have a program (for API 16) that generates status notification. The issue I have is on clicking that notification, it neither gets cleared from list nor opens the intended activity. I wonder if I need to do any changes in the AndroidManifest.xml file for this notification to work. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 get resourceID from Image Path?
0 down vote favoritehttp://stackoverflow.com/questions/12879035/how-to-get-imageid-from-image-path# I have an imagepath in android .This image exits on the sdcard of the device. How can i find resourceID of it ? I need to send it to decodeResource function. I am trying to detect faces on the image user selects from the gallery. The code that I have written is Intent intent = new Intent(this, DetectFaces.class); intent.putExtra(PICTURE_PATH,picturePath);//the path of the image startActivity(intent); In detectFaces class public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_detect_faces); // getActionBar().setDisplayHomeAsUpEnabled(true); Intent intent = getIntent(); ImageView imageView = (ImageView) findViewById(R.id.imgView); picturePath = intent.getStringExtra(GetFaceActivity.PICTURE_PATH); imageView.setImageBitmap(BitmapFactory.decodeFile(picturePath)); //imageView.setOnTouchListener(this); } There is a button whose onClick event is associated with public void DetectFacesInImage(View view) { BitmapFactory.Options bitmapFactoryOptions=new BitmapFactory.Options(); bitmapFactoryOptions.inPreferredConfig= Bitmap.Config.RGB_565; myBitmap=BitmapFactory.decodeResource(getResources(),R.drawable.faceswapping,bitmapFactoryOptions); int width=myBitmap.getWidth(); int height=myBitmap.getHeight(); detectedFaces=new FaceDetector.Face[number_of_faces]; FaceDetector faceDetector=new FaceDetector(width,height,number_of_faces); number_of_faces_detected = faceDetector.findFaces(myBitmap, detectedFaces); } I need ID in the decodeResource function. Any hints ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Does Nexus 7 support USB Host Mode ?
Hi, Does Nexus 7 support USB Host Mode ? I want to connect the Nexus 7 via USB Host to a SoC and transfer data between them. Connection will be like this *Nexus 7 --- USB OTG -- SoC.* * *I should be able to use *android.hardware.usb *api's to enumerate and communicate between the two devices. I want to be 100% sure before buying several of this tablets for a project. Can anyone confirm and/or share some of their experience. Your help is appreciated. Thanks and Regards, Arpan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] moderated posts?
Hi, I posted a newbie question here, and it never showed up. I guess it was moderated? If you don't have a forum for new users how are people supposed to adopt Android? Did I just miss my post, or was it inappropriate? Also now I can't find even a list of my own posts so that I can copy the text and paste it into an identical question on Stack Overflow. Can you please tell me at least where to find that? Sorry if I don't understand how forums work with Android but this is very different and more inaccessible than iOS, I am considering cross-platform development. Thanks Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Extending LinearLayout / #getVirtualChild*
I am extending LinearLayout to have an easy way of building lists with header and footer views. While doing this, I want to maintain the LinearLayout's API (e.g. XML-added views). To do this, I have to override LinearLayout#getVirtualChildAt(int) and LinearLayout#getVirtualChildCount(). These methods even state per source comment that they are meant to be overridden. The visibility of these methods is not protected but default, thus they have to be overridden with a public modifier and cannot be annotated with @Override. Should my solution be considered API-abuse or should I consider the package visibility a bug in LinearLayout? Any more elegant solutions for building lists with with header / footer elements? (ListView won't work because I may need multiple lists in one scrollable layout). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Just created an open source library for choosing the best font (avoid squares)
For any other Anki users seeing squares on Android 2.3.3 who come across this, I believe this is because there is not a supported way to add fonts or update the unicode. I found a way to install an additional font : http://khmerbird.com/technology/how-to-install-khmer-unicode-on-android-phone.html Basically this says to take your font, say, KhmerOS.ttf, and add it to /system/fonts under an existing name that is not a system font, such as DroidSansThai.ttf . After I did this, Anki shows me the characters for my deck, presumably due to the Antisquare fix! Sorry if this doesn't exactly pertain to Android developers but I wanted to record this somewhere in case I need to remember how to do it again. On Monday, March 19, 2012 1:22:55 PM UTC+7, Nicolas Raoul wrote: Hello all, Some of my users were complaining about seeing squares instead of characters when viewing content in rare languages like Khmer or Persian. So I developed Antisquare, a tiny library that finds the best font, given a piece of text. GNU-LGPL. Fast: supports 25000 calls per second. http://github.com/nicolas-raoul/Antisquare I hope you'll find it useful! You can embed it, even in proprietary apps. Feedback welcome! Also, don't hesitate to forkimprove :-) Also, please help us grow the repository of freely distributable fonts: http://github.com/nicolas-raoul/Antisquare/tree/master/freely-distributable-fonts Cheers! Nicolas Raoul http://nicolas-raoul.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: SKIA FimgApiStretch:stretch failed
i met the same problem... hope it can help you http://stackoverflow.com/questions/12068110/whats-the-reason-of-fimgapistretchstretch-failed-in-android Tamás Kovács於 2012年7月26日星期四UTC+8上午8時09分51秒寫道: My app keeps gets this error message often in logcat under the SKIA tag: FimgApiStretch:stretch failed On some screens, it is contionously being logged, all the time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: File not found
Thanks for help :) Am new to andriod and your post make able me to do this thing On Friday, 12 October 2012 05:55:40 UTC+5, Anbu Laxman wrote: Hi, I am Anbu. Start the SDK manager as Administrator. -- - Right Click SDK Manager - Select Run As Administrator - Click the YES button if you need more details please mail me *laxman.a...@gmail.com*javascript: thanks On Sunday, September 2, 2012 7:49:11 AM UTC-7, Pete Thottam wrote: I am having the same problem when I try to install an Android Support Library update. On Saturday, August 18, 2012 5:01:03 AM UTC-7, Swami R wrote: Hi All, I have just joined andriod developers. When i try to update my sdk manager it is giving the following error. please help me out in this issue. Preparing to install archives Downloading Android SDK Tools, revision 20.0.3 File not found: C:\Program Files (x86)\Android\android-sdk\temp\tools_r20.0.3-windows.zip (Access is denied) Downloading Android SDK Platform-tools, revision 14 File not found: C:\Program Files (x86)\Android\android-sdk\temp\platform-tools_r14-windows.zip (Access is denied) Downloading Documentation for Android SDK, API 16, revision 2 File not found: C:\Program Files (x86)\Android\android-sdk\temp\docs-16_r02.zip (Access is denied) Downloading SDK Platform Android 4.1, API 16, revision 2 File not found: C:\Program Files (x86)\Android\android-sdk\temp\android-16_r02.zip (Access is denied) Downloading SDK Platform Android 4.0.3, API 15, revision 3 File not found: C:\Program Files (x86)\Android\android-sdk\temp\android-15_r03.zip (Access is denied) Downloading Samples for SDK API 16, revision 1 File not found: C:\Program Files (x86)\Android\android-sdk\temp\samples-16_r01.zip (Access is denied) Downloading Samples for SDK API 15, revision 2 File not found: C:\Program Files (x86)\Android\android-sdk\temp\samples-15_r02.zip (Access is denied) Downloading ARM EABI v7a System Image, Android API 15, revision 2 File not found: C:\Program Files (x86)\Android\android-sdk\temp\sysimg_armv7a-15_r02.zip (Access is denied) Downloading Sources for Android SDK, API 16, revision 2 File not found: C:\Program Files (x86)\Android\android-sdk\temp\sources-16_r02.zip (Access is denied) Downloading Sources for Android SDK, API 15, revision 2 File not found: C:\Program Files (x86)\Android\android-sdk\temp\sources-15_r02.zip (Access is denied) Downloading Android Support Library, revision 10 File not found: C:\Program Files (x86)\Android\android-sdk\temp\support_r10.zip (Access is denied) Skipping 'ARM EABI v7a System Image, Android API 16, revision 2'; it depends on 'SDK Platform Android 4.1, API 16, revision 2' which was not installed. Done. Nothing was installed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Does Android cache http-requested data?
thanks a lot Vào 14:58:55 UTC+7 Chủ nhật, ngày 14 tháng mười năm 2012, Keith Wiley đã viết: Does Android cache http-requested data? I keep a small text file with various app-settings on my webserver. When my app launches, it sends an http request to my webserver to grab the text file and retrieve the settings. This enables me to update the settings of an app installed on a phone in the field from the server. The problem is, when I update the text file on the server, I usually don't see an immediate change in the text file retrieved by my app. It can take hours for the change to show up in my app's http requests. I know that the problem is not merely one of the file updating through various buffers/caches on the webserver because I can see the new version of the file if I load the same URL in a web browser...including a web browser on the exact same Android device I am running my app on...so a web browser (even one on the phone itself) sees the updated file immediately after I change it, but my app doesn't see it for several hours. It feels like Android is caching previous http request results and returning those to apps that make repeated requests instead of reloading the URLs from the web...and it takes a very long time to label this presumed cache as stale and reload the file from the server...several hours. On a side note, I have tried killing the app to make sure it's totally gone. I have even tried rebooting the phone and yet the problem still persists...which is mind-boggling. I am quite flummoxed. I am aware that Android is requesting and receiving a GZipInputStream, and I can see the input stream's type in the debugger, but that seems irrelevant to my issue. Here's how I pull the text file from the web server into my app. Any ideas why a browser on the same device successfully retrieves the updated file and my code doesn't? String address = http://URL_of_text_file_on_my_webserver.txt;; URL url = new URL(address); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); InputStream is = (InputStream) conn.getContent(); Reader reader = new InputStreamReader(is, UTF-8); StringWriter writer = new StringWriter(); char[] buffer = new char[1024]; for (int length = 0; (length = reader.read(buffer)) 0;) writer.write(buffer, 0, length); is.close(); reader.close(); writer.close(); String fileStr = writer.toString(); 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] Advices about TalkBack
Dear TalkBack developers, We are the TalkBack for Android phones Chinese users, and are very pleased to contact you by email. We hope you could hear the feedback and advices from Chinese TalkBack users, in order to improve TalkBack services. Android is a very excellent smartphone operating system, especially its openness provides more choices for mobile users. TalkBack build for Android is a well-designed accessibility, especially after Android 4.0, which adds a new feature Explore by Touch. This function helps our blind and vision-impaired users interact with our devices more easily, such as: Tablet, smartphone, etc. TalkBack helps our blind users to interact with our devices as normal people. Meanwhile, SoundBack and KickBack accessibility all facilitate blind users interact with their mobile. However, many mobile manufacturers less focus on blind customers in China. As the blind people living in China, we hope Google could suggest those manufactures do not delete Text-to-Speech function when they customize Android, and make sure this function can be used normally. In addition, we still have some problems when using TalkBack, especially the Input Methods of Talkback. There isn’t Chinese Input options can be founded by TalkBack Chinese user,even Google Input Method cannot type Chinese. I'm hoping so eagerly that Google could add Chinese Input options in TalkBack. As the users of Android platform, TalkBack, Explore by Touch, SoundBack and KickBack are all necessary for Android to have non-visual accessibility, but the fact is that many Android market software could not be speak out correctly, because of using graphic icon. We hope TalkBack developers design a function to help our blind users customize label, save it, and share with other TalkBack users, in order to make our TalkBack experience smoothly. Additionally, we still have an enquiry want to verify it with TalkBack developers. The problem is when we use TalkBack to dial the extension number, the Arabic Numerals cannot be speak properly, and similarly, some buttons during we make the phone call also cannot be speak properly. We doubt that whether it is the bug of TalkBack or the bug of customized for the third party Android system. If it is the bug of TalkBack, we hope Google can solve it as soon as possible. Finally, we wish TalkBack developers make more efforts and provide more humanized products. One of our friends helps us translate this letter, if it’s possible, please reply us in Chinese. We are looking forward to hearing from you. Yours Faithfully, Chinese Folk TalkBack Blind Users Group Contact us: Tel:+8613811703085 Email:*xujun...@163.com* xujun...@163.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Extremely slow turnaround when building and running
Hi. I'm sure people have ranted about this in other threads, but here goes. I work for a company that builds a suite of big (=lots of layouts, lots of graphical resources, lots of everything) apps for iPhone, Android and Windows phone. The apps are 'identical' (obviously they are nativized for the platforms) on each os. I have been working on ios and Android. Turnaround when changing a line of code and running it on device (Android, since the emulator is way too slow) and simulator for iPhone differs in the order of minutes. Note that this does not include any changes to layouts or other resources that would cause a regeneration of R.java and rebuilding of the whole shebang. It has come to the point where it is almost unworkable. For some new features, I set up a whole nother project with just the Activity I'm working on, but that takes time and is not always doable since it is not easy to lift code into a separate project without having to add everything it depends on. Even though I am a far more experienced Java developer (since 1997 or so) than Objective C, I am way more productive on ios. Change, run, test, change, run, test. That's how developers do their job. And the current tool chain does not support it on Android when the app becomes non-trivial and grows in size. This is a call for action! The frustration of working much more slowly on Android than I am capable of is killing my soul Is there work being done on this? When we estimate the time for new projects on ios and android, we have up until now estimated about the same. But this is going to change. I would add a 30%-40% extra to an android project since we have to charge for the poor devs sitting there waiting for 'generating R.java', 'Discombobulating classes.dex', 'Gift wrapping resources', 'Spinning hamster wheel', 'Uploading to device' (which in itself takes about a minute) Happy coding! /Tile -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Open Acrobat Reader and specify the author name for annontations programatically
Hi ! Here is a way to open Acrobat Reader on Android: try { Intent intent = new Intent(); intent.setClassName(com.adobe.reader, com.adobe.reader.AdobeReader); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(doc), application/pdf); startActivity(intent); } catch (ActivityNotFoundException activityNotFoundException) { activityNotFoundException.printStackTrace(); } Is there a way to open it and specify the author name for the annotations (the annonations we can with acrobat reader 10.4.0 on pdf documents)? Thanks in advance ! Zab -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] hi i am new learn android how to do the find address location
hi i am new learning android how to do the finding address in Map i got a out put, it is only display the map but i need some address Like using Text bar we give the address, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Sqlite android
if You use ORMLite, You might want to check the following out: http://stackoverflow.com/questions/7301418/ormlite-inner-join-on-three-tables -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Nexus 7 files not visible when using USB (MTP) connection to Windows XP
I have an app that writes data to a .txt file on the Nexus 7 internal storage. The file is fine, I can read it on the device using the application itself, and can see and view it using FX file explorer. But when I connect the Nexus to my PC using the USB connection (connecting as a media device, MTP) I can't see the file. I can transfer a text file from the PC and view and edit it on the device. Any clues about what might be diffferent about a file created on the Nexus? Also I note that I don't see all the folders on internal storage from the PC. FX for example sees a documents folder on the device that is not visible in the PC explorer window. 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] Send message from PC to android mobile
I want to send a message to evry users who connect to the wireless. Actually, I want the user to receive a message on the device immediately after connecting to the wireless router. Never mind that the device in question, whether mobile or PC. This means, when someone connects to my wireless router, I want that the user gets a message of welcome. I do not want to be the message SMS, and that I should not use the GSM network, but to appear as a AlertDialog or something. I wonder if it is even possible to do, and it's not some kind of applications for Android, but if it is possible to do it without an 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: Getting Google Play requires that the certificate used to sign the apk be valid until at least October 22, 2033. Create a new certificate. message while submitting app
Did any one solved this thing? On Monday, 18 June 2012 12:49:43 UTC+3, Gaurav Khera wrote: Hi All, I have an app already available at Play Store. Now when I am submitting a newer version of app, I am getting following error: Google Play requires that the certificate used to sign the apk be valid until at least October 22, 2033. Create a new certificate. If I create the app with a new certificate, it will be treated as a different app and won't update the already existing app on a phone. I couldn't find any solution to this on internet. Please help me on how to resolve this without losing the connection to previous version. Thanks in advance for any help. Gaurav Khera -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Does Nexus 7 support USB Host Mode ?
On Tue, Oct 16, 2012 at 2:40 PM, Arpan Patel arpan...@gmail.com wrote: Hi, Does Nexus 7 support USB Host Mode ? I want to connect the Nexus 7 via USB Host to a SoC and transfer data between them. Connection will be like this Nexus 7 --- USB OTG -- SoC. I should be able to use android.hardware.usb api's to enumerate and communicate between the two devices. I want to be 100% sure before buying several of this tablets for a project. Can anyone confirm and/or share some of their experience. If you want to be absolutely sure, borrow one and do some tests. USB host mode is supported since 3.1, so technically it should work, but you'd need to test with your particular hardware. It is very unlikely that someone has done the exact same thing as you are trying to 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] Automated Testing Tool.
Hi All, I need help in finding out automated testing tool for testing my android applications or best way for testing android apps. Thanks Br, Yogendra G. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Special commands with NFC
On Sat, Oct 13, 2012 at 2:55 AM, berni69 berni.emer...@gmail.com wrote: Hi all, I've started designing an application who needs send some special commands from my NFC reader to my TAG, but Android API doesn't provide me this freature, what can i do to send this special commands. You might want to specify what do you mean by reader (Android device?) and tag first. Then you might want to elaborate on the technologies used and what is so special about your commands. Then, maybe, someone might be able to help you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: meeting trouble when i am try to build my apk using the source code
Ok,thanks for reminding. 在 2012年10月16日星期二UTC+8下午5时04分02秒,RichardC写道: Why are you building from the framework samples? This is the Android SDK group and the samples are for the Android SDK are in the installed SDK samples folder. If you do need to build from the framework samples then the AOSP support groups are here: http://source.android.com/community/index.html On Tuesday, October 16, 2012 10:00:19 AM UTC+1, Nio wrote: I can't attach my source file . But I guess it is fine. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Automated Testing Tool.
Have you read: http://developer.android.com/tools/testing/testing_android.html On Tuesday, October 16, 2012 10:21:07 AM UTC+1, yogi wrote: Hi All, I need help in finding out automated testing tool for testing my android applications or best way for testing android apps. Thanks Br, Yogendra G. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: It seems easy to get rid of a competitor’s app
On Sunday, October 14, 2012 10:51:49 AM UTC+2, Terry wrote: Two of my apps have been removed from the Google Play Store, (a free/trial version and a pro version of the same app). A developer of a similar app asked for them to be removed. The reason for removal was given as “Alleged copyright infringement (according to the terms of the Digital Millenium Copyright Act). Can it really be THIS easy to remove a competitor’s apps? Yes. Without any consequences? Yes Or is there something I have misunderstood? No, apparently it's how these things work. Consider this: 1. Some chinese dude snatches open source app from Google Play and repackages it with ads 2. Dude publishes this repackaged app on Google Play 3. Dude sends fake DMCA takedown notice against original developer 4. Original application gets taken down by Google 5. Profit for the chinese dude 6. Original author can't do anything, tries to republish his app, gets permanently banned from Play Store by Google I'm guessing this happens all the time. So it looks like abusing DMCA is perfectly valid and profitable business model. Any reason you have not issued fake DMCA takedown notice against your oppressor? Hope you'll somehow be able to get your apps back. Wish you luck. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 play recorded audio ? using AudioTrack
Hi rahul, Thank u for ur code. this code is very useful to me . On Mon, Oct 15, 2012 at 2:54 PM, rahul B tech.rah...@gmail.com wrote: Here I am posting some sample which works fine with me.. package com.audiotrack; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.nio.BufferUnderflowException; import android.app.Activity; import android.media.AudioFormat; import android.media.AudioManager; import android.media.AudioTrack; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class AudioPlayBackActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button play = (Button) findViewById(R.id.button1); play.setOnClickListener(new OnClickListener() { // @Override public void onClick(View v) { String filePath = /sdcard/voice8K16bitmono_sir.pcm; if (filePath == null) return; // Reading the file.. byte[] byteData = null; File file = null; file = new File(filePath); byteData = new byte[(int) file.length()]; System.out.println(bytedata-- + byteData); FileInputStream in = null; try { in = new FileInputStream(file); in.read(byteData); System.out.println(READING CARD-- + in + --BYTE Data-- + byteData + byteData.length); in.close(); } catch (IOException e) { e.printStackTrace(); } catch (BufferUnderflowException e) { e.printStackTrace(); } int dataSize = byteData.length / 2; short[] shorts = byte2short(byteData); int BufferElements2Play = 1024; // want to play 2048 (2K) since // 2 bytes we use only 1024 int BytesPerElement = 2; // 2 bytes in 16bit format int intSize = android.media.AudioTrack.getMinBufferSize(8000, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT); System.out.println(buffersize -- + intSize); AudioTrack at = new AudioTrack(AudioManager.STREAM_VOICE_CALL, 8000, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT, BufferElements2Play * BytesPerElement, AudioTrack.MODE_STREAM); if (at != null) { int shortLength = shorts.length; int shortLengthOffset2Play = 0; System.out.println(SHORTS Data + shortLength); // Write the byte array to the track at.write(shorts, 0, BufferElements2Play); at.play(); shortLengthOffset2Play += BufferElements2Play; // Wrote 512 // ushorts while (shortLengthOffset2Play shortLength) { try { Thread.sleep(50); } catch (InterruptedException e) { e.printStackTrace(); } // Waiting, Simulating your condition of receiving data // from server... at.write(shorts, shortLengthOffset2Play, BufferElements2Play); // in your case it will 0, numberofShorts(2048) shortLengthOffset2Play += BufferElements2Play; System.out.println(shortlengthoffset --- + shortLengthOffset2Play); // Wrote yet another 512 shorts } } else Log.d(Audio, audio track is not initialised ); } private short[] byte2short(byte[] byteD) { int byteArrsize = byteD.length / 2; short[] shorts = new short[byteArrsize]; for (int i = 0; i byteArrsize; i++) { shorts[i] = (short) (byteD[i * 2] + (byteD[(i * 2) + 1] 8)); } return shorts; } }); } } On Mon, Oct 15, 2012 at 12:36 PM, Asheesh Arya asheesharya...@gmail.comwrote: please refer this link http://www.benmccann.com/dev-blog/android-audio-recording-tutorial/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: moderated posts?
See below: On Monday, October 15, 2012 7:18:46 PM UTC+1, Bob S wrote: Hi, I posted a newbie question here, and it never showed up. I guess it was moderated? If you don't have a forum for new users how are people supposed to adopt Android? Did I just miss my post, or was it inappropriate? Also now I can't find even a list of my own posts so that I can copy the text and paste it into an identical question on Stack Overflow. Can you please tell me at least where to find that? Click on the drop-down menu on the top right of your post and select show activity. This will show all your recent posts. From this I got the following link to your older post: https://groups.google.com/forum/?fromgroups=#!profile/android-developers/APn2wQdFlklT56G59LVThhAPUQB2jr_34clf54_Qni_ZA8KN9BuEyN-iyjtX7N9ppzO_dqpxTkuS/android-developers/zMqAWxrKjQo/8DBNYR51xaQJ Sorry if I don't understand how forums work with Android but this is very different and more inaccessible than iOS, I am considering cross-platform development. Thanks Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: App with google map in offline(with out wifi or gprs connection)
Look at mapsforge: http://code.google.com/p/mapsforge/ And OSMDroid: http://code.google.com/p/osmdroid/ mapsforge supports offline vector maps - not very useable on a low powered device but good with a reasonable spec device. OSMDroid can be used with an offline tile cache (traditional raster tiles), and you can create such a tile archive using Mobile Atlas Creator: http://code.google.com/p/osmdroid/wiki/MobileAtlasCreator mapsforge is currently undergoing a major rewrite, version 0.3.0 available on the website is the version to which all the wiki documentation applies. The OverlayAPI is part of version 0.3.0 for example. The newer not officially released 0.3.1 is the version you will get if you download and compile the source yourself. This newer version does not support the OverlayAPI, instead it has a new ListOverlay class. The newer version has not yet implemented many features such a Marker click listeners, so steer clear of the newer version if you need such functionality. Martin. On Tuesday, October 16, 2012 7:54:47 AM UTC+1, Kunju Vava wrote: Dear All, I want us to create an app in which the user searches for a pharmacy should be shown its location on a map. The user does not have access to internet. This app is just for my city .the main thing is the app need to be work in offline mode. Please give any suggestions for this concern. -- -- ωιтн яєgαя∂ѕ Ratheesh * *... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Automated Testing Tool.
Hi Richard, Thanks for reply,Yes ofcourse have read that and also tried a tool called Robotium but my requirement is am doing something with NFC were my testing should wait and take my NFC tag to be tapped,so this is not happening in this tool am using.So,need any other tool which does my thing. Br, Yogendra G. On Tue, Oct 16, 2012 at 3:05 PM, RichardC richard.crit...@googlemail.comwrote: Have you read: http://developer.android.com/tools/testing/testing_android.html On Tuesday, October 16, 2012 10:21:07 AM UTC+1, yogi wrote: Hi All, I need help in finding out automated testing tool for testing my android applications or best way for testing android apps. Thanks Br, Yogendra G. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 play recorded audio ? using AudioTrack
Hi, My pleasure.. On Tue, Oct 16, 2012 at 3:09 PM, Tamil Arasi arasi...@gmail.com wrote: Hi rahul, Thank u for ur code. this code is very useful to me . On Mon, Oct 15, 2012 at 2:54 PM, rahul B tech.rah...@gmail.com wrote: Here I am posting some sample which works fine with me.. package com.audiotrack; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.nio.BufferUnderflowException; import android.app.Activity; import android.media.AudioFormat; import android.media.AudioManager; import android.media.AudioTrack; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class AudioPlayBackActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button play = (Button) findViewById(R.id.button1); play.setOnClickListener(new OnClickListener() { // @Override public void onClick(View v) { String filePath = /sdcard/voice8K16bitmono_sir.pcm; if (filePath == null) return; // Reading the file.. byte[] byteData = null; File file = null; file = new File(filePath); byteData = new byte[(int) file.length()]; System.out.println(bytedata-- + byteData); FileInputStream in = null; try { in = new FileInputStream(file); in.read(byteData); System.out.println(READING CARD-- + in + --BYTE Data-- + byteData + byteData.length); in.close(); } catch (IOException e) { e.printStackTrace(); } catch (BufferUnderflowException e) { e.printStackTrace(); } int dataSize = byteData.length / 2; short[] shorts = byte2short(byteData); int BufferElements2Play = 1024; // want to play 2048 (2K) since // 2 bytes we use only 1024 int BytesPerElement = 2; // 2 bytes in 16bit format int intSize = android.media.AudioTrack.getMinBufferSize(8000, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT); System.out.println(buffersize -- + intSize); AudioTrack at = new AudioTrack(AudioManager.STREAM_VOICE_CALL, 8000, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT, BufferElements2Play * BytesPerElement, AudioTrack.MODE_STREAM); if (at != null) { int shortLength = shorts.length; int shortLengthOffset2Play = 0; System.out.println(SHORTS Data + shortLength); // Write the byte array to the track at.write(shorts, 0, BufferElements2Play); at.play(); shortLengthOffset2Play += BufferElements2Play; // Wrote 512 // ushorts while (shortLengthOffset2Play shortLength) { try { Thread.sleep(50); } catch (InterruptedException e) { e.printStackTrace(); } // Waiting, Simulating your condition of receiving data // from server... at.write(shorts, shortLengthOffset2Play, BufferElements2Play); // in your case it will 0, numberofShorts(2048) shortLengthOffset2Play += BufferElements2Play; System.out.println(shortlengthoffset --- + shortLengthOffset2Play); // Wrote yet another 512 shorts } } else Log.d(Audio, audio track is not initialised ); } private short[] byte2short(byte[] byteD) { int byteArrsize = byteD.length / 2; short[] shorts = new short[byteArrsize]; for (int i = 0; i byteArrsize; i++) { shorts[i] = (short) (byteD[i * 2] + (byteD[(i * 2) + 1] 8)); } return shorts; } }); } } On Mon, Oct 15, 2012 at 12:36 PM, Asheesh Arya asheesharya...@gmail.comwrote: please refer this link http://www.benmccann.com/dev-blog/android-audio-recording-tutorial/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
Re: [android-developers] how to play recorded audio ? using AudioTrack
Hi, R u know about how to send and receive the voice call in between android mobile?. if u know about that please help me On Tue, Oct 16, 2012 at 3:21 PM, rahul B tech.rah...@gmail.com wrote: Hi, My pleasure.. On Tue, Oct 16, 2012 at 3:09 PM, Tamil Arasi arasi...@gmail.com wrote: Hi rahul, Thank u for ur code. this code is very useful to me . On Mon, Oct 15, 2012 at 2:54 PM, rahul B tech.rah...@gmail.com wrote: Here I am posting some sample which works fine with me.. package com.audiotrack; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.nio.BufferUnderflowException; import android.app.Activity; import android.media.AudioFormat; import android.media.AudioManager; import android.media.AudioTrack; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class AudioPlayBackActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button play = (Button) findViewById(R.id.button1); play.setOnClickListener(new OnClickListener() { // @Override public void onClick(View v) { String filePath = /sdcard/voice8K16bitmono_sir.pcm; if (filePath == null) return; // Reading the file.. byte[] byteData = null; File file = null; file = new File(filePath); byteData = new byte[(int) file.length()]; System.out.println(bytedata-- + byteData); FileInputStream in = null; try { in = new FileInputStream(file); in.read(byteData); System.out.println(READING CARD-- + in + --BYTE Data-- + byteData + byteData.length); in.close(); } catch (IOException e) { e.printStackTrace(); } catch (BufferUnderflowException e) { e.printStackTrace(); } int dataSize = byteData.length / 2; short[] shorts = byte2short(byteData); int BufferElements2Play = 1024; // want to play 2048 (2K) since // 2 bytes we use only 1024 int BytesPerElement = 2; // 2 bytes in 16bit format int intSize = android.media.AudioTrack.getMinBufferSize(8000, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT); System.out.println(buffersize -- + intSize); AudioTrack at = new AudioTrack(AudioManager.STREAM_VOICE_CALL, 8000, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT, BufferElements2Play * BytesPerElement, AudioTrack.MODE_STREAM); if (at != null) { int shortLength = shorts.length; int shortLengthOffset2Play = 0; System.out.println(SHORTS Data + shortLength); // Write the byte array to the track at.write(shorts, 0, BufferElements2Play); at.play(); shortLengthOffset2Play += BufferElements2Play; // Wrote 512 // ushorts while (shortLengthOffset2Play shortLength) { try { Thread.sleep(50); } catch (InterruptedException e) { e.printStackTrace(); } // Waiting, Simulating your condition of receiving data // from server... at.write(shorts, shortLengthOffset2Play, BufferElements2Play); // in your case it will 0, numberofShorts(2048) shortLengthOffset2Play += BufferElements2Play; System.out.println(shortlengthoffset --- + shortLengthOffset2Play); // Wrote yet another 512 shorts } } else Log.d(Audio, audio track is not initialised ); } private short[] byte2short(byte[] byteD) { int byteArrsize = byteD.length / 2; short[] shorts = new short[byteArrsize]; for (int i = 0; i byteArrsize; i++) { shorts[i] = (short) (byteD[i * 2] + (byteD[(i * 2) + 1] 8)); } return shorts; } }); } } On Mon, Oct 15, 2012 at 12:36 PM, Asheesh Arya asheesharya...@gmail.com wrote: please refer this link http://www.benmccann.com/dev-blog/android-audio-recording-tutorial/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
[android-developers] Re: Extending LinearLayout / #getVirtualChild*
Max Hille wrote: I am extending LinearLayout to have an easy way of building lists with header and footer views. While doing this, I want to maintain the LinearLayout's API (e.g. XML-added views). To do this, I have to override LinearLayout#getVirtualChildAt(int) and LinearLayout#getVirtualChildCount(). These methods even state per source comment that they are meant to be overridden. The visibility of these methods is not protected but default, thus they have to be overridden with a public modifier and cannot be annotated with @Override. Should my solution be considered API-abuse or should I consider the package visibility a bug in LinearLayout? Any more elegant solutions for building lists with with header / footer elements? (ListView won't work because I may need multiple lists in one scrollable layout). I don't really think you need to override these methods at all 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] how to communicate between two android devices using audio?
Hi, If any one know how to communicate between two android devices using audio please tell me Thanks, Tom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Dear TalkBack developers
Dear TalkBack developers, We are the TalkBack for Android phones Chinese users, and are very pleased to contact you by email. We hope you could hear the feedback and advices from Chinese TalkBack users, in order to improve TalkBack services. Android is a very excellent smartphone operating system, especially its openness provides more choices for mobile users. TalkBack build for Android is a well-designed accessibility, especially after Android 4.0, which adds a new feature Explore by Touch. This function helps our blind and vision-impaired users interact with our devices more easily, such as: Tablet, smartphone, etc. TalkBack helps our blind users to interact with our devices as normal people. Meanwhile, SoundBack and KickBack accessibility all facilitate blind users interact with their mobile. However, many mobile manufacturers less focus on blind customers in China. As the blind people living in China, we hope Google could suggest those manufactures do not delete Text-to-Speech function when they customize Android, and make sure this function can be used normally. In addition, we still have some problems when using TalkBack, especially the Input Methods of Talkback. There isn’t Chinese Input options can be founded by TalkBack Chinese user,even Google Input Method cannot type Chinese. I'm hoping so eagerly that Google could add Chinese Input options in TalkBack. As the users of Android platform, TalkBack, Explore by Touch, SoundBack and KickBack are all necessary for Android to have non-visual accessibility, but the fact is that many Android market software could not be speak out correctly, because of using graphic icon. We hope TalkBack developers design a function to help our blind users customize label, save it, and share with other TalkBack users, in order to make our TalkBack experience smoothly. Additionally, we still have an enquiry want to verify it with TalkBack developers. The problem is when we use TalkBack to dial the extension number, the Arabic Numerals cannot be speak properly, and similarly, some buttons during we make the phone call also cannot be speak properly. We doubt that whether it is the bug of TalkBack or the bug of customized for the third party Android system. If it is the bug of TalkBack, we hope Google can solve it as soon as possible. Finally, we wish TalkBack developers make more efforts and provide more humanized products. One of our friends helps us translate this letter, if it’s possible, please reply us in Chinese. We are looking forward to hearing from you. Yours Faithfully, Chinese Folk TalkBack Blind Users Group 尊敬的google公司安卓辅助功能talkback系统开发人员:你们好! 我们是来自中国的安卓系统talkback用户。今天很高兴能通过这种形式与你们取得沟通。希望你们花一点时间来倾听一下中国用户的心声。 安卓是一个很优秀的智能手机操作系统,尤其是它的开放性,使得我们有更多的手机可以选择。安卓内置辅助功能当中的talkback更是一件非常优秀的产品,尤其是4.0之后talkback支持的触摸探索功能,这项技术让我们盲人可以很舒适的使用各类安卓产品,包括平板电脑,智能手机等。 有了talkback,为我们盲人从新定义了读屏操作的理念,体验与健全人空前的接近,同时,talkback内置了音效与震动的反馈体验更是处处体验出了talkback程序员的用心与细致。 我们作为中国的盲人,因为无障碍工作还不够完善,因此一直会被很多的手机厂家拒之门外,我们希望google公司是否可以建议厂家在定制厂家个性化安卓系统的时候,不要删减文本转换语音的tts功能,以确保辅助功能可以正常使用。 另外,我们在使用talkback辅助程序的时候也遇到了一些小麻烦,尤其是talkback的输入法方面,我们根本不知道应该选择什么输入法,因为没有一款输入法支持中国的talkback用户,就连谷歌输入法也一样,我们迫切希望google能尽快支持使用talkback进行中文输入。 我们作为中国的互联网参与者,在通过talkback强大的触摸探索配合震动反馈以及音效反馈在使用众多的安置市场软件中仍然发现有许多的软件因为图形按钮无法正确的朗读出来,迫切希望talkback能支持一种方式让我们可以对图形按钮进行自行的用户自定义标签并且保存下来,可以与talkback用户共享,这样我们的talkback之旅会变的更加精彩。 另外,我们还有个非常小的小疑问想要与talkback的工程师进行核实,我们发现使用talkback程序拨打二级分机号码的时候无法正确朗读阿拉伯数字,某些通话中的按钮也无法正常朗读,不知是talkback的程序问题还是三方定制的安卓系统问题,如果是talkback程序问题还希望能早日支持通话中的所有操作。 最后还是住院talkback辅助程序开发组再接再厉,开发出更多伟大的产品。 此致 敬礼! 中国民间talkback盲人用户组 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 get a button id from an app(I don't have the source)
Hi, I want to get the element/button id in an app(I don't have the apk).. can any one please tell me on how to get the id? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get a button id from an app(I don't have the source)
srikanth wrote: Hi, I want to get the element/button id in an app(I don't have the apk).. can any one please tell me on how to get the id? Thanks what? what do you want to do with that id even if you manage to get it (which is impossible imho)? 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] Android Chatting
Hello, I want to develop an chat application Q1 : I want it to work on mobile and tablet and it should be compatible with all android version , and by default which version of android and api i should start my developmet?? Q2 : i have goggled this and found *smack(3.2.2)* as a good option (if there any please tell) Please suggest Thanks RK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] WifiP2pManager.ConnectionInfoListener onConnectionInfoAvailable (WifiP2pInfo info)
Hi I am working on wifi direct. After sending a connect request I was expecting a call back to the onConnectionInfoAvailable call back. But that wont happen always for some reason. And at times it takes a while when i finally receives a callback. What am i doing wrong here? Is this call back an acknowledgement for a successful/failed connection? I know the connect method has a callback and for me that always returns a success. How ca i do this properly? How to identify a successful connection is established or not? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Chatting
Q1: API 7 ( android 2.1 ) http://developer.android.com/about/versions/android-2.1.html. Q2: Yes, smack is a good open Source XMPP (Jabber) client library ( http://xmpp.org/xmpp-protocols/) 2012/10/16 Rahul Kaushik rahulkaushi...@gmail.com Hello, I want to develop an chat application Q1 : I want it to work on mobile and tablet and it should be compatible with all android version , and by default which version of android and api i should start my developmet?? Q2 : i have goggled this and found *smack(3.2.2)* as a good option (if there any please tell) Please suggest Thanks RK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: spread sheet
I think this linkhttp://www.mysamplecode.com/2011/10/android-read-write-excel-file-using.htmlmay help you On Wednesday, 10 October 2012 17:11:14 UTC+5:30, Nachi.R nach wrote: hai i'm new to androidd platform, i want to create excel in android project..,i don't know to create plz help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Extremely slow turnaround when building and running
My project's turn-around had been OK (not exactly fast, but bearable) until I added a bunch of external jars. Since then, build times are in minutes for a program that has some 3-4 lines of Java, roughly 10 megs of assets and barely any resources. I googled it and it appears that dexing is the part that takes inordinate amounts of time because 1) it's slow by itself and 2) it's not incremental. The latter point means a single line change triggers re-dexing everything including external jars that couldn't have possibly changed (the project doesn't even contain their sources). I came across posts that suggested some effort was being invested into making dexing incremental but they were about 6-9 months old IIRC and as far as I can tell, nothing's changed in released SDK versions. If dexing is fixed I believe build times would still not become fast - but workable at least. How long the uploading to device part takes seems to depend on the device rather strongly - at least the transfer rates seem to vary a lot (I've seen 0.5-2 megs/sec). Some noticeable time is spent once the APK arrives on the device but I've no idea what it's used for. On Fri, Oct 12, 2012 at 5:25 PM, Tilekab tile...@gmail.com wrote: Hi. I'm sure people have ranted about this in other threads, but here goes. I work for a company that builds a suite of big (=lots of layouts, lots of graphical resources, lots of everything) apps for iPhone, Android and Windows phone. The apps are 'identical' (obviously they are nativized for the platforms) on each os. I have been working on ios and Android. Turnaround when changing a line of code and running it on device (Android, since the emulator is way too slow) and simulator for iPhone differs in the order of minutes. Note that this does not include any changes to layouts or other resources that would cause a regeneration of R.java and rebuilding of the whole shebang. It has come to the point where it is almost unworkable. For some new features, I set up a whole nother project with just the Activity I'm working on, but that takes time and is not always doable since it is not easy to lift code into a separate project without having to add everything it depends on. Even though I am a far more experienced Java developer (since 1997 or so) than Objective C, I am way more productive on ios. Change, run, test, change, run, test. That's how developers do their job. And the current tool chain does not support it on Android when the app becomes non-trivial and grows in size. This is a call for action! The frustration of working much more slowly on Android than I am capable of is killing my soul Is there work being done on this? When we estimate the time for new projects on ios and android, we have up until now estimated about the same. But this is going to change. I would add a 30%-40% extra to an android project since we have to charge for the poor devs sitting there waiting for 'generating R.java', 'Discombobulating classes.dex', 'Gift wrapping resources', 'Spinning hamster wheel', 'Uploading to device' (which in itself takes about a minute) Happy coding! /Tile -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: My Android App does not support all mobiles.
What problem? You need to give the people in this group who might help you more of a clue. If you are getting a Force Close there will be a log of the problem in the LogCat window of Eclipse. Post the Java stack trace from LogCat here so people can comment on it. On Monday, October 15, 2012 2:29:50 PM UTC+1, Avnish Choudhary wrote: I have developed an Android application that communicate with our web application through Xml parsing .It works correctly on some devices like carbon phones,Samsung galaxy note (Android 4.0).But it does not work on some devices like Samsung galaxy S3.It shows message like force close.How can i solve this problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Ctrl+F11 key for Mac
Try this thread: https://groups.google.com/d/msg/android-developers/kDVfgZpzTD4/fj4tcMZyzCkJ On Monday, October 15, 2012 11:38:49 AM UTC+1, Musashi wrote: Hello there, I would like to switch view of emulator of ADT using keyboard. I know how to use key for Windows machine it's Ctrl+F11 to switch view. But I don't know about Mac. Please teach me how to do on Mac. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] [HELP] AVD does not show control keys (home button, keyboard, back)
I know this is a little old, but the no keys look is how an AVD looks if you choose a resolution other than the standard ones, because there is no pre-made skin for them. You can still use your keyboard to access functionality. Check the documentation for a list of the shortcuts. Marina On Oct 12, 2012 4:55 AM, Andreas andreas.kraeml...@googlemail.com wrote: Dear all, since yesterday the control keys like home button, keyboard etc. are not shown any longer if I launch a device. The complete right part of the emulator shown in picture http://developer.android.com/images/emulator-wvga800l.png is missing. I cannot remeber that I did anything with the emulator. And I did not find any possiblity for configuration. Certainly just re-installing would be one alternative - but this is time consuming and actually I am looking for the real issue. Many thanks, Andreas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: It seems easy to get rid of a competitor’s app
Thank you, Piotr, for an extremely interesting - but shocking comment. You wrote: Any reason you have not issued fake DMCA takedown notice against your oppressor? My answer to that is that I do not know (yet). HOW do you issue a fake DMCA takedown notice - and to WHOM? Terry kl. 10:51:49 UTC+2 søndag 14. oktober 2012 skrev Terry følgende: Two of my apps have been removed from the Google Play Store, (a free/trial version and a pro version of the same app). A developer of a similar app asked for them to be removed. The reason for removal was given as “Alleged copyright infringement (according to the terms of the Digital Millenium Copyright Act).” As I could not understand that my apps had violated any of his copyrights, I sent a DMCA counter notification to Google. After a few weeks, Google replied:If we do not receive notice that the complainant has brought a court action within 10 to 14 days, we will reinstate the material in question. This made me full of hope. I assumed that it meant that Google had not accepted the request for removal, and I did not think that the meager economy associated with an app could be the reason to start a costly legal action. After another few weeks, I received the following email from Google: “We are in receipt of your attached counter notification letter. Upon presenting the complainant with your counter notification letter, they responded stating their intention to take the matter to court. We will await your correspondence regarding the results of the court order before taking any further action.” I sent them another email, pointing out that I had had no information as to a court action, to which they replied: “Unfortunately we are unable to assist you any further regarding this issue at this point.” I still have heard nothing as to a legal action, neither from Google, nor the complainant or any court. So, the conclusion of this unhappy affair seems to be the following: if you want to remove some bothersome apps, you just have to complain to Google that your copyrights have been violated. If they do not agree, you just have to tell them that you intend to take the matter to court. (You don’t have to carry it through.) Then they will remove the apps you are asking for. Can it really be THIS easy to remove a competitor’s apps? Without any consequences? Or is there something I have misunderstood? In case anyone inside Google would care to take a closer look at this case, the reference numbers (for removals) are *[#1121348892] and ** [#1121348892]** *. Regards, Terry -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Extremely slow turnaround when building and running
My current project is about 80K lines of code, a fair amount of resources, and produces ~ 2M APK file. Building in Eclipse takes 5-10-15 seconds and launching is almost instant (2-3 seconds). These are the things that I believe are important: - I'm on Linux (Debian / Wheezy, 64 bits, Liquorix kernel, XFCE, if that matters... don't think it does) - My Eclipse memory settings (in eclipse.ini) are significantly increased compared to the defaults, letting Eclipse use up to 2G of RAM. It doesn't matter how many petabytes of RAM you've got if Eclipse is only allowed to use 512M (I believe that's the default) - My projects (and everything else, really... except the backups) are on SSDs (this makes a difference, but not ground-shaking), no fancy file systems, just ext4 - The system has a Core i7-3770, 8G of RAM, which is sort of middle of the line by today's standards... The previous one had an Core i7 860 and 4G of RAM, and was almost just as fast. If I were to pick the most important points from the above, they would be: 1) Develop on Linux 2) Adjust Eclipse memory settings. Still, I would really like to see faster dexing and multi-threaded image crunching... -- K 2012/10/12 Tilekab tile...@gmail.com Hi. I'm sure people have ranted about this in other threads, but here goes. I work for a company that builds a suite of big (=lots of layouts, lots of graphical resources, lots of everything) apps for iPhone, Android and Windows phone. The apps are 'identical' (obviously they are nativized for the platforms) on each os. I have been working on ios and Android. Turnaround when changing a line of code and running it on device (Android, since the emulator is way too slow) and simulator for iPhone differs in the order of minutes. Note that this does not include any changes to layouts or other resources that would cause a regeneration of R.java and rebuilding of the whole shebang. It has come to the point where it is almost unworkable. For some new features, I set up a whole nother project with just the Activity I'm working on, but that takes time and is not always doable since it is not easy to lift code into a separate project without having to add everything it depends on. Even though I am a far more experienced Java developer (since 1997 or so) than Objective C, I am way more productive on ios. Change, run, test, change, run, test. That's how developers do their job. And the current tool chain does not support it on Android when the app becomes non-trivial and grows in size. This is a call for action! The frustration of working much more slowly on Android than I am capable of is killing my soul Is there work being done on this? When we estimate the time for new projects on ios and android, we have up until now estimated about the same. But this is going to change. I would add a 30%-40% extra to an android project since we have to charge for the poor devs sitting there waiting for 'generating R.java', 'Discombobulating classes.dex', 'Gift wrapping resources', 'Spinning hamster wheel', 'Uploading to device' (which in itself takes about a minute) Happy coding! /Tile -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: RDP for Android
Thanks Brad bob for your suggestions...i appreciate your help.. On Mon, Oct 15, 2012 at 8:53 PM, bob b...@coolfone.comze.com wrote: You could always look at the source to VNC. Mainly, what you will be doing is constantly sending a screen capture back to the client. To minimize bandwidth, you will probably only send what has changed. So, you will calculate the smallest rectangle that encompasses all changes and send that screen data as a compressed bitmap. On Friday, October 12, 2012 2:36:06 AM UTC-5, Nirav Parmar wrote: Hello everyone, I need to develop an app for remote desktop connection..searched a little about that but didn't found any good explanation or example.. Can anyone suggest a good staring point or some example which can guide ?? Thanks Regards, Nirav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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, Nirav Parmar. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 save registration id to database with php? (GCM)
i have tried to find how to save the registration id to database. i dont understand about how to get the registration id from the GCM server, what php sytax and parameters of the sytax to get the reg id? is that i must use the $_REQUEST or what ?? i'm sorry for my bad english. :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 APIMiner: Documenting the Android API with examples
Hi everyone, I would like to share with you a platform created as part of my Msc dissertation, called Android APIMiner: http://www.apiminer.org In a few words, Android APIMiner is a platform that provides a version of the Android API documentation enriched with thousands of real examples, extracted from open source applications (like Wordpress, ZXing Barcode Scanner, etc.). We are providing this alpha version so that the community can use and suggest improvements for the tool. With my best regards, João Eduardo Montandon Applied Software Engineering Group (ASERG) Computer Science Master Student at UFMG, Brazil http://dcc.ufmg.br/~joao.montandon -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problems launching a 2 activities program
Hi!! I'm starting programming in Android and I'm creating a very simple 2 activities app following a tutorial. Here is the code of both activities: 1- package android.nacho.Textpsycologico; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.nacho.Textpsycologico.R; public class TestPsycologico extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_test_psycologico); //Localizar los controles final EditText txtNombre = (EditText)findViewById(R.id.TxtNombre); final Button btnStart = (Button)findViewById(R.id.BtnStart); btnStart.setOnClickListener(new OnClickListener() { public void onClick(View v) { //Creamos el Intent //Intent intent = new Intent(TestPsycologico.this, TestPsyNombre.class); //Creamos la información a pasar entre actividades Bundle b = new Bundle(); b.putString(NOMBRE, txtNombre.getText().toString()); //Añadimos la información al intent intent.putExtras(b); //Iniciamos la nueva actividad startActivity(intent); } }); } } 2- package android.nacho.Textpsycologico; import android.os.Bundle; import android.widget.TextView; import android.app.Activity; public class TestPsyNombre extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_test_psy_nombre); //Localizar los controles TextView TxtZodiac = (TextView)findViewById(R.id.TxtZodiac); //Recuperamos la información pasada en el intent Bundle bundle = this.getIntent().getExtras(); //Construimos el mensaje a mostrar TxtZodiac.setText(Hola + bundle.getString(NOMBRE) + Choose your Zodiac Sign); } } The problem is when I lauch the application it just stop before start doing anything. I have detected that the problem is in the first code when I call the function: btnStart.setOnClickListener(new OnClickListener() { public void onClick(View v) { ... }}; Could someone tell me what I'm doing wrong? Than you ver much for your time -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 want to find guy to develop android vpn app
who can do this ? app like play.google.com/store/apps/details?id=com.yesvpn.en contact 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] How to make a 3d app into livewallpaper
hi i am learning to make live wallpaper and i have made a 3d rotating cube , can anybody tell how to make changes in manifest file and using wallpaperservice should i make it a live wallpaper.? Help me with some code to understand,i am using opengles 1.0 thank -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google Cloud Message can't parse intent
I havesome problem.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] disable date time setting in android
hi i want to build an aplication that make the date time setting in adroid disable and cannot change the date time. Is that possible? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 read data from external device using android USB Host Api ?
Hola gente, a mi me pasaba algo parecido. Podía crear el UsbManager, pero deviceList.size() me daba 0. Despues de averiguar me entere que el problema no era de mi app, sino de la config del la tablet (superchina A10-MID 7, android 4.0.3). Me di cuenta usando una App gratuita USB Device Info. Esa aplicacion me devolvia Android Device list=0, Linux Device List=5 (1 PenDrive + 1 WLANAdapter + 3xHubUSB). Despues de escudriñar la web hice lo siguiente: -genere el archivo android.hardware.usb.host.xml -edite el archivo tablet_core_hardware.xml -los dos archivos estan en /system/etc/permissions Vean las instrucciones en: http://stackoverflow.com/questions/11183792/android-usb-host-and-hidden-devices (primer respuesta) Despues de hacer eso USB Device Info veia Android Device list=2 (1 PenDrive + WLANAdapter), Linux Device List=5 (1 PenDrive + 1 WLANAdapter + 3xHubUSB). Mi app tambien me devolvia deviceList=2. Espero les sirva El miércoles, 31 de agosto de 2011 12:36:43 UTC-3, Sam escribió: Hello , I've written an app to connect an USB Device and read data from external usb device to my android USB Host 3.1 root tab device. i used http://developer.android.com/guide/topics/usb/host.html android USB Host Api. But every time read data value got zero value in every byte from external device. can anyone send me demo or proper documentation how to read data from external device ? any encoding require for reading data ? 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] Message passing between 2 instances of 1 Android application
Hi, I m beginner to Android programming.I have 2 instances of my application. I want to pass message(file) from phone 1 to phone 2(using HTTP protocol). Phone 2 acknowledges and processes the file. It sends the updated file as a message to phone 1. This should go on forever. Please let me know how to implement this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] BouncyCastle Jar causing Java Heap Space Problem
I ran into a problem while trying to create X509Certificate using bouncycastle Provider. I added bouncycastle provider jar which caused GC overlimit and Java Heap Space Problem. Here is my code which is just from BouncyCastle example. public static X509Certificate createMasterCert( PublicKey pubKey, PrivateKey privKey) throws Exception { // // signers name // String issuer = C=AU, O=The Legion of the Bouncy Castle, OU=Bouncy Primary Certificate; // // subjects name - the same as we are self signed. // String subject = C=AU, O=The Legion of the Bouncy Castle, OU=Bouncy Primary Certificate; // // create the certificate - version 1 // X509v1CertificateBuilder v1CertBuilder = new JcaX509v1CertificateBuilder( new X500Name(issuer), BigInteger.valueOf(1), new Date(System.currentTimeMillis() - 1000L * 60 * 60 * 24 * 30), new Date(System.currentTimeMillis() + (1000L * 60 * 60 * 24 * 30)), new X500Name(subject), pubKey); X509CertificateHolder cert = v1CertBuilder.build(new JcaContentSignerBuilder(SHA1withRSA).setProvider(BC).build(privKey)); return new JcaX509CertificateConverter().setProvider(BC).getCertificate(cert); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Tracking referral keywords from Google Play
I've seen some mentions in blogs about tracking keywords that have led people to download your app from Google Play, but I can't seem to figure out how exactly to track this. For example, I'd like to know how many users found my fishing game with fishing game and fish free as the keywords. Is this possible? Perhaps with the Google Analytics Mobile App tool? - 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
[android-developers] LD_LIBRARY_PATH ignored on Android sometimes
Hi there, i have an android app which spawns many native executables dinamically linked with libraries i distribute with the package. To launch those binaries, i use the LD_LIBRARY_PATH environment variable to make them aware of the place to load the libraries from, but on some devices this doesn't work at all, the LD_LIBRARY_PATH is correctly updated but the binary fails to find the library anyway. This is not something i can reproduce because on my two devices ( Galaxy Nexus Nexus 7 with stock roms ) it just works fine. I tried many ways, for instance i spawn: Code: LD_LIBRARY_PATH=/my/package/custom/libs:$LD_LIBRARY_PATH cd /binary/directory ./binary And : Code: String[] envp = { LD_LIBRARY_PATH= + libPath + :$LD_LIBRARY_PATH }; Process process = Runtime.getRuntime().exec( su, envp ); writer = new DataOutputStream( process.getOutputStream() ); reader = new BufferedReader( new InputStreamReader( process.getInputStream() ) ); writer.writeBytes( export LD_LIBRARY_PATH= + libPath + :$LD_LIBRARY_PATH\n ); writer.flush(); But on those devices nothing seemed to work ... so i'm starting to think that this is a kernel related issue, some kernels ( like mine ) use the LD_LIBRARY_PATH, other kernels don't ( simply ignore it, or they're using just the LD_LIBRARY_PATH that was set on application startup, therefore there's no way to change it at runtime ). I also tried to use System.load but it didn't work, probably because those libs are not JNI ... is there something i could try before starting to think about using statically linked binaries ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get a button id from an app(I don't have the source)
Without Application you can't get the id . By the way you can get id e.g text = (TextView)findViewById(R.id.text); where id mention in xml file. On Tuesday, October 16, 2012 6:55:11 AM UTC-4, srikanth wrote: Hi, I want to get the element/button id in an app(I don't have the apk).. can any one please tell me on how to get the id? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] trace.html does not be opened as the result of systrace in the jellybean.
hi , I am studying the performance trace tool that introduced at the 2012 goolge IO . that is systrace . I have generated that trace.html in the linux OS . but , I can not open with Browser . ( FireFox ) also I have tested in the Window ( Explore ) . the result is the same. when I open trace.html with notepad or UltraEdit . HTML is contanted properly in the file . What Can I do for that ? I have to analysis the performance issue with this tool ASAP. thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problems with start a Map Activity from other Activity
I also have the similar problem. I added a simple button to the hello world screen. This button need to start the activity described here (https://developers.google.com/maps/documentation/android/hello-mapview) When I click that single button, instead of showing a map my application gives Force Close. On Tuesday, April 27, 2010 8:17:05 PM UTC+3, TreKing wrote: On Thu, Apr 8, 2010 at 4:08 PM, Carlos Moreira c.le...@gmail.comjavascript: wrote: I have problems and didn't work. What are the problems and how doesn't it work? On Mon, Apr 26, 2010 at 3:00 AM, Munki83 pwil...@googlemail.comjavascript: wrote: My mapactivity works fine when used standalone but can't be launched from a normal activity Why not? What's the problem you are seeing? You people really need to provide more information about what SPECIFIC problem you are having or you are never going to get a good response. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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] hi
hi friend i study android programing i have a question how to i can a app for education for example have quiz and learning and ... please everyone can help me answer my question 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] Force open apk file with PackageManager, avoiding application selection
Hey folks, I am working on a non-market application that is used within our company. It has an updater that downloads apks from a web server and is supposed to install them. When I use the following code (tested on Android 4.0) to open the apk, I am presented with a selection of applications that can handle the specific content type (application/vnd.android.package-archive), among them being Dropbox and others: Intent intent = new Intent(); intent.setDataAndType(Uri.fromFile(newFile(path)), application/vnd.android.package-archive ); startActivity(intent); To simplify the process for my users, I would prefer to always open the apk with Package Manager, avoiding that selective step. I read about setComponent and setClass(Name), but all the examples I could find were about target classes within the own application's scope. When I try to use com.google.android.content.pm.PackageManager instead, it fails with an ActivityNotFoundException. Looking forward to any advice! Thanks a lot, Pascal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] In app purchase test with example app and static responses fails.
Hello, I'm testing in-app purchase procedure using the Dungeons Example app, but it fails. I added my public key where indicated by the docs, generated a signed apk, installed and launched the app. For all of the static responses I get Play to open and the fake purchase page to display, but when I click on Accept and buy I get the following error popup: Error retrieving information from server [DF-DFERH=01] Is there something I'm missing? thanks, athos -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Message passing in Android between 2 instances
Hi, Can someone tell me a solution for this? http://stackoverflow.com/questions/12911706/message-passing-between-2-instances-of-android-phones-in-same-application Thanks in advance! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] MTK6573 Handphone Dilemma
I desperately need help because i know that you all are my life saver. As it goes I'm having an unrooted chinese hand phone and there are no ways to root my phone other then to flash it. The dilemma is that i need to do a full backup before flashing but in order to do full backup i need to root it first but then i need to root it first before i can do a full backup. This is a dilemma sort like whether chicken or egg first. The problems is really annoying. BTW the phone download mode is not accessible through any combination of the phone button. Details are as follows: Screen Size: 4.3 inch. Model number: I9100 CPU: MTK6573 Android version: 4.0.9 Baseband version: I9100XXK13 Kernel version: 2.6.35.7-I9100 Build number: GT_I9100_01 Custom build version: 1341280728 ADB Devices: 0123456789ABCDEF Are there any application that could do a FULL backup without rooting it first? Does anyone knows where to download the said phone image file so that i could flash it without doing the full backup? The last thing i could do is burying my phone in the soil and watered it everyday and hoping it to root out. Thanks for your time in helping me out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Force open apk file with PackageManager, avoiding application selection
On Sat, Oct 13, 2012 at 2:16 PM, Pascal Ehlert dad...@googlemail.com wrote: I am working on a non-market application that is used within our company. It has an updater that downloads apks from a web server and is supposed to install them. When I use the following code (tested on Android 4.0) to open the apk, I am presented with a selection of applications that can handle the specific content type (application/vnd.android.package-archive), among them being Dropbox and others: Intent intent = new Intent(); intent.setDataAndType(Uri.fromFile(new File(path)), application/vnd.android.package-archive); startActivity(intent); I am surprised that Intent works at all, since you have no action. Use ACTION_INSTALL_PACKAGE on API Level 14+ and ACTION_VIEW on API Level 13 and down. As a side benefit, I suspect that this will clear up your chooser problem. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.2 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Extremely slow turnaround when building and running
Same here. If you just change Java Code, it isn't that bad. However, as soon as you change a resource or after you had a compile error (how odd), it can take a few minutes from build to launch (my 'record' is abt 5 minutes). It is sometimes excruciatingly slow. On Friday, October 12, 2012 11:25:13 AM UTC-4, Tilekab wrote: Hi. I'm sure people have ranted about this in other threads, but here goes. I work for a company that builds a suite of big (=lots of layouts, lots of graphical resources, lots of everything) apps for iPhone, Android and Windows phone. The apps are 'identical' (obviously they are nativized for the platforms) on each os. I have been working on ios and Android. Turnaround when changing a line of code and running it on device (Android, since the emulator is way too slow) and simulator for iPhone differs in the order of minutes. Note that this does not include any changes to layouts or other resources that would cause a regeneration of R.java and rebuilding of the whole shebang. It has come to the point where it is almost unworkable. For some new features, I set up a whole nother project with just the Activity I'm working on, but that takes time and is not always doable since it is not easy to lift code into a separate project without having to add everything it depends on. Even though I am a far more experienced Java developer (since 1997 or so) than Objective C, I am way more productive on ios. Change, run, test, change, run, test. That's how developers do their job. And the current tool chain does not support it on Android when the app becomes non-trivial and grows in size. This is a call for action! The frustration of working much more slowly on Android than I am capable of is killing my soul Is there work being done on this? When we estimate the time for new projects on ios and android, we have up until now estimated about the same. But this is going to change. I would add a 30%-40% extra to an android project since we have to charge for the poor devs sitting there waiting for 'generating R.java', 'Discombobulating classes.dex', 'Gift wrapping resources', 'Spinning hamster wheel', 'Uploading to device' (which in itself takes about a minute) Happy coding! /Tile -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SDK Manager doesn't show anything, only already installed packages
Same problem here. I cleared the cache. Still doesn't reload. Tried http also. No progress. Pls help. On Friday, October 5, 2012 1:30:25 AM UTC+5:30, Mark Murphy (a Commons Guy) wrote: Clear your cache and reload. The clear-cache button is in Tools Options in the SDK Manager, and reloading is Packages Reload in the SDK Manager. On Thu, Oct 4, 2012 at 9:09 AM, Kurt Kincaid kurt.k...@gmail.comjavascript: wrote: Exactly the same situation here. Any thoughts or suggestions would be greatly appreciated. On Tuesday, August 14, 2012 3:43:18 AM UTC-5, Andre wrote: Hi everyone, since yesterday the SDK Manager doesn't show any updates or packages other than what I have already installed. I looked everywhere on Google and can't find one person in the same situation. I don't get any error messages, the SDK Manager loads the repository and then nothing shows up. I run the app as administrator and I tried both fetching with http: and https: Does anyone else have the same problem? Is this a known bug? I'm on Windows 7 64bit but I don't think that matters cause everything was running smoothly until yesterday. If it helps, this is what I see: -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.2 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Shell Scripting
Hi, We are developing a Ruby script to launch an Android emulator and then run some calabash tests on it. The ruby script just executes a bunch of shell commands: PID = fork do Signal.trap(HUP) { puts PROCESS ENDED; exit } exec emulator -avd TestDevice1 end fork { sleep(55) exec adb shell input keyevent 82 } fork { sleep(60) exec calabash-android run ~/MyApp/MyApp.apk Process.Kill(HUP, PID) } The problem we are facing is: Because the loading of the emulator takes some time, the Calabash tests may fail if the emulator is not in a usable state. We are currently using sleep with a hard coded value to get around this problem. This is not ideal. Is there shell command to verify whether the emulator is ready? Thanks Sumeet -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Display an Integer[] who's inside an ArrayList
I have an arraylist with some Integer[] inside and I want to display elements of my Integer[] into a ViewFlipper. I have the function which works if you include directly an Integer[] : View addImageView(int resId) { ImageView iv = new ImageView(this); iv.setImageResource(resId); return iv; } To allow the arraylist.get(i) to refer to my integer[] I have to modify the type of data passed in my function: View addImageView(Integer[] integers) { ImageView iv = new ImageView(this); iv.setImageResource(integers); return iv; } But it returns : The method setImageResource(int) in the type ImageView is not applicable for the arguments (Integer[]) Is there an equivalent to make the function work ? (if you want to see the full class, I've joined 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=enpackage com.ctai.irisst; import java.util.ArrayList; import android.view.GestureDetector.SimpleOnGestureListener; import android.view.animation.AnimationUtils; import android.view.View.OnTouchListener; import android.view.GestureDetector; import android.widget.ViewFlipper; import android.widget.ImageView; import android.view.MotionEvent; import android.content.Context; import android.app.Activity; import android.widget.Toast; import android.os.Bundle; import android.view.View; public class ChoixMemo extends Activity { @SuppressWarnings(deprecation) private final GestureDetector detector = new GestureDetector(new MyGestureDetector()); private static final int SWIPE_THRESHOLD_VELOCITY = 200; private static final int SWIPE_MIN_DISTANCE = 120; private Context mContext; private ViewFlipper vf; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.choixmemo); mContext = this; vf = (ViewFlipper) this.findViewById(R.id.vfShow); vf.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(final View view, final MotionEvent event) { detector.onTouchEvent(event); return true; } }); ArrayListInteger al = new ArrayListInteger(); al.add(ListeImages.theme_amiante_couv.length); al.add(ListeImages.theme_amiante_couv.length); al.add(ListeImages.theme_agencement_couv.length); al.add(ListeImages.theme_agencement_couv.length); al.add(ListeImages.theme_bruits_virations_couv.length); al.add(ListeImages.theme_addictions_couv.length); al.add(ListeImages.theme_risque_chimique_couv.length); al.add(ListeImages.theme_formation_couv.length); al.add(ListeImages.theme_risque_routier_couv.length); al.add(ListeImages.theme_travail_hauteur_couv.length); al.add(ListeImages.metier_plombier_couv.length); al.add(ListeImages.metier_electricien_couv.length); al.add(ListeImages.metier_carreleur_couv.length); al.add(ListeImages.metier_peintre_couv.length); al.add(ListeImages.metier_pierre_couv.length); al.add(ListeImages.metier_platre_couv.length); al.add(ListeImages.metier_charpentier_couv.length); al.add(ListeImages.metier_serrurier_couv.length); ArrayListInteger[] al1 = new ArrayListInteger[](); al1.add(ListeImages.theme_amiante_couv); al1.add(ListeImages.theme_amiante_couv); al1.add(ListeImages.theme_agencement_couv); al1.add(ListeImages.theme_agencement_couv); al1.add(ListeImages.theme_bruits_virations_couv); al1.add(ListeImages.theme_addictions_couv); al1.add(ListeImages.theme_risque_chimique_couv); al1.add(ListeImages.theme_formation_couv); al1.add(ListeImages.theme_risque_routier_couv); al1.add(ListeImages.theme_travail_hauteur_couv); al1.add(ListeImages.metier_plombier_couv); al1.add(ListeImages.metier_electricien_couv); al1.add(ListeImages.metier_carreleur_couv); al1.add(ListeImages.metier_peintre_couv); al1.add(ListeImages.metier_pierre_couv); al1.add(ListeImages.metier_platre_couv); al1.add(ListeImages.metier_charpentier_couv);
[android-developers] WebView - requestFileSystem causes Fatal signal 11 (SIGSEGV)
I'm developing an offline app where I have to save files in html5 fs-sandbox. At desktop in Chrome everything works fine. But my android device (Samsung Galaxy Tab 10.1 - OS 4.0.4) is crashing with 10-12 10:49:53.953: A/libc(9231): Fatal signal 11 (SIGSEGV) at 0x (code=1)until I'm calling window.requestFileSystem(window.PERSISTENT, 5*1024*1024, fsInit, errorHandler); Even when using window.TEMPORARY and/or a lower size it causes the error. I've already created a bugreport http://code.google.com/p/android/issues/detail?id=38420 but I'm hoping that anyone here can give me a hint how to solve 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: the Welcome to Android Development window doesn't appears
I have Mac OSX 10.5.8. I have verified on eclipse about eclipse Installation details Installed software, i have installed the Android ADT but doesn't work, Android buttons doesn't appears and in the eclipsePreferences i can't see Android and i can't select SDK path. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Package Data in Database with App?
Are there any progress on this ? (sorry for the thread revive) On Friday, March 14, 2008 8:19:02 PM UTC+1, Megha wrote: Hi, Packaging SQLite3 database with application is not supported for now. You may want to log this as a feature request in the android issue tracker. thanks, Megha On Thu, Mar 13, 2008 at 7:06 PM, gilgantic gilg...@gmail.comjavascript: wrote: Hi All, Is it possible to package the data in the SQLite3 database with application? Currently, I have to load the data in at the first time the application starts, but I do not want to do this when I export/ build my app (.apk) file? Thanks gilgantic -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 respond to focused item change in ListView
I have a ListView which contains all of my TV Series in my Google TV app. My goal is that when the user uses the d-pad to move to a different TV Show, without selecting it (clicking the center button) the background of the main view will change to match the currently focused show. Selecting the item will descend into the tree, so I can't use onItemClickListener for this solution. The problem is that I can't seem to find out how to get notified when the focused list item changes, only when the selected one does. Does anyone know who to do this? Thanks Ryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android APIMiner: Documenting the Android API with examples
Interesting concept! Note that it crashes when trying to view android.content.Intent. I am also not completely sure how you are choosing the lines of code to display in the examples, but sometimes it is just one line of code (e.g., dialog.dismiss(); as an example of how to call dismiss() on a DialogInterface). If clicking Full Code would jump you to the line in question, that would help us find context when none is shown on the original screen. Is this a short-term demo, or do you have plans to have this be hosted and maintained over time? Thanks! On Mon, Oct 15, 2012 at 2:00 PM, João Eduardo Montandon edu.montan...@gmail.com wrote: Hi everyone, I would like to share with you a platform created as part of my Msc dissertation, called Android APIMiner: http://www.apiminer.org In a few words, Android APIMiner is a platform that provides a version of the Android API documentation enriched with thousands of real examples, extracted from open source applications (like Wordpress, ZXing Barcode Scanner, etc.). We are providing this alpha version so that the community can use and suggest improvements for the tool. With my best regards, João Eduardo Montandon Applied Software Engineering Group (ASERG) Computer Science Master Student at UFMG, Brazil http://dcc.ufmg.br/~joao.montandon -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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.2 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Package Data in Database with App?
On Fri, Oct 12, 2012 at 5:33 AM, Jacob Ingvar Hansen jacob.ingvar.han...@gmail.com wrote: Are there any progress on this ? (sorry for the thread revive) Use SQLiteAssetHelper: https://github.com/jgilfelt/android-sqlite-asset-helper -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.2 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Latest Android ADT wizard gives wrong app name
Hey everyone, Forgive me if this is already well known, but I went through the wizard of the latest android ADT and when filling in the appropriate fields the application ends up installing as the main activity's title name. I.e. I make an application named Test1 and the main menu of the activity named MainMenu and the application is installed and labeled as: MainMenu. You basically have to edit the first activity android:label= field to be what your application name installs as. Someone else posted a very similiar problem in StackOverflow: http://stackoverflow.com/a/12086806 Not sure if there is a better place to post this as a bug, if so I will gladly do so. 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: moderated posts?
Hi Bob, I am exactly in the same position. I also posted a question and it didn't show up. Maybe it takes some time longer? Nils On Monday, October 15, 2012 8:18:46 PM UTC+2, Bob S wrote: Hi, I posted a newbie question here, and it never showed up. I guess it was moderated? If you don't have a forum for new users how are people supposed to adopt Android? Did I just miss my post, or was it inappropriate? Also now I can't find even a list of my own posts so that I can copy the text and paste it into an identical question on Stack Overflow. Can you please tell me at least where to find that? Sorry if I don't understand how forums work with Android but this is very different and more inaccessible than iOS, I am considering cross-platform development. Thanks Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SlidingTab on Lock Screen vibrates when unlocking regardless of the global settings about haptic feedback
When unlocking my android 2.3.3 phone on the simple lock screen it vibrates once the slider is touched and a second time little longer when the slider has been pulled completely to the other side. I found it a little annoying and so I thought I could somehow switch it off in the settings as I can switch off any other vibration. There are actually two categories which might make sense in this case: 1) Sound Settings/General/Vibrate with the individual settings: (always, never, only in silent mode, only when not in silent mode) 2) Sound Settings/Feedback/Haptic Feedback (on/off) I had to find out, that none of these settings have an impact on the unlocking action mentioned above. So I googled and found some comments about the fact, that the vibration cannot be switched off easily in the settings. e.g. http://code.google.com/p/android/issues/detail?id=34040 Now I got curious and I tried to dive a little deeper into the android sources and found the source for the slider here: https://github.com/android/platform_frameworks_base/blob/master/core/java/com/android/internal/widget/SlidingTab.java It seems to me that the vibrate action is called regardless of any settings. Now I have some questions: 1. Shouldn't the vibration for unlocking consider the settings from either 1) or 2) above? 2. How would this be added to the source code and how would this change be applied to the android source repository so that some time later this could be migrated into the next android (if the sliding tab is used there at all) 3. Would it be possible to update the file SlidingTab.java seperately and test it on my rooted device or would it be necessary to do the complete make for the whole android system and flash my mobile phone with the new system in order to see if it works? 4. I have found other mobile phones with the same slider and no vibration when unlocking. I am clueless how this can be after I found the prove that it is not able to switch off the vibration in the source code. thank you for sharing your knowledge with me Nils -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] running applications on the android device using asp.net code
hello android developer team I am .net developer,i am able to listing the attached android devices with my PC using c# code(ADB.exe) now my next requirement is to list attached android mobile running applications . please suggest me helping reference links Thanks and Regards KIS -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Creating an updated Android.jar file
Hello Community, I'm trying to make some customization to classes in the Android framework on ICS. I want my eclipse to pick up on these changes, but I can't seem to figure out where the android.jar gets outputted to. could someone please help me out with this issue? 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