Re: [android-developers] Re: Intents
On Tue, Aug 9, 2011 at 7:56 AM, kypriakos demet...@ece.neu.edu wrote: I am running a servlet on the phone that starts an Intent on an Activity class. The class starts the camera preview and takes a picture. Then I have a subsequent Intent start on the same Activity class to stop the preview. The second Intent will fall into the OnNewIntent. It also carries a set of extra parameters that I want to read and use iwthin the OnNewIntent. How do I access those Extra params? I have used Extra bundles before and I know how they work. So what do you mean I need to remember the Intent? What do you mean by servlet? Do you mean a Service? This design seems questionable to me. Trying to communicate with an existing activity like this is fraught with peril -- what if the user pressed home, you are popping yourself on top of whatever they are now doing; what if they pressed back, you are launching a new instance; what if they went down deeper in your activity stack, you are now doing ghod knows what to the stack by pushing at it from the service. Generally if an activity wants to find out about state changes from a service, it binds to the service and receives callbacks from it in any of a number of ways -- through messengers, aidl, PendingIntent to deliver a result, etc. Or if this is all one app running all one process, just have a singleton that keeps track of the service and your activity can get it to see if it is running and add a java interface callback for state changes. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: What is the right way to get updates from REST service by timer in Android?
You may want to use a service: http://developer.android.com/guide/topics/fundamentals/services.html On Tue, Aug 9, 2011 at 9:26 PM, Alexey Zakharov alexey.v.zaha...@gmail.com wrote: UPDATE: I need to receive updates even if user has switched to another application or receive a call. UI also should be updated. So when user switch back to the application he should see updated view. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: HTTPS in Android
Which android sdk version are you using? On Mon, Aug 8, 2011 at 5:15 PM, perumal316 perumal...@gmail.com wrote: Hi All, Below is my code snippet: File file = new File(filepath); HttpClient client = new DefaultHttpClient(); //String url = http://test.; String url = https://test..;; HttpPost post = new HttpPost(url); FileEntity bin = new FileEntity(file, url); post.setEntity(bin); HttpResponse response = client.execute(post); HttpEntity resEntity = response.getEntity(); Basically I am using fileentity to do a HTTPPost. Now I want to do this over https. After implementing https over at the backend I just modified http to https in the url and tested again. And it is not working. Any idea how do i resolve this? Thanks In Advance, Perumal On Aug 4, 1:43 pm, Kumar Bibek coomar@gmail.com wrote: It would be good if you let us know what have your tried and what exactly is not working, some code samples, logs etc. On Aug 2, 8:07 pm, perumal316 perumal...@gmail.com wrote: Hi All, I have implemented HTTP Post to post data to the backend. How do I implement HTTPS in Android (I have already configured the backend for https)? I googled and found some solutions ( http://stackoverflow.com/questions/ 2253061/secure-http-post-in-android) and tried them but I do not receive any data in the backend. Is it the correct way to implement? Is there any other method? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --Jitesh .V. Dedhiya--- Don't Learn To Hack but Hack To Learn -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: check wakelocked for each process
Sorry you can not. There is no application API for this, nor do I expect there ever to be one. On Tue, Aug 9, 2011 at 6:01 PM, Hiko hikosais...@gmail.com wrote: I implemented dumpsys power command with Runtime.getRuntime().exec() as below. try{ Process process = Runtime.getRuntime().exec(dumpsys power); BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(process.getInputStream()), 1024); String line = bufferedReader.readLine(); while ( line != null) { TextView text = (TextView)findViewById(R.id.wakelock); text.setText(line); line = bufferedReader.readLine(); } } catch(Exception e) { } However, the string which bufferedReader.readLine() returns is Permission Denial:can't dump PowerManager from from pid=... This output is not same as the one with adb shell dumpsys power. How can I find the same result as same as adb shell dumpsys power? Please let me know if you find the correct way... Regards, On 8月9日, 午前11:53, Hiko hikosais...@gmail.com wrote: I confirmed that various informations including wakelock something by using command dumpsys power. But, I do not know how to check which the application/service is wakelocked. As far as I checked my output, mLocks.size=0: the above is output. This means no wakelock application/service is available in my device??? On 8月8日, 午前9:23, Hiko hikosais...@gmail.com wrote: Dear Kostya, Thank you very much for your information. I'll try. Regards, On Aug 5, 8:42 pm, Kostya Vasilyev kmans...@gmail.com wrote: In the adb shell, type dumpsys power. 05.08.2011 15:36, Hiko пишет: Hi, I would like to check/detect which process(s) are waklocked in the device. if you have any idea for this,please let me know. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Location(longitude and latitude) not Displayed in the phone
Hi, Have you only tried to test that inside or did you tried outside too? On Aug 9, 7:06 pm, zx su suzp1...@gmail.com wrote: the real devices need times to search satellites and calculate ites location. a article: a deep dive into location by Reto Meierhttp://feedproxy.google.com/~r/blogspot/hsDu/~3/OqaFGBKFvhE/deep-dive... 2011/8/9 TreKing treking...@gmail.com On Tue, Aug 9, 2011 at 2:26 AM, Ratheesh Valamchuzhy android...@gmail.com wrote: Emulater but not working in Real device Define not working. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Copying Application Files on android device and apk versioning Information
HI, How we can make the apk(on installing) copy the application files on the device .Do we have invoke the script from the application to copy application files(test files,read me, release notes, data files) or is there any other way for example any default folder we have to put the files in and while installing the apk those files will get copied. Also is there a way to provide the versioning to the apk so that when we make some changes to the apk and install it it will incrementally update the existing one. What other benefits can there be for providing the versioning information embedded inside the apk. if any one has developed for windows , they can understand the versioning and application file copying(which we used to put under the file system) which on installing the application will copy the contents on the program files /application directory. PLz dont frown on me if I am mentioning windows here in android context, i know both are different in all sense.. Rgds, Saurabh ..pain is temporary.quitting lasts forever.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Location(longitude and latitude) not Displayed in the phone
i test it also in outside but ot dispalying after i tried to use CellID to locate your Android device and use Google maps to display the map now it is getting for this we need only wifi and 2G/3G nw 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: Multiple APK support - Who's tried it?
If they're priced differently, what do you do in the case where a user has bought your app for their phone, then gets a tablet? The infrastructure would need to support incremental purchases - and wouldn't THAT bring idiot users out of the woodwork. You know, the ones who already blame you for the Market's vagaries. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Socket connection android issue
Hi i want tcp-socket connection for connection with socket and take response back: public static String SERVERIP = 192.168.0.127; // designate a port public static final int SERVERPORT = 5675; private void connectSocket() { // TODO Auto-generated method stub try { InetAddress serverAddr = InetAddress.getByName(SERVERIP);// 10.66.3.44 is my pc' IP Log.d(TCP, C: Connecting...); Socket socket = new Socket(serverAddr, SERVERPORT); String message = Hello from Client android emulator; try { Log.d(TCP, C: Sending: ' + message + '); PrintWriter out = new PrintWriter( new BufferedWriter( new OutputStreamWriter(socket.getOutputStream())),true); out.println(message); Log.d(TCP, C: Sent.); Log.d(TCP, C: Done.); } catch(Exception e) { Log.e(TCP, S: Error, e); } finally { socket.close(); } } catch (UnknownHostException e) { // TODO Auto-generated catch block Log.e(TCP, C: UnknownHostException, e); e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block Log.e(TCP, C: IOException, e); e.printStackTrace(); } } Here my connection time out , how to check socket connection , what is wrong entry here plz confirm 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
Re: [android-developers] Re: Multiple APK support - Who's tried it?
On Wed, Aug 10, 2011 at 4:31 PM, String sterling.ud...@googlemail.com wrote: If they're priced differently, what do you do in the case where a user has bought your app for their phone, then gets a tablet? The infrastructure would need to support incremental purchases - and wouldn't THAT bring idiot users out of the woodwork. You know, the ones who already blame you for the Market's vagaries. It does sort of support incremental purchases through in-app billing. You could have an 'upgrade to tablet' item, and when they buy it, let them download the tablet APK. However, the developer console supports targeting by device, screen size, etc. only, not by purchased items, so not really doable. In any case, if you have two different packages already, you could release a separate 'for tablets' version with a higher price tag. You'll lose ratings, etc., but I've heard that a lot of App Store devs are going this way for iPad apps. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Socket connection android issue
You mean that this line: Socket socket = new Socket(serverAddr, SERVERPORT); throws an io exception? Did you set INTERNET permission in your manifest file? Maybe your pc's firewall blocks the connection. On 10 August 2011 09:34, N K Shrivastva kumarnaveen.si...@gmail.com wrote: Hi i want tcp-socket connection for connection with socket and take response back: public static String SERVERIP = 192.168.0.127; // designate a port public static final int SERVERPORT = 5675; private void connectSocket() { // TODO Auto-generated method stub try { InetAddress serverAddr = InetAddress.getByName(SERVERIP);// 10.66.3.44 is my pc' IP Log.d(TCP, C: Connecting...); Socket socket = new Socket(serverAddr, SERVERPORT); String message = Hello from Client android emulator; try { Log.d(TCP, C: Sending: ' + message + '); PrintWriter out = new PrintWriter( new BufferedWriter( new OutputStreamWriter(socket.getOutputStream())),true); out.println(message); Log.d(TCP, C: Sent.); Log.d(TCP, C: Done.); } catch(Exception e) { Log.e(TCP, S: Error, e); } finally { socket.close(); } } catch (UnknownHostException e) { // TODO Auto-generated catch block Log.e(TCP, C: UnknownHostException, e); e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block Log.e(TCP, C: IOException, e); e.printStackTrace(); } } Here my connection time out , how to check socket connection , what is wrong entry here plz confirm 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SQLite access permission denied
Hi all; one of my project i want to use sqlite database.I try this code (http://abisogullari.tumblr.com/post/1357225938/android-sqlite- example) ok it works.And then i want to look at data which insert in.i use cmd prompt and then try this( bash-3.1$ /usr/local/android-sdk-linux/tools/adb devices List of devices attached emulator-5554 device bash-3.1$ /usr/local/android-sdk-linux/tools/adb -s emulator-5554 shell # ls /data/data/higherpass.TestingData/databases) it give permission denied and it is not listed databases.For one databases it listed but when i add one more it gives me error. Can anybody know that? THX. Duygu Kahraman http://tr.linkedin.com/in/duygukahramann -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 the same Image in the different Position duing the a period of time
Hi, all : I want to display the same Image in the different Position duing the a period of time. How can I do ? Is there any example code? Thanks. BR, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Socket connection android issue
i have already assigned this permission... On Wed, Aug 10, 2011 at 1:23 PM, Gergely Juhász jg.sv...@gmail.com wrote: You mean that this line: Socket socket = new Socket(serverAddr, SERVERPORT); throws an io exception? Did you set INTERNET permission in your manifest file? Maybe your pc's firewall blocks the connection. On 10 August 2011 09:34, N K Shrivastva kumarnaveen.si...@gmail.comwrote: Hi i want tcp-socket connection for connection with socket and take response back: public static String SERVERIP = 192.168.0.127; // designate a port public static final int SERVERPORT = 5675; private void connectSocket() { // TODO Auto-generated method stub try { InetAddress serverAddr = InetAddress.getByName(SERVERIP);// 10.66.3.44 is my pc' IP Log.d(TCP, C: Connecting...); Socket socket = new Socket(serverAddr, SERVERPORT); String message = Hello from Client android emulator; try { Log.d(TCP, C: Sending: ' + message + '); PrintWriter out = new PrintWriter( new BufferedWriter( new OutputStreamWriter(socket.getOutputStream())),true); out.println(message); Log.d(TCP, C: Sent.); Log.d(TCP, C: Done.); } catch(Exception e) { Log.e(TCP, S: Error, e); } finally { socket.close(); } } catch (UnknownHostException e) { // TODO Auto-generated catch block Log.e(TCP, C: UnknownHostException, e); e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block Log.e(TCP, C: IOException, e); e.printStackTrace(); } } Here my connection time out , how to check socket connection , what is wrong entry here plz confirm 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] DroidUX UX/UI component library for Android
Hi all, We just want to introduce you to the DroidUX(tm), the first professional UI/UX component library for Android. DroidUX helps you build high quality and beautiful user interface fast and easy. Building UI conforming to the Android design pattern is just a snap. In few lines of code you will have your application up and running with the Action Bar, Dashboard, and Quick Actions widgets. To deliver more exciting and high end user experience, you can use the GalleryFlow, Wheel, Editor, and other widgets that are designed and implemented with high quality codes for beauty and performance. Using DroidUX widgets is no different than the stock widgets. You can use them via xml layout or use it programmatically with your codes. The difference is that using DroidUX component library, your complex UI becomes so simple to implement. You don't need to reinvent the wheel. We do the dirty things, you just plug them into your apps, and boost the usability and performance of your apps, making your apps stand above the fray. Take your app to the next level. Deliver high end mobile experience using the DroidUX(tm) UI/UX component library. To see the DroidUX widgets in action, download the DroidUX API Demo app in Android Market at https://market.android.com/details?id=com.droidux.components.demofeature=search_result To download the FREE trial packs, please visit our website at http://www.droidux.com. Happy developing !!! DroidUX DevTeam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 in section
On Aug 10, 11:50 am, John Coryat cor...@gmail.com wrote: Even if you can get traffic for being new, its only momentary. But it's a start There was a huge negative side effect of that just in category. Developers would make an update every week for no other reason than to appear at the top of that list. As a result, users tended to ignore the fact that an update was available. This user attitude is now a problem for legitimate updates. Hopefully, by eliminating the advantage of posting an update solely for the purpose of gaming the just in category, people will start to actually download the update when it becomes available and finally get over this attitude problem. I'm very glad to see that category gone. If it ever does come back, I hope it really is for new apps only. That would make a lot more sense to the users and keep developers away from playing that silly game. And cause developers to play a sillier game. Instead of the developer of Hot Korean pole dancers wallpaper issuing an update to get on the list, they will republish it as new app - Hot Korean pole dancing wallpaper. This will not only pollute the New apps category, it will add huge numbers of redundant apps to the normal market. It is a fact of life that the just In category gave new apps the kickstart which allowed them to gather a few ratings and a bit of profile. It is fine to say that there should be more targetted advertising outside of the market, in places where people who might need your app will find it. Where would you do that for a LWP which shows pretty patterns (as many of them do)? If the Market was working properly, and connecting prospective purchasers with sellers (the purpose of a market), then we wouldn't be discussing how to overcome its obvious limitations. It is interesting to compare Apple's and Google's approaches. Apple (and Amazon) enforce minimum quality standards on apps. Google does not. Because of this, the Android Market gets flooded with a lot of crap. Well, Android now has more (free) apps than Apple, and has certainly achieved critical mass. But this quantity has been at the expense of average quality. So, if 100,000 apps are released a year, how to you structure a market so that users find good new apps, and good app developers make money? The most obvious thing to do is reduce the number of new apps by not allowing crap to be uploaded. Just disallowing apps that manifestly break copyright law would be a good start. No, you cannot show film loops from movies, use cartoon, game or other characters created by other people, use sporting team logos, or use other peoples music or sounds without permission. Android apps should not be little more than web links. Enforce these rules, and in the LWP category would probably get half as many new apps, doubling opportunities for legitimate independent developers. Of the rest, 50% are knock-offs of existing apps, 40% of ther rest are just garbage. Enforce those rules, and the Just In category will work for everybody, devs and users, even if it includes updates. The cost of having somebody spend 5 minutes checking this basic stuff for all new apps would be less than $10 ph; levy a fee of $10 for every new app uploaded. Google are also fooling themselves if they think that the comments and ratings system accurately informs purchasers. In my category of wallpapers, I get a large number of 1 star ratings from users who claim it did not install, when in fact they just don't know where to find LWPs, despite me providing instructions. (Surprising, because I am well down the list, and I can't imagine that mine is the first LWP they have unsuccessfully tried to run ..). More commonly, they bitch about some feature being missing when it isn't, or just miss the point. My suggestion: Google uses anonymous reviewers, analogous to peer review. They would need about 1,000 volunteers. Each of these is asked to review on average one new app a day, and each app is reviewed by 3 volunteers completely independently. Nobody knows who the reviewers are. So that's 250 per volunteer per year, 250,000 reviews, each new app is reviewed 3 times, that's 83,000 new apps a year. These reviews are available as a seperate tab in the Market. I doubt that Google would have much trouble finding 1,000 volunteers, purely for the interest and on-line glory (albeit under a psuedonym). If any of the panel reveal their identity, or misbehave in any way, their reviews are expunged from the database. Having three reviewers each acting completely anonymously would allow systemic differences in scoring, or fraud, or competence to be detected automatically. Setting all this up shouild be quite easy; a new tab on the market for Our user panel said:, a bit of database programming to send each app to 3 active reviewers in that market category, and a bit of open source/cloudsourcing blah buzz to motivate reviewers. As a review system it could run entirely in parallel with what is done now
[android-developers] ActionBar in TabActivity
Hi, I have a TabActivity and I would like to add tabs to the ActionBar in the Honeycomb+ devices. I'm not sure how to have a TabActivity for pre Honeycomb and yet use a FragmentActivity at the same time to access the actionbar. Has anyone know how to get around this issue? Regards, Julius. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Socket connection android issue
On Wed, Aug 10, 2011 at 2:06 PM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: i have already assigned this permission... On Wed, Aug 10, 2011 at 1:23 PM, Gergely Juhász jg.sv...@gmail.comwrote: You mean that this line: Socket socket = new Socket(serverAddr, SERVERPORT); throws an io exception? Did you set INTERNET permission in your manifest file? Maybe your pc's firewall blocks the connection. On 10 August 2011 09:34, N K Shrivastva kumarnaveen.si...@gmail.comwrote: Hi i want tcp-socket connection for connection with socket and take response back: public static String SERVERIP = 192.168.0.127; // designate a port public static final int SERVERPORT = 5675; private void connectSocket() { // TODO Auto-generated method stub try { InetAddress serverAddr = InetAddress.getByName(SERVERIP);// 10.66.3.44 is my pc' IP Log.d(TCP, C: Connecting...); Socket socket = new Socket(serverAddr, SERVERPORT); String message = Hello from Client android emulator; try { Log.d(TCP, C: Sending: ' + message + '); PrintWriter out = new PrintWriter( new BufferedWriter( new OutputStreamWriter(socket.getOutputStream())),true); out.println(message); Log.d(TCP, C: Sent.); Log.d(TCP, C: Done.); } catch(Exception e) { Log.e(TCP, S: Error, e); } finally { socket.close(); } } catch (UnknownHostException e) { // TODO Auto-generated catch block Log.e(TCP, C: UnknownHostException, e); e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block Log.e(TCP, C: IOException, e); e.printStackTrace(); } } Here my connection time out , how to check socket connection , what is wrong entry here plz confirm 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en What resign socket time 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] ActionBar in TabActivity
Oops just saw the updated documentation for how to do tabs here: http://developer.android.com/reference/android/app/TabActivity.html Will give that a go. On 10/08/2011, at 9:00 PM, Julius Spencer wrote: Hi, I have a TabActivity and I would like to add tabs to the ActionBar in the Honeycomb+ devices. I'm not sure how to have a TabActivity for pre Honeycomb and yet use a FragmentActivity at the same time to access the actionbar. Has anyone know how to get around this issue? Regards, Julius. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ActionBar in TabActivity
You may also wish to consider Action Bar Sherlock, which allows you to have an action bar (and tabs in the action bar, a la Honeycomb) on phones. On Wed, Aug 10, 2011 at 5:06 AM, Julius Spencer jul...@msa.co.nz wrote: Oops just saw the updated documentation for how to do tabs here: http://developer.android.com/reference/android/app/TabActivity.html Will give that a go. On 10/08/2011, at 9:00 PM, Julius Spencer wrote: Hi, I have a TabActivity and I would like to add tabs to the ActionBar in the Honeycomb+ devices. I'm not sure how to have a TabActivity for pre Honeycomb and yet use a FragmentActivity at the same time to access the actionbar. Has anyone know how to get around this issue? Regards, Julius. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Speedometer Development - Help Needed
Hi, I need to integrate a speedometer type widget or graphic item where I want to display the data packets coming from the network in a meter type image. I don't know anything about the graphics on android or how to do the animation. Guide me through on how to achieve this in some quick time. Any already written code that can help on the similar lines will help a lot thanks in advance... Thanks, Rikki -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 could I disable all the over scroll effect in my app?
the blue shadow over scroll effect looks really ugly in our app. Is there a way to disable all the over scroll effect? you know there are lots of ScrollView and Lists in it... that would be a shame if i have to disable it in every widget that can scroll... thx~ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: pass hashtable from one activity to another activity
thanks worked for me On Aug 9, 7:25 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Use a Bundle instead of a Map (HashMap/Hashtable). *Bundle bundle = new Bundle();* *...* *... // copy contents of hash map into bundle * *...* *intent.putExtra(myhashmap, bundle);* *...* In other activity: ** *Bundle bundle = intent.getBundleExtra(myhashmap);* *...* But Mark has some good advice. If your hash map is substantially large, you may want to use some other model (database and such). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] key from value in hash table
Hi is it there any way to retrive key from value in hashtable? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to disable first screen after execute first time
pls anyone help me. i use shared preference but i can't get it... -- ~* Regards* *GopalaKrishnan D* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to disable first screen after execute first time
Store a boolean in SharedPreferences. On Wed, Aug 10, 2011 at 6:11 PM, GopalaKrishnan D gopall...@gmail.comwrote: pls anyone help me. i use shared preference but i can't get it... -- ~* Regards* *GopalaKrishnan D* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Best Way to Retireve, Display and Use 2 Values in a ListView from a JSON Array?
I have been able to retrieve one value from a MySQL database, display it in a ListView and use that value in a setOnItemClickListener method. Now I would like to retrieve two values, one that will be displayed in the ListView that makes sense to the user and a second one that will be used as to launch another operation when the item is selected in the ListView. I have found an example that extends the base adapter that looks like it will allow me to do this, but I was wondering if there was a easier way using the default functionality of the ListAdapter to accomplish what I want. 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] display the same Image in the different Position duing the a period of time
On Wed, Aug 10, 2011 at 3:05 AM, mark2011 androidmark2...@gmail.com wrote: I want to display the same Image in the different Position duing the a period of time. Look up Animation in the Android documentation - specifically Translation. How can I do ? Is there any example code? Probably, if you look hard enough. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to disable first screen after execute first time
after that how i fetch the value. and where i want to fetch... -- ~* Regards* *GopalaKrishnan D* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Multiple APK support - Who's tried it?
On 9 Aug., 16:59, b0b pujos.mich...@gmail.com wrote: I have not tried multiple APK support but IMHO it is much trouble for what it's worth. It is much more simple to have a universal APK, even if size is bigger. Where it works, you're right. But show me how to support Android 1.5 (or even earlier) and Honeycomb features (Action Bar, Fragments, ...) in one apk without going insane with reflection, different classes, and so on. And so far, there are still about as many 1.5 devices out there as Honeycomb tablets. (Which tells a sad story about both update politics and Android tablets, but that's another story that doesn't belong here...) It could be useful if it allowed to have a BETA version of an app alongside a STABLE version. This would be nice, too. But it would require a choice by the user, while the current support is to allow the same app for different configurations. The current system doesn't make it easy to have a once stable version going beta for some period. You could still use a different package. But of course this wouldn't show troubles created by updates (like old/migrated preferences or databases). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] key from value in hash table
On Wed, Aug 10, 2011 at 7:19 AM, sktniran sktniranjanad...@gmail.comwrote: is it there any way to retrive key from value in hashtable? Assuming the value is unique, walk the list by key until your find the value you're looking for. Obviously, this is slow and not how a hashtable is meant to be used. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Multiple APK support - Who's tried it?
On Wed, Aug 10, 2011 at 9:15 AM, mort m...@sto-helit.de wrote: But show me how to support Android 1.5 (or even earlier) and Honeycomb features (Action Bar, Fragments, ...) in one apk without going insane with reflection, different classes, and so on. Ignore Android 1.5 for new development. Use the Android Compatibility Library for fragments. If you stick with just toolbar buttons and the standard options menu, the action bar is completely backwards compatible without any version-specific Java code. Use the multiple APK support to ship your current 1.5-compatible APK as-is to 1.5 devices. And so far, there are still about as many 1.5 devices out there as Honeycomb tablets However, there are more Honeycomb tablets being sold today than new 1.5 devices, and there will be a slight uptick in Honeycomb once the oft-delayed Android Market support for Google TV arrives. As a result, 1.5 is trending downward and will probably fall below 1% in the next 4-6 weeks. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] key from value in hash table
On Wed, Aug 10, 2011 at 10:19 AM, TreKing treking...@gmail.com wrote: On Wed, Aug 10, 2011 at 7:19 AM, sktniran sktniranjanad...@gmail.comwrote: is it there any way to retrive key from value in hashtable? Assuming the value is unique... ... you can build another map and keep both synchronized -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Connection refused: connect socket
Trying this code for socket interface ObjectOutputStream oos = null; ObjectInputStream ois = null; Socket socket = null; Date date = null; try { // open a socket connection socket = new Socket(192.168.0.127, 5675); // open I/O streams for objects oos = new ObjectOutputStream(socket.getOutputStream()); ois = new ObjectInputStream(socket.getInputStream()); // read an object from the server date = (Date) ois.readObject(); System.out.print(The date is: + date); oos.close(); ois.close(); } catch(Exception e) { System.out.println(e.getMessage()); } error: Connection refused: connect -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] key from value in hash table
On 10 August 2011 14:19, TreKing treking...@gmail.com wrote: On Wed, Aug 10, 2011 at 7:19 AM, sktniran sktniranjanad...@gmail.com wrote: is it there any way to retrive key from value in hashtable? Assuming the value is unique, walk the list by key until your find the value you're looking for. Obviously, this is slow and not how a hashtable is meant to be used. Alternatively you could use Google collections and their BiMapK,V: http://guava-libraries.googlecode.com/svn/tags/release09/javadoc/com/google/common/collect/BiMap.html ...or implement the class yourself, using 2 Hashtables, 1 for each retrieve direction Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to disable first screen after execute first time
http://developer.android.com/guide/topics/data/data-storage.html#pref On Wed, Aug 10, 2011 at 6:40 PM, GopalaKrishnan D gopall...@gmail.comwrote: after that how i fetch the value. and where i want to fetch... -- ~* Regards* *GopalaKrishnan D* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how best to access string resources from AsyncTask.doInBackground
Renaming helps sometimes to prevent such accidents, for instance if you know the task should always be created from an activity you can do like this: *public class MyAsyncTask extends AsyncTask... {* * private Context appContext;* * * public MyAsyncTask(Activity activity) {* *appContext = activity.getApplicationContext();* * }* * ...* *}* On 10 Aug, 05:02, Zsolt Vasvari zvasv...@gmail.com wrote: Yeah, this is what I do and works fine, though I hate it that I cannot declare the member variable as an ApplicationContext and instead having to declare it as a Context. The reason I hate this is that I cannot provide a compile time checking so that I don't accidentally hold onto the the Activity context. I think ApplicationContext should have been a base interface and Context should have just extended that. On Aug 9, 10:28 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Instead of holding on to the Activity in the AsyncTask, just hold on to its application-context: *public class MyAsyncTask extends AsyncTask... {* * private Context context;* * * * public MyAsyncTask(Context context) {* * this.context = context.getApplicationContext();* * }* * ...* *}* If you use the passed context just to get strings and such from the resource-manager, this should work 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] Connection refused: connect socket
Trying this code for socket interface ObjectOutputStream oos = null; ObjectInputStream ois = null; Socket socket = null; Date date = null; try { // open a socket connection socket = new Socket(192.168.0.127, 5675); // open I/O streams for objects oos = new ObjectOutputStream(socket.getOutputStream()); ois = new ObjectInputStream(socket.getInputStream()); // read an object from the server date = (Date) ois.readObject(); System.out.print(The date is: + date); oos.close(); ois.close(); } catch(Exception e) { System.out.println(e.getMessage()); } error: Connection refused: connect java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.init(Unknown Source) at java.net.Socket.init(Unknown Source) at connection.run(connection.java:65) at connection.main(connection.java:117) Exception in thread main java.lang.NullPointerException at connection.run(connection.java:94) at connection.main(connection.java:117) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Connection refused: connect socket
On Wed, Aug 10, 2011 at 11:21 AM, N K Shrivastva kumarnaveen.si...@gmail.com wrote: Exception in thread main java.lang.NullPointerException at connection.run(connection.java:94) Check the connection class, specially the line 94 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how best to access string resources from AsyncTask.doInBackground
On Wed, Aug 10, 2011 at 11:15 PM, nadam a...@anyro.se wrote: Renaming helps sometimes to prevent such accidents, for instance if you know the task should always be created from an activity you can do like this: Or have your constructor accept Application which is a Context. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: enableForegroundNdefPush not working
Check out the sticky notes example at https://nfc.android.com On 9 Aug, 03:46, musfiq musfiqu...@gmail.com wrote: Hi: I am trying to share a string between mobile phones using NFC. I want the same application to send the tag and another to receive the tag in two different role (Sender and receiver). I have tried to use enableForegroundNdefPush in the sender side and enableForegroundDispatch in the receiver side. But it is not working. Can anyone please help? /Musfiq -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Click an item in GridView programmatically
Hello all, I have a problem with GridView. What I want to do is click on an item in the GridView programmatically, i.e. without any need to click on it by user. I know that performClick() is the function to do so. But, how to use it with GridView? Because, I want to click on a specific item in that gridview, not an entire gridView. Please help. - Regards, Rajkiran Bande. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Test Project Question
This answer may get you started: http://stackoverflow.com/questions/6961754/how-to-call-button-performclick-in-android-junit-test-case/6963033#6963033 On Aug 9, 6:09 pm, Ab Caballero a...@mac.com wrote: I want to test that when a button is pressed, that it always does the work it is supposed to do, in this case, start a service. Are there any built-in methods for a button press? I have looked through the documentation and seen a lot of stuff on spinners but not a whole lot on buttons. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Styling Honeycomb EditText's when inputType is specified
Ok, I've just noticed some oddities with honeycomb ui... and am sure its something I am missing... and hoping someone here has the answer. You know how in holo theme, the edittexts look diff depending on the inputType? Eg, if inputType=number, theres the bottom border, but no top etc. I am re-theming the edittext control, as the holo.dark edittext theme makes it very difficult to realize you are looking at a set of input fields. I am following this tut: http://www.androidworks.com/changing-the-android-edittext-ui-widget And honestly everything generally works pretty well (I dont use 9-patches, but rather shapedrawables). In any place I have inputStyle specified, the edittext doesnt take the style. I assume that honeycomb / theming system supports it as the holo dark theme absolutely styles the inputs differently... but I havent been able to figure it out. I've looked at honeycomb styles.xml and themes.xml, as well as the corresponding statelistdrawables, but have been unable to make it happen, and I'd prefer not to have to find every edittext and specify padding/background etc. Appreciate any pointers! Regards, Weston Weems -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Click an item in GridView programmatically
On Wed, Aug 10, 2011 at 9:42 AM, Raj bande.rajki...@gmail.com wrote: But, how to use it with GridView? Because, I want to click on a specific item in that gridview, not an entire gridView. Read the GridView docs. Looks like you can set the selected item and you can get the selected item. You can then call peformClick() on the selected item. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: What is the right way to get updates from REST service by timer in Android?
...and possibly AlarmManager http://developer.android.com/reference/android/app/AlarmManager.html On 10 Aug, 08:32, Miguel Morales therevolti...@gmail.com wrote: You may want to use a service:http://developer.android.com/guide/topics/fundamentals/services.html On Tue, Aug 9, 2011 at 9:26 PM, Alexey Zakharov alexey.v.zaha...@gmail.com wrote: UPDATE: I need to receive updates even if user has switched to another application or receive a call. UI also should be updated. So when user switch back to the application he should see updated view. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://solrpg.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 access permission denied
what are you actually trying to achieve? The normal process would be to either create the database in code, or include it in the APK. In both cases the permissions are being taken care of. What's the point in your attempt to work with the database through adb? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] connecting USB serial device to Android handset, is it possible?
Hi. I have simple USB interface (acting like serial port, basen on FTDI FT245RL chip). It works on windows like COM port. Is it possible to connect it to Android Phone (like HTC Desire) and read/write values from this port ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Speedometer Development - Help Needed
Here's a good start http://developer.android.com/guide/topics/graphics/2d-graphics.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to play audio file from sd card ?
You can read about it here http://developer.android.com/guide/index.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: connecting USB serial device to Android handset, is it possible?
this may help http://developer.android.com/guide/topics/usb/host.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Click an item in GridView programmatically
Hey thanks TreKing, I found one method, mGridView.performItemClick(view,position,id); It is calling the onItemClick method successfully. But the only thing is I have changed the image of that item on click of it, through XML, which is not happening if I click on that item programmatically. I think, trying to change the image programmatically will do the task. On Wed, Aug 10, 2011 at 8:17 PM, TreKing treking...@gmail.com wrote: On Wed, Aug 10, 2011 at 9:42 AM, Raj bande.rajki...@gmail.com wrote: But, how to use it with GridView? Because, I want to click on a specific item in that gridview, not an entire gridView. Read the GridView docs. Looks like you can set the selected item and you can get the selected item. You can then call peformClick() on the selected item. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Rajkiran Bande. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Multiple APK support - Who's tried it?
On Aug 10, 3:15 pm, mort m...@sto-helit.de wrote: On 9 Aug., 16:59, b0b pujos.mich...@gmail.com wrote: Where it works, you're right. But show me how to support Android 1.5 (or even earlier) and Honeycomb features (Action Bar, Fragments, ...) in one apk without going insane with reflection, different classes, and so on. And so far, there are still about as many 1.5 devices out there as Honeycomb tablets. (Which tells a sad story about both update politics and Android tablets, but that's another story that doesn't belong here...) As said by Mark, you can ignore anything below Android 2.1 as it is irrelevant. Android 2.1 is decling very fast an will be almost irrelevant in 6 months. Tablet usage is on the rise. For the app I'm working on which supports Honeycomb since 1 month or so, about 16-20% of my users are running Honeycomb, half of thme using an Asus Transformer. If you support android 2.0+ you rarely need reflection. You can use conditional execution of code instead: if(android.os.Build.VERSION.SDK_INT = android.os.Build.VERSION_CODES.GINGERBREAD) { // GINGERBREAD+ API calls valid here list.setOverScrollMode(OVER_SCROLL_ALWAYS); } ActionBar compatibility on 2.x can be achieved with the great ActionBarSherlock. Anyway, making an app working on 2.1+ and having specific Honeycomb support (action bar, multipane display, ...) is a *lot* of work. It could be useful if it allowed to have a BETA version of an app alongside a STABLE version. This would be nice, too. But it would require a choice by the user, while the current support is to allow the same app for different configurations. Indeed it would have serious complications for Google to implement. That's why it probably won't happen ever. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] WebView Scaling behavior vs UIWebView in iOS
I am having some difficulty getting the Android WebView object to properly scale my content. In iOS, the UIWebView object has a scalesPagesToFit property which automatically scales content to fit the boundaries of the UIWebView. In my case, the content contains a number of absolutely sized/positioned items. I am easily able to re- size the UIWebView in code, and as long as the aspect ratio is the same as the body element of the html, the content is properly scaled to fit perfectly. On Android, this is proving to be much more difficult. I have tried to manually set the WebView's initialScale, which works at first. However, since the layout automatically changes the position/size of the WebView, the scale gets changed by itself to a value I don't want (as observed in the onScaleChanged event). Once this happens, I am trying to manually change initialScale to my desired value, but it doesn't trigger a change on the WebView. The appearance does not change, and the onScaleChanged event is not fired. I thought perhaps setting user-scalable to false would stop the automatic scaling done by the WebView, which it does seem to do, but it also prevents me from manually changing the scale myself. Any advice would be extremely helpful, I've been at this for a while. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Location Update every 30 seconds
If I determine the phone is active by reading the accelerometer, I want to update the location of the phone every 30 seconds. If after a while, I determine it's not moving, I stop the location updates. Is it better to leave a LocationListener on during that time, or is it better to register a LocationListener every 30 seconds, get an update, and unregister? For both methods, I would timeout after a while if I can't get a location update. I want to know which method is better in terms of both getting consistent updates and battery life. And I'm trying to get updates through GPS satellites, not network, even though I know network is faster and less battery consuming, but I need to get it through satellites. Please keep that in mind. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: connecting USB serial device to Android handset, is it possible?
On Wednesday, August 10, 2011 10:55:14 AM UTC-4, razor wrote: Hi. I have simple USB interface (acting like serial port, basen on FTDI FT245RL chip). It works on windows like COM port. Is it possible to connect it to Android Phone (like HTC Desire) and read/write values from this port ? Possibly, by rooting the phone to install additional kernel drivers and rigging up an external VBUS supply for the device; at least that has been possibly on several previous HTC models going back to the G1. The Honeycomb-and-later (optional) official android methods would not apply since there aren't yet phone versions of that released. It's not clear if the case of host-capable-logic incapable of supplying VBUS (ie, most of the somewhat capable phones out there) would ever be officially supported. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Location Update every 30 seconds
I can't really help you with your main problem but you might want to watch out for this. The phone can and cannot be in use even when the accelerometer is moving fast or not moving. Example 1: The user is walking with the phone in his pocket. Creates a sizable amount of movement but phone is not really in use. Example 2: The user is walking while texting. Sizable amount of movement plus activity. Example 3: Device is on the table and not in use. No movement plus no activity. Example 4: User is sitting and texting. Not s lot of movement but has activity. You might want to rethink your app now. Thanks On Wed, Aug 10, 2011 at 9:21 PM, Hank hwang...@gmail.com wrote: If I determine the phone is active by reading the accelerometer, I want to update the location of the phone every 30 seconds. If after a while, I determine it's not moving, I stop the location updates. Is it better to leave a LocationListener on during that time, or is it better to register a LocationListener every 30 seconds, get an update, and unregister? For both methods, I would timeout after a while if I can't get a location update. I want to know which method is better in terms of both getting consistent updates and battery life. And I'm trying to get updates through GPS satellites, not network, even though I know network is faster and less battery consuming, but I need to get it through satellites. Please keep that in mind. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Just in section
On Aug 10, 1:42 am, Peter Webb r.peter.w...@gmail.com wrote: The most obvious thing to do is reduce the number of new apps by not allowing crap to be uploaded. I'm in agreement in principle here, though I'm not from Google so that Ohh, and BTW, some talk here about the significance of the app name. I can report that on the day I changed the name of my free LWP to a name which I thought was slightly better (and did nothing else), downloads went from 200/day to 600/day and stayed there. Something this trivial shouldn't make this much difference. Here you've lost me. Would you rather go back to 200/day? Shouldn't you be rewarded for your marketing genius in choosing that better title? The same thing could happen if you changed the title of a web page. Better titles can cause people to download more readily. Better titles can match the words that people are searching for. Neither of these are the Market's fault. Or did you mean that the title is overweighted in keyword search in recent months? Because I am with you there. I've lost a huge amount of traffic from search in the last month, and would like to be able to appear for relevant search terms without changing the title (not practical for me). Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Multiple APK support - Who's tried it?
On Wed, Aug 10, 2011 at 10:38 AM, b0b pujos.mich...@gmail.com wrote: As said by Mark, you can ignore anything below Android 2.1 as it is irrelevant. Mark said: Ignore Android 1.5 for new development. Key word new. http://developer.android.com/resources/dashboard/platform-versions.html 1.5 + 1.6 = 3.3% 3.0+ = 1.3% Obviously the former will eventually die out and the latter will grow, but for *now* , if you already have an app, ignoring the larger base seems silly, IMO. Android 2.1 is decling very fast an will be almost irrelevant in 6 months. Do you have stats to back that up? http://developer.android.com/resources/dashboard/platform-versions.html 15.2% - that's a fairly decent chunk and given phones usually run on 2-year contracts and carriers suck at keeping phones up to date, I doubt that will drop to irrelevant levels in just 6 months. Tablet usage is on the rise. For the app I'm working on which supports Honeycomb since 1 month or so, about 16-20% of my users are running Honeycomb, half of thme using an Asus Transformer. I have not done anything tablet-specific, but my app is running on twice the number 1.5 devices and thrice the number of 1.6 devices as 3.0. YMMV. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Patent Infringement notice by Lodsys.
This appeared today in MacWorld: http://www.macworld.com/article/161667/2011/08/wolfram_lodsys_patent.html -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Location Update every 30 seconds
Example 5: User is on a telecon with a Bluetooth earpiece. In-call, but phone is probably sitting on a desk. On Wed, Aug 10, 2011 at 11:03 AM, Appaholics raghavs...@appaholics.in wrote: I can't really help you with your main problem but you might want to watch out for this. The phone can and cannot be in use even when the accelerometer is moving fast or not moving. Example 1: The user is walking with the phone in his pocket. Creates a sizable amount of movement but phone is not really in use. Example 2: The user is walking while texting. Sizable amount of movement plus activity. Example 3: Device is on the table and not in use. No movement plus no activity. Example 4: User is sitting and texting. Not s lot of movement but has activity. You might want to rethink your app now. Thanks On Wed, Aug 10, 2011 at 9:21 PM, Hank hwang...@gmail.com wrote: If I determine the phone is active by reading the accelerometer, I want to update the location of the phone every 30 seconds. If after a while, I determine it's not moving, I stop the location updates. Is it better to leave a LocationListener on during that time, or is it better to register a LocationListener every 30 seconds, get an update, and unregister? For both methods, I would timeout after a while if I can't get a location update. I want to know which method is better in terms of both getting consistent updates and battery life. And I'm trying to get updates through GPS satellites, not network, even though I know network is faster and less battery consuming, but I need to get it through satellites. Please keep that in mind. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Bill Gatliff b...@billgatliff.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: Multiple APK support - Who's tried it?
On Aug 10, 6:18 pm, TreKing treking...@gmail.com wrote: On Wed, Aug 10, 2011 at 10:38 AM, b0b pujos.mich...@gmail.com wrote: As said by Mark, you can ignore anything below Android 2.1 as it is irrelevant. Mark said: Ignore Android 1.5 for new development. Key word new. Of course for *new* apps. Unless you're tired of supporting 1.x Android 2.1 is decling very fast an will be almost irrelevant in 6 months. Do you have stats to back that up? Not really except stat numbrs for my app (see below) http://developer.android.com/resources/dashboard/platform-versions.html 15.2% - that's a fairly decent chunk and given phones usually run on 2-year contracts and carriers suck at keeping phones up to date, I doubt that will drop to irrelevant levels in just 6 months. I have not done anything tablet-specific, but my app is running on twice the number 1.5 devices and thrice the number of 1.6 devices as 3.0. YMMV. As you said YMMV. My 2.1+ app has only 4.8% users running 2.1 (I don't think the stat console tracks 2.1.1 so it may be add a few more % on 2.1.x). Gingerbread users % is getting near Froyo's. But it really depends on the app. My audience is somewhat more tech savy than the norm and thus more likely to have recent Android. Also adapting an app to Honeycomb will bring users as they are starved for HC specific apps. There's not that much competition (yet). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help me!!!
Hello, I'm trying to find a way to rotate a View, or (more conveniently) an entire layout, upside down and have it stay that way. I found the rotation and animation classes in the SDK, and these come close to what I want, but at the end of the animation I want my Layout to stay rotated; repeating the animation or just flipping back right- side-up doesn't help me with my app unfortunately. The only thing I can think of so far would be to find the source code for the rotate class, and override it such that the ...and then flip it back around to be right-side-up code never happens. I'm not sure exactly where I'd find the original rotate code for reference if I were to do something that extensive however. I've found references online to the full android source - is that basically what I'd be looking at downloading to be able to attempt something like this? Am I missing a simple option on the rotation that would let it just stay put after I rotate it? Any help would be very much appreciated! 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] how to change color of list view item's component
Dear experts, I have a list view with two items in each row(one below another). I have changed the background white and its focus-selection color but my requirement is as follows There are two items(both textviews) in each list item(one below other) Upper textview's color is orange and lower textview's color is blue ,but both textview's background colour is white. Now I want to reverse the color with background color on focus It means selected list item's upper textcolor will be of white color and its background color will be of orange. and lower textview's color will be of white and its background will be of blue whenever the list item's get focus. The list view has a separate xml file which is as follows ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_height=?android:attr/listPreferredItemHeight android:layout_width=fill_parent android:orientation=vertical android:background=@android:color/white TextView android:id=@android:id/text1 android:layout_width=wrap_content android:gravity=center_vertical android:layout_height=wrap_content android:textSize=16dip android:textColor=#ffFFA500 /TextView TextView android:id=@android:id/text2 android:layout_width=wrap_content android:gravity=center_vertical android:layout_height=wrap_content android:textSize=20dip android:textColor=#ff6698FF /TextView /LinearLayout and my class implemented with ListActivity main code is as follows setListAdapter(new ArrayAdapterMatterClient(this, R.layout.matterlistlayout_listitem, matterclientlist) { @Override public View getView(int position, View convertView, ViewGroup parent) { View row; if (null == convertView) { row = mInflater.inflate(R.layout.matterlistlayout_listitem, null); } else { row = convertView; } MatterClient client = (MatterClient)matterclientlist.get(position); TextView tv = (TextView) row.findViewById(android.R.id.text1); tv.setText(client.getClientname()); TextView tv1 = (TextView) row.findViewById(android.R.id.text2); tv1.setText(client.getMattername()); client = null; return row; } }); and MatterClient code is as follows class MatterClient { String matterid; String clientid; String mattername; String clientname; String flag; /* Its getter and setter methods */ } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google maps opens up in app with the entire US map
Hi, I am creating an app that will display a map using the Google maps app on Android. The experience is however not ideal. When the app opens up Google maps, the entire US map shows up and doesn't seem to use the current location of the device. What can be done to correct this behavior ? thanks, buddy. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 implement a video decoder?
Folks, In the project that I am working on, a mpeg-4 file is encrypted and stored on the Android device. To play this file, I am thinking the best way would be to write a pseudo video decoder that simply decrypts the data on the fly and pipes it to the mpeg-4 decoder shipped with the OS. I am wondering if you can help me with the following questions. Q1. Is my approach feasible? Do you feel there is a better way to achieve on the fly decryption? Q2. Is there any example or link on how to write a video decoder for Android? Q3. How do I load the mpeg-4 decoder and pipe my output to it? Thank you in advance for your help. Regards, Peter -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] image search engine
Hi there, we are a small start up and we developed a image search engine which is very fast and it can scale, we can look for a search in a index of a few million images in less than 1 second, For a demo check this URL: http://www.quadstreaming.com/searchengine.wmv in this demo we index a video file and then we run some searches, you guys can see how the engine reacts to changes in scale in view angle. Also we have a second product that is able to find very similar images, we can do a search in a index of 400 million images on a machine that has just 4 cores and about 8 GB of ram. http://www.quadstreaming.com/twincontent.wmv If you guys are interested using this technology just drop me an email stefan.tabar...@gmail.com or ste...@quadstreaming.com Stefan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Cheap Bluetooth devices sought
Hi LMX9838 you need to add a microcontroller (PIC24F64A002 or something else) best On 8 août, 18:55, cellurl gpscru...@gmail.com wrote: Anyone know of a $10 bluetooth device that I can buy in low quantities? For example something a phone could turn on/off? I need 2 remote switches. Just on and off. There are hacking options, but that seems last resort. A: Butchering a BT-headset and sending/decoding DTMF. B: Butchering RemoteControlBluetooth cars... But I am hoping someone can point me to a super cheap BT slave device or point me to a more appropriate group. Thanks for any leads! cellurl -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Date picker
http://developer.android.com/resources/tutorials/views/hello-datepicker.html pls refer the above link On Tue, Aug 9, 2011 at 11:14 AM, nageswara rao rajana nagu.raj...@gmail.com wrote: Hi, I want to set default date for date picker. Can any one please help me. Thanking you, Nagu. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] android game development
According to me this one is a good book as far as my knowledge and it is *Addison-Wesley - Android Wireless Application Development, 2nd edition by Shane Conder, Lauren Darcey(2011)*. You can also find PDF version of that book on the internet for free. -- With warm regards,* ** Vishal Kathiriya* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem With Load IMage in sdcard
Hi, I have a web application and I want to show in a remote html page an image in this way : html body pLoad Local Image/p img src=file:///Removable/MicroSD/android_asset/LOCAL_MAPS/tiles/ 8/57/113.png / /body /html but the image does not show through native browser of Android. Can you help me with my big problem? Thanks, Vanni -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Widget starts application
Hi I am new to android dev. I am making an application associated with a widget The widget has to display some information and if the user click on it, it opens the application, which can change the config, display more things etc.. on close, the widget has to refreash its display I made a mix between the 2 examples of the SDK : ApiDemos\appwidget and the LookupActivity (wikihelper). For now, I have a widget and an application (which is launched directly on Run from eclipse), but when I install the widget and click on it, it does not launch the application. What is missing ? also how to refresh the widget contents if the application tell that. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android Date picker
try this code: change the package name. package com.start; import java.util.Calendar; import com.start.R.id; import android.app.Activity; import android.app.DatePickerDialog; import android.app.Dialog; import android.app.TimePickerDialog; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.ArrayAdapter; import android.widget.AutoCompleteTextView; import android.widget.Button; import android.widget.DatePicker; import android.widget.EditText; import android.widget.TextView; public class Register extends Activity { private TextView mDateDisplay; private Button mPickDate; private int mMonth; private int mDay; private int mYear; private TextView mTimeDisplay; private Button mPicktime; private EditText autocomplete; static final int DATE_DIALOG_ID=0; private static final String[] COUNTRIES = null; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.register); mDateDisplay = (TextView) findViewById(R.id.datedisplay); mPickDate = (Button) findViewById(R.id.pickdate); mTimeDisplay = (TextView) findViewById(R.id.timeDisplay); mPicktime = (Button) findViewById(R.id.pickTime); mPickDate.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { showDialog(DATE_DIALOG_ID); } }); Button Button = (Button)findViewById(R.id.pickTime); Button.setOnClickListener(new OnClickListener() { public void onClick(View v) { Intent intent = new Intent(Register.this,Time.class); startActivity(intent); } }); // to get the current date final Calendar c = Calendar.getInstance(); mYear = c.get(Calendar.YEAR); mMonth = c.get(Calendar.MONTH); mDay = c.get(Calendar.DAY_OF_MONTH); updateDisplay(); } private void updateDisplay() { mDateDisplay.setText( new StringBuilder() .append(mMonth + 1).append(-) .append(mDay).append(-) .append(mYear).append( )); } private DatePickerDialog.OnDateSetListener mDateSetListener = new DatePickerDialog.OnDateSetListener() { public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { mYear = year; mMonth = monthOfYear; mDay = dayOfMonth; updateDisplay(); } }; protected Dialog onCreateDialog(int id) { switch (id) { case DATE_DIALOG_ID: return new DatePickerDialog(this, mDateSetListener, mYear, mMonth, mDay); } return null; } } On Aug 9, 10:44 am, nageswara rao rajana nagu.raj...@gmail.com wrote: Hi, I want to set default date for date picker. Can any one please help me. Thanking you, Nagu. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] rotating textview
Hi, In my project i want to display a textview in vertical view (from top to bottom). I have used android.view.animation.Animation class to rotate that textview from 0 degree to 90 degree. when the screen sizes of devices are changed i cant see the entire texts from the textview.Because of that issue, I want to omit the Animation class in this project. Can we do this without using Animation? Pls give me some tips to do this. Thanks in advance. Regards, ram -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Galaxy S2 kills my app by signal 7 without stack trace.
Hi, I am developing the app which has a lot of native threads. the app is frequently killed by signal 7 on only Galaxy S2 without stack trace. And gdb can't catch the signal. Does someone have same experience? And what happen?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Website login with points report
So I'm looking to create an app that can login to an already established website that displays reward points for a rewards card. How could I go about getting started on creating one of these? I'm completely new to creating applications and this group, so i apologize if I was not supposed to post this here. I'm just looking for some simple guidance in the right direction. 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
Re: [android-developers] Re: Problem in starting Android emulator
Hello Barry, Here is an example of the start-up command line options for Eclipse: eclipse.exe -vmargs -Xms1024m -Xmx1024m -vm c:\jdk1.4.2\jre\bin\ and a link for further explanation on the options for v3.5 (Galileo): http://www.eclipse.org/eclipse/development/readme_eclipse_3.5.html#Running%20Eclipse Hope this helps, Rod Castillo On Mon, Aug 8, 2011 at 1:00 PM, 1ML barry.w.robinso...@gmail.com wrote: I know it's not much comfort but I'm having the same trouble, and I know I've solved it once before, but I can't remember how.. If anyone knows how to get at and set up the command line options for Eclipse could you reply to this please Barry 1ML Systems On Jul 28, 2:30 pm, SamShah sarmadl...@gmail.com wrote: Hej, I am having problem in setting it up and running for the first time. Each time when I try to start it it gives an error of, invalid command-line parameter: Files. Hint: use '@foo' to launch a virtual device named 'foo'. please use -help for more information I had no idea where to look for the solution? Can somebody help me please tnx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 use common baseadapter class for all listviews?
Hi, can anyone tell me how to make common base adapter class to use with different listviews? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 am getting error for checkbox
Hi , I am new to android development and i am trying to build an application. I have following issues. In the main.xml -- if i select locale as android 2.1.1 and try to drag and drop radio button then it gives me error -- failed to load btn_radio_on.png if i select locale as 2.3.3 and try to drag n drop checkbox ., i get error as -- The following classes could not be found: CheckBox. What is the cause of these errors? is something wrong with my setup ? thanks in advance. Dinesh, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 use the GPS receiver without using the internet?
You don't need an Internet connection to get the current location. You can find a sample here: http://www.vogella.de/articles/AndroidLocationAPI/article.html On Aug 7, 1:54 pm, Eden Lloyd lordzden...@gmail.com wrote: I am an newbie Android developer, and I am planning to use GPS enabled android phones to create an application that will not use internet to access the users current position, what i need to know is how to code it on eclipse. Can you share a piece of code in java that will return the longitude and latitude of the gps user without accessing it to the internet?. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] AutoCompleteTextView.isPopupShowing() is always FALSE in onClick()
AutoCompleteTextView.isPopupShowing() is always FALSE in onClick(). How can I know that AutoCompleteTextView loose foucs and AutoCompleteTextView's listview opened / closed? 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: XML Parsing Methods
SAX PARSING DOM PARSING On Aug 7, 10:40 pm, Mahesh Thallapally tmcp...@gmail.com wrote: What are the XML Parsing methods. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Serious bug in 3.2 ResolverActivity
I have the same problem on Xoom with Honeycomb 3.2 On Aug 8, 6:55 pm, webmonkey webmonke...@gmail.com wrote: In Honeycomb 3.2 when you start an intent and there are multiple activities that are capable of handling the intent the ResolverActivity is displayed but it does not show the choice menu so the user is unable to do anything. This is quite a serious bug and I have got quite a few reports about it from users who have upgraded to 3.2. I have also confirmed the behavior myself using an Asus Transformer with 3.2 and Android Movie Studio. You cannot pick any media to insert because the Gallery/ File Manager won't open. There are some solutions: - Flip the device once to portrait orientation, after that, the menu does appear. Until you reboot. - If there is only one Activity that can handle the Intent or if you have set a default Activity for the Intent, it works because the ResolverActivity does not have to display the choice Menu. - If you use createChooser the choice menu is displayed successfully. Can anyone confirm if this also happens with any of the 3.2 updates on the Xoom. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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/iPhone Developer Wanted
We are building a location aware social application using mobile devices and a server infrastructure. We have a great idea, a design, and a great start on an app. We are looking for a person with the fire and chops to help us finish the app. This is a sweat equity position with huge upside potential. If your interested and meet the qualifications below we would love to talk with you. If not, thanks for your time. We are based in PDX and we are compiling resumes and will start interviewing in the next couple of weeks. NDA required before interview. We do all our development in Java using the Eclipse IDE. Skills needed for this job: Excellent Java skills. Android mobile application development. Google App Engine including the JDO Datastore. Facebook mobile integration iPhone mobile application development is a plus. Best Regards, Mark McGinley -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Accessing com.aricent.internal.telephony.Connection from an app
Hi, I want to access this class from an application which can keep track of call connection state and have a listener created so that it gives me status whenever a call gets disconnected. Is there any way/workaround to access this class from the third party app as this is not currently accessible via public APIs? Any help is highly appreciated. Thanks, Saurabh Agarwal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can't find variable: XPathResult
Hi all I am working on android sdk 2.3.3 and am running this piece of javascript code inside Android Web view but XPathResult seems to be undefined. 08-09 10:38:16.976: ERROR/Web Console(336): ReferenceError: Can't find variable: XPathResult at file:///android_asset/parseEngine.js:65 The piece of code throwing this error is //Web-kit and FireFox Browsers else if (document.implementation document.implementation.createDocument) { var schemaPath = SCHEMA; var schemaSequence = xmlDoc.evaluate(schemaPath, xmlDoc, null, XPathResult.ANY_TYPE, null); var schemaSequenceResult = schemaSequence.iterateNext(); if I try to replace XPathResult.ANY_TYPE by 0 or 4 I get TypeError.. I have seen this issue raised on this forum but no answers, Please can somebody post a resolution or workaround if they have one.. Thanks Bhavna -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Application Development
I don't know if I undertood your question, but the way you wrote your code, it will write the source code of the page in the Log. If your intention was to open the browser to load the url, you should do it via Intent. This may help you: http://developer.android.com/guide/topics/intents/intents-filters.html http://www.androidsnippets.com/open-browser-to-web-page-url-via-intent 2011/8/9 TreKing treking...@gmail.com On Sat, Aug 6, 2011 at 3:19 AM, Lakshmi Priya lakshmi_pr...@simply-logic.com wrote: Instead of the website opening up on the android emulator the source code appears. What does the source code appears mean? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Matheus Augusto Bodo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with accessing custom attributes of a custom view/layout
Hi! I created a custom View called LabeledSpinner that consists of a TextView and a Spinnerand extends LinearLayout. I created an attrs.xml file and put the following lines into it ?xml version=1.0 encoding=utf-8? resources declare-styleable name=LabeledSpinner attr name=text format=string/ /declare-styleable /resources Here is the constructor of my LabeledSpinner: public LabeledSpinner(Context context, AttributeSet attrs){ super(context, attrs); setOrientation(HORIZONTAL); LayoutInflater.from(context).inflate(R.layout.labeled_spinner, this, true); TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.LabeledSpinner); String text = a.getString(R.styleable.LabeledSpinner_text); a.recycle(); } Here is the labeledspinner.xml merge xmlns:android=http://schemas.android.com/apk/res/android; TextView android:layout_width=wrap_content android:layout_height=wrap_content android:textSize=18sp android:gravity=center / Spinner android:background=@drawable/combobox_selector android:layout_width=wrap_content android:layout_height=wrap_content android:drawSelectorOnTop=true / /merge And finally here is the part of my main RelativeLayout that contains my LabeledSpinner: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; xmlns:randomnamespace= http://schemas.android.com/apk/res/PackageNameThatCanBeFoundInTheManifestFile android:layout_width=fill_parent android:layout_height=fill_parent PackageNameThatCanBeFoundInTheManifestFile.gui.LabeledSpinner android:id=@+alarmsettings/intervalspinner android:layout_height=fill_parent android:layout_width=wrap_content android:layout_below=@+alarmsettings/seperator1 android:layout_alignBottom=@+alarmsettings/addinterval android:layout_marginTop=1dip android:gravity=center randomnamespace:text=Hello world / /RelativeLayout I created the code using several tutorials/forums on the subject and they all stated that such code l will work but for some reason there is no text in my inner TextView. Maybe I missed something regarding the tutorials but I'm totally out of any ideas so please help me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Serious bug in 3.2 ResolverActivity
I have the same problem on Xoom with Honeycomb 3.2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to Create Panel Control in Android in Eclipse
Hi Guys, Am new in Android App.i have requirement like this i have spinner control when am selecting one item show some controls and am selecting another item previous one hide this one show in Panel control. Wch control use them how to create like tis way . Please help me.. Regards Lakshmi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.
According to this: http://www.youtube.com/watch?v=ShtWcsof3Rk it is possible. On Jul 25, 5:19 pm, RahulYD rahu...@gmail.com wrote: @Carl one of my friends is interested in buying the Xperia Mini/Xperia Mini Prohttp://www.sonyericsson.com/cws/products/mobilephones/overview/xperia...http://www.sonyericsson.com/cws/products/mobilephones/overview/xperia... will these phone support unlocking bootloader like Arc/Play/Neo? On Jul 22, 4:53 pm, Carl carl.johans...@sonyericsson.com wrote: Mills, Ryan A, Thanks for posting, no news at the moment but we hear you. We're still investigating this. As soon as we have any news, we will publish it on Developer World, http://www.sonyericsson.com/developer Regards Carl Johansson Sony Ericsson Developer World -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: GPS:Getting SHA1 instead of MD5 fingerprint, wants to get Google MAP API..
if using keytool.exe -v (jdk 1.7) then different fingerprints are provided (e.g such as MD5 etc.) example: C:\[jdk path]\bin\keytool.exe -v -list -keystore C:\Documents and Settings\Administrator.android\debug.keystore hope this helps? On 10 Jun., 18:56, Prachi pnks...@gmail.com wrote: I am getting following results: C:\Program Files\Java\jdk1.7.0\binkeytool -list -alias androiddebugkey -keystor e C:\Documents and Settings \Administrator.android\debug.keystore -storepass a ndroid -keypass android androiddebugkey, May 27, 2011, PrivateKeyEntry, Certificate fingerprint (SHA1): 20 bit Some Code But after entering this inhttp://code.google.com/android/maps-api-signup.html for getting MAP API it is showing invalid fingerprint. Can you please guide me is the fingerprint I have got is correct or not. Because I am getting it as SHA1 and not MD5. How can I get API key?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Insert StatusUpdates into an exist contact, but always insert to a wrong contact
sample contacts: _ID DISPLAY_NAME PHONE 1 contact1 2 contact2 Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode()); Cursor c = this.getContentResolver().query(uri, new String[] {Data._ID}, null, null, null); long profileId = 0; if (c.moveToFirst()) { profileId = c.getLong(0); } c.close(); c = null; final ContentValues values = new ContentValues(); if (profileId 0) { values.put(StatusUpdates.DATA_ID, profileId); values.put(StatusUpdates.STATUS, HELLO WORLD!); values.put(StatusUpdates.PROTOCOL, Im.PROTOCOL_CUSTOM); values.put(StatusUpdates.CUSTOM_PROTOCOL, CUSTOM_IM_PROTOCOL); values.put(StatusUpdates.PRESENCE, 4); // values.put(StatusUpdates.STATUS_RES_PACKAGE, this.getPackageName()); values.put(StatusUpdates.STATUS_LABEL, R.string.label); ArrayListContentProviderOperation ops = new ArrayListContentProviderOperation(); ops.add(ContentProviderOperation.newInsert(StatusUpdates.CONTENT_URI) .withValues(values).build()); try{ this.getContentResolver().applyBatch(ContactsContract.AUTHORITY, ops); } catch(RemoteException e) {Log.e...} catch(OperationApplicationException e) {Log.e...} } I'm trying to insert status to the specified contact contact2, but it doesn't work correctly, and always insert to contact1. Please help me, many 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] Insert StatusUpdates into an exist contact, but always insert to a wrong contact
sample contacts: _ID DISPLAY_NAME PHONE 1 contact1 2 contact2 Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode()); Cursor c = this.getContentResolver().query(uri, new String[] {Data._ID}, null, null, null); long profileId = 0; if (c.moveToFirst()) { profileId = c.getLong(0); } c.close(); c = null; final ContentValues values = new ContentValues(); if (profileId 0) { values.put(StatusUpdates.DATA_ID, profileId); values.put(StatusUpdates.STATUS, HELLO WORLD!); values.put(StatusUpdates.PROTOCOL, Im.PROTOCOL_CUSTOM); values.put(StatusUpdates.CUSTOM_PROTOCOL, CUSTOM_IM_PROTOCOL); values.put(StatusUpdates.PRESENCE, 4); // values.put(StatusUpdates.STATUS_RES_PACKAGE, this.getPackageName()); values.put(StatusUpdates.STATUS_LABEL, R.string.label); ArrayListContentProviderOperation ops = new ArrayListContentProviderOperation(); ops.add(ContentProviderOperation.newInsert(StatusUpdates.CONTENT_URI) .withValues(values).build()); try{ this.getContentResolver().applyBatch(ContactsContract.AUTHORITY, ops); } catch(RemoteException e) {Log.e...} catch(OperationApplicationException e) {Log.e...} } I'm trying to insert status to the specified contact contact2, but it doesn't work correctly, and always insert to contact1. Please help me, many 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] Wifi Scanning code
If you are using Eclipse, look for the LogCat tab to get more information about the exception that's being thrown. This way it's easier to know what's the problem. Cheers, Matheus 2011/8/6 Gabor T. t.gabo...@gmail.com Here is my code: package hu.wifx.droid; import android.app.Activity; import android.os.Bundle; import android.widget.Button; import android.widget.TextView; import android.view.View; import java.util.List; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.net.wifi.ScanResult; import android.net.wifi.WifiManager; public class WifXActivity extends Activity { TextView mText; WifiManager mWifi; ListScanResult wifiList; StringBuilder _sb = new StringBuilder(); /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button btn1 = (Button) findViewById(R.id.btn1); btn1.setOnClickListener(new View.OnClickListener() { public void onClick(View arg0) { // TODO Auto-generated method stub StartTester(); } }); } public void StartTester() { //startActivity(new Intent(this, WIfiScanner.class)); IntentFilter i = new IntentFilter(); i.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); mText = (TextView) findViewById(R.id.mainText); mWifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); registerReceiver(new BroadcastReceiver(){ public void onReceive(Context c, Intent i) { WifiManager w = (WifiManager) c.getSystemService(Context.WIFI_SERVICE); wifiList = w.getScanResults(); _sb = new StringBuilder(); for(int m = 0; m wifiList.size(); m++) { _sb.append((wifiList.get(m)).toString()); _sb.append(\\n); } mText.setText(_sb); } }, i); WifiManager WM = (WifiManager) getSystemService(Context.WIFI_SERVICE); WM.setWifiEnabled(true); WM.startScan(); } } No errors, but when I start the emulator and click on button1:The application has stopped unexpectedly. Why? Please help me! Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Matheus Augusto Bodo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] [Dalvik] JIT profiling
In the IO 2010 presentation guys from Google's Dalvik team showed profiling capabilities of their JIT compiler. This capability could be enabled with 'dalvik.vm.jit.profile=true' in system properties. But I can't profile JIT on GB and HC. Moreover I can't find 'dalvik.vm.jit.profile=true' processing somewhere in the Android tree. It was there in Eclair but then was removed. Interesting thing is that Dalvik VM by itself supports '-Xjitprofile' keyword but crashes somewhere in code cache. Also, another interesting capability is JIT statistics (you should send 'kill -12 pid' to your process) is also inactive and simply kills your application. Are there are any ways to profile JIT somehow? Or it was not very usable and was removed from latest releases? I need to figure out which native code is generated for my Java code, is it possible to do it somehow? Thanks a lot! Oleg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Hidden WebView
Hi, I'm kinda new to Android. I have my main view, and I need to create and run a hidden WebView in the background. Can someone help me with that? Thanks in advance, yakobom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Activity Flow Brain Teaser
Hi All, I have been learning about the complex problem of Activities, launch flags, Intent flags, tasks and the Activity stack. I've been trying to solve what I thought would be a simple problem. Our application has a Search Activity that can possible be entered through two paths: 1) ServerListActivity SearchActivity 2) URLLaunchActivity SearchActivity In both cases, the same SearchActivity should be reused because the user may have gone beyond the search to other activities, and we want to 'pop the stack' back to the SearchActivity if they are launching from a URL. The URLLaunchActivity is set up to handle VIEW intents, and it basically forwards those intents on to the SearchActivity. I have implemented special handling for the VIEW action in both onCreate of SearchActivity as well as onNewIntent. I have added android:launchMode=singleTask to the SearchActivity manifest entry, which makes sure that the same SearchActivity is always used when handling the intents. This is the only flag I could use to make this work even partially correctly. Any other flags were not what I wanted at all, unless I have missed something fundemental in my learning stages -- a probable thing, as this is complicated stuff. Because we are searching for patient data with this application, we need to comply with HIPPA requirements and have a timeout associated with the SearchActivity so that if the application is idle for long enough, the SearchActivity will finish and display a dialog to the user stating that there was a timeout. This is where I seem to have trouble. Because a new Task is started when the SearchActivity is launched, the usual startActivityForResult method will not work because the intent is immediately cancelled due to the new task being started. Okay, so I've had to come up with a static flag on the SearchActivity to signal that the timeout had occurred so the dialog can be displayed to the user when returning to either the ServerListActivity or the URLLaunchActivity. This isn't terrible, but it is unexpected. The only clue to this behaviour was a small LOG statement from the ActivityManager and the immediate callback of the onActivityResult with a cancelled flag set. The real problem is that I want to make sure that if the application is launching a URL, URLLaunchActivity launches SearchActivity and I want the application to exit back though that same stack always. What I am seeing is the following strange behaviour: App Launch - ServerListActivity - SearchActivity | User long presses HOME and switches to Browser User clicks on link in browser - URLLaunchActivity - ServerListActivity | Inactivity Timeout Occurs | ServerListActivity The timeout occurs, and the ServerListActivity is returned to, not the URLLaunchActivity as desired. That surprises me greatly. Some extra information that might help anyone interested enough to still be awake at this point in my story: - In URLLaunchActivity the intent flags FLAG_ACTIVITY_CLEAR_TOP and FLAG_ACTIVITY_SINGLE_TOP are used when launching SearchActivity. - I noticed that in ServerListActivity I am NOT setting either of those flags. Perhaps this is leading to this bad behaviour? I've read all of the documentation (that I know of) on the subject, and thought I had a grasp of what's happening. But I'm still not sure. Is there any advice on how I might simplify this scenario? Thanks in advance for any insight. -Neal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Live Streaming to Android 2.1
hi daniel, can you please be detail about 3rd party library? It will be great if you give some references and samples. - Mahabub Hassan Rahul http://www.flickr.com/photos/mahabub_hassan_rahul/ On Tue, Aug 2, 2011 at 5:48 PM, deepak emailmedee...@gmail.com wrote: Thanks Daniel. I will try it out. On Aug 2, 4:18 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On 2 August 2011 12:09, deepak emailmedee...@gmail.com wrote: Can you help me with this? How can i use this?This is also using RTMP right?? You are on your own journey of discovery here, I am afraid. Can you write programs in Java using 3rd party libraries? Yes = good. No = time to learn. If you can, then write one, marrying it with Android SDK and that's it. You can ask specific question to specific groups of people. Find Red5 user group and JUV RTMP user group and ask them. This groups is about Android SDK and RTMP streaming is off topic, unfortunately. Best of luck, Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Reporting tool for Android application
Is there any reporting API that can be used for displaying local data as chart or image on the phone? 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