[android-developers] Inherited a mostly working app from Eclipse/PhoneGap. Brought up in AndroidStudio and trying to figure it all out. If my target .apk has no .class files and is all .html .js and
Hello friends - Long time java developer here with plenty of experience in the Eclipse arena, server side stuff mostly with j2ee. Anyways, I inherited an application from a guy that literally went out for a cigarette after lunch and never came back. I've got the source project from his workstation and working .apks from tablet devices. When I look in the .apk that runs on the tablet, all I have is .html and .js pages. Cordova is referenced in several places. I decided to try to come up to speed on the newest tools and brought his project folder up in Android Studio. I'm seeing several of the .js and .html files that arrive in the .sdk. Curiously, I see a bunch of java files, which won't compile due to missing dependencies. The jars they want just aren't in the resources lib on his machine. I download 'em and attach them, and I get compilation and further in the build process. But I'm trying to figure out why I have java files at all. To what end? Also, I'm a bit lost as to how the .apk that got published wound up with a bunch of cordova/.../../.js files in it. Any help for the new idiot would be greatly appreciated. Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/3ef82f7b-f9e4-4b03-89a1-02d8f02b9cff%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] "Params" when using AsyncTask
When using AsyncTask, there are always some params associated: AsyncTaskAnd when using it, I see all kinds of variations, where Params, Progress, and Result are swapped out with String, Void, Integer, etc. I'm new to Android and Java, so just wondering if this is a special way that Java lets us customize the AsyncTask methods to accept whatever datatype we want. Is this what is referred to as a generic? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/e9660ad5-b52f-4dfc-83c9-0f6d113ac3ed%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Trying to drive steaming music to my Android AI map from Google Play Music
Very close. So, from trial and error, I know that I can get a full URI for finding different classes of music. For example, as long as I am logged in, the URI https://play.google.com/music/listen?gclid=CPG37fKW_c0CFcmngQodRqUOrA=ds#/wst/st/2701b561-660b-3da0-b6be-95eb083fba34 will pull up my subscribed Google Play Music and show the 80s page. The only thing it does not do, that I need to do to have a solution, is punch the "play" button. Is there another attribute or argument that I can add to the url to get it to "play"? if not, is there a way my application can locate and punch the "play" button? It is actually just the right pointing giant arrow head. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/6bca3dde-0094-4fe1-94ed-8dff23530c82%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Android external touch screen help
I have a playjam gamestick rooted with full Android 4.1.2 and a Hyundai D320MLI 32" IR touch screen monitor and I want to sync them together but they wont. Does anyone have any ideas how to get them to communicate? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/68efb32e-d5ea-4b5f-8043-c8f528bb3874%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Regarding Android Studio
Dear friends, I am facing an issue with using a target platform for Android Studio while trying to create an emulator through AVD for Froyo i have opened the AVD manager and selected Froyo API 8 and downloaded the Google API and the ARM APIw However after downloading, Froyo is nowhere to be seen in the list of downloaded target platforms. Such that I am not able to use the specific API. Note that I would like to use Froyo due to system compatibility and I am trying to install this on a few machines. Can anyone please help me with this issue? With Regards, Brian -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/2ad7b329-8e45-40ac-bfd7-07587eb0aaa7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: BlueTooth Low Energy quick question
Welcome to the club of those who have no idea. 129 has the description 'Gatt Internal error' which means Android has no idea either. Something didn't work. Another error code which is equally as obscure and useless is 133 'Gatt error'. I guess the only difference is that with 129 something messed up in Google's code but they don't know what, and the 133 means something unexpected happened in the BLE exchange but they don't know what. I wait anxiously for Google go give us a better explanation as to what these error codes might mean. They are quite frequent. On Sunday, August 11, 2013 at 11:41:03 PM UTC-4, darrinps wrote: > > Anyone know what status 129 means? I can't seem to find much on it via > Google. > > I connect to a BLE device and it says it has services to discover (via > using BluetoothGatt.discoverServices()). It then hits this method: > > @Override > public void onServicesDiscovered(BluetoothGatt gatt, int status) > { > if (status == BluetoothGatt.GATT_SUCCESS) > { > broadcastUpdate(ACTION_GATT_SERVICES_DISCOVERED); > } > else > { > Log.w(TAG, "onServicesDiscovered received: " + status); > } > } > > The log message gets written saying that the status is 129, but I have no > idea what 129 is. > > Any help is appreciated! > > Thanks. > > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/1135120d-ad40-4f09-8cd9-e9bf82693896%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: Can BLE pairing PIN length be shorter than 6 digits when input from UI
James, This sounds weird. PINs were only used in classic Bluetooth as far as I know and have since been replaced with SSP. I don't think iOS can do classic Bluetooth so I would expect your are being requested to enter an SSP passcode exposed by a peer device in BTLE. In that case a 6-digit number between "00" and "99" is generated (same is true for classic actually). By the BT standard, all six digits must be present. The iOS (or somebody) must be bending the rules because a three-digit entry should fail. At least that is my understanding. On Monday, December 28, 2015 at 6:44:04 AM UTC-5, zhangq...@hotmail.com wrote: > > Hi, > > We received a requirement of using 3 digits PIN for pairing with phone. > The PIN length had been changed to 3 on our device, pairing with IOS device > is okay by inputing only 3 numbers. But when pairing with Android device, > incorrect PIN reported when only 3 number inputed; pairing succeeded when > appending three zero in front of the three number. My question is if it is > how Android was designed? If not, how should I pair successfully with only > inputing 3 digits number. > > Thanks, > James > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/10b546a9-47a7-4b5a-a8b3-a39420d29f6a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Successively poor performance of BTLE device discovery in newer versions
I do not understand this behavior at all but I have noted on the same set of devices as I have moved from OS 4.3 to 6.0 that discovery of Bluetooth Low Energy devices using the 'settings/bluetooth' option is progressively worse. In 5.1 and 6.0 it is so bad that there are certain devices I do not even discover anymore, whereas in pre-5 I have no problem discovering the devices. On the other hand if I write my own scanner app I discover things fine. The reason for using the settings/Bluetooth option (even inside my app) is that I need to work and pair with both classic and BTLE devices. There is no API for pairing in classic BT (without doing something unreliable like reflection). However, there is a bonding method that has been added to gatt. Has Google made the scan rate increasingly infrequent in the 'settings/bluetooth' option that it is practically useless? I am wondering if I will need to write a completely separate 'activity' for discovering and pairing to BTLE devices. Any info is greatly appreciated. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/c999e93a-535a-424d-9c3f-144d0837563e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: BluetoothLeGatt doesn't connect on Samsung
Anything with Error 133 gives useless information. First, are the other two devices pairable (require security/encryption) or is it just the custom device? If it is the former I have found that on Android 5+ there is a bug where one is allowed to try to read or write characteristics that require encryption to be established before that happens. Android provides no API to let the application know when encryption has been established after one receives a connection indication. It seems like pre-5.0 Android prevented the application from doing any reads/writes before encryption was established. However, in 5.0+ that is no longer true. So if your app tries to do something right after the connection indication (besides service discovery) and encryption is not established, an error will result. I do not believe I got treated to an 'insufficient security' error in that case. As a work around I introduced a hack sleep after the connection indication for 5.0+. Its a big-time sucky way to do something because it will be device dependent and who knows how long it takes on device x? However, it did solve the problem in my case for peer device X on Android device N. Its just a guess unfortunately. On Thursday, October 8, 2015 at 6:31:04 AM UTC-4, Wenshan wrote: > > Hello everyone, > > On Samsung Age Plus (API Level 22), the official sample BluetoothLeGatt > can't connect to a customized Bluetooth device that requires encrypted > handshake, while some other devices such as `HTC One M7 API Level 21` and > `Huawei Mate 7 API Level 19` are fine. > > These two lines from logcat might be useful: > > `onClientConnectionState() - status=34 clientIf=6 device=FC:58:FA:A1:11:A9` > `onClientConnectionState() - status=133 clientIf=6 > device=FC:58:FA:A1:11:A9` > > From > https://github.com/rosterloh/AndroidBuddi/blob/c8e09068b4cdddfefcfad35eb1c1c3538aa81f3d/BlueBand/src/main/java/com/buddi/client/ble/error/GattError.java > : > > # 0x22H is 34D, 0085H is 133D > ``` > case 0x22: > return "GATT CONN LMP TIMEOUT"; > ... > case 0x0085: > return "GATT ERROR"; > ``` > > Have been Googling for a long time but still have no clue, any idea is > welcome. > > More detailed log: http://dpaste.com/02F7MN8 > > Please let me know if more information is required. > > > Thanks, > Wenshan > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/de22e4ad-b8d1-4a19-bcba-2549172a56df%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Networked Bitmap used in Search provider
I have a suggestions provider successfully hooked into the search widget showing results from my data that is stored on the network (and pulled to the device). That data includes an icon in addition to some string data. In my search activity, I can show both the label/text information as well as the drawable bitmap that I downloaded and have cached in ram locally in a service instance. I'd like to show that icon in the suggestions list along side the label text. I tried using SUGGEST_COLUMN_ICON_1 with the drawable passed in the record but that didn't work - the Suggestions code needs either a resource id, a uri to a file, or content (scheme_content?). I know I don't have the first two. Is there a way to create a content provider (presumably something that I can hand off to the Suggestion apis) from a bitmap drawable? Thanks, Brian -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Android Mobile SDE oppotunities
I am seeking an experienced, passionate, and talented Android Developer that is comfortable with end to end development. Our client is a rapidly growing company who is creating a ground breaking, innovative, and practical solution to a problem experienced by millions of people daily. They recently secured sever high profile partnerships for their product. As an Android Developer here, you would own the mobile development process for the development of new and existing products. By bringing your experience in design, architecture, and development of complex mobile applications you would play an integral role in developing and extending the core platform that will make a world class product and experience. This is a direct hire, full-time opportunity! This person must be able to work onsite in our client’s Seattle office. Requirements: - 5+ years of experience in production level software development - Examples of current applications created - Knowledge of client-server development - Bachelors Degree in Computer Science or equivalent work history -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Networking works with emulator but not with device
I have an application that works through http, although not through the browser. It works fine on the emulator, but when I build the app for a device, it doesn't communicate. Basically the app communicates with a web server that is running PHP and asp.net. I can browse to the website using a browser on the device, but when I try to connect to it through my app it fails. Again, it works fine through the emulator. Any ideas about things to try, debugging steps, etc? Thanks, Brian -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to save AsyncTask class object in onSaveInstanceState()
Hi, Basically you cannot reuse an instance of AsyncTask, in the sense of starting it again. As soon as the task is finished you can only get the results out of it and throw it away. And I guess the latter is what you need to be able of after a configuration change happened. You can re-attach to an AsyncTask by saving a reference in Activity#onRetainNonConfigurationInstance() and getting that reference back in Activity#onCreate() by calling Activity#getLastNonConfigurationInstance() . I crafted myself a little helper class [1] which makes this approach a little easier. Though, I'd suggest to not use AsyncTasks too often for long running actions. You can get quickly into trouble in connection with the Activity lifecycle. Maybe an IntentService is a good alternative: you can fire off an Intent to start the work and as soon as it is finished you send back the results with a Broadcast (maybe by utilizing LocalBroadcastManager [2] or some other bus system). [1] https://gist.github.com/4257045 [2] http://developer.android.com/reference/android/support/v4/content/LocalBroadcastManager.html Am Montag, 10. Dezember 2012 10:38:58 UTC+1 schrieb monty: Hello is this possible to save AsyncTask class object on rotation and reuse it again. public class MyTask extends AsyncTaskVoid, Void, Integer { } i am using 4.03 version any good solution. Thanks -- [image: Facebook]http://www.facebook.com/pages/FINARX-GmbH/159293750854154 [image: XING] http://www.xing.com/companies/finarxgmbh/about -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Send SMS every x minutes
You are calling Thread.sleep() in the onClickHandler of your send button. Besides that, you're also trying to do all the repeated message sending in that handler. This is most likely to fail because this way you are blocking the UI thread. You shouldn't do any long running actions in the main thread. If you do, Android will recognize an ANR and will consequently kill your app's process. Instead you should consider using a Service (I'd prefer IntentService [1]). In that Service you can handle the message sending without block the main thread. Combine that with the AlarmManager [2] to trigger the service every time you want to send messages (so you won't need any of that ugly Thread.sleep stuff). [1] http://developer.android.com/reference/android/app/IntentService.html [2] http://developer.android.com/reference/android/app/AlarmManager.html Am Samstag, 24. November 2012 21:25:29 UTC+1 schrieb Bernd Roth: Hi Guys! I have the following problem: The user, who is using the app. should be able to define when he wants to send his or her SMS. Therefore I have a textfield, where the user can define when to send the next SMS ( in minutes! ). Now my problem is that I have two buttons: SMS send and Cancel . When the user presses the SMS send button an SMS should be sent and this SMS should be sent every x minutes ( the minutes the user has already defined in the textfield ). But the Cancel button should cancel this process and here is my problem: As soon as the user presses SMS send the Ui hangs and the user is not able to press the cancel button anymore. I know I can solve the problem with a Thread or maybe with the doInBackground method but I am not sure whether I am on the right track! Can anyone help me please, I am not sure whether I am right! Thank you very much! Here is my code: package com.example.smsmessageregulary; import android.app.Activity; import android.app.PendingIntent; import android.content.ContentResolver; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.provider.Contacts; import android.provider.ContactsContract; import android.telephony.gsm.SmsManager; import android.view.View; import android.widget.Button; import android.widget.EditText; public class SMSRegulary extends Activity { Button btnSendSMS, PhonePicker; EditText txtPhoneNo; EditText txtMessage; EditText txtCounter; int counter = 0; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_smsregulary); btnSendSMS = (Button) findViewById(R.id.btnSendSMS); txtPhoneNo = (EditText) findViewById(R.id.txtPhoneNo); txtMessage = (EditText) findViewById(R.id.txtMessage); txtCounter = (EditText) findViewById(R.id.txtCounter); PhonePicker = (Button) findViewById(R.id.picker); PhonePicker.setOnClickListener(new View.OnClickListener(){ public void onClick(View v) { // TODO Auto-generated method stub ContentResolver cr = getContentResolver(); Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null); if (cur.getCount() 0) { while (cur.moveToNext()) { String id = cur.getString(cur.getColumnIndex(ContactsContract.Contacts._ID)); String name = cur.getString(cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME)); System.out.println(name); if (Integer.parseInt(cur.getString(cur.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER))) 0) { //Query phone here. Covered next System.out.println(HERE); } } } } }); btnSendSMS.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { String phoneNo = txtPhoneNo.getText().toString(); String message = txtMessage.getText().toString(); String Repeater = txtCounter.getText().toString(); Repeater = Repeater + 000; Integer r = Integer.valueOf(Repeater); long l = r.longValue(); if (phoneNo.length()0 message.length()0 Repeater.length() == 0) sendSMS(phoneNo, message); else { while ( counter = 99 ) { sendSMS(phoneNo, message); try { Thread.sleep(l); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } } }); } //---sends an SMS message to another device--- private void sendSMS(String phoneNumber, String message) {
[android-developers] Re: SMSmanager SMS getting sent only once and only after reboot
the issue is that the sms gets sent only once Why would you want the SMS to be sent automatically more than once? I guess, if you need it to be sent more often, you need to actually send it again through SMSManager. and that too after I restart the phone Are you saving the newly created SMS to the native store, through utilizing the undocumented ContentProvider? If you do so and save them with the type outbox or queued the stock SMS app will most likely consider them to be send (again) when loading up after reboot. So you would want to make sure that you flag the messages correctly and take extra care when you actually put messages into that database (instead of your own one). Am Dienstag, 14. August 2012 17:50:45 UTC+2 schrieb Junaid Alam: Hi, I have created an application that uses a service and this service sends an SMS using SMS manager, but the issue is that the sms gets sent only once and that too after I restart the phone. I am using Sony Ericsson Xperia. Can anyone please guide me as why the sms gets sent only once. I even tried creating a simple Activity having UI to eneter phone number and message input box and a send button just to test if there is issue with my service. Still it sends sms just once and that too after re-boot. Thanks in advance Junaid -- [image: Facebook]http://www.facebook.com/pages/FINARX-GmbH/159293750854154 [image: XING] http://www.xing.com/companies/finarxgmbh/about -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Replacing double whitespace with single whitespace
It might be better to use a meaningful regular expression. Or you could try to first remove all whitespaces and then add one between each pair of non-whitespaces. Besides, this isn't actually an Android-related question, is it? Am Dienstag, 6. November 2012 14:49:26 UTC+1 schrieb Solo: Given a string: (1+2)*(3/4)-(5+6) I want to add whitespaces to it, so it becomes: ( 1 + 2 ) * ( 3 / 4 ) - ( 5 + 6 ) This is my function for this, but it makes double whitespaces. Can anyone help me please? public void addSpaces (){ editTextInputDataTemp = editTextInputDataTemp.replaceAll(\\+, + ); editTextInputDataTemp = editTextInputDataTemp.replaceAll(\\-, - ); editTextInputDataTemp = editTextInputDataTemp.replaceAll(\\*, * ); editTextInputDataTemp = editTextInputDataTemp.replaceAll(\\/, / ); editTextInputDataTemp = editTextInputDataTemp.replaceAll(\\(, ( ); editTextInputDataTemp = editTextInputDataTemp.replaceAll(\\), ) ); } -- [image: Facebook]http://www.facebook.com/pages/FINARX-GmbH/159293750854154 [image: XING] http://www.xing.com/companies/finarxgmbh/about -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Nexus 7 throwing IOException for Geocoder.getFromLocationName()
I'm trying to use Geocoder.getFromLocationName() and although the same search string works fine on these physical devices: - Nexus 1 (2.3.6) - Samsung Galaxy SIII (4.0.4) - Nexus S (4.0.4) - Galaxy Nexus (4.1.1) on a Nexus 7 (4.1.1), the method throws a Service not available IOException. I've also checked Geocoder.isPresent() -- and it returns true. Here is the simplified code: Geocoder geocoder = new Geocoder(mContext); ListAddress addressFromSearch = geocoder.getFromLocationName(10918, 1); I've also tried each device using mobile data and wifi-only and they all work fine. Any thoughts on what I may be missing? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Any pointers?
Hi guys and gals! I would appreciate any pointers as to what I'm doing wrong. I'm learning Android development and am a newbie. I'm doing the online tutorials in the developers section and have hit a snag. I have two files :*activity_main.xml *and *strings.xml* (see attached screen captures). When I co to compile and run the activity_main.xml file I get the following error message: *[2012-10-03 14:45:31 - My First App] Error in an XML file: aborting build.* The tutorial I am following is this one: * http://developer.android.com/training/basics/firstapp/building-ui.html* I have compared my files with the ones in the tutorial yet can not see what may be screwing up. TIA for any help and advice! Brian :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] testing in app billing - I can't repurchase after refunding
Hello I am testing in app billing. I am using the open source android in app billing library. Everything seems to work as expected when I make my purchase (enabling the extra functionality) as well as when I refund or cancel my purchase (disabling the extra functionality) so I must be recieving the purchase state PURCHASED, and purchase state REFUNDED properly. But I encounter a problem when I test re-purchasing the extra functionality after the refund. Google play will allow me to re-purchase, but the transaction is always cancelled. I then tried to clear data on my google play application, and when I tried to re-purchase Google play shows me a pop-up You already own this item which isn't true. Has anybody encountered this issue? Is this an issue in Google Play or can this be caused by my code? Thanks Brian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 do users find new apps?
In the old Android Market store, uploading a new app would automatically show up in the Just In tab. In the new Google Play Store, it seems that they have removed this tab and replaced it with Top apps only. I'm wondering how developers nowadays are suppose to get *organic *downloads from people simply browsing the app store. This new system doesn't seem to give a chance for new apps to make any impressions in front of a big audience. Is the only way now through advertising and self-promotion of the apps? 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: How to properly implement dismissing HTML5 video from WebView
Hi Dongsheng, You may want to post some code, and the stacktrace and logcat console of the crash your experiencing. --Brian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 is this done? App uses fortran and executable?
So, I have been interested in a project that is on kickstarter that hasn't got any traction, but has done a few interesting things. They have more or less ported Octave and gnuplot to Android. This is cool and all that, but I am wondering how is that possible? The reason I ask that (excuse my ignorance, I am just started with NDK), is because A: Octave includes Fortran code and my book about the NDK says it supports C and C++ only and B: Can you include executables in an Android application? Is that what they are doing? Here is the project I am talking about: http://www.kickstarter.com/projects/6438588/sombreros-for-the-android-world -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to properly implement dismissing HTML5 video from WebView
Hello Mariusz, Sorry about the slowness of my reply. In any case, getFocusedChild() will return a VideoView object in froyo, and gingerbread. But in Honeycomb and above it returns some inner class of HTML5VideoFullScreen. As a result much of the example code out there for playing video's embedded in webview's does not work on honeycomb and gingerbread. --Brian On Wednesday, May 23, 2012 4:43:53 PM UTC-4, Mariusz wrote: Brian, I have exactly the same - getFocusedChild() method returns a HTML5VideoFullScreen object, but I saw on several examples it should/could(?) return a VideoView object. Regards, Mariusz On Wednesday, May 23, 2012 1:34:39 AM UTC+2, Brian wrote: Mariusz, I almost can. If you call getFocusedChild() on the FrameLayout, it returns a HTML5VideoFullScreen$SurfaceViewHolder object, which is an inner class of HTML5VideoFullScreen. I am not sure if there is way to access the HTML5VideoFullScreen object from that SurfaceViewHolder. However at this point, all these classes are private APIs, and using them would likely be dangerous code, since these are not interfaces that applications are suppose to be able to access. On Tuesday, May 22, 2012 7:07:24 PM UTC-4, Mariusz wrote: Brian, I have one question - are you able somehow to get access to Video object on 'onShowCustomView(View, CustomViewCallback)' method? In my case view returns FrameLayout and callback returns HTML5VideoFullScreen object. Thanks, Mariusz On Wednesday, May 23, 2012 12:40:16 AM UTC+2, Brian wrote: Mariusz, Thank you. I was getting hung up by the fact that I was specifically using the key listener to listen for KEYCODE_BACK, using the onBackPressed() method seems to solve my issue. Thank you. On Tuesday, May 22, 2012 5:37:55 PM UTC-4, Mariusz wrote: Hi, I implemented back action in the following way (activity level): @Override public void onBackPressed() { if(mCustomView != null mWebChromeClient != null) { mWebChromeClient.onHideCustomView(); } } ... at MyWebChromeClient level: @Override public void onHideCustomView() { if (mCustomView == null) return; mCustomView.setVisibility(View.GONE); mCustomViewContainer.removeView(mCustomView); mCustomView = null; mCustomViewContainer.setVisibility(View.GONE); mCustomViewCallback.onCustomViewHidden(); setStatusBarVisibility(true); mContentView.setVisibility(View.VISIBLE); } Regards, Mariusz On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian wrote: I think that I should probably add to my description.. what I would my goal is. My goal is for the HTML5 video to play in fullscreen mode, when the use presses the fullscreen button, but when the users presses the back button to dismiss the video, but still show the original webview. With the exception that i do not want to hide the video, if the MediaController is currently visible in front of the video, in that case only the MediaController should get hidden (which happens automatically) On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian wrote: I think that I should probably add to my description.. what I would my goal is. My goal is for the HTML5 video to play in fullscreen mode, when the use presses the fullscreen button, but when the users presses the back button to dismiss the video, but still show the original webview. With the exception that i do not want to hide the video, if the MediaController is currently visible in front of the video, in that case only the MediaController should get hidden (which happens automatically) On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian wrote: I think that I should probably add to my description.. what I would my goal is. My goal is for the HTML5 video to play in fullscreen mode, when the use presses the fullscreen button, but when the users presses the back button to dismiss the video, but still show the original webview. With the exception that i do not want to hide the video, if the MediaController is currently visible in front of the video, in that case only the MediaController should get hidden (which happens automatically) On Tuesday, May 22, 2012 5:37:55 PM UTC-4, Mariusz wrote: Hi, I implemented back action in the following way (activity level): @Override public void onBackPressed() { if(mCustomView != null mWebChromeClient != null) { mWebChromeClient.onHideCustomView(); } } ... at MyWebChromeClient level: @Override public void onHideCustomView() { if (mCustomView == null) return; mCustomView.setVisibility(View.GONE); mCustomViewContainer.removeView(mCustomView); mCustomView = null; mCustomViewContainer.setVisibility(View.GONE); mCustomViewCallback.onCustomViewHidden(); setStatusBarVisibility
[android-developers] How to properly implement dismissing HTML5 video from WebView
I am having the following problem. The following problems only apply on Ice Cream Sandwich (probably also happen on honeycomb) but do not happen on gingerbread or froyo. If i implement onShowCustomView() method of a WebChromeClient to show fullscreen video for an embedded video in a WebView. I don't know how to override the back button properly to dismiss the video. If i dont override the back button, then presses the back button closes the whole activity. If i listen for the back button events, on the focused child of the custom view, than I can dismiss the video but, I have no way of detecting if the MediaController is showing, in which case I would prefer not to dismiss the video. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 properly implement dismissing HTML5 video from WebView
I think that I should probably add to my description.. what I would my goal is. My goal is for the HTML5 video to play in fullscreen mode, when the use presses the fullscreen button, but when the users presses the back button to dismiss the video, but still show the original webview. With the exception that i do not want to hide the video, if the MediaController is currently visible in front of the video, in that case only the MediaController should get hidden (which happens automatically) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 properly implement dismissing HTML5 video from WebView
Mariusz, Thank you. I was getting hung up by the fact that I was specifically using the key listener to listen for KEYCODE_BACK, using the onBackPressed() method seems to solve my issue. Thank you. On Tuesday, May 22, 2012 5:37:55 PM UTC-4, Mariusz wrote: Hi, I implemented back action in the following way (activity level): @Override public void onBackPressed() { if(mCustomView != null mWebChromeClient != null) { mWebChromeClient.onHideCustomView(); } } ... at MyWebChromeClient level: @Override public void onHideCustomView() { if (mCustomView == null) return; mCustomView.setVisibility(View.GONE); mCustomViewContainer.removeView(mCustomView); mCustomView = null; mCustomViewContainer.setVisibility(View.GONE); mCustomViewCallback.onCustomViewHidden(); setStatusBarVisibility(true); mContentView.setVisibility(View.VISIBLE); } Regards, Mariusz On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian wrote: I think that I should probably add to my description.. what I would my goal is. My goal is for the HTML5 video to play in fullscreen mode, when the use presses the fullscreen button, but when the users presses the back button to dismiss the video, but still show the original webview. With the exception that i do not want to hide the video, if the MediaController is currently visible in front of the video, in that case only the MediaController should get hidden (which happens automatically) On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian wrote: I think that I should probably add to my description.. what I would my goal is. My goal is for the HTML5 video to play in fullscreen mode, when the use presses the fullscreen button, but when the users presses the back button to dismiss the video, but still show the original webview. With the exception that i do not want to hide the video, if the MediaController is currently visible in front of the video, in that case only the MediaController should get hidden (which happens automatically) On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian wrote: I think that I should probably add to my description.. what I would my goal is. My goal is for the HTML5 video to play in fullscreen mode, when the use presses the fullscreen button, but when the users presses the back button to dismiss the video, but still show the original webview. With the exception that i do not want to hide the video, if the MediaController is currently visible in front of the video, in that case only the MediaController should get hidden (which happens automatically) On Tuesday, May 22, 2012 5:37:55 PM UTC-4, Mariusz wrote: Hi, I implemented back action in the following way (activity level): @Override public void onBackPressed() { if(mCustomView != null mWebChromeClient != null) { mWebChromeClient.onHideCustomView(); } } ... at MyWebChromeClient level: @Override public void onHideCustomView() { if (mCustomView == null) return; mCustomView.setVisibility(View.GONE); mCustomViewContainer.removeView(mCustomView); mCustomView = null; mCustomViewContainer.setVisibility(View.GONE); mCustomViewCallback.onCustomViewHidden(); setStatusBarVisibility(true); mContentView.setVisibility(View.VISIBLE); } Regards, Mariusz On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian wrote: I think that I should probably add to my description.. what I would my goal is. My goal is for the HTML5 video to play in fullscreen mode, when the use presses the fullscreen button, but when the users presses the back button to dismiss the video, but still show the original webview. With the exception that i do not want to hide the video, if the MediaController is currently visible in front of the video, in that case only the MediaController should get hidden (which happens automatically) On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian wrote: I think that I should probably add to my description.. what I would my goal is. My goal is for the HTML5 video to play in fullscreen mode, when the use presses the fullscreen button, but when the users presses the back button to dismiss the video, but still show the original webview. With the exception that i do not want to hide the video, if the MediaController is currently visible in front of the video, in that case only the MediaController should get hidden (which happens automatically) On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian wrote: I think that I should probably add to my description.. what I would my goal is. My goal is for the HTML5 video to play in fullscreen mode, when the use presses the fullscreen button, but when the users presses the back button to dismiss the video, but still show
[android-developers] Re: How to properly implement dismissing HTML5 video from WebView
Mariusz, I almost can. If you call getFocusedChild() on the FrameLayout, it returns a HTML5VideoFullScreen$SurfaceViewHolder object, which is an inner class of HTML5VideoFullScreen. I am not sure if there is way to access the HTML5VideoFullScreen object from that SurfaceViewHolder. However at this point, all these classes are private APIs, and using them would likely be dangerous code, since these are not interfaces that applications are suppose to be able to access. On Tuesday, May 22, 2012 7:07:24 PM UTC-4, Mariusz wrote: Brian, I have one question - are you able somehow to get access to Video object on 'onShowCustomView(View, CustomViewCallback)' method? In my case view returns FrameLayout and callback returns HTML5VideoFullScreen object. Thanks, Mariusz On Wednesday, May 23, 2012 12:40:16 AM UTC+2, Brian wrote: Mariusz, Thank you. I was getting hung up by the fact that I was specifically using the key listener to listen for KEYCODE_BACK, using the onBackPressed() method seems to solve my issue. Thank you. On Tuesday, May 22, 2012 5:37:55 PM UTC-4, Mariusz wrote: Hi, I implemented back action in the following way (activity level): @Override public void onBackPressed() { if(mCustomView != null mWebChromeClient != null) { mWebChromeClient.onHideCustomView(); } } ... at MyWebChromeClient level: @Override public void onHideCustomView() { if (mCustomView == null) return; mCustomView.setVisibility(View.GONE); mCustomViewContainer.removeView(mCustomView); mCustomView = null; mCustomViewContainer.setVisibility(View.GONE); mCustomViewCallback.onCustomViewHidden(); setStatusBarVisibility(true); mContentView.setVisibility(View.VISIBLE); } Regards, Mariusz On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian wrote: I think that I should probably add to my description.. what I would my goal is. My goal is for the HTML5 video to play in fullscreen mode, when the use presses the fullscreen button, but when the users presses the back button to dismiss the video, but still show the original webview. With the exception that i do not want to hide the video, if the MediaController is currently visible in front of the video, in that case only the MediaController should get hidden (which happens automatically) On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian wrote: I think that I should probably add to my description.. what I would my goal is. My goal is for the HTML5 video to play in fullscreen mode, when the use presses the fullscreen button, but when the users presses the back button to dismiss the video, but still show the original webview. With the exception that i do not want to hide the video, if the MediaController is currently visible in front of the video, in that case only the MediaController should get hidden (which happens automatically) On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian wrote: I think that I should probably add to my description.. what I would my goal is. My goal is for the HTML5 video to play in fullscreen mode, when the use presses the fullscreen button, but when the users presses the back button to dismiss the video, but still show the original webview. With the exception that i do not want to hide the video, if the MediaController is currently visible in front of the video, in that case only the MediaController should get hidden (which happens automatically) On Tuesday, May 22, 2012 5:37:55 PM UTC-4, Mariusz wrote: Hi, I implemented back action in the following way (activity level): @Override public void onBackPressed() { if(mCustomView != null mWebChromeClient != null) { mWebChromeClient.onHideCustomView(); } } ... at MyWebChromeClient level: @Override public void onHideCustomView() { if (mCustomView == null) return; mCustomView.setVisibility(View.GONE); mCustomViewContainer.removeView(mCustomView); mCustomView = null; mCustomViewContainer.setVisibility(View.GONE); mCustomViewCallback.onCustomViewHidden(); setStatusBarVisibility(true); mContentView.setVisibility(View.VISIBLE); } Regards, Mariusz On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian wrote: I think that I should probably add to my description.. what I would my goal is. My goal is for the HTML5 video to play in fullscreen mode, when the use presses the fullscreen button, but when the users presses the back button to dismiss the video, but still show the original webview. With the exception that i do not want to hide the video, if the MediaController is currently visible in front of the video, in that case only the MediaController should get hidden (which happens automatically) On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian
Re: [android-developers] How to check the current contentView?
Maybe using a static var to maintain the view you're using and get the value in any other point you need to validate it. 2012/5/15 Justin Anderson magouyaw...@gmail.com This is not the typical Android workflow, so I highly recommend you don't do this... But, if you are dead set on this kind of behavior, do the following: 1. Put all your main views you want in either a ViewFlipper (or ViewSwitcher if there are only 2) 2. After calling setContentView, get a reference to the main views by calling findViewById 3. When the back button is pressed check the current view of the ViewFlipper or ViewSwitcher against the references you saved in step 2 Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, May 15, 2012 at 4:05 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: Hi all, Is this possible to check the current contentView? As in my code, I am using a single activity, along with three different content views (using setContentView()), which I am changing according to my requirement. All is working fine till now. Now, what I want is that - when *clicking the back button, I want to check the current view (content view)*, and proceed further depending on the view. How can I achieve this if it is possible? Here is my java code, as follows: package com.test; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.ListView; public class Test_appActivity extends Activity implements OnClickListener, OnItemClickListener{ /** Called when the activity is first created. */ ListView lv; Button btn1,btn2; String[] str=new String[]{one,two}; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); first_view(); } public void first_view() { setContentView(R.layout.main); lv=(ListView)findViewById(android.R.id.list); lv.setTextFilterEnabled(true); ArrayAdapterString adapter= new ArrayAdapterString(getApplicationContext(), android.R.layout.simple_list_item_1,str); lv.setAdapter(adapter); lv.setOnItemClickListener(this); } public void onClick(View v) { first_view(); } //@Override //public void onBackPressed() { // if(findViewById(android.R.id.content).equals((View)this.findViewById(R.layout.one)) //|| findViewById(android.R.id.content).equals((View)this.findViewById(R.layout.two))) //{ //first_view(); //} //else //{super.onBackPressed(); //} //} public void onItemClick(AdapterView? arg0, View arg1, int arg2, long arg3) { if(arg2==0) { setContentView(R.layout.one); btn1=(Button)findViewById(R.id.btn); btn1.setOnClickListener(Test_appActivity.this); } else { setContentView(R.layout.two); btn2=(Button)findViewById(R.id.btn1); btn2.setOnClickListener(Test_appActivity.this); } } } Please, help me out in this. With Regards, Narendra -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- *-* *Brian Collo Gonçalves* Líder de Sistemas *NGM Business Solution* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Tabs
Hi, I am working on an android application project where I am using the tabs. I would like to connect both the XML and activity class to the tab how can I do this ? Currently I am using this code intent = new Intent().setClass(this, Info.class); spec = tabHost.newTabSpec(Info).setIndicator(Info, res.getDrawable(R.drawable.ic_tab_settings)) .setContent(R.id.info); tabHost.addTab(spec); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Tab Host linking with XML file and Actitivity class
Thanks should I use 2 setcontent? On Thursday, May 10, 2012 6:26:07 AM UTC+2, MagouyaWare wrote: http://developer.android.com/reference/android/widget/TabHost.TabSpec.html#setContent%28android.content.Intent%29 Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, May 8, 2012 at 5:11 AM, Brian Muscat brianmus...@dss.com.mtwrote: Hi, I am trying to set the tab host so that each of the tabs has an XML file and and Activity file currently I am using intent = new Intent().setClass(this, Settings.class); spec = tabHost.newTabSpec(Settings).setIndicator(Settings, res.getDrawable(R.drawable.ic_tab_settings)) .setContent(R.layout.settings); tabHost.addTab(spec); whit this tabs are viewed as it is supposed buy the Activity class is not connected how can I do this pls? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Tab Host linking with XML file and Actitivity class
OK then how should i connect the xml On 11 May 2012 18:12, Justin Anderson magouyaw...@gmail.com wrote: No... just the one that takes your intent. You are creating the intent but never using it. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, May 11, 2012 at 12:23 AM, Brian Muscat brianmuscat...@gmail.comwrote: Thanks should I use 2 setcontent? On Thursday, May 10, 2012 6:26:07 AM UTC+2, MagouyaWare wrote: http://developer.android.com/**reference/android/widget/** TabHost.TabSpec.html#**setContent%28android.content.**Intent%29http://developer.android.com/reference/android/widget/TabHost.TabSpec.html#setContent%28android.content.Intent%29 Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware On Tue, May 8, 2012 at 5:11 AM, Brian Muscat brianmus...@dss.com.mtwrote: Hi, I am trying to set the tab host so that each of the tabs has an XML file and and Activity file currently I am using intent = new Intent().setClass(this, Settings.class); spec = tabHost.newTabSpec(Settings)** .setIndicator(Settings, res.getDrawable(R.drawable.** ic_tab_settings)) .setContent(R.layout.**settings); tabHost.addTab(spec); whit this tabs are viewed as it is supposed buy the Activity class is not connected how can I do this pls? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Tab Host linking with XML file and Actitivity class
what should be the code On 11 May 2012 21:41, Justin Anderson magouyaw...@gmail.com wrote: Your activity itself has a connection to the XML. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, May 11, 2012 at 12:36 PM, Brian Muscat brianmus...@hotmail.co.ukwrote: OK then how should i connect the xml On 11 May 2012 18:12, Justin Anderson magouyaw...@gmail.com wrote: No... just the one that takes your intent. You are creating the intent but never using it. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, May 11, 2012 at 12:23 AM, Brian Muscat brianmuscat...@gmail.com wrote: Thanks should I use 2 setcontent? On Thursday, May 10, 2012 6:26:07 AM UTC+2, MagouyaWare wrote: http://developer.android.com/**reference/android/widget/** TabHost.TabSpec.html#**setContent%28android.content.**Intent%29http://developer.android.com/reference/android/widget/TabHost.TabSpec.html#setContent%28android.content.Intent%29 Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware On Tue, May 8, 2012 at 5:11 AM, Brian Muscat brianmus...@dss.com.mtwrote: Hi, I am trying to set the tab host so that each of the tabs has an XML file and and Activity file currently I am using intent = new Intent().setClass(this, Settings.class); spec = tabHost.newTabSpec(Settings)** .setIndicator(Settings, res.getDrawable(R.drawable.** ic_tab_settings)) .setContent(R.layout.**settings); tabHost.addTab(spec); whit this tabs are viewed as it is supposed buy the Activity class is not connected how can I do this pls? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Parcelable encountered IOException writing serializable object - Object serializable with array of another serializable
I have 2 serializable classes as follow: @SuppressWarnings(serial) public class Musicas implements Serializable { private String musica; private String link; public Musicas(String musica, String link) { super(); this.musica = musica; this.link = link; } public String getMusica() { return musica; } public void setMusica(String musica) { this.musica = musica; } public String getLink() { return link; } public void setLink(String link) { this.link = link; } } @SuppressWarnings(serial) public class CDs implements Serializable { private Drawable Picture; private String Descricao; private int idCD; private ArrayListMusicas musicas; public ArrayListMusicas getMusicas() { return musicas; } public void setMusicas(ArrayListMusicas musicas) { this.musicas = musicas; } public int getIdCD() { return idCD; } public void setIdCD(int idCD) { this.idCD = idCD; } public Drawable getPicture() { return Picture; } public void setPicture(Drawable picture) { Picture = picture; } public String getDescricao() { return Descricao; } public void setDescricao(String descricao) { Descricao = descricao; } public CDs(Drawable drawable, String descricao, int idcd) { super(); Picture = drawable; Descricao = descricao; idCD = idcd; } public CDs(Drawable picture, String descricao, int idCD, ArrayListMusicas musicas) { this(picture, descricao, idCD); setMusicas(musicas); } } Where my CD Class have an ArrayList of Musics. In my activity, I load the data from a Json to make a gallery of CDs and selecting the CD i have the following code to pass the CD-Musics to a new activity. ArrayListCDs cds = new ArrayListCDs(); ArrayListMusicas musicas = new ArrayListMusicas(); JSONObject json = new JSONObject(sb.toString()); for (int i=1; i = json.getJSONObject(cds).length()-1; i++) { JSONArray jarrayfilho = json.getJSONObject(cds).getJSONArray(String.valueOf(i)); ArrayListMusicas musicas1 = new ArrayListMusicas(); for(int j = 0; j jarrayfilho.length(); j++) { musicas1.add(new Musicas( jarrayfilho.getJSONObject(j).getString(NOME).toString(), jarrayfilho.getJSONObject(j).getString(LINK).toString())); } musicas = musicas1; cds.add(new CDs( ImageOperations(this, jarrayfilho.getJSONObject(0).getString(IMG).toString()), jarrayfilho.getJSONObject(0).getString(CD).toString(), i, musicas ) ); gallery.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView? arg0, View arg1, int arg2, long arg3) { Intent musicas = new Intent(arg1.getContext(), MusicasActivity.class); musicas.putExtra(cd, cds.get(arg2)); startActivity(musicas); } }); But when I call the click event, I get the error: Parcelable encountered IOException writing serializable object Can anyone guide me through this? I have tried everything I found on internet but no clues. What I found that may solve is create a static class/properties, but I don't want to reach this aproach since it's not recomended for memory issues and all. Best Regards. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Tab Host linking with XML file and Actitivity class
Hi, I am trying to set the tab host so that each of the tabs has an XML file and and Activity file currently I am using intent = new Intent().setClass(this, Settings.class); spec = tabHost.newTabSpec(Settings).setIndicator(Settings, res.getDrawable(R.drawable.ic_tab_settings)) .setContent(R.layout.settings); tabHost.addTab(spec); whit this tabs are viewed as it is supposed buy the Activity class is not connected how can I do this pls? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Anyway to pre allocate memory for a Bitmap?
I did eventually figure out how to pre-allocate a Bitmap. After looking at the documentation more closely. I realize you can create a ByteArray, and the BitmapFactory has option for using a ByteArray to store the bitmap, instead of allocating its own memory. You can then reuse ByteArray for several bitmaps, assuming your finished with one bitmap before you use it for the next bitmap. On Monday, September 27, 2010 3:56:00 PM UTC-4, Brian wrote: Hello is there any way to pre allocate the memory required for a bitmap. Android's memory model is making it very difficult for me to cache images I need to cache. It would seem the problem is because the VM heap rarely shrinks itself, so I would like to just allocate memory for bitmaps ahead of time? but I can not figure out how to do this? Any help 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] Does Android Play or Android Market check for unique authority?
Does Android Market insure the content provider authority strings are unique? Or would the market let two different vendors upload apps that use the same authority, but not allow a single user to have both apps installed at the same time? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Supporting Galaxy Note Issues Due To It Displaying Itself as a LARGE screen layout.
I just changed to the compatibility-screens qualifiers (or elements depending on which article you read) and filtering looks fine in the developer console. But now my A500 is shown as incompatible. For 10+ screens only I used: compatible-screens !-- high density xlarge size screens -- screen android:screenSize=xlarge android:screenDensity=xhdpi / /compatible-screens Logically that should keep that version to 10 screens and 720p or higher. But that is supported with the A500 so they must have their data wrong on the A500. On 03/15/2012 06:22 PM, Zsolt Vasvari wrote: Why are you surprised this is broken on Google Play. For my app, the Acer Iconia A500 doesn't even show up on the supported device list even though I have no filters/qualifiers/etc at all. On Wednesday, February 8, 2012 7:38:57 AM UTC+8, Doug wrote: On Feb 5, 6:22 am, Daniele Segatodaniele.seg...@gmail.com wrote: On 01/20/2012 02:40 PM, Chris wrote: My app runs on Android 2.1+ , so I can't use the DPI based screen differentiation , are you sure about this? I can tell you that I created an emulator with Android version 2.3.3, told it to be 1280x800, and it picked up my very specific layout that I stored in layout-large-port-xhdpi-1280x800. Was that a fluke? I don't know. But we haven't had any complaints from Note users, whereas if the old layout was used, we would definitely receive some complaints. I think Samsung was aware of the problems with the way that the Note works with some apps, because my company was directly contacted by a representative from Samsung who helped us work out the layout issue with our app on the Note. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 fetch phone number from contact list
Try replacing the line int phoneIdx = cursor.getColumnIndex(Phone.NUMBER); with this.. int phoneIdx = cursor.getColumnIndex(Phone.DATA); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Mute button in call
Right, as I said this code it working. The microphone is getting muted. But there is no indication of it in the call, so if you mute it and look at the screen you have no idea if it is muted. So I wanted to update the button in the phone app, but I don't think that is possible. I think my only option is to do a notification and put a icon at the top of the screen. On Feb 29, 11:10 pm, Jagruti Sangani jagruti.sang...@inextrix.com wrote: Ok, now you had mute the call and whenever you want to comeback from mute that means not mute at that time you do just reverse process of this.That means first check is it mute if yes then make mAudioManager. setMicrophoneMute(false); I have not tried but it might be working. On Wed, Feb 29, 2012 at 9:51 PM, brian lee br...@brianlee.org wrote: Here is the code that I am using mute within a broadcast receiver to capture the button: if(inCall==true){ mAudioManager = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE); if(mAudioManager.isMicrophoneMute()==true){ Log.v(LOG_TAG, Unmuting Mic); Toast.makeText(context, Mic Unmuted, Toast.LENGTH_LONG).show(); mAudioManager.setMicrophoneMute(false); } else{ Log.v(LOG_TAG, Muting Mic); mAudioManager.setMicrophoneMute(true); Toast.makeText(context, Mic Muted, Toast.LENGTH_LONG).show(); } Let me know if you need any more code to understand what I am doing, but the above code is muting the call, just not updating the mute button in the phone app. -Brian On Feb 28, 11:24 pm, Jagruti Sangani jagruti.sang...@inextrix.com wrote: please put the code then and then its posssible bcz if we make the mute the call then also change the state of call. On Tue, Feb 28, 2012 at 2:02 AM, brian lee br...@brianlee.org wrote: I am trying to have a app mute the call when the camera button is pressed. I have that part of the code working, but I can not for the life of me figure out if there is a way to change the state of the mute button in the call so you know that it is currently muted. Anyone know how to do that? -Brian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Mute button in call
Here is the code that I am using mute within a broadcast receiver to capture the button: if(inCall==true){ mAudioManager = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE); if(mAudioManager.isMicrophoneMute()==true){ Log.v(LOG_TAG, Unmuting Mic); Toast.makeText(context, Mic Unmuted, Toast.LENGTH_LONG).show(); mAudioManager.setMicrophoneMute(false); } else{ Log.v(LOG_TAG, Muting Mic); mAudioManager.setMicrophoneMute(true); Toast.makeText(context, Mic Muted, Toast.LENGTH_LONG).show(); } Let me know if you need any more code to understand what I am doing, but the above code is muting the call, just not updating the mute button in the phone app. -Brian On Feb 28, 11:24 pm, Jagruti Sangani jagruti.sang...@inextrix.com wrote: please put the code then and then its posssible bcz if we make the mute the call then also change the state of call. On Tue, Feb 28, 2012 at 2:02 AM, brian lee br...@brianlee.org wrote: I am trying to have a app mute the call when the camera button is pressed. I have that part of the code working, but I can not for the life of me figure out if there is a way to change the state of the mute button in the call so you know that it is currently muted. Anyone know how to do that? -Brian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mute button in call
I am trying to have a app mute the call when the camera button is pressed. I have that part of the code working, but I can not for the life of me figure out if there is a way to change the state of the mute button in the call so you know that it is currently muted. Anyone know how to do that? -Brian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] unsubscribe
http://markmail.org/message/wydbqdugoh46hrdpunsubscribe -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Broadcast Receiver issue
I am trying to write what I think is a very simple application just to check for when the head phone is plugged in and then mute the notification sounds. I am a bit confused on the broadcast receiver, can I have a app that is just that class and have it listen for when that action happens, do I need a service running as well? Here is my code: package com.blee.checkheadphone; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.media.AudioManager; import android.os.Bundle; import android.util.Log; public class CheckheadphoneManager extends BroadcastReceiver { public static final String LOG_TAG = Checkheadphone; Context mContext; private AudioManager mAudioManager; private final String HEADSET_ACTION = android.intent.action.HEADSET_PLUG; @Override public void onReceive(Context arg0, Intent arg1) { mContext = arg0; Log.v(LOG_TAG, Intent captured); String action = arg1.getAction(); action.equalsIgnoreCase(HEADSET_ACTION); Bundle bundle = arg1.getExtras(); int headValue = bundle.getInt(state); mAudioManager = (AudioManager)arg0.getSystemService(Context.AUDIO_SERVICE); if(headValue==0){ //System.out.println(Headphone unplugged); Log.v(LOG_TAG, Headphone unplugged); //mAudioManager.setSpeakerphoneOn(false); mAudioManager.setStreamMute(AudioManager.STREAM_NOTIFICATION, false); }else{ //mAudioManager.setSpeakerphoneOn(true); //System.out.println(Headphone plugged); Log.v(LOG_TAG, Headphone plugged); mAudioManager.setStreamMute(AudioManager.STREAM_NOTIFICATION, true); } } } And my manifest: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.blee.checkheadphone android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=10 / uses-permission android:name=android.permission.MODIFY_AUDIO_SETTINGS/uses- permission application android:icon=@drawable/icon android:label=@string/ app_name receiver android:name=CheckheadphoneManager android:enabled=true intent-filter action android:name=android.intent.action.HEADSET_PLUG / category android:name=android.intent.category.DEFAULT / /intent-filter /receiver /application /manifest When I watch logcat, nothing shows for my app. Any help will be appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Broadcast Receiver issue
So, just so I understand this correctly. I will need two classes, one the broadcastreciever and the other the service. The broadcastreciever will listen for the boot complete to start the service. The service will then listen for the headset broadcast and pass that back to the broadcastreciever class. sound about right? On Feb 23, 4:14 pm, YuviDroid yuvidr...@gmail.com wrote: This post might help you:http://groups.google.com/group/android-developers/browse_thread/threa... On Thu, Feb 23, 2012 at 11:09 PM, brian lee br...@brianlee.org wrote: I am trying to write what I think is a very simple application just to check for when the head phone is plugged in and then mute the notification sounds. I am a bit confused on the broadcast receiver, can I have a app that is just that class and have it listen for when that action happens, do I need a service running as well? Here is my code: package com.blee.checkheadphone; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.media.AudioManager; import android.os.Bundle; import android.util.Log; public class CheckheadphoneManager extends BroadcastReceiver { public static final String LOG_TAG = Checkheadphone; Context mContext; private AudioManager mAudioManager; private final String HEADSET_ACTION = android.intent.action.HEADSET_PLUG; @Override public void onReceive(Context arg0, Intent arg1) { mContext = arg0; Log.v(LOG_TAG, Intent captured); String action = arg1.getAction(); action.equalsIgnoreCase(HEADSET_ACTION); Bundle bundle = arg1.getExtras(); int headValue = bundle.getInt(state); mAudioManager = (AudioManager)arg0.getSystemService(Context.AUDIO_SERVICE); if(headValue==0){ //System.out.println(Headphone unplugged); Log.v(LOG_TAG, Headphone unplugged); //mAudioManager.setSpeakerphoneOn(false); mAudioManager.setStreamMute(AudioManager.STREAM_NOTIFICATION, false); }else{ //mAudioManager.setSpeakerphoneOn(true); //System.out.println(Headphone plugged); Log.v(LOG_TAG, Headphone plugged); mAudioManager.setStreamMute(AudioManager.STREAM_NOTIFICATION, true); } } } And my manifest: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.blee.checkheadphone android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=10 / uses-permission android:name=android.permission.MODIFY_AUDIO_SETTINGS/uses- permission application android:icon=@drawable/icon android:label=@string/ app_name receiver android:name=CheckheadphoneManager android:enabled=true intent-filter action android:name=android.intent.action.HEADSET_PLUG / category android:name=android.intent.category.DEFAULT / /intent-filter /receiver /application /manifest When I watch logcat, nothing shows for my app. Any help will be appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!)http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] deprecated method warnings (ConnectivityManager.getBackgroundDataSetting)
I am having the same problem as detailed in this post: http://stackoverflow.com/q/8430253/395195 Except for me, I was expecting a deprecation warning for ConnectivityManager.getBackgroundDataSetting(). I have my Ecilpse settings for Java-Compiler-Error/Warnings- Deprecated and restricted API set to Error and not seeing any mention of this. My project is building with 4.0.3 and if I F3 into the source code, I see the proper @Deprecated annotation. Any ideas on how to fix this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: deprecated method warnings (ConnectivityManager.getBackgroundDataSetting)
I know, but I want to see warnings for other methods that are deprecated so that I am aware of functionality that is broken or discouraged in releases like ICS. It's an intensive process to go thru every API call and find deprecated methods.. My app would have been always sending data in the background regardless of whether it was allowed, apparently. On Jan 20, 7:13 pm, Jonathan S xfsuno...@gmail.com wrote: You can remove that method. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How does Chronometer work??
before you call chrono.start(), try adding a tick listener: chrono.setOnChronometerTickListener(new OnChronometerTickListener() { @Override public void onChronometerTick(Chronometer chronometer) { long elapsedTime = (System.currentTimeMillis() - chronometer.getBase()) / 1000; String currentTime = Utils.verboseTime(elapsedTime); chronometer.setText(currentTime); } }); On Jan 18, 4:55 am, rachana govilkar rachana.govil...@gmail.com wrote: Hello All, Using MediaRecorder I could capture Video.But I want to show timer to the user exactly same as it shown in built-in Camera app. So i implemented Chronometer logic private Chronometer chrono; chrono = (Chronometer)findViewById(R.id.chronometer1); chrono.setBase(SystemClock.elapsedRealtime()); chrono.start(); but no luck. Can anybody help me on this issue?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Distributing adb
Hi, I'm developing a system for which an Android application is a component. I am considering distributing the adb as part of the system. Does the SDK license allow me to do this? Section 3.1 of the license leads me to believe that (re)distributing the adb binary may not be permitted. Is that true? If it is true, am I permitted to distribute a version I've compiled myself? What if it's a modified version? If this isn't the best forum to ask this question, can anyone point me to a better place to ask it? Thanks! Brian Rowe -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] C2DM app server component limitations?
I've developed an app which allows users to control their PC-based PVR (using wifi or mobile internet). The PVR software isn't written by me so I have written an associated Windows Service which runs on each of the users' own PCs to act as a proxy between my app and the PVR software. I'd like to add C2DM capabilities to the PC-based proxy service so if multiple family members (for example) are using my app, then a change to the system (Dad sets Home and Away to record tonight) will be pushed out to the other family members' devices. I understand that each app has to have C2DM registration with a unique white-listed email address which I could embed in the PC proxy server software but the question is this... Do I have to have a 'cloud-based' server that I personally host and all users' instances of my app use that to use C2DM or will Google allow multiple app servers (each in the users' own homes) to send C2DM messages using my white-listed email address? I'm seriously confused about how this should work. Cheers, Brian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 ICS : add account
As a workaround, you can add your Google account as an activesync account. Use your gmail.com address at first, but you'll need to change the server to be m.google.com when it complains it can't connect. See here: http://www.google.com/support/mobile/bin/answer.py?hl=enanswer=138636topic=14299 On Oct 31, 5:02 am, arnouf arnaud.far...@gmail.com wrote: Hello, Now, in the emulator, to see calendar or add event I have to set an Exchange account. Does it exist a solution avoiding this ? I don't have an Exchange server ! Thanks for your help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: No luck with new ICS CalenderContract
As a workaround, you can add your Google account as an activesync account. Use your gmail.com address at first, but you'll need to change the server to be m.google.com when it complains it can't connect. See here: http://www.google.com/support/mobile/bin/answer.py?hl=enanswer=138636topic=14299 On Nov 2, 8:54 pm, Zsolt Vasvari zvasv...@gmail.com wrote: No, Google Account seem to be broken on the ICS emulator: http://groups.google.com/group/android-developers/browse_thread/threa... On Nov 3, 5:44 am, Ralph fed...@gmail.com wrote: Hi, I'd also like to try out adding a subscription to a public google calendar. Where are the Intents documented? Or at least where are the test cases that test adding a public calendar to an account and making it visible and sync'ed? I seem to only see a way to add an event to a particular calendar. Also, the emulator does not seem to support Google calendar accounts. The only thing that seems to work with calendar is Exchange. Which seems odd. Does anyone have the emulator working with google calendars? Thanks, Ralph On Oct 25, 4:50 am, Zsolt Vasvari zvasv...@gmail.com wrote: Thanks, of course that will work. Duh... How did I miss that? That said, I am just looking in the Javadocs and under Constants, CONTENT_URI is not listed, but it's further down, under Fields. That explains why I didn't see it, even though it's not a real excuse. Since CONENT_URI is a static final, why isn't it listed under Constants? On Oct 25, 2:41 pm, Michael Chan mc...@android.com wrote: Hi Zsolt, Can you tryCalendarContract.Calendars.CONTENT_URI instead of CalendarContract.CONTENT_URI? Thanks, Mike On Oct 24, 5:39 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I would have expected to work, also. It's kind of frustrating that the first time we are goig to be able put out fires, is when the general public will get hold of the first ICS device. The emulator is all but useless. On Oct 25, 12:25 am, Mark Murphy mmur...@commonsware.com wrote: I haven't had a chance to yet, and probably won't for a few weeks. Since the Calendar app is in the emulator, I would have expected that content provider to work. It's possible that it is an emulator bug -- without hardware as a point of reference, it is difficult to tell. On Mon, Oct 24, 2011 at 10:19 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Nobody tried this new API yet? On Oct 24, 2:57 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I am trying to convert my Calendar code to the new ICS APIs. For starters, I am trying the simplest possible operation -- reading the list of Calendars. I am using the following code: context.getContentResolver().query(CalendarContract.CONTENT_URI, CALENDARS_PROJECTION, CALENDARS_WHERE, null, CalendarContract.Calendars.DEFAULT_SORT_ORDER) but I am getting an unknown URL exception on the ICS emulator, both Standard and Google API images: E/ACRA ( 746): Caused by: java.lang.IllegalArgumentException: Unknown URL content://com.android.calendar E/ACRA ( 746): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java: 165) E/ACRA ( 746): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java: 135) E/ACRA ( 746): at android.content.ContentProviderProxy.query(ContentProviderNative.java: 358) E/ACRA ( 746): at android.content.ContentResolver.query(ContentResolver.java:304) Is this supposed to work on the emulator? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price!- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Combo boxes with service-created WebView - any workarounds?
I have a situation where I need to preserve the complete state of a WebView, not just the forward/back history (which is all that its onSaveInstanceState method seems to care about), so the life cycle of the view can't be tied to the activity that contains it. Because of this, I create the view within the context of a background service using all of the normal conventions for that kind of thing (ongoing notification, and menu option to fully shut things down), and attach and detach the view to a single-task activity (this is one of those cases where it's OK to do that) as needed. A message-passing system from the service to the current activity (if any) allows things like the progress bar and JavaScript alerts to work. This scheme works well for most things, but it falls apart when it comes to combo box selection lists, which are becoming a requirement as well. When it comes to those, WebView requires the context it's created in to be an activity, and I can't find any way to work around it like WebViewChrome allows for JavaScript alerts. I'd like to be able to preserve the complete web view state as well as have combo boxes work properly, but at this point the only choice I have is to provide a switch that lets the user choose one or the other. Any ideas on ways to let me keep both? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Changing Layouts
Hey guys, I'm having a very basic problem. I'm trying to switch to a new screen from the main layout. I have an about button and an about.xml layout I want people to see when they click the button. So I wrote the code: Button aboutButton = (Button) findViewById(R.id.about); aboutButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { setContentView(R.layout.about); } This works fine and when I click the button it goes to that layout. However when I want to go back to main layout with a menu button and I write the code: Button menuButton = (Button) findViewById(R.id.menu); menuButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { setContentView(R.layout.main); } The problem is this: When I write this code in eclipse I get no errors and it lets me run it but, I get an error saying the app has stopped unexpectedly and had to close. Please try again. When I comment out the code for the listener my app runs again. Can anybody explain to me why this is happening or can tell me what I need to do different? Thank you for your help guys. Sincerely, Brian Jones -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sending a broadcast intent via adb to application
Hi, I can send a broadcast fine, but I have an issue of attaching specific information to that broadcast. The intents being used is in the format of: final Intent updateIntent = new Intent(); updateIntent.setAction(ActivityHelper.INBOUND_MSG); updateIntent.putExtra(screen, screenId); updateIntent.putExtra(msg, (byte[]) data); I can attach the action and the screen Id fine via adb but I cant figure out how to attach the arrray of binary data. Currently I have the command looking like: adb shell am broadcast -a INBOUND_MSG --ei screen 36 This is great as I get the intent and the proper screen is attempted to be displayed but since there is no msg we error as our internal design always requires a msg to exist to populate screen data. In many cases the data is used to display variations of the same layout with different information. So the big question is how would I attach an array of binary data to my above command? Is this even possible? I feel like it should be, but I haven't been able to figure it out. The goal I'm trying to accomplish is to display every unique screen within our application and produce a screenshot for vv testing. The ideal situation is to use the application as is and not have to do a special build. It seems like this should be possible from what I've discussed above. Thanks for any help! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Send dtmf tone on uplink
I just put out a inquiry on this just a few days ago and was also told it can't be done. I made some mp3 files of the various DTMF sequences I wanted - which play nicely when I press the buttons on my app - but it doesn't go out to the other end. You'd think this would be possible. Several years ago, I tried inserting DTMF via the headset jack of a conventional cell phone, but the vocoder mangled it such that it couldn't be detected at the other end. - Brian On Jul 15, 2:32 am, Amit Mangal forum.amit.man...@gmail.com wrote: Hi Everyone, I want to send dtmf tone 12345 when called party picked up the phone . I am not getting idea from where to start ? is any one can guide me for sending dtmf tone from where to strat ? is it possible on android ? 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: paypal library unable to initialize in android
I'm getting this as well. Very frustrating. How does PayPal expect any Android apps to be integrated with them when their sandbox servers are always down? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Line thickness
Hey, I've been looking around for a while now and can't really find much of the subject. I've got a sudoku puzzle on the go to try and learn how to use Android. The problem i have is that i want the smaller 3x3 grids to have a thin line separation the squares and a thicker line separating the bigger grid. I have the black colour stored in an XML file and am using: canvas.drawLine(0, i * height, getWidth(), i * height, lineColour); To draw a line. Anyone now how to get thicker lines? Im sure it'll be something silly that im over looking. Thanks for your time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Title bar progress indicators - independent or connected?
In an upcoming project of mine, I'd like to show and hide the progress bar and indeterminate progress indicators in the title bar independently, indicating different things. Has anyone tried this? If so, did it work? While I could try it when I get to that part of the project, I'd rather check first to see if anyone else has tried it, and either succeeded or failed. If it's not going to work, that'll help guide the GUI while it's still in the design phase. 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] Re: Career as an Andoid developer. Is there any point?
Imran115, Like almost anything in technology that has commercial value, highly skilled specialists will always be in demand. While the ability to make a living selling individual apps can be a bit hit or miss, if you are a solid Android programmer, you can easily get a job. I don't think App Builder will do anything to change this. For the foreseeable future there will be demand for skilled folks that can program Android app using the SDK, and more and more NDK apps. (Plus alternate frameworks). If fear of App Builder is the only thing holding you back, I would say go for it. If there are other concerns, like you aren't sure you would enjoy programming, or don't think it's something that fits your personality, then maybe you should reconsider. I would also suggest that you spend the 30 mins it takes to install and configure AppBuilder, and you'll see it isn't the panacea you fear. You still have to be able to design solid interfaces, and you still need to have Computational Thinking skills. IE: It's not magically writing apps for people. - Brian Gupta New York City user groups calendar: http://nyc.brandorr.com/ On Mon, May 23, 2011 at 2:11 PM, imran115 imran.hyd...@yahoo.co.uk wrote: Hi everyone, I was wondering what peoples thoughts maybe on the application that Android are developing, that allows people with no programming experience to create apps. I am currently learning the basics in Android development and wanted to pursue it as a career. Is there any point, as just about anyone will soon be able to create an app? The link below shows what I am talking about. http://appinventor.googlelabs.com/about/ Will programming for Android apps no longer be a specialist skill, hence not much of a career? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Is there a walkthrough for extending View, especially for the XML layout files?
Right now, I'm trying to extend Chronometer (1) with a class called ResettableChronometer. When I try to use it, however, my app crashes because it couldn't inflate ResettableChronometer from the XML layout file I was using for that Activity. I've found some general documentation on Views (2), which references LayoutInflater, but I'm having trouble understanding how this all works (I'm new to Android). Is there some sort of tutorial or walkthough that can help me understand how to do this? (1) http://developer.android.com/reference/android/widget/Chronometer.html (2) http://developer.android.com/reference/android/view/View.html (3) http://developer.android.com/reference/android/view/LayoutInflater.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] Android and JMX
I am trying to write a simple app to monitor some mbeans of another java application running. How can I get android to import javax.management so I can create a connection to the jmx? 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] Testing with Activity Monitor
I am trying to write unit tests for my application. I have a button that initiates a call, and to test it I am trying to use an Activity Monitor to block the call, but for some reason the call is allowed to execute, causing the test to fail. My test case is written as follows: public void test2Launches() { Instrumentation instr = getInstrumentation(); IntentFilter callFilter = new IntentFilter(Intent.ACTION_CALL); Instrumentation.ActivityMonitor monitor = instr.addMonitor(callFilter, null, true); mActivity.runOnUiThread( new Runnable() { public void run() { mCallButton.requestFocus(); } } ); this.sendKeys(KeyEvent.KEYCODE_DPAD_CENTER); assertEquals(1, monitor.getHits()); } Any help on why this isn't working would be appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Testing with Activity Monitor
The Dialer activity is not blocked, it is allowed to launch. Also, the assertEquals(1, monitor.getHits()) fails with a value of 0. On Apr 11, 6:27 pm, Dianne Hackborn hack...@android.com wrote: What is the error you are getting? On Mon, Apr 11, 2011 at 1:30 PM, Brian Phagan phagan@gmail.com wrote: I am trying to write unit tests for my application. I have a button that initiates a call, and to test it I am trying to use an Activity Monitor to block the call, but for some reason the call is allowed to execute, causing the test to fail. My test case is written as follows: public void test2Launches() { Instrumentation instr = getInstrumentation(); IntentFilter callFilter = new IntentFilter(Intent.ACTION_CALL); Instrumentation.ActivityMonitor monitor = instr.addMonitor(callFilter, null, true); mActivity.runOnUiThread( new Runnable() { public void run() { mCallButton.requestFocus(); } } ); this.sendKeys(KeyEvent.KEYCODE_DPAD_CENTER); assertEquals(1, monitor.getHits()); } Any help on why this isn't working would be appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Testing with Activity Monitor
I have added the category to the intent filter, but still no luck. Code now looks like this: public void test2Launches() { Instrumentation instr = getInstrumentation(); IntentFilter callFilter = new IntentFilter(Intent.ACTION_CALL); callFilter.addCategory(Intent.CATEGORY_DEFAULT); Instrumentation.ActivityMonitor monitor = instr.addMonitor(callFilter, null, true); assertNotNull(mCallButton); mActivity.runOnUiThread( new Runnable() { public void run() { mCallButton.requestFocus(); } } ); this.sendKeys(KeyEvent.KEYCODE_DPAD_CENTER); assertEquals(1, monitor.getHits()); } On Apr 11, 6:50 pm, Dianne Hackborn hack...@android.com wrote: Your intent filter also needs to handle CATEGORY_DEFAULT. This should be the exact same thing you would put in the manifest to handle an intent. On Mon, Apr 11, 2011 at 4:43 PM, Brian Phagan phagan@gmail.com wrote: The Dialer activity is not blocked, it is allowed to launch. Also, the assertEquals(1, monitor.getHits()) fails with a value of 0. On Apr 11, 6:27 pm, Dianne Hackborn hack...@android.com wrote: What is the error you are getting? On Mon, Apr 11, 2011 at 1:30 PM, Brian Phagan phagan@gmail.com wrote: I am trying to write unit tests for my application. I have a button that initiates a call, and to test it I am trying to use an Activity Monitor to block the call, but for some reason the call is allowed to execute, causing the test to fail. My test case is written as follows: public void test2Launches() { Instrumentation instr = getInstrumentation(); IntentFilter callFilter = new IntentFilter(Intent.ACTION_CALL); Instrumentation.ActivityMonitor monitor = instr.addMonitor(callFilter, null, true); mActivity.runOnUiThread( new Runnable() { public void run() { mCallButton.requestFocus(); } } ); this.sendKeys(KeyEvent.KEYCODE_DPAD_CENTER); assertEquals(1, monitor.getHits()); } Any help on why this isn't working would be appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Testing with Activity Monitor
04-12 00:38:32.894: INFO/ActivityManager(59): Starting activity: Intent { act=android.intent.action.CALL dat=tel:5733415688 cmp=com.android.phone/.OutgoingCallBroadcaster } On Apr 11, 7:28 pm, Dianne Hackborn hack...@android.com wrote: What do you see in the log as the actual intent being started? On Mon, Apr 11, 2011 at 5:24 PM, Brian Phagan phagan@gmail.com wrote: I have added the category to the intent filter, but still no luck. Code now looks like this: public void test2Launches() { Instrumentation instr = getInstrumentation(); IntentFilter callFilter = new IntentFilter(Intent.ACTION_CALL); callFilter.addCategory(Intent.CATEGORY_DEFAULT); Instrumentation.ActivityMonitor monitor = instr.addMonitor(callFilter, null, true); assertNotNull(mCallButton); mActivity.runOnUiThread( new Runnable() { public void run() { mCallButton.requestFocus(); } } ); this.sendKeys(KeyEvent.KEYCODE_DPAD_CENTER); assertEquals(1, monitor.getHits()); } On Apr 11, 6:50 pm, Dianne Hackborn hack...@android.com wrote: Your intent filter also needs to handle CATEGORY_DEFAULT. This should be the exact same thing you would put in the manifest to handle an intent. On Mon, Apr 11, 2011 at 4:43 PM, Brian Phagan phagan@gmail.com wrote: The Dialer activity is not blocked, it is allowed to launch. Also, the assertEquals(1, monitor.getHits()) fails with a value of 0. On Apr 11, 6:27 pm, Dianne Hackborn hack...@android.com wrote: What is the error you are getting? On Mon, Apr 11, 2011 at 1:30 PM, Brian Phagan phagan@gmail.com wrote: I am trying to write unit tests for my application. I have a button that initiates a call, and to test it I am trying to use an Activity Monitor to block the call, but for some reason the call is allowed to execute, causing the test to fail. My test case is written as follows: public void test2Launches() { Instrumentation instr = getInstrumentation(); IntentFilter callFilter = new IntentFilter(Intent.ACTION_CALL); Instrumentation.ActivityMonitor monitor = instr.addMonitor(callFilter, null, true); mActivity.runOnUiThread( new Runnable() { public void run() { mCallButton.requestFocus(); } } ); this.sendKeys(KeyEvent.KEYCODE_DPAD_CENTER); assertEquals(1, monitor.getHits()); } Any help on why this isn't working would be appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn
[android-developers] Clean up downloaded data during Uninstalling
Hi, my app download large amount of data and stores data on sdcard while it is used. I'd like to remove this downloaded data from sdcard when user uninstall my app. Is there anyway to do it? Thanks in advance. Brian. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Application Sold to 100,000 Users
Well actually the statistics are off by ALOT, because of the number of spam applications and flash apps that completly such and should not really count, i mean some developers have over 300 apps all rated below 3 stars -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] drawLine problem with Paint.StrokeWidth = 1
Less then 1 is always just one pixel even if it is zero. On Mar 22, 2011 12:43 PM, TreKing treking...@gmail.com wrote: On Mon, Mar 21, 2011 at 6:28 AM, ncalvet ncal...@gmail.com wrote: Can anyone bring some light on this or should I submit this issue at http://code.google.com/p/android/issues/list ? Maybe it's anti-aliasing or rounding issue? Try turning anti-aliasing off. - 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] Re: advertise free or paid....
Relax guys its not that big of a deal lol. Spending money for advertising is a waist in my case because i got less then i put in. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Canvas to OpenGL
I want to convert my game space bike to OpenGL currently the game is written using the android canvas. currently the canvas is drawn on a layer in a content view. basically I don't know where to start. my game is basically drawn using a bunch of line and 3 pictures. So where do I start -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Application Sold to 100,000 Users
86 apps have sold over 50,000, correct me if im wrong... what is your app anyways that really will determin it On Mar 21, 2011 10:02 PM, Anu Nigam anu...@gmail.com wrote: I looked at this to get an idea of distribution of app downloads. It's not the most accurate, but it shows you how hard it can be to get to 100K http://www.androlib.com/appstats.aspx Anu Nigam On Mar 21, 9:06 am, nemik ne...@nemik.net wrote: I think the general trend is that you won't make much money; though you never know until you try. Remember that all those huge successes you read about are outliers. The majority of apps just sorta get by or flop. Just throw your best hat into the ring and see what happens. What other kind of answer are you looking for? On Mar 20, 11:03 pm, varinag gold varinagg...@gmail.com wrote: You realize this is going to vary wildly between different apps and will give you absolutely no indication how your own app will perform ... right? I agree with it but I want to see general trend of Android Market and users for priced applications. On Mar 21, 11:48 am, TreKing treking...@gmail.com wrote: On Sun, Mar 20, 2011 at 10:43 PM, varinag gold varinagg...@gmail.com wrote: I am looking data for applications with some price tag such as 1.00 USD or 0.99 USD. with a market access all over the world (provided selling/purchasing is permitted in those countries). You realize this is going to vary wildly between different apps and will give you absolutely no indication how your own app will perform ... 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] advertise free or paid....
Should I advertise my free or paid version of my application (space bike)... also I put out a stupid update for a second so I got some bad reviews because something did not work. so could you try it and rate it 5 stars and leave a comment lol... also tell me any changes I should make. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] playing song from mp3, file path
http://developer.android.com/guide/topics/media/index.html MediaPlayer mp = new MediaPlayer(); mp.setDataSource(PATH_TO_FILE); mp.prepare(); mp.start(); I have a file in my res/raw folder called song2 and I don't know what to put for PATH_TO_FILE Like I'm unsure of the context of how to write it I thought it was @raw/song.mp3 but its not working and I've tried other things too. so if you know could you please tell 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] playing song from mp3, file path
do you mean like this MediaPlayer mp = MediaPlayer.create(this, R.raw.song2); mp.start(); when I do that the song stops/ does not start ? On Thu, Mar 17, 2011 at 6:35 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Mar 17, 2011 at 6:24 PM, brian purgert brianpurge...@gmail.com wrote: http://developer.android.com/guide/topics/media/index.html MediaPlayer mp = new MediaPlayer(); mp.setDataSource(PATH_TO_FILE); mp.prepare(); mp.start(); I have a file in my res/raw folder called song2 and I don't know what to put for PATH_TO_FILE You don't do it that way. Use the static create() method on MediaPlayer and pass in R.raw.song2. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] What more does my game need(space bike)
Treking I just changed the api version from 9 to 11, try downloading it now On Mar 14, 2011 8:27 AM, TreKing treking...@gmail.com wrote: On Sun, Mar 13, 2011 at 11:55 PM, brian purgert brianpurge...@gmail.com wrote: what does my game need to make it better/more fun Can't find your app on N1 with 2.3.3, but don't the reviews have any useful suggestions? - 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] What more does my game need(space bike)
Lol yeah, not one likes giving constructive criticism. But thanks treking for check it out i can't wait to here back. Go ahead and fire away I don't mind. On Mar 14, 2011 5:02 PM, TreKing treking...@gmail.com wrote: On Mon, Mar 14, 2011 at 3:51 PM, brian purgert brianpurge...@gmail.com wrote: Treking I just changed the api version from 9 to 11, try downloading it now Yup, found it. Wow, your feedback on the Market sucks, lol. No wonder you're asking for help here. I'll play it on the ride home tonight and post back later. - 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] What more does my game need(space bike)
Thanks rich, I really am not sure what i would replace the biker with if you have any suggestions, Im looking at some music now, I really like some, Im going to place all of the next buttons in the same part of the screen for all of the popup Menus, also I had an intent made each time you click on level select by accident. On Mar 14, 2011 6:31 PM, rich friedel rich.frie...@gmail.com wrote: Your little guy on the bike is cool but you may want to consider making it something the user can identify with. Music/sounds :: noticibly absent while playing... especially when the music plays when completing a level. Navigation was kinda unclear because the next buttons would move around after each checkpoint in level 1. Also it's not exactly clear that selecting them will allow you to move forward. You might want to consider using singletop activities or finish() on the ones that you no longer need. I noticed hitting the back button took me through at least 6 screens. I gave it 4stars... I really liked the combo of having to control the bike AND the view orientation! That was def a nice oh hey you don't see this everyday moment. Good luck with it. btw For some reason the Space Bike name doesn't really evoke the Hey I wanna really check this game out! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: What more does my game need(space bike)
Lol spiral, your so set on crikey bikey, I had to google it just go see if it actually ment some thing... Treking thank you so much, it means alot to me and its really hard to think of improvements sometimes because I just am so used to my game. Ill start working on it asap and probably have it updated by this friday with alot of changes. Lol and you would have your phone plugged into your computer with the logcat open -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 more does my game need(space bike)
I feel like im not getting the comments/ratings i want, my game(space bike) is currently rated 3 and a half stars... what does my game need to make it better/more fun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Canvas vs OpenGl drawline speeds
right now my game is drawn using the canvas and it runs pretty good on my phone. (I have the Droid 2). My game is space-bike in case you did not know, and it is drawn using 3 bitmaps and tons and tons of lines. most frames are under 50 line, the reason it is so high it because I draw Each line with 2-3 lines in order to create a neon like effect. So my question is; Will I be better off if I convert my game to openGL? Or should I stick with the canvas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] What is the recommended resolution/aspect ratio for android graphics
if your making a game or not(after you did all this DPI stuff with diffrent folders) scale the images in game and in the view too. always use DP never PX. this stuff can get very confusing especially when you are trying to get it to work on all phones. I made a game so I know. 1. Create different folders for diffrent DPI's and Screen sizes if you want. 2. as a precaution scale everything(Using your own method or androids,I did my own) and in the Layouts just use DP. if you want to be very precise keep in mind getWidth(); and getHeight(); for example int final MyScale getWidth()/800; ImageWidth = 400 * MyScale; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: game source code
the android developer website has some good one's http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/index.html http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/index.htmllunar lander, jetboy,snake,tictac toe are all good ones. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 problem with GSM network
Any movement on this? I am experiencing this exact same problem using Android 2.2 SDK rel 10. Setup is 64-bit quad core Ubuntu .recompiling Android with the above suggested fix now -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Emulator problem with GSM network
I have recompiled with the above fix to turn off the legacy support option. This has solved our issue. What is the problem with accepting this change? We definitely verified that this issue is more prevalent on our Quad Core boxes than Dual Core. Do you still need to support 1.0 or 1.1, especially as more development environments will become faster and running into this issue and fewer devices will need the 1.0/1.1 support? On Mar 8, 4:16 pm, Brian Smith unobri...@gmail.com wrote: Any movement on this? I am experiencing this exact same problem using Android 2.2 SDK rel 10. Setup is 64-bit quad core Ubuntu .recompiling Android with the above suggested fix now -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] creating a linear gradient vertically on a horizontal line
I want to have a line that i want it to look like the line is neon, this is for my game spacebike, so this line will have to use java i think and will have to be drawn a couple times every second. So i want to make a gradient drawable but the lines goes up and down, and side to side so i think if i use a shader the gradient will only be able to be drawn in one direction... can some one help me please im very confused -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: creating a linear gradient vertically on a horizontal line
Nvm its not possibe/not worth it, the amount of prossessing power is to great for what i need to do. On Mar 6, 2011 11:40 AM, brian purgert brianpurge...@gmail.com wrote: I want to have a line that i want it to look like the line is neon, this is for my game spacebike, so this line will have to use java i think and will have to be drawn a couple times every second. So i want to make a gradient drawable but the lines goes up and down, and side to side so i think if i use a shader the gradient will only be able to be drawn in one direction... can some one help me please im very confused -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] I hate threads, help please.
I have a main thread that controls the drawing on the canvas, but i want another thread that is just a bunch of true or false statements that detects if an event happened. So can some one show me how to make a simply low priority thread. That starts when the activity starts. It would be much appreciated if someone who has done it before could show me because, the android doc examples are confusing me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Reviews showing up in developer account but not in Android market.
I get worse reviews from non english speaking people for some reason. So its good they don't show up for me. On Mar 6, 2011 10:06 PM, Zsolt Vasvari zvasv...@gmail.com wrote: The comment won't show up if the person who wrote it has a device set to use a different language than the person viewing the comments. It's just another puzzling decision by the Market team as: a) The comment may still be in English, regardless of the phone's setting b) The star rating by itself has some value On the other hand, applications written for a different country DO show up even though they are completely useless outside of their country. For example, if you look at the Finance category, it's littered with apps written for the Korean and Japanese markets. On Mar 7, 10:36 am, MB manoj.bi...@gmail.com wrote: Hi, I've a few reviews that show up in my developer account but they do not show up in the Android market. - I've checked the Android market both on the website (market.android.com) as well as on the device (Verizon droid). -These reviews are a few week to a few months old. I would really appreciate if anyone could provide any explanation for why this would happen. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How do you exclude sales to a specific country?
Lol On Mar 3, 2011 9:56 AM, TreKing treking...@gmail.com wrote: On Thu, Mar 3, 2011 at 7:22 AM, gcstang gcst...@gmail.com wrote: If you have an application that you want to be sold in all countries except for say one how can you do this? Is this done in the Developer Console, AndroidManifest, or something else? http://www.google.com/support/androidmarket/bin/answer.py?hl=enanswer=113469 - 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] Will Google send out tax forms?
I probably wont make enough for it to matter lol On Mar 2, 2011 3:31 PM, Chris Stewart cstewart...@gmail.com wrote: Has anyone received any information from Google regarding income for 2010? I thought I might receive a document with the amount they've paid out but since I haven't I wanted to see if anyone else had. -- Chris Stewart http://chriswstewart.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
[android-developers] Getting users phone speeds for automatic settings
In my game I have 3 different detail levels low medium and high. I want the game to be able to automatically pick the detail level because someone comment saying the game was lagging but never bothered to click on the detail level settings. So is there anyway I can determine the phones clock speed or the phone model or something that will let it decide because then otherwise i will have to determine the time it takes to finish a loop and average it, but it would not work to well because the game would already be running. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hey Android Developers
Lol learn cocos 2d, save your self wile you can, but if you want to get sucked into android. First decide what your ultimate goal is, if its just to simply learn android then learn java if you don't know it and read some tutorals on setting up buttons and drawing on the cavas. If your goal is to make a 2d game either learn how to draw with the canvas or opengl(much faster but harder) or you can even use multiplatform programs like cocos 2d... and a couple more. If your goal is to make a 3d game, you can use opengl or use a program like unity 3d. But i would start with learning how to make menus and setting up projects for now. Like i said it really depends on what you know and what is your goal. On Mar 2, 2011 10:56 PM, TreKing treking...@gmail.com wrote: On Mon, Feb 28, 2011 at 12:18 AM, sunny ghai sssing...@gmail.com wrote: i wanna learn android, can any one tell me from where i have to start How about the website? - 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] Unexpected behavior with animated views / layouts
The views definentally don't update when you want them too, and it does this to save cpu, there is something in the documention that updates the view, im not sure if it will work with this. But you probably should disable the button when it is off screen. On Mar 2, 2011 10:59 PM, TreKing treking...@gmail.com wrote: On Sun, Feb 27, 2011 at 2:29 PM, BuzzB buzz.burro...@gmail.com wrote: The strange thing is... when my view is off screen, it is still getting touch events for its original position on screen. It seems the animation is only moving the visual aspect of the view (drawing surface) and not the rest of the view's guts. Does this make sense? Yes, AFAIK, that's how it works (I haven't actually used Animations yet). Animations make it look like the views are doing something, they're not actually doing anything. You need to update the layout once the view is done animating to make stick. - 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: Announcing: The Android Developers Union
I'm with it :) might as well give it a shot. On Mar 2, 2011 10:55 PM, Zsolt Vasvari zvasv...@gmail.com wrote: As Bill Ted would say, this is sad and bogus at the same time... On Mar 3, 11:41 am, TreKing treking...@gmail.com wrote: This recent thread http://groups.google.com/group/android-developers/browse_thread/threa... asking a simple question about the state of in-app billing has received no response from anyone at Google. This thread has received 4, 2 of which I, personally, have never even seen post before. This make me sad. =( ----- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help figure out why im getting one star rattings
I think my game is having some problem on some phones because some people give my app 1 star where most are 5 stars, which is odd because i put a link to my email in the app so that they can tell me if there is a bug or something. But my game is spacebike, check it out on your phone and tell me if there are any problems with it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to open email in app with address
Platamus on anddev had a short tutorial on it if you want to check it out. On Mar 1, 2011 4:40 AM, Kostya Vasilyev kmans...@gmail.com wrote: Intent filtering does not consider extras when matching, EXTRA_EMAIL is only useful for specifying the recipient once you're in the target application. Using a mailto:; URI with with ACTION_VIEW or ACTION_SENDTO works well for me, and encoding various email parameters right in the URI seems to be more reliable than using extras (== more email clients get this right). Something like: mailto:user.n...@server.com ?subject=Hello+therebody=How+you+doin. This is the relevant portion from the standard email app's manifest: intent-filter action android:name=android.intent.action.VIEW / action android:name=android.intent.action.SENDTO / data android:scheme=mailto / category android:name=android.intent.category.DEFAULT / category android:name=android.intent.category.BROWSABLE / /intent-filter intent-filter android:label=@string/app_name action android:name=android.intent.action.SEND / data android:mimeType=*/* / category android:name=android.intent.category.DEFAULT / /intent-filter -- Kostya 01.03.2011 2:46, TreKing пишет: On Mon, Feb 28, 2011 at 5:30 PM, Peter Sinnott psinn...@gmail.com wrote: Iirc SENDTO gave me mail and gmail as alternatives but SEND either didn't give me mail or gave me a multitude of options most of which were not email specific. Ah. If that way works, no point in changing, but FYI, I think you need to use this: http://developer.android.com/reference/android/content/Intent.html#EXTRA_EMAIL And the type plaint/text is also required. - 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 -- Kostya Vasilyev -- http://kmansoft.wordpress.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: Help figure out why im getting one star rattings
Is it when you get past the platforms because when the level ends i have it play a short song, and it might be a memory error. But i will make sure i make the platforms easier and show people the restart button, also when they fall there i will have the restart show up. Treking I totally agree with that, Im just trying to make it as easy as possible on the first couple of levels so people get into and also i don't want it to freeze. If i can prevent most of it i will try to prevent. It... g2g im in school On Mar 1, 2011 10:07 AM, Rutton rut...@web.de wrote: After failing the first platform (Platforms, Easy) a couple of times, my phone (Milestone one) hangs. Seems to be an endless loop/physics problem or something. Android wants to force close it. Another thing is, that failing at a plattform and falling to the ground doesn't stop the level. And nothing in the startup mentioned that the recycle button at the top right corner is restarting the level (what is needed then). On 1 Mrz., 15:20, brian purgert brianpurge...@gmail.com wrote: I think my game is having some problem on some phones because some people give my app 1 star where most are 5 stars, which is odd because i put a link to my email in the app so that they can tell me if there is a bug or something. But my game is spacebike, check it out on your phone and tell me if there are any problems with it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to open email in app with address
I want the person to click on a button and when they click it, it opens up their email and my email address is already there. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Beta Game Space Bike
here are some download links check it out. tell people about it, if you know any reviewers give them a link, also post problems, bugs, questions, suggestions http://www.megaupload.com/?d=R02OEBUE http://rapidshare.com/files/450131198/Space_Bike_Game.zip http://www.mediafire.com/?qnffd2qb8hrcjah -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Beta Game Space Bike
Lol i like the name, post suggestions and what not and be honest. On Feb 27, 2011 4:05 PM, Spiral123 cumis...@gmail.com wrote: I'll give it a go. I did think of a name for the game as well: Crikey Bikey! On Feb 27, 2:56 pm, brian purgert brianpurge...@gmail.com wrote: here are some download links check it out. tell people about it, if you know any reviewers give them a link, also post problems, bugs, questions, suggestions http://www.megaupload.com/?d=R02OEBUEhttp://rapidshare.com/files/450131198/Space_Bike_Game.ziphttp://www.mediafire.com/?qnffd2qb8hrcjah -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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