Re: [android-developers] Re: Paypal in Android
The problem is basically that if you sell stuff through paypal, you have to be pretty careful, it's very likely that you will be in violation of the google play terms of service. You should ask a lawyer, people here are not qualified to give you legal advice in this manner. Basically, Google wants their 30% cut, I wouldn't use paypal in any app distributed through Google play without assuming that it would eventually get taken down.. kris On Mon, Sep 17, 2012 at 1:53 AM, Michael Leung michaelchi...@gmail.com wrote: They are selling physical goods. Should I use paypal? I got there will be a free app which can buy some physical goods. On Mon, Sep 17, 2012 at 3:45 PM, William Ferguson william.ferguson...@gmail.com wrote: Only if you intend to violate the terms of your agreement with Google Play . 1) You cannot use a payment mechanism other than Google Play for an app distributed via Google Play. 2) You cannot use Google Play to charge for physical goods. William On Monday, September 17, 2012 3:30:14 PM UTC+10, Michael Leung wrote: Hi all, I got a client which has an online shop using Paypal. They want to make an app which is the native android interface for their online shop. I planned to keep their payment gateway to be paypal, rather than switching to Google Checkout. Is it possible to release this kind of apps in Google Play? -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] A possible bug: MPEG4Extractor contains two copies of mIsDrm
I noticed the following and it looks like a bug to me: MPEG4Extractor contains two copies of mIsDrm. One is obtained from its based class MediaExtractor and the other is defined in MPEG4Extractor.h. The one defined in MPEG4Extractor.h is ALWAYS false which causes all checks against it to be true to fail (e.g. the check in MPEG4Extractor::parseChunk). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 synch Google Drive Spreadsheet read data from the same using Google SpreadSheet API
Hello All, I am looking for a little help in one of my project on which i am working. I am developing an app in which I have to integrate *Google Spreadsheet API*. I find the below code from the Google Spreadsheet api documentation, I also attach all the required jar file in this but still i am not able to get the details. I am getting error when run the below code. try { String url = https://docs.google.com/spreadsheet/pub?key=0AlJeYFlqqMqrdGxOaHh3czVocmEtRlFsTDNiWno4VWcoutput=html;; SpreadsheetService service = new SpreadsheetService(Testing); // TODO: Authorize the service object for a specific user (see other sections) // Define the URL to request. This should never change. //URL SPREADSHEET_FEED_URL = new URL(https://spreadsheets.google.com/feeds/spreadsheets/private/full;); URL SPREADSHEET_FEED_URL = new URL(url); // Make a request to the API and get all spreadsheets. SpreadsheetFeed feed = service.getFeed(SPREADSHEET_FEED_URL, SpreadsheetFeed.class); ListSpreadsheetEntry spreadsheets = feed.getEntries(); if (spreadsheets.size() == 0) { // TODO: There were no spreadsheets, act accordingly. System.out.println(Not found); } // TODO: Choose a spreadsheet more intelligently based on your // app's needs. SpreadsheetEntry spreadsheet = spreadsheets.get(0); System.out.println(spreadsheet.getTitle().getPlainText()); // Make a request to the API to fetch information about all // worksheets in the spreadsheet. ListWorksheetEntry worksheets = spreadsheet.getWorksheets(); // Iterate through each worksheet in the spreadsheet. for (WorksheetEntry worksheet : worksheets) { // Get the worksheet's title, row count, and column count. String title = worksheet.getTitle().getPlainText(); int rowCount = worksheet.getRowCount(); int colCount = worksheet.getColCount(); // Print the fetched information to the screen for this worksheet. System.out.println(\t + title + - rows: + rowCount + cols: + colCount); } } catch (Exception e) { e.printStackTrace(); } *LOGCAT :- * 09-17 11:12:20.500: W/System.err(394): com.google.gdata.util.ParseException: Unrecognized content type:text/html;charset=UTF-8 09-17 11:12:20.512: W/System.err(394): at com.google.gdata.client.Service.parseResponseData(Service.java:2136) 09-17 11:12:20.512: W/System.err(394): at com.google.gdata.client.Service.parseResponseData(Service.java:2098) 09-17 11:12:20.520: W/System.err(394): at com.google.gdata.client.Service.getFeed(Service.java:1136) 09-17 11:12:20.520: W/System.err(394): at com.google.gdata.client.Service.getFeed(Service.java:998) 09-17 11:12:20.520: W/System.err(394): at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:645) 09-17 11:12:20.520: W/System.err(394): at com.google.gdata.client.Service.getFeed(Service.java:1017) 09-17 11:12:20.530: W/System.err(394): at com.voter.registration.HomeActivity.start(HomeActivity.java:86) 09-17 11:12:20.530: W/System.err(394): at com.voter.registration.HomeActivity.onResume(HomeActivity.java:30) 09-17 11:12:20.530: W/System.err(394): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150) 09-17 11:12:20.530: W/System.err(394): at android.app.Activity.performResume(Activity.java:3832) 09-17 11:12:20.530: W/System.err(394): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2110) 09-17 11:12:20.540: W/System.err(394): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2135) 09-17 11:12:20.540: W/System.err(394): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1668) 09-17 11:12:20.540: W/System.err(394): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 09-17 11:12:20.540: W/System.err(394): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) 09-17 11:12:20.540: W/System.err(394): at android.os.Handler.dispatchMessage(Handler.java:99) 09-17 11:12:20.550: W/System.err(394): at android.os.Looper.loop(Looper.java:130) 09-17 11:12:20.550: W/System.err(394): at android.app.ActivityThread.main(ActivityThread.java:3683) 09-17 11:12:20.550: W/System.err(394): at java.lang.reflect.Method.invokeNative(Native Method) 09-17 11:12:20.560: W/System.err(394): at java.lang.reflect.Method.invoke(Method.java:507) 09-17 11:12:20.560: W/System.err(394): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 09-17 11:12:20.560: W/System.err(394): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 09-17 11:12:20.560: W/System.err(394): at dalvik.system.NativeStart.main(Native Method) If anyone has any idea please kindly 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] In-app Managed Product (mis)handling / 'Details' button crashing app
Some new issues I'm having with In-App purchasing for Managed Products. Our app has logic in place to perform certain actions if the Play Store detects that a Managed Product has already been purchased by the user. This was working (or so we thought) until recently, and then we noticed that the dialog box that pops up is different - it now reads You already own this item. and there are now two buttons - 'Details' and 'OK' - where there used to be only an 'OK' button. The first problem is that pressing the 'Details' button crashes the Play Store app... *09-16 23:39:35.570: E/dalvikvm(2923): Could not find class 'com.google.android.finsky.utils.Nfc$IcsNfcHandler', referenced from method com.google.android.finsky.utils.Nfc.getHandler **09-16 23:39:35.570: W/dalvikvm(2923): VFY: unable to resolve new-instance 2066 (Lcom/google/android/finsky/utils/Nfc$IcsNfcHandler;) in Lcom/google/android/finsky/utils/Nfc; **09-16 23:39:35.570: D/dalvikvm(2923): VFY: replacing opcode 0x22 at 0x0017 **09-16 23:39:35.570: D/dalvikvm(2923): VFY: dead code 0x0019-001b in Lcom/google/android/finsky/utils/Nfc;.getHandler (Lcom/google/android/finsky/activities/DetailsDataBasedFragment;)Lcom/google/android/finsky/utils/Nfc$NfcHandler; **09-16 23:39:35.590: D/AndroidRuntime(2923): Shutting down VM **09-16 23:39:35.590: W/dalvikvm(2923): threadid=1: thread exiting with uncaught exception (group=0x4001d5a0) **09-16 23:39:35.600: E/AndroidRuntime(2923): FATAL EXCEPTION: main **09-16 23:39:35.600: E/AndroidRuntime(2923): java.lang.NullPointerException* The second problem is I cannot find documented how to catch and process a broadcast from the Play Store that an item is already purchased, so as to cause/allow for certain other processes to happen. Does anyone know how to do this? LIke is there a certain JSON object that can be referenced for a value specifically indicating a item already purchased? I basically need to read access to whatever value causes the Alert box to show. Thanks. Jx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] hi...
k Bro thnx i will try this codeand let u knoe On 17 September 2012 11:24, Asheesh Arya asheesharya...@gmail.com wrote: this is the code to send a mail with attachment import java.io.File; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; public class sendemail extends Activity { Button send; EditText address, subject, emailtext; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main11); send = (Button) findViewById(R.id.emailsendbutton); address = (EditText) findViewById(R.id.emailaddress); subject = (EditText) findViewById(R.id.emailsubject); emailtext = (EditText) findViewById(R.id.emailtext); final TextView tv = (TextView)findViewById(R.id.fileContent); send.setOnClickListener(new OnClickListener() { // TextView tv = (TextView)findViewById(R.id.fileContent); public void onClick(View v) { // TODO Auto-generated method stub if(!address.getText().toString().trim().equalsIgnoreCase()){ //Toast.makeText(getApplicationContext(), Please enter an email address.., Toast.LENGTH_LONG).show(); File dir = Environment.getExternalStorageDirectory(); File file = new File(dir,download/phonedata.txt); if (file.exists()) try { Log.i(getClass().getSimpleName(), send task - start); final Intent emailIntent = new Intent( android.content.Intent.ACTION_SEND); emailIntent.setType(plain/text); //emailIntent.setType(application/octet-stream); emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,new String[] { address.getText().toString() }); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject.getText()); emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(file:// + file)); Toast.makeText(sendemail.this, File successfully attached in your Mail!!!, Toast.LENGTH_LONG).show(); tv.setText(File Successfully attached in your mail!!!); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, emailtext.getText()); sendemail.this.startActivity(Intent .createChooser(emailIntent, Send mail...)); } catch (Throwable t) { Toast.makeText(sendemail.this, Request failed: + t.toString(), Toast.LENGTH_LONG).show(); } else { tv.setText(Sorry file doesn't exist!!!); Toast.makeText(sendemail.this, File not found in sd-cardPlease upload it from Server!!!, Toast.LENGTH_LONG).show(); //Toast.makeText(getApplicationContext(), Please enter an email address.., Toast.LENGTH_LONG).show(); } } else { Toast.makeText(getApplicationContext(), Please enter an email address.., Toast.LENGTH_LONG).show();} } }); } } - xml file ?xml version=1.0 encoding=utf-8? LinearLayout android:id=@+id/LinearLayout01 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:background=#6699FF TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text= android:id=@+id/fileContent / LinearLayout android:id=@+id/LinearLayout02 android:layout_width=wrap_content android:layout_height=wrap_content android:orientation=horizontal EditText android:layout_width=wrap_content android:layout_height=wrap_content android:width=170dip android:id=@+id/emailaddress/EditText TextView android:layout_width=wrap_content android:layout_height=wrap_content android:id=@+id/emailaddress android:text=Email address/TextView /LinearLayout LinearLayout android:id=@+id/LinearLayout03 android:layout_width=wrap_content android:layout_height=wrap_content android:orientation=horizontal EditText android:layout_width=wrap_content android:layout_height=wrap_content android:width=170dip android:id=@+id/emailsubject/EditText TextView
Re: [android-developers] hi...
yeah its ok!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: WIN DEATH Logs
Thanks for the reply Fahad ya I checked that link .. Not helpful though .. On Saturday, September 15, 2012 4:28:17 PM UTC+5:30, Sat wrote: Hi All, I am getting WIN DEATH: Window log with pause = false. This is not frequent but after this log the service which this activity uses is facing an ANR. Please tell me why this WIN DEATH: Window log comes. So that I can debug more. I tried to search in net but could not find anything much. thanks, satish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Massive unistalls starting Sept 6
There are always dips, but there hasn't been a massive uninstall shown for my app, FWIW. On Monday, September 17, 2012 9:44:36 AM UTC+8, Jaxily wrote: Well my admob stats are down too, I hope they fix that. On Sunday, September 16, 2012 12:06:30 PM UTC-7, Fran wrote: They have had problems with stats on September, but normally what happens is that they are not updated, not massive uninstalls... I didn't experiment such problem at least. El 16/09/2012 20:45, Jaxily jacobr...@gmail.com escribió: Has anyone experienced lots of uninstalls across many apps, hope this is a problem with the stats in google. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] .csv file reading code in android
Dear All, Im try to create a remote login. Data content is in users.csv format. I want to connect using SQLite. But still i don get any idea about how to connect the .csv file and SQLite.. Please give some support for finding the code for connecting .csv file and SQLite.. Thansk Regards Anoop Narayanan C an...@biscommunication.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: Lunar Lander Example - Thread Safety
Hi, Are the threads using synchronized blocks of code or methods when setting / getting the common variable, are they using volatile for the boolean ? If not thread safety is questionable. It is also a question of visibility as well as safety, particularly when running on multi core cpu devices. This is not specific to Android but to Java in general, an old resource that might be helpful - http://www.ibm.com/developerworks/java/tutorials/j-threads/j-threads-pdf.pdf Regards On Monday, September 17, 2012 2:36:09 AM UTC+10, sdb wrote: I'm new to android development and have been studying the Lunar Lander example included in the SDK to get a better understanding of how the SurfaceView works. I noticed that the mRun member of the LunarThread class is updated by the setRunnable() method of the LunarThread class which is called from the LunarView class within the surfaceCreated() and surfaceDestroyed() methods. It seems to me that mRun is being updated by the main thread for the SurfaceView, but is being repeatedly read in a tight loop in LunarThread. My question is: is this use of mRun thread safe and if so, why/how? I'm not sure, but maybe it is thread safe because mRun is a simple boolean variable and is only updated from one of the two threads involved. If mRun was a more complext object and/or it was being updated by different by both threads,then perhaps this example would not be thread safe without the use of some form of synchronization mechanism. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Broadcast Receiver to listen when any app launch?
On Sun, Sep 16, 2012 at 3:04 AM, Sohan badaya sohan.bad...@gmail.comwrote: I want to be notified when any app launch like Calculator, Email etc, There is no such notification. - 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] Icons become very large in low resolution phones
On Sun, Sep 16, 2012 at 7:40 AM, sha256 sha...@hasnath.net wrote: But the icons become very large in QVGA skin. Do you have the appropriate icons for each density level? - 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] PDF help?
On Sun, Sep 16, 2012 at 9:50 AM, Arathon amcd2...@gmail.com wrote: How can i save this as a PDF? Find a library that saves text to PDF, then use it. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Developer Console Issue - cannot finish registration
On Sun, Sep 16, 2012 at 5:06 AM, Panpanisca Android developer andr...@panpanisca.com wrote: I tried finding a way to report the error to Google, but couldn't find one. I don't think you tried very hard. Two simple searches for google play support and google wallet support and voila. http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601 http://support.google.com/wallet/?hl=entopic=2446103 - 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] Your Registration to Google Play is still being processed
On Sun, Sep 16, 2012 at 2:30 AM, Johnl Smith gongz...@gmail.com wrote: hello,two days passed, my google play publishing status is still“ Your Registration to Google Play is still being processed.” AndI registed my checkout today . what is the problem? How should i do to solve it, thank you! Ask in the correct place: http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601 - 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] Your Registration to Google Play is still being processed
And have some patience :) *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Mon, Sep 17, 2012 at 1:06 PM, TreKing treking...@gmail.com wrote: On Sun, Sep 16, 2012 at 2:30 AM, Johnl Smith gongz...@gmail.com wrote: hello,two days passed, my google play publishing status is still“ Your Registration to Google Play is still being processed.” AndI registed my checkout today . what is the problem? How should i do to solve it, thank you! Ask in the correct place: http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601 - 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
Re: [android-developers] Broadcast Receiver to listen when any app launch?
You can't do this. Generally it's considered kind of dubious to need to know when other apps start (i.e., what are you trying to write, an app that spies on the user?). Presumably you are trying to write some kind of helper app that provides extra system utilities, this is not really possible easily, and you shouldn't be doing it at the framework level. There have been some very long debates on this forum as to whether this is appropriate or not, you can go through the logs (look for READ_LOG and ICS..) of this forum. You can't get notified of when other apps start, and additionally, you shouldn't be able to find out when other apps start, period. You can, through a hack, get access to the system logs, and parse them, though that's not an API, and the permission has gone away with ICS... kris On Sun, Sep 16, 2012 at 4:04 AM, Sohan badaya sohan.bad...@gmail.com wrote: I want to be notified when any app launch like Calculator, Email etc, so I tried below code #Attempt 1 receiver android:name=.ApplicationLaunchReceiver intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /receiver but this code didn't work. then I tried one more code, #Attempt 2 receiver android:name=.CatchBroadcastReceiver intent-filter action android:name=android.intent.action.PACKAGE_ADDED/ data android:scheme=package android:path=com.test/ /intent-filter /receiver but this code also didn't work. Please let me know what I am doing wrong. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Paypal in Android
On Mon, Sep 17, 2012 at 12:45 AM, William Ferguson william.ferguson...@gmail.com wrote: Only if you intend to violate the terms of your agreement with Google Play . 1) You cannot use a payment mechanism other than Google Play for an app distributed via Google Play. *points to apps like Amazon, Overstock, eBay, Target, etc, etc, etc . * Really seems like the whole native-client-as-interface-to-website-where-we-sell-stuff-with-our-own-payment-system thing is OK. IANAL. - 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 synch Google Drive Spreadsheet read data from the same using Google SpreadSheet API
On Mon, Sep 17, 2012 at 1:09 AM, Keyur keyuraas...@gmail.com wrote: I am looking for a little help in one of my project on which i am working. I am developing an app in which I have to integrate *Google Spreadsheet API*. I find the below code from the Google Spreadsheet api documentation, I also attach all the required jar file in this but still i am not able to get the details. If your issue is regarding the Spreadsheet API, you'll have to ask a group or forum dedicated to that API. This is not Android specific. - 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: Paypal in Android
I feel like while this is the case in this instance, it's because those are huge companies. I feel like we've also heard of smaller companies having their apps removed. I doubt Google's going to mess with Overstock, Target, etc... but maybe that's speculation.. kris On Mon, Sep 17, 2012 at 3:44 AM, TreKing treking...@gmail.com wrote: On Mon, Sep 17, 2012 at 12:45 AM, William Ferguson william.ferguson...@gmail.com wrote: Only if you intend to violate the terms of your agreement with Google Play . 1) You cannot use a payment mechanism other than Google Play for an app distributed via Google Play. *points to apps like Amazon, Overstock, eBay, Target, etc, etc, etc . * Really seems like the whole native-client-as-interface-to-website-where-we-sell-stuff-with-our-own-payment-system thing is OK. IANAL. - 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
Re: [android-developers] Re: Paypal in Android
On Mon, Sep 17, 2012 at 2:49 AM, Kristopher Micinski krismicin...@gmail.com wrote: I feel like while this is the case in this instance, it's because those are huge companies. The sad thing is you're probably right. - 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] Where to find the definition/description of Android's SMS_RECEIVED or similiar thing?
My meaning is that I cannot find any document/javadoc of SMS_RECEIVED or android.provider.Telephony.SMS_RECEIVED even on Android developer site http://developer.android.com/reference/packages.html. Is this strange? But now I find it in the source code below: @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String SMS_RECEIVED_ACTION = android.provider.Telephony.SMS_RECEIVED; which is in file: ~/android-sdks/sources/android-16/android/provider/Telephony.java And for the whole file Telephony.java, it is marked with @hide (as below). That should be the reason why I cannot find SMS_RECEIVED via javadoc. /** * The Telephony provider contains data related to phone operation. * * @hide */ However, thank you for your help! BR, Tom 在 2012年9月17日星期一UTC+8上午12时01分49秒,Kristopher Micinski写道: I don't think I understand you. It sounds like you want to know: how do I know when I need permission? Generally the API for stuff will tell you. For example, to catch the SMS_RECEIVED permission you need a permission to receive texts, RECEIVE_SMS. If the API doesn't tell you when you need the permission, that's a bug in the documentation. However, in all honesty, not having a permission should be pretty obvious when you test the app, if you don't have it the app crashes, you look at the error log, and then you include the permission. kris On Sun, Sep 16, 2012 at 10:41 AM, tomLinux tomxu...@gmail.comjavascript: wrote: Thank you very much for your reply! The Manifest page is helpful! With it I can find the definition of CHANGE_NETWORK_STATE. But still for the 1st item, even the short term SMS_RECEIVED, I cannot find official document of it. That makes me confused. So how could people write program by using it? How do they know its purpose and usage? BR, Tom On Thursday, September 13, 2012 5:19:04 AM UTC+8, Kristopher Micinski wrote: are you asking how these permissions can be used in Android? You can see a brief description here: http://developer.android.com/reference/android/Manifest.permission.html Unfortunately I don't think there's a clear mapping from APIs to permission usage anywhere right now, there is an old research project here: http://www.android-permissions.org/ The goal of that project is to try to ascertain which permissions go with which APIs, though at this point the document is fairly old (android 2.2 I believe!) and the static analysis hasn't been redone for Android 4. If you have specific questions you can probably find out on a case by case basis. (I believe the static analysis is actually simple enough to do, we've recreated some of it in our work, though nothing substantial enough to post publicly..) kris On Tue, Sep 11, 2012 at 11:33 PM, tomLinux tomxu...@gmail.com wrote: I don't know where I can find the definition or detailed description of SMS_RECEIVED, which could be set as below: action android:name=android.provider.Telephony.SMS_RECEIVED/ I searched it on website http://developer.android.com/reference/packages.html, but no result. Thanks! And also this one: uses -permission android:name=android.permission.CHANGE_NETWORK_STATE/uses This kind of usage is in AndroidManifest.xml file. And what confuses me is that how do I know them? Where to find them? I can find them only from other guys' projects? No official douments at all? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android LVL
ok fine thankyou Il try this and let you know the result On Monday, September 17, 2012 10:20:12 AM UTC+5:30, Vinay Kumar wrote: Yes. On Mon, Sep 17, 2012 at 9:08 AM, janvi jagruth...@gmail.com javascript: wrote: Ok thank you for this Is this licensing option which I have to enable is provided as a field in the uploading form? Thanks in advance On Sunday, September 16, 2012 10:42:17 PM UTC+5:30, Vinay Kumar wrote: While uploading your app on market(google play). you have to enable the Licensing option.there you probably you need to enter your(tester) gmail id. That will be your tester credentials. On Sun, Sep 16, 2012 at 9:35 PM, janvi jagruth...@gmail.com wrote: I need the following information What are actually testing credentials? Is it enough to add a test account(gmail account of tester) in the option provided in the edit profile page of google publisher account? Still iam i missing any thing ?or this is the only step needed for this? On Sunday, September 16, 2012 7:41:49 PM UTC+5:30, Vinay Kumar wrote: yes, we need to upload the app without publishing it. For testing it we need tester credentials too. On Sat, Sep 15, 2012 at 10:06 PM, Ichsan ich...@gmail.com wrote: If you read the documentation, it is clear that you need to upload the app without publishing it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscribe**@googlegroups.com For more options, visit this group at http://groups.google.com/**group**/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to caculate all cpu useage in logcat ANR info?
not any response? 在 2012年9月14日星期五UTC+8下午6时05分18秒,david写道: Hi All, now i meet a ANR error. i find the cpu usage info in loacat totaly big than 100%,so i cofused, wheo can guide me on this issue? or provide some docment or link? thanks a lot! david -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Licensing sample issue - Application error: 3
ok fine thanks for this information Il contact you if I need some help Kindly help me out here for this licensing feature to work Thanks in advance On Monday, September 17, 2012 9:41:43 AM UTC+5:30, Ristar wrote: np. after u upload it to Google play, just sit on your hands for an hour or two, and then try again. u do *not* need to publish it for the licensing to work. that's wat i did: wait and try every now and then. if u have problems after that, then u've got a REAL problem on your hands, unfortunately. i didnt try to use the emulator at any point in time coz the emulator is super slow, needs to boot up, etc. it's much, MUCH faster to just install the app on the phone and run right away. On Monday, September 17, 2012 11:51:54 AM UTC+8, janvi wrote: Hello Ristar Sorry for interrupting you. Iam also working on the same licensing feature of the android app and need some info from you Iam also facing the same error of *Application Error:3*.May I know the cause for this? The following is info which I need Once I upload and save my app on market(Google play) how will I start my testing feature? Here should i run my app on the device by installing apk(*Through command prompt adb install command*) or can I directly run through eclipse i,e selecting the application and chosing the option as *Rus as android application*.I know there is no much difference between the options I mentioned but I have a doubt whether this may change any response of licensing server App which I want to test for licensing feature is not yet published in to the market,so kindly provide me information according to this. I want to add this licensing feature before publishing it Thanks in advance On Monday, September 17, 2012 5:18:29 AM UTC+5:30, Ristar wrote: i have set the correct Developer public key in the source code, made the apk, signed it and uploaded it to Google, and installed it to my phone. but my phone keeps returning the message Application error:3. wat should i do? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] .csv file reading code in android
why stored in csv file? you can just use the sqlite to store the data,and use the csv file to output it? On Mon, Sep 17, 2012 at 3:14 PM, Anoop C anoopc@gmail.com wrote: Dear All, Im try to create a remote login. Data content is in users.csv format. I want to connect using SQLite. But still i don get any idea about how to connect the .csv file and SQLite.. Please give some support for finding the code for connecting .csv file and SQLite.. Thansk Regards Anoop Narayanan C an...@biscommunication.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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Paypal in Android
maybe, I changed to write html5 interface instead.. On Mon, Sep 17, 2012 at 6:01 PM, TreKing treking...@gmail.com wrote: On Mon, Sep 17, 2012 at 2:49 AM, Kristopher Micinski krismicin...@gmail.com wrote: I feel like while this is the case in this instance, it's because those are huge companies. The sad thing is you're probably right. - 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, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] hi...
if you,just to search the word like send mail in android code in Google or other , you will find it better! On Mon, Sep 17, 2012 at 2:34 PM, Asheesh Arya asheesharya...@gmail.comwrote: yeah its ok! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] A possible bug: MPEG4Extractor contains two copies of mIsDrm
so,just check the code according to the tips. On Mon, Sep 17, 2012 at 2:08 PM, eaglessong eagless...@gmail.com wrote: I noticed the following and it looks like a bug to me: MPEG4Extractor contains two copies of mIsDrm. One is obtained from its based class MediaExtractor and the other is defined in MPEG4Extractor.h. The one defined in MPEG4Extractor.h is ALWAYS false which causes all checks against it to be true to fail (e.g. the check in MPEG4Extractor::parseChunk). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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]
what is the use of unity plug in ..In android? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Request authentication, then return to the specific action
I see that apps like YouTube, when you're not logged in and you try to do an action that requires to be logged, appears a login activity. Then, when you've completed the login, the app returns to the previous activity, executing exactly what you wanted to do before. Are they using startActivityForResult, bringing the information about the action to do after the login operation? Or exists a facility to do some dialog like stuff, then return back? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Gamepad Support
Hey folks, I'm trying to create an Android game that would be two players, played with gamepads. I can connect two devices and the input is captured by my game but I haven't found a good way to determine who is player 1 and who is player 2. Linux normally defines this by connection order as /dev/input/js0 and /dev/input/js1 respectively. The most I could find while digging through the documentation was the deviceID that triggered a keyDown/keyUp command (which according to the docs should not be used reliably) or the device Descriptor which is a long hash representing the device but that can have duplicates if there is more than one of the same device connected (like two gamepads...). Is there some Gamepad/Joystick API that I'm missing? Or am I correct in my observations that gamepad support as listed in the Honeycomb-and-on updates is merely just new KeyDown/KeyUp keycodes, etc.? -Ryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Multiplayer Multiple Choice Android
Hi Abedalqader, Have a look at Gamooga: http://www.gamooga.com/. It provides you with realtime backend for your multiplayer games so you need not worry about building anything server side. Have a look and let me know if you have any questions. Full disclosure: I am founder of Gamooga. Regards, Kishore. On Thursday, September 13, 2012 2:49:24 PM UTC+5:30, Abedalqader Omar wrote: Dear All, I plann to create application is a real time multiplayer multiple choice game. It will have a pool of approximately 600 questions that will be randomly selected for every game. Games will start on a rolling basis, consisting of 10 players at a time who must answer 20 questions per game, for quetion and logic for game it's ready , now my main part multplayer i need help for it , what i need exactly: 1. Player has to choose a room from the lobbay to enter a game. 2. The player waits until thier selected room reaches 10 people. at that point, the game will start. 3. within the game, each player's score update it in real game. 4. you can click name of player to take you to that player's stats page. i need this in android but i don't now how i can stat and what the tool i need for it , as i menstion up the logic for application ready but i need multplayer part. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can these things be done -- programmatically on Android (Gingerbread), on non-rooted phone ?
Just to reiterate -- these questions in context of non-rooted phones, running Andoroid GB. 1. Can an OEM (not the default GB launcher), be replaced with a new custom Launcher ? 2. Can a Launcher, which doubles up, as a Locker (i.e. prompts for password before allowing you to proceed), be used to allow access to a small subset of installed apps ? Note that the no. of apps actually installed may be more, than what I intend to make available via the launcher ? 3. Can pressing the hardware MENU button, with-in Launcher app, behaviour be modified to show only the limited / restricted subset of installed apps ? 4. Can the default application that is used to make receive calls, be replaced ? 5. Can the default application that is used to send and receive short-messages, be replaced ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 know LAC(Local Area Code) using Cell ID and Mobile Number
HI, I have 2 input : 1. Mobile Cell ID 2. Mobile Number now i want to find Mobile's current LAC (Local Area Code). is it possible...??? is there a sufficient detail to know LAC ? if not, than tell me which detail i have to use for finding an LAC of the current location. 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] how to know LAC(Local Area Code) using Cell ID and Mobile Number
Hi, Rajan Have you tried the method described here? http://stackoverflow.com/questions/7956105/how-can-i-get-location-name-using-laclocation-area-code On Mon, Sep 17, 2012 at 5:48 PM, Rajan r.d.thak...@gmail.com wrote: HI, I have 2 input : 1. Mobile Cell ID 2. Mobile Number now i want to find Mobile's current LAC (Local Area Code). is it possible...??? is there a sufficient detail to know LAC ? if not, than tell me which detail i have to use for finding an LAC of the current location. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 know LAC(Local Area Code) using Cell ID and Mobile Number
first of all thank you for replay, but my question is i want to get current location of my friend's mobile without notify him/her. for example, i create one app, which accept *Cell ID Mobile Number of my friend, *after accepting this value i am able to get the current location (accuracy is not needed, i just want area name/code) of my friend without notify him. On Monday, 17 September 2012 15:18:05 UTC+5:30, Rajan wrote: HI, I have 2 input : 1. Mobile Cell ID 2. Mobile Number now i want to find Mobile's current LAC (Local Area Code). is it possible...??? is there a sufficient detail to know LAC ? if not, than tell me which detail i have to use for finding an LAC of the current location. 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] Update UI
Hi, I have a BroadcastReceiver that's able to start an activity just fine from its onReceive method. But what if the activity is already running? How do I let it know that the BroadcastReceiver has some more data for it? Do I just start the activity again? If so, would that be a new instance of the activity? What happens to the old one? If it doesn't create a new instance, does onCreate get called again? If not, how does the activity know that it's been hit again by the BroadcastReceiver? More importantly, in that case, how does the activity get the data I attached to the intent in the BroadcastReceiver? I have an listview in activity to update. Thanks RK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using default theme properties in custom theme.
Hi, I have designed a custom theme , because I wanted to change title background color. However while designing the theme, I have set * android:parent=android:Theme.Light* After doing this, I found out that properties of progressbar control, alertdialog, tabhost have changed like background color, height , width,etc. It was working fine when I was not using the custom theme. So my question is how to use the properties of android default theme while only changing the title background color. 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] Update UI
Does your broadcast receiver store data in DB? If yes, your work would be simple: The activity can be notified about db changes, if it have a cursor loading the data. On Mon, Sep 17, 2012 at 7:48 AM, Rahul Kaushik rahulkaushi...@gmail.comwrote: Hi, I have a BroadcastReceiver that's able to start an activity just fine from its onReceive method. But what if the activity is already running? How do I let it know that the BroadcastReceiver has some more data for it? Do I just start the activity again? If so, would that be a new instance of the activity? What happens to the old one? If it doesn't create a new instance, does onCreate get called again? If not, how does the activity know that it's been hit again by the BroadcastReceiver? More importantly, in that case, how does the activity get the data I attached to the intent in the BroadcastReceiver? I have an listview in activity to update. Thanks RK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Felipe Silveira http://www.felipesilveira.com.br - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 know LAC(Local Area Code) using Cell ID and Mobile Number
Something like that is possible only on Service Delivery Platforms, provided generic location APIs are exposed by specific operators (and that too only if your friend and you happen to be with same operator). Alternative is that both you and your friend install an app, and that app provide such information periodically (or on query). Of course this app will run a service to respond-to/send-proactively the location change information. Note that location information is considered private information, and thus usually not shared without explicit permission of person whose location is being shared. This could well be a one-time permission. The only case in which it is overridden is for law-enforcement, which BTW has much more reliable/real-time means of determining location. On Monday, September 17, 2012 3:43:47 PM UTC+5:30, Rajan wrote: first of all thank you for replay, but my question is i want to get current location of my friend's mobile without notify him/her. for example, i create one app, which accept *Cell ID Mobile Number of my friend, *after accepting this value i am able to get the current location (accuracy is not needed, i just want area name/code) of my friend without notify him. On Monday, 17 September 2012 15:18:05 UTC+5:30, Rajan wrote: HI, I have 2 input : 1. Mobile Cell ID 2. Mobile Number now i want to find Mobile's current LAC (Local Area Code). is it possible...??? is there a sufficient detail to know LAC ? if not, than tell me which detail i have to use for finding an LAC of the current location. 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] Broadcast Receiver to listen when any app launch?
Hi, Thanks for reply, But there are many apps like App Lock, Fast App Lock, Smart App Lock working on same idea. If anyone knows how can I achieve same functionality. Sohan Badaya On Mon, Sep 17, 2012 at 1:14 PM, Kristopher Micinski krismicin...@gmail.com wrote: You can't do this. Generally it's considered kind of dubious to need to know when other apps start (i.e., what are you trying to write, an app that spies on the user?). Presumably you are trying to write some kind of helper app that provides extra system utilities, this is not really possible easily, and you shouldn't be doing it at the framework level. There have been some very long debates on this forum as to whether this is appropriate or not, you can go through the logs (look for READ_LOG and ICS..) of this forum. You can't get notified of when other apps start, and additionally, you shouldn't be able to find out when other apps start, period. You can, through a hack, get access to the system logs, and parse them, though that's not an API, and the permission has gone away with ICS... kris On Sun, Sep 16, 2012 at 4:04 AM, Sohan badaya sohan.bad...@gmail.com wrote: I want to be notified when any app launch like Calculator, Email etc, so I tried below code #Attempt 1 receiver android:name=.ApplicationLaunchReceiver intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /receiver but this code didn't work. then I tried one more code, #Attempt 2 receiver android:name=.CatchBroadcastReceiver intent-filter action android:name=android.intent.action.PACKAGE_ADDED/ data android:scheme=package android:path=com.test/ /intent-filter /receiver but this code also didn't work. Please let me know what I am doing wrong. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Broadcast Receiver to listen when any app launch?
Thanks for reply, But there are many apps like App Lock, Fast App Lock, Smart App Lock working on same idea. In those apps you set password for any app and when you launch that app, these apps( App Lock, Fast App Lock, Smart App Lock) display password window. and after password we can view our app. If anyone knows how can I achieve same functionality. On Monday, September 17, 2012 1:15:41 PM UTC+5:30, Kristopher Micinski wrote: You can't do this. Generally it's considered kind of dubious to need to know when other apps start (i.e., what are you trying to write, an app that spies on the user?). Presumably you are trying to write some kind of helper app that provides extra system utilities, this is not really possible easily, and you shouldn't be doing it at the framework level. There have been some very long debates on this forum as to whether this is appropriate or not, you can go through the logs (look for READ_LOG and ICS..) of this forum. You can't get notified of when other apps start, and additionally, you shouldn't be able to find out when other apps start, period. You can, through a hack, get access to the system logs, and parse them, though that's not an API, and the permission has gone away with ICS... kris On Sun, Sep 16, 2012 at 4:04 AM, Sohan badaya sohan@gmail.comjavascript: wrote: I want to be notified when any app launch like Calculator, Email etc, so I tried below code #Attempt 1 receiver android:name=.ApplicationLaunchReceiver intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /receiver but this code didn't work. then I tried one more code, #Attempt 2 receiver android:name=.CatchBroadcastReceiver intent-filter action android:name=android.intent.action.PACKAGE_ADDED/ data android:scheme=package android:path=com.test/ /intent-filter /receiver but this code also didn't work. Please let me know what I am doing wrong. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Broadcast Receiver to listen when any app launch?
On Mon, Sep 17, 2012 at 8:35 AM, Sohan badaya sohan.bad...@gmail.com wrote: Hi, Thanks for reply, But there are many apps like App Lock, Fast App Lock, Smart App Lock working on same idea. If anyone knows how can I achieve same functionality. Sohan Badaya Ugh... I explained how this is a bad idea just a second ago... and there has been a lengthy history in the group about why you shouldn't attempt to write these apps.. :-). Basically these apps work by reading the system logs, which you can no longer do as of ICS, and which only sort of worked before that.. It's always funny to me why people want to make a new locker app, when they can already point out a few, ..? kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Broadcast Receiver to listen when any app launch?
Google is actively trying to stop these sort of apps working, Search this group for may threads about this issue. On Monday, September 17, 2012 1:40:39 PM UTC+1, Sohan badaya wrote: Thanks for reply, But there are many apps like App Lock, Fast App Lock, Smart App Lock working on same idea. In those apps you set password for any app and when you launch that app, these apps( App Lock, Fast App Lock, Smart App Lock) display password window. and after password we can view our app. If anyone knows how can I achieve same functionality. On Monday, September 17, 2012 1:15:41 PM UTC+5:30, Kristopher Micinski wrote: You can't do this. Generally it's considered kind of dubious to need to know when other apps start (i.e., what are you trying to write, an app that spies on the user?). Presumably you are trying to write some kind of helper app that provides extra system utilities, this is not really possible easily, and you shouldn't be doing it at the framework level. There have been some very long debates on this forum as to whether this is appropriate or not, you can go through the logs (look for READ_LOG and ICS..) of this forum. You can't get notified of when other apps start, and additionally, you shouldn't be able to find out when other apps start, period. You can, through a hack, get access to the system logs, and parse them, though that's not an API, and the permission has gone away with ICS... kris On Sun, Sep 16, 2012 at 4:04 AM, Sohan badaya sohan@gmail.com wrote: I want to be notified when any app launch like Calculator, Email etc, so I tried below code #Attempt 1 receiver android:name=.ApplicationLaunchReceiver intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /receiver but this code didn't work. then I tried one more code, #Attempt 2 receiver android:name=.CatchBroadcastReceiver intent-filter action android:name=android.intent.action.PACKAGE_ADDED/ data android:scheme=package android:path=com.test/ /intent-filter /receiver but this code also didn't work. Please let me know what I am doing wrong. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Rotate image around it's centre problem with matrix rotation
I thought you were using an image of an arrow? I would put a breakpoint here: screenW = w; Make sure screenW and screenH are getting set correctly. On Saturday, September 15, 2012 12:42:36 AM UTC-5, Haris wrote: Hai bob thanks for your reply... I made the change as you said... * Y = (int) (screenH /2) - (arrowH / 2) ;* But still the same results. And here is some screen shot of my results at central position left and right Centrehttps://lh3.googleusercontent.com/-gmk0bpPFRaA/UFQTgNViVXI/AJk/L8aKeWbyfyY/s1600/centre.jpg Lefthttps://lh5.googleusercontent.com/--1s1WMp6JWs/UFQUKYdzHDI/AJs/2p77As5VGY0/s1600/left.jpg Righthttps://lh6.googleusercontent.com/-Gopc01ZOM94/UFQUoJ0d76I/AJ0/OxShY4rktZ4/s1600/right.jpg Thanks.. On Monday, 10 September 2012 18:48:32 UTC+5:30, Haris wrote: Hai all I am trying an application like rotating image with motion sensorMy problem is that the image does not rotate about centre properlyAnd my angle range is 0 to 90 and 0 to -90.. And below is my code. public void onDraw(Canvas canvas) { super.onDraw(canvas); Bitmap arrow = BitmapFactory.decodeResource(getResources(),R.drawable.arrow); int arrowW = arrow.getWidth(); int arrowH = arrow.getHeight(); float scaleWidth = 1; float scaleHeight = 1; int centrex = arrowW/2; int centrey = arrowH/2; int X=108; int Y=100; int angle=0; Matrix matrix = new Matrix(); matrix.postScale(scaleWidth, scaleHeight); matrix.postRotate(angle, X+centrex , Y+centrey ); Bitmap resizedBitmap = Bitmap.createBitmap(arrow, 0, 0, arrow.getWidth(), arrow.getHeight(), matrix, true); canvas.save(); canvas.drawBitmap(resizedBitmap, X, Y, null); invalidate(); } I am getting the angle values from onCreate method.Using orientation sensor(roll values).. But When I rotate the screen my image is rotating but not exactly around the image centre. 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: Lunar Lander Example - Thread Safety
Yes, it's thread-safe because setting a boolean is an atomic operation. On Sunday, September 16, 2012 11:36:09 AM UTC-5, sdb wrote: I'm new to android development and have been studying the Lunar Lander example included in the SDK to get a better understanding of how the SurfaceView works. I noticed that the mRun member of the LunarThread class is updated by the setRunnable() method of the LunarThread class which is called from the LunarView class within the surfaceCreated() and surfaceDestroyed() methods. It seems to me that mRun is being updated by the main thread for the SurfaceView, but is being repeatedly read in a tight loop in LunarThread. My question is: is this use of mRun thread safe and if so, why/how? I'm not sure, but maybe it is thread safe because mRun is a simple boolean variable and is only updated from one of the two threads involved. If mRun was a more complext object and/or it was being updated by different by both threads,then perhaps this example would not be thread safe without the use of some form of synchronization mechanism. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: My AVD is super slow
If you really want to learn Android, I would get a real device. The AVDs are very painful, but real devices are generally much better. Maybe get a Nexus 7 inch tablet? On Friday, September 14, 2012 10:37:50 PM UTC-5, _Chilling wrote: Hi All, I am pretty new to Android SDK. I am trying to write my first hello world program. The AVD that I have created is super slow in performance and I am pretty sure this is not ow a real world phone performs. Any tips on making this better ? My AVD is set up as Android 4.0.3 // assuming this is the current biggest market share and the right decision to code against CPU ARM SD card size 512 mB Skin - Default WVGA800 lcd density: 240 cpumodel: cortex-a8 vm.headsize:48 vm.ramsize: 512 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Stats of my app
It is saying you have 1 *review*, not one download. One person gave your app 5 stars. On Saturday, September 15, 2012 4:45:38 AM UTC-5, Francesco Gatto wrote: Hi, My app TabooDroid Pro have 30+ downloads but in page of store display only 1. Why? Thank u -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Stats of my app
On Mon, Sep 17, 2012 at 10:24 AM, bob b...@coolfone.comze.com wrote: It is saying you have 1 review, not one download. One person gave your app 5 stars. Too bad the app's probably going to be removed soon for trademark violations..., huh.. kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Combine two android apps
On Friday, September 14, 2012 5:36:27 PM UTC-4, bob wrote: Sounds like you will have two Activity classes. Then you will call startActivity to start the second one. And, you will pass the output of the first one as an extra to the second activity. Or perhaps have one app be a Service that runs in a separate thread, with communication between the two threads performed over a binding. See: - http://developer.android.com/reference/android/app/Service.html - http://developer.android.com/guide/components/services.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] How to generate bitmap for a view and make the bitmap exactly equals to the view's display?
Hi all, I use below codes to generate the bitmap of a view: view.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED)); view.layout(0, 0, view.getMeasuredWidth(), view.getMeasuredHeight()); Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_); final Canvas canvas = new Canvas(bitmap); view.draw(canvas); However, when the view really displays, it looks quite different with the bitmap that I get. Please see below two snapshots. *Below is the bitmap that I generated:* https://lh5.googleusercontent.com/-7tOJkO961Es/UFc3XjIvrFI/AGU/vXNeEPF-xyY/s1600/bitmap.png *Below is the view's real display:* https://lh5.googleusercontent.com/-x76-haIiBOI/UFc3gTBYTnI/AGc/b5dkPTrLlNk/s1600/view.png *Below is the layout of this view:* ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=wrap_content android:layout_height=wrap_content android:orientation=vertical Button android:layout_width=match_parent android:layout_height=wrap_content android:text=Test android:id=@+id/btnTest/ ImageView android:layout_width=match_parent android:layout_height=match_parent android:id=@+id/ivTest/ /LinearLayout However, the above method is searched and got from stackoverflow. So I assume it should work. Can someone tell me why the bitmap that I get is different with the real display and how to resolve it? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: sending email ?
I would say create a PHP script for sending mail on your web server. Then do an HTTP load of the script in the background. On Sunday, September 16, 2012 6:24:19 AM UTC-5, mohammed Nuhail wrote: how to send email in background ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Using android
As far as Android goes, I would rewrite it in Java. Sounds like you will use the VideoView and ImageView classes a lot. On Sunday, September 16, 2012 11:23:13 AM UTC-5, Michael Levinson wrote: I am a developer very very small d. I'm really the designer of educational software using three dolphins to reach the alphabet and numbers. My program is in an earlier version of Flash. My quest chin: Do I upgrade the Flash, or move it to html 5 (it's a great animation of three dolphins- a game for kids). And then can i move it into Android. I know nothing�truly looking for a little guidance can i use my early version of Flash with the SDK? alphabet-learning.com Michael Levinson -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Drawable selector not working in Jelly Bean
Posted this on SO, but not getting much help, so thought I'd ask here. You can see all of the details on SO, but basically I have a drawable selector for my ListView that works fine in previous versions of Android except for Jelly Bean. I've narrowed it down to either state_selected or state_activated not working, as state_pressed is working. Has anyone heard of anything changing with Jelly Bean in regards to selectors? http://stackoverflow.com/questions/11661190/drawable-selector-not-working-in-jelly-bean -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google Map Api key
Hello friends, I am working with google map,I have generate MD5 certificate. when i am trying to generate api key its showing message that invalid certificate so can any body help me what is error -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Using android
Easier said than done. A large flash game will potentially be a very nontrivial rewrite into Java. Most of the logic will be there, but everything else will be gone, kris On Mon, Sep 17, 2012 at 11:15 AM, bob b...@coolfone.comze.com wrote: As far as Android goes, I would rewrite it in Java. Sounds like you will use the VideoView and ImageView classes a lot. On Sunday, September 16, 2012 11:23:13 AM UTC-5, Michael Levinson wrote: I am a developer very very small d. I'm really the designer of educational software using three dolphins to reach the alphabet and numbers. My program is in an earlier version of Flash. My quest chin: Do I upgrade the Flash, or move it to html 5 (it's a great animation of three dolphins- a game for kids). And then can i move it into Android. I know nothing�truly looking for a little guidance can i use my early version of Flash with the SDK? alphabet-learning.com Michael Levinson -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Google Map Api key
i think what you had find that is not md5 key that might be certificate key... visit my blog you will find video and example for google maps http://ramscreative.blogspot.in/2012/07/android-google-mapview-video-tutorial.html On Mon, Sep 17, 2012 at 9:02 AM, rauf qureshi qureshira...@gmail.comwrote: Hello friends, I am working with google map,I have generate MD5 certificate. when i am trying to generate api key its showing message that invalid certificate so can any body help me what is error -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards Rambabu Mareedu 9581411199 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] [android bind to AccessibilityService]
I have created an android service, which is an AccessibilityService. From my activity, I would like to bind to that service. Because i need to send information service to activity . I need example code please. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Advertising opt out
Many developers force users to purchase something in order to remove advertisements from their apps. While this may seem to be a good revenue model, it tends to annoy and anger users. It has some other serious consequences as well. One of the important metrics in calculating the CPC (Cost per Click) is the CTR (Click Through Rate). A low CTR will also result in a lower CPC. By forcing users to view ads that they will never click on developers actually are lowering their earning potential. One way to raise CPC, CTR and customer satisfaction is to allow users to opt out of advertising without charging them. It's not only good for customer relations but also the bottom line. How many users actually pay to remove ads? It has to be a very low rate compared to the number who are frustrated and annoyed at seeing ads. The good will alone makes this worthwhile. The real benefit is increased CPC and CTR. We've recently implemented AdMob advertising in our main app and have had virtually no complaints at all. A couple of users have missed the several places where we state that Anyone, anytime can opt out of ads and contacted us. When they understand the way we've set it up, universally, the former angry user is now an ecstatic one. In addition, we're seeing excellent CTR and eCPM (effective Cost per thousand). I can't say with impunity that our opt out policy is causing the high eCPM but it probably is helping. Consider free opt out for your advertising supported apps. It's good for everyone. -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 bind to AccessibilityService]
Try searching with google - you have to facilitate your own learning. On 17 September 2012 17:17, Alvaro Enseat alvaro.ense...@gmail.com wrote: I have created an android service, which is an AccessibilityService. From my activity, I would like to bind to that service. Because i need to send information service to activity . I need example code please. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Google Map Api key
you might be generating SHA1 fingerprint instead of MD5.. and if this is not the case then you should check in for any unwanted spaces when you register it with Google Maps Service On Mon, Sep 17, 2012 at 9:41 PM, rambabu mareedu rambabu.mare...@gmail.comwrote: i think what you had find that is not md5 key that might be certificate key... visit my blog you will find video and example for google maps http://ramscreative.blogspot.in/2012/07/android-google-mapview-video-tutorial.html On Mon, Sep 17, 2012 at 9:02 AM, rauf qureshi qureshira...@gmail.comwrote: Hello friends, I am working with google map,I have generate MD5 certificate. when i am trying to generate api key its showing message that invalid certificate so can any body help me what is error -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards Rambabu Mareedu 9581411199 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- live and let LIVE!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Using android
Given that Adobe has publicly stated that Flash will not be provided for any new Android installations and that the development of the Flash runtime for Android is being discontinued - I would avoid using Flash. See: https://play.google.com/store/apps/details?id=com.adobe.flashplayer On Sunday, September 16, 2012 5:23:13 PM UTC+1, Michael Levinson wrote: I am a developer very very small d. I'm really the designer of educational software using three dolphins to reach the alphabet and numbers. My program is in an earlier version of Flash. My quest chin: Do I upgrade the Flash, or move it to html 5 (it's a great animation of three dolphins- a game for kids). And then can i move it into Android. I know nothing�truly looking for a little guidance can i use my early version of Flash with the SDK? alphabet-learning.com Michael Levinson -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 generate bitmap for a view and make the bitmap exactly equals to the view's display?
I don't think your layout code makes sense, particularly the height specification. You have this for the LinearLayout: android:layout_height=wrap_content This says '*Look at my children to figure out the height*'. Then you have this for the ImageView: android:layout_height=match_parent This says *'Look at my parent (aka LinearLayout) to figure out the height*'. It is like the parent is saying 'go talk to the child' and the child is saying 'go talk to the parent' in an endless loop. On Monday, September 17, 2012 9:46:57 AM UTC-5, yu wrote: Hi all, I use below codes to generate the bitmap of a view: view.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED)); view.layout(0, 0, view.getMeasuredWidth(), view.getMeasuredHeight()); Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_); final Canvas canvas = new Canvas(bitmap); view.draw(canvas); However, when the view really displays, it looks quite different with the bitmap that I get. Please see below two snapshots. *Below is the bitmap that I generated:* https://lh5.googleusercontent.com/-7tOJkO961Es/UFc3XjIvrFI/AGU/vXNeEPF-xyY/s1600/bitmap.png *Below is the view's real display:* https://lh5.googleusercontent.com/-x76-haIiBOI/UFc3gTBYTnI/AGc/b5dkPTrLlNk/s1600/view.png *Below is the layout of this view:* ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=wrap_content android:layout_height=wrap_content android:orientation=vertical Button android:layout_width=match_parent android:layout_height=wrap_content android:text=Test android:id=@+id/btnTest/ ImageView android:layout_width=match_parent android:layout_height=match_parent android:id=@+id/ivTest/ /LinearLayout However, the above method is searched and got from stackoverflow. So I assume it should work. Can someone tell me why the bitmap that I get is different with the real display and how to resolve it? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] OnDateChanged broken in ICS. Anyone have a work around?
Looks like onDateChanged never gets called in ICS (and above I assume) after the very first time the DatePickerDialog is displayed. Here is a bug that has been filed: http://code.google.com/p/android/issues/detail?id=25838 I tried the work around suggested in it (not calling super.onDateChanged) but that resulted in a stack overflow, so, does anyone have a suggestion to get OnDateChanged working with older versions of Android (targeting 2.2 and above) running on devices with ICS installed? Again, everything works fine with onDateChanged up until version 14. After that, the call back never takes place. I need to know when the dialog has had its date changed. 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: Lunar Lander Example - Thread Safety
bob wrote: Yes, it's thread-safe because setting a boolean is an atomic operation. That is fallacious. Setting a boolean may be atomic, but that has nothing to do with thread safety. Thread safety in Java is determined by happens-before relationships and related concepts. http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.4 specifically http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.4.5 Please do not promulgate false information. sdb wrote: I'm new to android development and have been studying the Lunar Lander example included in the SDK to get a better understanding of how the SurfaceView works. I noticed that the mRun member of the LunarThread class is updated by the setRunnable() method of the LunarThread class which is called from the LunarView class within the surfaceCreated() and surfaceDestroyed() methods. Per the referenced link, you can see that 'thread.start()' is a synchronization edge. So the use in 'surfaceCreated()' is thread safe. However, the synchronization edge for 'join()' is after it returns , which to my eye means that 'surfaceDestroyed()' is not. It seems to me that mRun is being updated by the main thread for the SurfaceView, but is being repeatedly read in a tight loop in LunarThread. My question is: is this use of mRun thread safe and if so, why/how? I'm not sure, but maybe it is thread safe because mRun is a simple boolean variable Nope. Being a simple boolean variable doesn't make it thread safe. and is only updated from one of the two threads involved. If mRun was a more complext Nope. Being *accessed* is what counts, not just updated. object and/or it was being updated by different by both threads,then perhaps this example would not be thread safe without the use of some form of synchronization mechanism. As it likely isn't now, unless my analysis is incorrect. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Paypal in Android
William Ferguson wrote: Michael Leung wrote: I got a client which has an online shop using Paypal. They want to make an app which is the native android interface for their online shop. I planned to keep their payment gateway to be paypal, rather than switching to Google Checkout. Is it possible to release this kind of apps in Google Play? Only if you intend to violate the terms of your agreement with Google Play . Are you a lawyer, William? 1) You cannot use a payment mechanism other than Google Play for an app distributed via Google Play. That's just to pay for the app itself, isn't it? Surely not for purchases made via the app. 2) You cannot use Google Play to charge for physical goods. So what *are* you allowed to use to charge for physical goods, or other services? -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Paypal in Android
I remember reading a while ago that if you have a pre-existing website that you are already using for e-commerce then you can link and sell those goods through an app. -John Coryat CAUTION: IANAL On Monday, September 17, 2012 1:48:31 PM UTC-5, Lew wrote: William Ferguson wrote: Michael Leung wrote: I got a client which has an online shop using Paypal. They want to make an app which is the native android interface for their online shop. I planned to keep their payment gateway to be paypal, rather than switching to Google Checkout. Is it possible to release this kind of apps in Google Play? Only if you intend to violate the terms of your agreement with Google Play . Are you a lawyer, William? 1) You cannot use a payment mechanism other than Google Play for an app distributed via Google Play. That's just to pay for the app itself, isn't it? Surely not for purchases made via the app. 2) You cannot use Google Play to charge for physical goods. So what *are* you allowed to use to charge for physical goods, or other services? -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Lunar Lander Example - Thread Safety
It is possible that the mRun variable ought to be declared as volatile. /** Indicate whether the surface has been created is ready to draw */ *volatile* private boolean mRun = false; On Sunday, September 16, 2012 11:36:09 AM UTC-5, sdb wrote: I'm new to android development and have been studying the Lunar Lander example included in the SDK to get a better understanding of how the SurfaceView works. I noticed that the mRun member of the LunarThread class is updated by the setRunnable() method of the LunarThread class which is called from the LunarView class within the surfaceCreated() and surfaceDestroyed() methods. It seems to me that mRun is being updated by the main thread for the SurfaceView, but is being repeatedly read in a tight loop in LunarThread. My question is: is this use of mRun thread safe and if so, why/how? I'm not sure, but maybe it is thread safe because mRun is a simple boolean variable and is only updated from one of the two threads involved. If mRun was a more complext object and/or it was being updated by different by both threads,then perhaps this example would not be thread safe without the use of some form of synchronization mechanism. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 caculate all cpu useage in logcat ANR info?
Read LogCat - the ANR throws an exception. On Monday, September 17, 2012 9:11:58 AM UTC+1, david wrote: not any response? 在 2012年9月14日星期五UTC+8下午6时05分18秒,david写道: Hi All, now i meet a ANR error. i find the cpu usage info in loacat totaly big than 100%,so i cofused, wheo can guide me on this issue? or provide some docment or link? thanks a lot! david -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 4.1 Face Unlock function blink
Hello all. Tell me please how does function: Face Unlock can now optionally require a 'blink' to verify that a live person is unlocking the device rather than a photo. I don't find special Android APIs. What i can use that achieve this effect ? OpenCV or another something? How Google achieves this effect ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Automated validation of real app against wire frame prototype
Hi, I am currently looking into developing Android applications. For this I am searching for the best software for prototyping and testing. Is there a way to run an automated test of your app on a actual device to verify that the wire frame prototype is correctly implemented? I understand that this can be done manually by comparing the app to the prototype (HTML export for instance), but I am specifically looking for an automated way to do it. Thanks a lot for your answers! Bert -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Classloader for Activities
Not all that too bad! I'm currently developing an Android application for taxi-drivers. We decided to make it highly updatable. Apk is only a launcher now, all the code and reosources that perform real job are maintained as sepparate modules that get updated automatically over the web when new versions appear. At first I was disappointed that all activities are to be declared it Android manifest. But then I arrived at the decision to declare there some kind of basic activity. All real job is done through the so called activity adapters which confirm to activity API. When I need to create, for example, an orders activity, I launch this base activity and adjust its adapter class through intent's extras. In orders activity adapter I do all I need. Rather hard, but all possible. понедельник, 11 января 2010 г., 6:40:23 UTC+4 пользователь andjarnic написал: Yah... that's what I meant. Well that sux. lol. On Sun, Jan 10, 2010 at 6:34 PM, Mark Murphy mmu...@commonsware.comjavascript: wrote: Kevin Duffey wrote: Interesting..so there is no way to programatically add activities? If by programmatically you mean at runtime, no. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Spinner items missing selection radio button
Nadav, Which version of android are you developing on? I am currently developing a project and using 4.0.3 for testing, since this is the most common up to date version; however, I find that it is not displaying the radio button as well. But, when I use the same exact code in an android 2.2 device, the radio button appears. I believe that they removed it from the source. I don't know why or how, but that is what I think happened. Try it yourself and let me know if you get any other results. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Massive unistalls starting Sept 6
Good, didn't think it made sense. Thanks Jaxily http://www.jaxily.com On Sunday, September 16, 2012 12:06:30 PM UTC-7, Fran wrote: They have had problems with stats on September, but normally what happens is that they are not updated, not massive uninstalls... I didn't experiment such problem at least. El 16/09/2012 20:45, Jaxily jacobr...@gmail.com javascript: escribió: Has anyone experienced lots of uninstalls across many apps, hope this is a problem with the stats in google. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Web App Icon on home screen
Probably a quick question to answer but I havent found any clear answers to this. Is there a way to modify the bookmark icon when added to home screen from a web app? or are these features controlled by the browser in html code. thank you to those who reply -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Staring Android Developer
Hi, I have just started developing on the Android platform. I have a very basic question: How to link a button to a function and where should that function be located in code? 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] Re: Can I install our app from an APK and then update it with Google Play?
Yes you can do but you have to keep you package name, signature same. One more thing your app version code should be higher. eg. app installed by your apk contains : Package: yourcompanyname.yourappname Signature key : x android:versionName=2.16 android:versionCode=216 upgrade app published on google play contains : Package: yourcompanyname.yourappname Signature key : x android:versionName=2.17 android:versionCode=217 On Friday, 14 September 2012 11:15:32 UTC+5:30, Martin Ellison wrote: What I want to do is to install our app via an APK, but to push updates using Google Play. Is there any way to tie the two, so that Play can recognise that the app has been installed from an APK file, and can then deliver app upgrades? We are developing the app for our users, and we anticipate that many of them will install the app from an APK that we will distribute as a file. But we want to be able to upgrade their copy of the app using the usual Google Play upgrade mechanism. (Users will also be able to install the app via Play, but then upgrades should be as per normal). We would use the usual permission model, so users could upgrade or not at their choice. I've looked through the Android documentation, but I can't see anything on this point. Regards, Martin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Resource not found exception on database query ?
09-16 11:59:39.392: E/AndroidRuntime(18292): FATAL EXCEPTION: main 09-16 11:59:39.392: E/AndroidRuntime(18292): android.content.res.Resources$NotFoundException: String resource ID #0x 09-16 11:59:39.392: E/AndroidRuntime(18292): at android.content.res.Resources.getText(SourceFile:252) 09-16 11:59:39.392: E/AndroidRuntime(18292): at android.content.res.Resources.getString(SourceFile:305) 09-16 11:59:39.392: E/AndroidRuntime(18292): at com.example.physicsmadeeasy.chap1topic$1.onClick(chap1topic.java:69) 09-16 11:59:39.392: E/AndroidRuntime(18292): at android.view.View.performClick(SourceFile:2535) 09-16 11:59:39.392: E/AndroidRuntime(18292): at android.view.View$PerformClick.run(SourceFile:9163) 09-16 11:59:39.392: E/AndroidRuntime(18292): at android.os.Handler.handleCallback(SourceFile:618) 09-16 11:59:39.392: E/AndroidRuntime(18292): at android.os.Handler.dispatchMessage(SourceFile:123) 09-16 11:59:39.392: E/AndroidRuntime(18292): at android.os.Looper.loop(SourceFile:351) 09-16 11:59:39.392: E/AndroidRuntime(18292): at android.app.ActivityThread.main(SourceFile:3814) 09-16 11:59:39.392: E/AndroidRuntime(18292): at java.lang.reflect.Method.invokeNative(Native Method) 09-16 11:59:39.392: E/AndroidRuntime(18292): at java.lang.reflect.Method.invoke(Method.java:538) 09-16 11:59:39.392: E/AndroidRuntime(18292): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(SourceFile:901) 09-16 11:59:39.392: E/AndroidRuntime(18292): at com.android.internal.os.ZygoteInit.main(SourceFile:659) 09-16 11:59:39.392: E/AndroidRuntime(18292): at dalvik.system.NativeStart.main(Native Method) Hi, I'm trying to create a Physics quiz type like Android Applicaton it basically let's you choose what chapter you want ( 3 chapters basically on Physics 1 course for college students) then choose what topic difficulty you want ( 3 topics for each chapter 3 difficulties per topic easy,medium hard). I'm trying to query a data from a database I'm getting this error, I'm kinda new to this error I read quite a few write-ups about ResourceNotFound but still no luck and I'm having a hard time to understand what does it mean or why does this happens. here is the part of the code which causes the error. * c * = myDbHelper.getQuestion(); setContentView(R.layout. *ch1et1*); String awts = getBaseContext().getResources().getString( *c*.getPosition()); TextView t=(TextView)findViewById(R.id. *textView1*); t.setText(awts); and here is the function for the query , from the DatabaseHelper class *public* Cursor getQuestion() { SQLiteDatabase db= *this*.getReadableDatabase(); Cursor c=db.rawQuery( select questions from ques_tb where _id=1,*null*); *return* c; } } Thanks in advance! :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Getting exception while trying to run ffmpeg via command line in android
I want to use ffmpeg via command line arguments in android application.For this purpose: 1. I have cross-compiled the ffmpeg lib and got the libffmpeg.so 2. I have stored libffmpeg.so in files directory of the app. This is the code i am using: public class MainActivity extends Activity { Process p; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); String[] cmd =new String[4]; cmd[0]=/data/data/com.example.ffmpegnew/files/libffmpeg; cmd[1]=-i; cmd[2]=mnt/sdcard/music/baba.mp4; cmd[3]=mnt/sdcard/music/outfile.mp4; p = Runtime.getRuntime().exec(cmd,null, new File(/data/data/com.example.ffmpegnew/files)); } catch(Exception e) { System.out.println(exception+e); } } } This is the exception i am getting: 09-17 13:47:01.679: I/System.out(3752): exceptionjava.io.IOException: Error running exec(). Command: [/data/data/com.example.ffmpegnew/files/libffmpeg.so, -i, mnt/sdcard/music/baba.mp4, mnt/sdcard/music/outfile.mp4] Working Directory: /data/data/com.example.ffmpegnew/files Environment: null Please tell me how to solve this problem.Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Developer Console Issue - cannot finish registration
I have the same exact issue. I want to sign up as an Android Developer, but I get the Oops message Unfortunately, this merchant no longer accepts payments through Google. We apologize for the inconvenience. too. It's maddening, and baffling, after reading that you can market your apps in just three easy steps. I cannot even get through the registration step... Anyone know when this problem will be resolved? On Sunday, September 16, 2012 6:06:54 AM UTC-4, Panpanisca Android developer wrote: I'm trying to finish my Android developer registration on the Developer Console, but it looks as though the payment part is broken. When I reach the point of paying the $25 fee, I am transfered to a Google Wallet page stating that: https://lh4.googleusercontent.com/-QDQHDLGcdys/UFWkKGIm3CI/AAM/HIL_AWGQn6I/s1600/Screen+Shot+2012-09-16+at+13.01.50+.png As there is no other method for paying the fee, I have no other option. I tried finding a way to report the error to Google, but couldn't find one. Any idea? 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] Where can I download the Window Lenovo USB driver?
I have a Lenovo A2109 tablet. The system is running Android 4.0.3. I try to download the device Window USB driver. However, I can't find the USB driver by following the http://developer.android.com/tools/extras/oem-usb.html. Where can I download the Window Lenovo USB driver? Thank in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Jelly Bean Speech Recognition API (local ASR)
I also would like to develop using the offline speech recognition engine... but so far it's been impossible to find any documentation regarding its implementation. Can someone help us with some links? That would be awesome! I'm wanting to develop a hands-free NFC triggered application with offline speech recognition for note-taking, but I can't find any information ANYWHERE about how the engine is implemented, and/or what can be edited. Thanks in advance, Kevin On Tuesday, September 4, 2012 10:48:42 AM UTC-5, Nicolamaria Manes wrote: how can the new local speech recognition engine of jelly bean version of android can be used by developers thanks in advance Nicola -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Backup Manager Service in Android 2.2
I have same problem. Samsung Galaxy S Android 2.3.4 On Wednesday, December 1, 2010 12:05:07 PM UTC+2, lischc wrote: Hello! I am currently trying to implement a simple app which uses the new backup manager service. But I am always getting these error messages: 12-01 09:58:54.420: WARN/BackupTransportService(9965): Unknown package in backup request: @pm@ 12-01 09:58:54.450: WARN/BackupTransportService(9965): Not ready for backup request right now: [OperationScheduler: enabledState=false lastSuccess=2010-10-07/09:33:51 moratoriumSet=2010-12-01/09:53:32 moratorium=1970-01-01/01:00:00 trigger=1970-01-01/01:00:00] 12-01 09:58:54.450: WARN/PerformBackupThread(9965): Backup pass unsuccessful, restaging What does they mean? If I change backup transport to local version with following command adb shell bmgr transport android/ com.android.internal.backup.LocalTransport everything works well. So its not a problem of my code, I think... Regards! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Developer Console Issue - cannot finish registration
I'm having the same issue, have you found a solution?! Maybe it's a problem of the developers web page or google wallet, but i've been trying all day long without success. I've tried using differente credit/debit cards with different countries so i don't think that's the problem. On Sunday, September 16, 2012 12:06:54 PM UTC+2, Panpanisca Android developer wrote: I'm trying to finish my Android developer registration on the Developer Console, but it looks as though the payment part is broken. When I reach the point of paying the $25 fee, I am transfered to a Google Wallet page stating that: https://lh4.googleusercontent.com/-QDQHDLGcdys/UFWkKGIm3CI/AAM/HIL_AWGQn6I/s1600/Screen+Shot+2012-09-16+at+13.01.50+.png As there is no other method for paying the fee, I have no other option. I tried finding a way to report the error to Google, but couldn't find one. Any idea? 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] Problem with ICS
Dear google support team I have problem with my device after migration to ICS. My device is Sony Ericsson Live with Walkman (WT19). Few days ago I upgrade my android to ICS. After that,i found my sd card always full and can't take picture because memory space has full. I remember there are 130mb space left. So I try to unistall some program and get few mb space. But when I want to take picture it happen again,my space is full. After I check with file manager finaly I found that there are tumbnail file with size precisely same with my empty space before. I try to delete, but my space not recover until I unmount my sdcard. After mounted back,my space is recover,but after several minute left it happen again. This make me frustation. I think this caused by virus,so I download avg and norton from googleplay,but it dont make result. I have scanned with kaspersky from my pc and have some result. Then I try to repair using SE Driver while I upgrade again to android 4.0.4, because I think there are some bugs. But it no effect,its still occure. Now I using version 4.1.B.0.587 Please help me,at least I want to know the cause. Is my sdcard damage or else. Sorry for long story,i hope you can help me. Best regard Iskandar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 live wallpaper whitescreen issue
1) I have written a live wallpaper which fetches data from Google app engine and requires data connection to be turned on in the device. I turn on the data and I set the wallpaper in my mobile [Samsung Galaxy SL I9000, firmware version 2.3.6]. It displays the data. Now, I turn off the data. It displays the “no connectivity” message and displays a white screen thereafter. I tried the same scenario in my emulator. I have configured 4 different devices (platform/api level) 2.2/8, 2.3.3/10, 3.0/11 and 4.1/16. The wallpaper runs just fine in all these devices and when I unplug the network card from my laptop, the wallpaper stops updating but doesn’t display a white screen. 2) I have followed the sample cube live wallpaper example and handled the lock canvas and unlock canvas. When I run the code in the emulator, it throws an Illeagal Argument Exception at unlockCanvasAndPost but the wallpaper doesn’t crash. But when I run it in the mobile device, the wallpaper crashes. Code: https://github.com/karthikch53/LIVESC/blob/master/LIVESC/src/com/android/livesc/SCWallpaperService.java Please help me out. Thanks, Karthick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using HttpClient to invoke a webservice in an android app
I am new to android web services. I want to create an android app which consume a webservice using HttpClient. Yet i am confused with, how to do this. I'll explain what i've needed to do. Say,we have a webservice at http://www.w3schools.com/webservices/tempconvert.asmx WSDL url=http://www.w3schools.com/webservices/tempconvert.asmx?WSDL And i want to call FahrenheitToCelsius method in the web service,And retrieve the return values. I've done this easily using ksoap library. But now i need to implement an android client using HttpClient too. How can i pass the parameters,and get return values? Almost all searches related to this, had directed to the below link.But i am not sure how to use it ,to accomplish what i need http://lukencode.com/2010/04/27/calling-web-services-in-android-using-httpclient/ http://lukencode.com/2010/04/27/calling-web-services-in-android-using-httpclient/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android.bat update sdk --no-ui AND password prompts
Hello All, I've been asked to look at installing the tools for Android Development on a cluster of computers at work. I've found that installing the SDK and then running android.bat update sdk --no-ui is working perfectly until it gets to a few sites it would like a username and password for (HTC and Motorola). Has anyone got any suggestions as to how I can get round this whilst staying on the command line? I'm wondering if I could use the --filter option but I've not managed to find a good link to documentation yet. So if there is one this would be most welcome. Being a computer room for students we can't give them all admin rights which would of course be the easy solution. Even if I was to register accounts for these sites, not that I've read the TCs for both yet, I'm also not sure I can fed them in from the command line. If there's a better mailing list for this question please accept my apologies and point me in the right direction. Regards and Thanks, Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Wall Paper app Problem
Hey guys right now Im working on a wallpaper app. Its really just a project to learn more about android/ the play store and give some exposure to my moms photos. (She is a profesional photographer.) I have it setup with a big picture at the top of the app, and a horizontal scrollview with the other pics on the bottom. With a button in the middle to set the wall paper. That all works great. But my question is how do i get the photo to match the screen correctly. Sinse these are pro pictures the reolution is crazy big. I can think of two solutions but not sure. A) could i just put difrent size pics in each drawable folder or B) code some way where it scales the pic. Any help would be apreciated -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] [NDK - Running compiled file issue] - eh_frame_hdr
I compiled simple file main.cpp using android-ndk-r8b: #include stdio.h #include stdlib.h int main(void) { puts(!!!Hello World!!!); return EXIT_SUCCESS; } I used command as follow: .../android-ndk-r8b/ndk-build APP_ABI=x86 from the directory of main.cpp file My Android.mk file: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_CFLAGS += -fPIC LOCAL_MODULE := main LOCAL_SRC_FILES := main.cpp include $(BUILD_EXECUTABLE) Then I tried to open this file on debian x86 and I have this information: ./main: No such file or directory then I used command: ld main and had information: ld: error in main(.eh_frame); no .eh_frame_hdr table will be created. ld: warning: cannot find entry symbol _start; defaulting to 08048320 Is it possible to run file compiled via android-ndk on a common linux x86 distribution? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 sure device support Open Accessory Mode
Hi, I have a Android 4.0 Tablet from China and there is no manifacturer, no communication info, no support. I want to try this tablet with our product(Accessory). I write something to my product and it can working with other Android Devices. For example Samsung Galaxy S2 passing correctly to AOA mode. Everything likes okey but tablet not pass AOA mode. So how can I understand, tablet support accessory mode or not? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: emulator-arm.exe has stopped working
Were you ever able to solve this issue? I am getting the same issue now. On Saturday, February 25, 2012 9:48:29 AM UTC-4, Vicky wrote: Hello Friends, This is my first day with Android and I managed to set up everything. However while running the HelloWorld application I am getting this error - emulator-arm.exe has stopped working and emulator just closes. I have read somewhere that we need to do some changes in Emulator settings. I have Intel Core2 Duo CPU T8300@2.40 Ghz with 2GB RAM. Can anybody tell me whats wrong. Thanks a lot in Advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to configure Android Emulator while using Ubuntu 10.04 as a XEN virtual machine?
I am using Ubuntu Linux 10.04 installed as a XEN virtual machine.I have successfully installed Android SDK(4.1), ADT plugin and created an emulator with ARM processor and 1024 mib sd card . But when i want to launch emulator it gives me following errors. X Error of failed request: BadRequest (invalid request code or no such operation) Major opcode of failed request: 136 (DRI2) Minor opcode of failed request: 1 (DRI2Connect) Serial number of failed request: 18 Current serial number in output stream: 18 If anybody has any solution please share. I have share my problem in this forum http://askubuntu.com/questions/189735/how-to-configure-android-emulator-while-using-ubuntu-10-04-as-a-xen-virtual-mach . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Rotation neutral Gesture
I would like to use Gesture V and ^ - upside down V to do 2 different things but upside down V is still recognized as V. Is there a way to tell Gesture library to do what I want? I have tried using Android's Gesture Overlay and http://depts.washington.edu/aimgroup/proj/dollar/ Is there is any other library that I could use? Cheers Sandeep -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 4.1.1 Jelly Bean
please, help me, how to get any lower firmware? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 remove a context instance from the createPackageContext method ?
Hello, I encounter the same problem, do you find the method to slove this problem, thx. 在 2011年10月26日星期三UTC+8下午6时00分58秒,shuren写道: How to remove a context instance from the createPackageContext method ? I used below createPackageContext. context = _context.createPackageContext(package, Context.CONTEXT_INCLUDE_CODE | Context.CONTEXT_IGNORE_SECURITY); klass = Class.forName(classpath, true, context.getClassLoader()); instance = klass.getMethod(FACTORY_METHOD_NAME, Context.class).invoke(klass, context); I'd like to remove the context instance with resources and codes included the 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] expandable list group view
Hi all, am using expandable listview with image button in both group item and child item but the problem is when i add the image button or button the callback methods setOnGroupClickListener, setOnChildClickListener are not getting called so that am not able to select the list item, is any one know the answer 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
Re: [android-developers] Show Android store when application is not installed
So you say that is possible to show google play then user press on a link in a browser and my application isn't installed, YES ? is it possible ? 2012/9/16 Mark Murphy mmur...@commonsware.com On Sun, Sep 16, 2012 at 2:55 PM, ViToBrothers vitobrothers...@gmail.com wrote: Let me describe my problem. I want to start my application when user press on a link in a Android standard browser. For that I use code from the article How to launch the app from the Web page?. Everything works good when application is installed and I open web browser and click on the link my application automatically launches. But when my application isn't installed on the phone and I click on the same link it shows me 404 ERROR. Is there any method to do something else in that case or may be I am doing something wrong. I want following, If my application is installed when user press on the link amy application must be opened, if my application isn't installed android store must be opened, or that 404 error must be redirected. There is no redirect possibility for intent: URLs. Add the appropriate data element to your manifest to handle a specific http: URL to a Web page that you control, that can either present information to the user about the app or possibly redirect the user to a market: URL for your app. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Best Regards, Victor Apoyan *Website:* http://vitobrothersoft.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] hi....
maybe you can execute a raw sql command insert or ignore into TABLE... 2012/9/15 Ibrahim Sada ibrahim.in...@gmail.com If(! data_available_in_DB) { then insert data into db } Bro i didnt get ur query.. Can u help me out for this Thanx On 13 September 2012 17:52, Ibrahim Sada ibrahim.in...@gmail.com wrote: okey dear thanx very much On 13 September 2012 17:35, Rocky rkjhaw1...@gmail.com wrote: exactly.. :) Then before insertion system will erase all info from db, u wouldn't get any kinds of repetition of data. OR check if data is available into db If(! data_available_in_DB) { then insert data into db } this is second way to handl.e On Thu, Sep 13, 2012 at 5:28 PM, Ibrahim Sada ibrahim.in...@gmail.comwrote: u mean i have to call this method before inserting? public boolean deleteRecord(long rowId) { return db.delete(DATABASE_TABLE, KEY_ROWID + = + rowId, null) 0; } thnx dear.. On 13 September 2012 17:24, Rocky rkjhaw1...@gmail.com wrote: delete query of that table. u need to delete all data of that table before inserting. On Thu, Sep 13, 2012 at 1:00 PM, Ibrahim Sada ibrahim.in...@gmail.com wrote: How to query deari want to know i have tried alot... thnx dear.. On 13 September 2012 12:59, Rocky rkjhaw1...@gmail.com wrote: when u will run apps, that many time it will insert into database, two solution - 1. after first time insert, comment this insert statement 2. before insert, write delete query for the same table. On Thu, Sep 13, 2012 at 12:55 PM, Ibrahim Sada ibrahim.in...@gmail.com wrote: Hello friends... i am inserting values in databse sqlite table from the code... But when ever i run the code or programe itse inserting value again Assume i have 1,2,3,4,5 and i run the code then its inserting 1,2,3,4,5 and when i run the code again its comming twice... that is 1,2,3,4,5 1,2,3,4,5 can any one help me... Thanx in advance,,, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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