Re: [android-developers] Re: Android Market Certificate Error
On Fri, Feb 11, 2011 at 7:44 PM, Droider jgrnetsoluti...@gmail.com wrote: Yes I was allowed and not warned at all. Wow, that's a new level of fail, even for the Market. This might be your best bet, if no one has any info for you: http://www.google.com/support/androidmarket/bin/request.py?contact_type=publishing They're fairly useless so the likelihood of you getting help is not very good, but I'm not sure what you can do here. Good luck. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ApiDemos Build Worked w/ 1.5, Fails with 1.6 samples under 2.3 SDK
I should clarify: when building under SDK 2.3.1, I found something I did not see while trying to build the 1.6 sample: the wizard allowed building 2.3 samples under 2.3, not 1.6 under 2.3. I really did not see any such forced matching of sample to target when trying to build the 1.6 sample. I didn't even think it was possible. On Feb 11, 6:22 pm, Indicator Veritatis mej1...@yahoo.com wrote: Hi, all- I am trying to build the ApiDemos from the 1.6 samples (as a handy reference while developing for 1.6 and up). But I am seeing build errors I don't remember seeing when I did the build for 1.5 samples months ago, errors I can't easily make go away by doing a touch on res/ layout files, nor by Clean Project. Nor has a search of this Google group for ApiDemos No resource found that matches at 'text' with value shown anything clearly helpful and relevant., Specifically, after creating a new project and setting Create project existing Sample and Build Target 1.6, the errors I get are: [2011-02-11 17:32:37 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read /home/mejohnsn/android-sdk-linux_x86-1.6_r1/ AndroidManifest.xml: java.io.FileNotFoundException: /home/mejohnsn/ android-sdk-linux_x86-1.6_r1/AndroidManifest.xml (No such file or directory) [2011-02-11 17:32:37 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read /home/mejohnsn/android-sdk-linux_x86-1.6_r1/ AndroidManifest.xml: java.io.FileNotFoundException: /home/mejohnsn/ android-sdk-linux_x86-1.6_r1/AndroidManifest.xml (No such file or directory) [2011-02-11 17:33:23 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platform-tools/aapt) [2011-02-11 17:33:23 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platforms/android-1.6/samples/ApiDemos/res/values/ strings.xml:365: error: Apostrophe not preceded by \ (in I'm on! :)) [2011-02-11 17:33:23 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platforms/android-1.6/samples/ApiDemos/res/values/ strings.xml:366: error: Apostrophe not preceded by \ (in I'm off! :() [2011-02-11 17:33:23 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platforms/android-1.6/samples/ApiDemos/res/values/ strings.xml:643: error: Apostrophe not preceded by \ (in The Android platform is a software stack for mobile devices including an ... And since I am not sure exactly when the above occurred, here are the errors on a fresh build attempt: (turning off Build Automatically, doing Clean Project and building w/ ProjectBuild Project): [2011-02-11 17:49:26 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platform-tools/aapt) [2011-02-11 17:49:26 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platforms/android-1.6/samples/ApiDemos/res/values/ strings.xml:365: error: Apostrophe not preceded by \ (in I'm on! :)) [2011-02-11 17:49:26 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platforms/android-1.6/samples/ApiDemos/res/values/ strings.xml:366: error: Apostrophe not preceded by \ (in I'm off! :() [2011-02-11 17:49:26 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platforms/android-1.6/samples/ApiDemos/res/values/ strings.xml:643: error: Apostrophe not preceded by \ (in The Android platform is a software stack for mobile devices including an [2011-02-11 17:49:26 - ApiDemos] operating system, middleware and key applications. Developers can create [2011-02-11 17:49:26 - ApiDemos] applications for the platform using the Android SDK. Applications are written [2011-02-11 17:49:26 - ApiDemos] using the Java programming language and run on Dalvik, a custom virtual [2011-02-11 17:49:26 - ApiDemos] machine designed for embedded use which runs on top of a Linux kernel. [2011-02-11 17:49:26 - ApiDemos] [2011-02-11 17:49:26 - ApiDemos] If you want to know how to develop applications for Android, you're in the [2011-02-11 17:49:26 - ApiDemos] right place. This site provides a variety of documentation that will help you [2011-02-11 17:49:26 - ApiDemos] learn about Android and develop mobile applications for the platform. [2011-02-11 17:49:26 - ApiDemos] [2011-02-11 17:49:26 - ApiDemos] An early look at the the Android SDK is also available. It includes sample [2011-02-11 17:49:26 - ApiDemos] projects with source code, development tools, an emulator, and of course all [2011-02-11 17:49:26 - ApiDemos] the libraries you'll need to build an Android application. What would it take [2011-02-11 17:49:26 - ApiDemos] to build a better mobile phone? [2011-02-11 17:49:26 - ApiDemos] ) [2011-02-11 17:49:26 - ApiDemos] /home/mejohnsn/android-sdk-
Re: [android-developers] cookie value is null
anyways i got the cookie value through http connection,can you tell how to send it in the header of a url? On Sat, Feb 12, 2011 at 1:30 AM, TreKing treking...@gmail.com wrote: On Fri, Feb 11, 2011 at 4:34 AM, vani reddy vani.redd...@gmail.comwrote: CookieManager cm= CookieManager.getInstance(); CookieManager cookieManager = CookieManager.getInstance(); cookieManager.setAcceptCookie(true); String cukies=cm.getCookie(http://cms.beemedia.com/ ); This makes no sense. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: background service(socket)
You not only need to do it in a Service, but you need to launch a separate thread. The class that can do both for you is IntentService. BTW: the Android documentation on both of these is a little misleading: when the Service docs talk about 'background', they mean something a little different than 'background' in the phrase background thread/task. They mean that a Service does not have the UI foreground. But by default, it is still in the main UI thread. That is why you need to either spin off your own background task thread or use IntentService to do it for you. You could also use AsyncTask, but there are subtleties about using that with a Service. In particular, if you want to avoid tight coupling between the main Activity's hosting process and the Service, you should stick with IntentService. Should you choose the AsyncTask route, check out https://github.com/commonsguy/cw-android/tree/master/Service first. On Feb 7, 7:40 pm, balu balu.balachan...@gmail.com wrote: Hello everyone... I am working on an email application. I connected to the pop3 email server using sockets. But i donno how do i run the socket programming background. I have gone through some internet stuff, and there i came to know that i should use services. Can anyone tell me how do i do that? or is there any other way? And also once i login, i need to be able to access the background service by all the other activities? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Corrupted images when uploading to server via POST
You are right, it is a bad idea to do it in the UI thread, but his problem is not the problem one would expect from doing it in a UI thread. That is, given that his failure takes place in his existing code, I would expect the same failure to take place once he has moved it to a worker thread. After all, the error we expect due to doing network in the UI thread is the infamous ANR. But that is not what he is getting. He is getting missing stuff in the uploaded files. On Feb 11, 3:41 pm, Gergely Juhász jg.sv...@gmail.com wrote: It is a realy bad idea to make network communication in the ui thread. You should always make net io in a worker thread. On 8 February 2011 15:45, alex c alex.chuny...@gmail.com wrote: ello. i'm experiencing a problem when uploading images from my android application to remote server (apache with php). devices are: htc hd2 and samsung galaxy tab. all with android 2.2 the application itself is very simple: public class UploadTest extends Activity { private final static String TAG = UploadTest; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } private void uploadImage() { String imagePath = Environment.getExternalStorageDirectory() + /Andorra/Images/748.jpg; String exportUrl = http://domainname.here/pda/export_photos.php;; String responseStr = ; MultipartEntity reqEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE); reqEntity.addPart(image, new FileBody(new File(imagePath), image/ jpeg)); HttpResponse resp = NetworkUtils.sendHttpRequestMultipart(exportUrl, reqEntity); new AlertDialog.Builder(this).setMessage(responseStr) .setTitle(Finished) .setPositiveButton(Ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { } }).show(); } public void btn1_onClickHandler(View v) { uploadImage(); } } so it's as simple as it can be. the problem is that the uploaded image is corrupted. the file size is same. but content can differ. sometimes it uploads ok. sometimes it is broken.. example: original image;http://pixelbirthcloud.com/corrupted_images/1_orig.jpg uplaoded image:http://pixelbirthcloud.com/corrupted_images/1_corrupted.jpg the binary diff says: 00051330 | 49 69 11 4B 9D E6 | 00051330 | DA BB 10 70 DC 77 | 00051338 | 2D B9 1B B9 E4 81 5A E6 | 00051338 | AC 20 C7 90 7E B4 33 80 | 00051340 | D4 14 B0 F4 EA 3D D1 E9 | 00051340 | 31 9A B8 C2 29 83 66 9C | 00051348 | 61 9D E3 38 F7 36 DE 63 | 00051348 | 9A 84 8E 73 9A 8D B5 29 | 00051350 | 25 9D 9D C4 64 C3 23 AA | 00051350 | 18 60 1C 0F 7A CF 33 01 | 00051358 | 4A EB 08 C3 97 7C 8C 36 | 00051358 | D4 F0 7A D3 24 BA 85 71 | 00051360 | 73 F5 E3 15 14 5B BC C1 | 00051360 | F3 0A 76 8A D6 C4 36 5E | 00051368 | B9 A4 49 06 71 1B 11 87 | 00051368 | 7B B9 5F 20 E3 A5 46 F2 | 00051370 | 39 E7 76 7B 8F 5F | 00051370 | B8 1D 4E 6B 36 6D | internet connection is 3g in my case and slow wifi in client's case. for client the images are 90% corrupted (cannot see anything) and it happens like 98% of the time. after some time i tried to make the upload using HttpURLConnection class and had same results. then tried to encode files with base64 but even in this case the base64 text is received corrupted. also tries to set transfer to chunk mode: HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setChunkedStreamingMode(8192); but the result was same.. most images are corrupt. can you please help me? i am almost crying =) fighting with this for a week now.. thank you in advance btw. tried it with emulator via normal network and it works ok... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this
[android-developers] Re: Android MVC Framework
Unfortunately, the term 'MVC' has suffered some corruption over the years: purists, especially Smalltalk aficionados, insist that unless you do it the Smalltalk way, it is not MVC. Others use the term more loosely, many too loosely. In any case, some of the latter DO say that Android's SDK meets the MVC model already. See, for example, http://stackoverflow.com/questions/2925054/mvc-pattern-in-android Or do you have something specific in mind you want to see in an MVC Framework that you do not see in Android? On Feb 10, 8:40 am, Luiz Henrique lhmor...@gmail.com wrote: Hello Guys, I'm starting in the Android world and searching some MVC Framework to build an application in my company. Is there any MVC Framework that you could recomend me ? Cheers, Henrique -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] List view
On Fri, Feb 11, 2011 at 11:25 PM, jubin jubinmeht...@gmail.com wrote: I want to create above type of view and want to dynamic this. Read the documentation and play with some samples. Creating simple, static layouts is Android 101. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Does the Google app store allow apps that target just 1 device?
If you can find a shared library that is present only on the device you target, then you can use uses-library in your manifest. See http://developer.android.com/guide/appendix/market-filters.html#manifest-filters for details. Likewise for features (uses-feature) On Feb 8, 7:27 am, Lee Leclair zer0stimu...@gmail.com wrote: If I have an app that will only run on the Samsung Galaxy S or HTC Hero, because it uses vendor proprietary SDKs, will the Google app store still accept my app? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: receiving a vCard via Bluetooth
One input: if you tell us what UI or API you used to send the vCard via Bluetooth, you are far more likely to get a useful response. On Feb 11, 12:05 am, Manju manjunath@gmail.com wrote: Any views/inputs on this? Regards, Manjunath On Feb 8, 10:59 am, Manju manjunath@gmail.com wrote: Hi, On froyo when we receive a same VCard multiple times via bluetooth only one VCard was created and same was getting updated with the latest data, but on gingebread we see a different behaviour. When the same VCard is sent multiple times multiple VCards are created, is this the expected behaviour on GingerBread? Regards, Manjunath -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] exception while accessing MS SQL 2005 express using JDBC
Looks like the driver wants to use an SSL socket in non-blocking mode, and Android networking code (taken from Apache Harmony) doesn't support it. You could try setting encrypt=false, or, if that's not acceptable, find another way to access the database (e.g. a web service). -- Kostya 04.02.2011 7:55, Niket пишет: com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: Unable to make socket non blocking. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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
Re: [android-developers] Re: In app billing...
I have tried to implement code using the provided example project. Although you can get some work done, the lack of a 2.3 market version really hurts testing. I have tried running the Dungeon app on a 1.6 device with no luck. On Sat, Feb 5, 2011 at 2:14 PM, fooyee reloadingthej...@gmail.com wrote: switching gears a bit, has anyone tried out the in-app billing (dungeon.java) sample provided by Google? Is it working OK? On Feb 5, 9:47 pm, Justin Giles jtgi...@gmail.com wrote: Ok, you two. Now I'm hungry for a donut while I'm doing my laundry! On Sat, Feb 5, 2011 at 10:10 AM, Kostya Vasilyev kmans...@gmail.com wrote: 05.02.2011 18:59, Maps.Huge.Info (Maps API Guru) пишет: I believe being able to provide refunds is important. When you go to a real-world store Since a user upgrading to a pro version isn't buying anything tangible, it's more like going into a donut shop, buying a donut and eating it. How many consumers ask for refunds at that point? Under some circumstances, a refund is called for but not in the same way as a consumer returning an unopened package that can be resold. That's a different type of product, more like a health potion in an RPG game. You might call it a virtual consumable. To me, issuing a refund for a software product is only to be done under some unusual circumstance not because of buyer remorse. The donut has been eaten and that's that. For a virtual consumable, yes. But I'm talking specifically about upgrading from lite to pro, which is not a consumable at all. It's the right to use the software in a certain way, to repeatedly perform certain tasks, and is more like buying... hmm... a microwave or a washing machine, not a donut. -John Coryat -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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.comandroid-developers%2Bunsubs cr...@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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ApiDemos Build Worked w/ 1.5, Fails with 1.6 samples under 2.3 SDK
Well, have you tried escaping apostrophes with a backslash, as the error messages suggest? 2011-02-11 17:49:26 - ApiDemos] /home/mejohnsn/android-sdk-linux_x86-1.6_r1/platforms/android-1.6/samples/ApiDemos/res/values/strings.xml:365: *error: Apostrophe not preceded by \ (in I'm on! :))* -- Kostya 12.02.2011 5:22, Indicator Veritatis ?: Hi, all- I am trying to build the ApiDemos from the 1.6 samples (as a handy reference while developing for 1.6 and up). But I am seeing build errors I don't remember seeing when I did the build for 1.5 samples months ago, errors I can't easily make go away by doing a touch on res/ layout files, nor by Clean Project. Nor has a search of this Google group for ApiDemos No resource found that matches at 'text' with value shown anything clearly helpful and relevant., Specifically, after creating a new project and setting Create project existing Sample and Build Target 1.6, the errors I get are: [2011-02-11 17:32:37 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read /home/mejohnsn/android-sdk-linux_x86-1.6_r1/ AndroidManifest.xml: java.io.FileNotFoundException: /home/mejohnsn/ android-sdk-linux_x86-1.6_r1/AndroidManifest.xml (No such file or directory) [2011-02-11 17:32:37 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read /home/mejohnsn/android-sdk-linux_x86-1.6_r1/ AndroidManifest.xml: java.io.FileNotFoundException: /home/mejohnsn/ android-sdk-linux_x86-1.6_r1/AndroidManifest.xml (No such file or directory) [2011-02-11 17:33:23 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platform-tools/aapt) [2011-02-11 17:33:23 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platforms/android-1.6/samples/ApiDemos/res/values/ strings.xml:365: error: Apostrophe not preceded by \ (in I'm on! :)) [2011-02-11 17:33:23 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platforms/android-1.6/samples/ApiDemos/res/values/ strings.xml:366: error: Apostrophe not preceded by \ (in I'm off! :() [2011-02-11 17:33:23 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platforms/android-1.6/samples/ApiDemos/res/values/ strings.xml:643: error: Apostrophe not preceded by \ (in The Android platform is a software stack for mobile devices including an ... And since I am not sure exactly when the above occurred, here are the errors on a fresh build attempt: (turning off Build Automatically, doing Clean Project and building w/ ProjectBuild Project): [2011-02-11 17:49:26 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platform-tools/aapt) [2011-02-11 17:49:26 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platforms/android-1.6/samples/ApiDemos/res/values/ strings.xml:365: error: Apostrophe not preceded by \ (in I'm on! :)) [2011-02-11 17:49:26 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platforms/android-1.6/samples/ApiDemos/res/values/ strings.xml:366: error: Apostrophe not preceded by \ (in I'm off! :() [2011-02-11 17:49:26 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platforms/android-1.6/samples/ApiDemos/res/values/ strings.xml:643: error: Apostrophe not preceded by \ (in The Android platform is a software stack for mobile devices including an [2011-02-11 17:49:26 - ApiDemos] operating system, middleware and key applications. Developers can create [2011-02-11 17:49:26 - ApiDemos] applications for the platform using the Android SDK. Applications are written [2011-02-11 17:49:26 - ApiDemos] using the Java programming language and run on Dalvik, a custom virtual [2011-02-11 17:49:26 - ApiDemos] machine designed for embedded use which runs on top of a Linux kernel. [2011-02-11 17:49:26 - ApiDemos] [2011-02-11 17:49:26 - ApiDemos] If you want to know how to develop applications for Android, you're in the [2011-02-11 17:49:26 - ApiDemos] right place. This site provides a variety of documentation that will help you [2011-02-11 17:49:26 - ApiDemos] learn about Android and develop mobile applications for the platform. [2011-02-11 17:49:26 - ApiDemos] [2011-02-11 17:49:26 - ApiDemos] An early look at the the Android SDK is also available. It includes sample [2011-02-11 17:49:26 - ApiDemos] projects with source code, development tools, an emulator, and of course all [2011-02-11 17:49:26 - ApiDemos] the libraries you'll need to build an Android application. What would it take [2011-02-11 17:49:26 - ApiDemos] to build a better mobile phone? [2011-02-11 17:49:26 - ApiDemos] ) [2011-02-11 17:49:26 - ApiDemos] /home/mejohnsn/android-sdk- linux_x86-1.6_r1/platforms/android-1.6/samples/ApiDemos/res/layout/ scrollbar3.xml:87: error: Error: No resource found that matches the given name (at 'text' with value
Re: [android-developers] Re: Corrupted images when uploading to server via POST
yes a iknow, but if he maybe get an ANR, the images could be corrupted if not fully uploads them. of corse he didn't write anything about he would have an ANR. On 12 February 2011 09:35, Indicator Veritatis mej1...@yahoo.com wrote: You are right, it is a bad idea to do it in the UI thread, but his problem is not the problem one would expect from doing it in a UI thread. That is, given that his failure takes place in his existing code, I would expect the same failure to take place once he has moved it to a worker thread. After all, the error we expect due to doing network in the UI thread is the infamous ANR. But that is not what he is getting. He is getting missing stuff in the uploaded files. On Feb 11, 3:41 pm, Gergely Juhász jg.sv...@gmail.com wrote: It is a realy bad idea to make network communication in the ui thread. You should always make net io in a worker thread. On 8 February 2011 15:45, alex c alex.chuny...@gmail.com wrote: ello. i'm experiencing a problem when uploading images from my android application to remote server (apache with php). devices are: htc hd2 and samsung galaxy tab. all with android 2.2 the application itself is very simple: public class UploadTest extends Activity { private final static String TAG = UploadTest; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } private void uploadImage() { String imagePath = Environment.getExternalStorageDirectory() + /Andorra/Images/748.jpg; String exportUrl = http://domainname.here/pda/export_photos.php;; String responseStr = ; MultipartEntity reqEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE); reqEntity.addPart(image, new FileBody(new File(imagePath), image/ jpeg)); HttpResponse resp = NetworkUtils.sendHttpRequestMultipart(exportUrl, reqEntity); new AlertDialog.Builder(this).setMessage(responseStr) .setTitle(Finished) .setPositiveButton(Ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { } }).show(); } public void btn1_onClickHandler(View v) { uploadImage(); } } so it's as simple as it can be. the problem is that the uploaded image is corrupted. the file size is same. but content can differ. sometimes it uploads ok. sometimes it is broken.. example: original image;http://pixelbirthcloud.com/corrupted_images/1_orig.jpg uplaoded image:http://pixelbirthcloud.com/corrupted_images/1_corrupted.jpg the binary diff says: 00051330 | 49 69 11 4B 9D E6 | 00051330 | DA BB 10 70 DC 77 | 00051338 | 2D B9 1B B9 E4 81 5A E6 | 00051338 | AC 20 C7 90 7E B4 33 80 | 00051340 | D4 14 B0 F4 EA 3D D1 E9 | 00051340 | 31 9A B8 C2 29 83 66 9C | 00051348 | 61 9D E3 38 F7 36 DE 63 | 00051348 | 9A 84 8E 73 9A 8D B5 29 | 00051350 | 25 9D 9D C4 64 C3 23 AA | 00051350 | 18 60 1C 0F 7A CF 33 01 | 00051358 | 4A EB 08 C3 97 7C 8C 36 | 00051358 | D4 F0 7A D3 24 BA 85 71 | 00051360 | 73 F5 E3 15 14 5B BC C1 | 00051360 | F3 0A 76 8A D6 C4 36 5E | 00051368 | B9 A4 49 06 71 1B 11 87 | 00051368 | 7B B9 5F 20 E3 A5 46 F2 | 00051370 | 39 E7 76 7B 8F 5F | 00051370 | B8 1D 4E 6B 36 6D | internet connection is 3g in my case and slow wifi in client's case. for client the images are 90% corrupted (cannot see anything) and it happens like 98% of the time. after some time i tried to make the upload using HttpURLConnection class and had same results. then tried to encode files with base64 but even in this case the base64 text is received corrupted. also tries to set transfer to chunk mode: HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setChunkedStreamingMode(8192); but the result was same.. most images are corrupt. can you please help me? i am almost crying =) fighting with this for a week now.. thank you in advance btw. tried it with emulator via normal network and it works ok... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at
Re: [android-developers] Re: Corrupted images when uploading to server via POST
This: HttpResponse resp =*NetworkUtils.sendHttpRequestMultipart*(exportUrl, reqEntity); does not look like an Android SDK fuction. Without seeing the code for it, we can only guess. -- Kostya 12.02.2011 13:11, Gergely Juhász ?: yes a iknow, but if he maybe get an ANR, the images could be corrupted if not fully uploads them. of corse he didn't write anything about he would have an ANR. On 12 February 2011 09:35, Indicator Veritatismej1...@yahoo.com wrote: You are right, it is a bad idea to do it in the UI thread, but his problem is not the problem one would expect from doing it in a UI thread. That is, given that his failure takes place in his existing code, I would expect the same failure to take place once he has moved it to a worker thread. After all, the error we expect due to doing network in the UI thread is the infamous ANR. But that is not what he is getting. He is getting missing stuff in the uploaded files. On Feb 11, 3:41 pm, Gergely Juhászjg.sv...@gmail.com wrote: It is a realy bad idea to make network communication in the ui thread. You should always make net io in a worker thread. On 8 February 2011 15:45, alex calex.chuny...@gmail.com wrote: ello. i'm experiencing a problem when uploading images from my android application to remote server (apache with php). devices are: htc hd2 and samsung galaxy tab. all with android 2.2 the application itself is very simple: public class UploadTest extends Activity { private final static String TAG = UploadTest; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } private void uploadImage() { String imagePath = Environment.getExternalStorageDirectory() + /Andorra/Images/748.jpg; String exportUrl = http://domainname.here/pda/export_photos.php;; String responseStr = ; MultipartEntity reqEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE); reqEntity.addPart(image, new FileBody(new File(imagePath), image/ jpeg)); HttpResponse resp = NetworkUtils.sendHttpRequestMultipart(exportUrl, reqEntity); new AlertDialog.Builder(this).setMessage(responseStr) .setTitle(Finished) .setPositiveButton(Ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { } }).show(); } public void btn1_onClickHandler(View v) { uploadImage(); } } so it's as simple as it can be. the problem is that the uploaded image is corrupted. the file size is same. but content can differ. sometimes it uploads ok. sometimes it is broken.. example: original image;http://pixelbirthcloud.com/corrupted_images/1_orig.jpg uplaoded image:http://pixelbirthcloud.com/corrupted_images/1_corrupted.jpg the binary diff says: 00051330 | 49 69 11 4B 9D E6 | 00051330 | DA BB 10 70 DC 77 | 00051338 | 2D B9 1B B9 E4 81 5A E6 | 00051338 | AC 20 C7 90 7E B4 33 80 | 00051340 | D4 14 B0 F4 EA 3D D1 E9 | 00051340 | 31 9A B8 C2 29 83 66 9C | 00051348 | 61 9D E3 38 F7 36 DE 63 | 00051348 | 9A 84 8E 73 9A 8D B5 29 | 00051350 | 25 9D 9D C4 64 C3 23 AA | 00051350 | 18 60 1C 0F 7A CF 33 01 | 00051358 | 4A EB 08 C3 97 7C 8C 36 | 00051358 | D4 F0 7A D3 24 BA 85 71 | 00051360 | 73 F5 E3 15 14 5B BC C1 | 00051360 | F3 0A 76 8A D6 C4 36 5E | 00051368 | B9 A4 49 06 71 1B 11 87 | 00051368 | 7B B9 5F 20 E3 A5 46 F2 | 00051370 | 39 E7 76 7B 8F 5F | 00051370 | B8 1D 4E 6B 36 6D | internet connection is 3g in my case and slow wifi in client's case. for client the images are 90% corrupted (cannot see anything) and it happens like 98% of the time. after some time i tried to make the upload using HttpURLConnection class and had same results. then tried to encode files with base64 but even in this case the base64 text is received corrupted. also tries to set transfer to chunk mode: HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setChunkedStreamingMode(8192); but the result was same.. most images are corrupt. can you please help me? i am almost crying =) fighting with this for a week now.. thank you in advance btw. tried it with emulator via normal network and it works ok... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to
[android-developers] Re: StageFright: why are you not using JavaBeans?
This is only tangential to the real topic, but I have to comment on Java Beans: I fully agree with Allen Holub. Beans are NOT good examples of object oriented code. So I am glad they are not used in Android. On Feb 10, 8:23 pm, ss mno@gmail.com wrote: Android doesn't use JavaBeans, period. Thanks for the reply, it certainly helps. The reason I asked was because a (superficial) glance at the api at http://developer.android.com/reference/java/beans/package-summary.html had some entries for java.beans. now that you mention it, the stuff for BeanInfo and the like are not available. So what is the principle behind StageFright as compared to GStreamer? - Or am I comparing apples and oranges here? Are any usage examples available ? - hide quoted text -On Wed, Feb 9, 2011 at 10:48 PM, ss mno...@gmail.com wrote: - show quoted text - Hello! Im relatively new to Android, and on the verge of using StageFright. I am curious to know why StageFright has been designed the way it is in the GingerBread release. Why have Google NOT used JavaBeans - it would have been so easy to write new codecs and new Media Sinks as JavaBeans, and the Framework could have provided a means for any application to have a mix-and-match of sources and sinks. Thanks and BR Shrikumar -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Honeycomb SDK
Unfortunately, Diane, you have not answered the question. Worse yet, you are contributing to the confusion. How so? Because you say on the one hand, Honeycomb/3.0 is specifically for tablets, but you then appear to contradict yourself pretty abruptly by immediately adding, Why would anyone want to fork the code base into two completely disjoint branches? But how do you think people will interpret your first assertion, UNLESS as two completely disjoint branches? What did you think 'specifically' means? On Feb 10, 2:46 pm, Dianne Hackborn hack...@android.com wrote: Nobody said Android 3.x line is only for tablets. Honeycomb/3.0 is specifically for tablets. Why would anyone want to fork the code base into two completely disjoint branches for tablets vs. phones? That would be somewhat insane. Did you notice all of the new stuff in HC to help applications scale between tablets and phones? That would be kind-of odd to do if the newer versions are not going to appear on phones. Do you remember when Apple introduced the iPad, and they had a new version 3.2 of iOS just for that? It never appeared on phones. This is similar. The only difference is that we did a lot more work on our core platform to take advantage of larger screens and help applications scale up to them, so our new version was a big enough change that we bumped it up a major version number. On Thu, Feb 10, 2011 at 12:12 PM, Kevin Duffey andjar...@gmail.com wrote: Dianne, If the Android 3.x line is for tablets, and let's assume we don't know the actualy api level for 3.0 yet.. but we know 2.3.3 is now 10.. that would tell us that if 3.0 becomes 11, then 2.3.3 is end of line for 2.x unless there is going to be either some sort of change in api levels to support tablets from phones? If 3.0 does become 11, then what we have now on our phones is it. No more upgrades. You stated before that 3.0 is only for tablets. That means, at least as it stands now, if 3.0 becomes 11, there are no more updates for phones other than minor 2.3.4, 2.3.5 etc that retain the same API level.. aka bug fixes only. I really hope this isn't the case OR that 3.x WILL come to phones. Perhaps, a 3.1 (api lvl 12) will be a merge of tablets and phones into one OS and that 2.3 devices like the Bionic/Atrix and many other makers, will be able to upgrade to a 3.0 api. It's all very confusing at this point. I can see the apple fanboys loving this right now ;) I am sure a lot more posts about fragmentation and confusion will show up until it's all sorted out. It would be great if sooner than later, at least for us developers, that this info was sorted out and provided to us so we know what to expect in the near future. On Thu, Feb 10, 2011 at 11:20 AM, Dianne Hackborn hack...@android.comwrote: Well by definition there would be no API changes between API level 10 and 11. The whole point API levels is to provide a consistent, strict super-setting of platform progression. That is, you can say is the platform API level = X and always know that if this is true it will contain at least all features of API level X as they are specified to work. This is the way API levels have been defined from the start, this is one of the big reasons we made them (to separate platform progression from marketing things like platform versions), and there are no plans to change this. So again, let me please request: don't pay attention to rumors. They are rumors. Trying to predict what is going to happen based on rumors is just going to make your life a lot more difficult. Things should be very clear here: you take the API level of Honeycomb (which I can say I expect to be 11) as the point at which the Honeycomb features are available, and if you need to check for this you say android.os.Build.VERSION.SDK_INT = android.os.Build.VERSION_CODES.HONEYCOMB. Also for the other comment about the HC preview SDK version being 10, actually it didn't yet have its own SDK version. During development, the SDK version remains the same as the previous platform (the dev branch is strictly a superset of the platform it is based on), and it is marked with a codename that is used for android:minSdkVersion and android:targetSdkVersion for apps that are building with its new functionality (which does not yet have an official API version number since those APIs are still in development and changing). There is some special casing for resources, because we don't have a way to use version codes in the resource directories, when running as a dev branch the resource system uses current API version + 1 as the version code for resource matching. On Thu, Feb 10, 2011 at 10:37 AM, Ed Burnette ed.burne...@gmail.comwrote: Ok, so if 2.3.3 is API level 10, and 3.0 is API level 11, where would any future 2.x releases fit in? Will they be called API level 10, or 12, or will you start using
[android-developers] Re: Adding a new View causing Force Close
Indeed: there is even a pretty good tutorial specifically on using the Eclipse debugger at http://www.ibm.com/developerworks/library/os-ecbug/. A source on more generic Eclipse topics is: http://www.linuxtopia.org/online_books/eclipse_documentation/eclipse_workbench_user_guide/index.html On Feb 10, 5:41 pm, TreKing treking...@gmail.com wrote: On Thu, Feb 10, 2011 at 7:35 PM, Aaron Buckner nagm...@gmail.com wrote: Thanks for taking the time to look at this and help me. 1. I'm not sure what you mean/how to step through the debugger I'm assuming you're using Eclipse. If you don't know what this means, you really need to spend some time learning this. Google Eclipse Debugger and you should get plenty of information. 2. I figured you meant that my view was not defined 3. Here is the XML layout: OK, that's a LinearLayout with the specified ID. Where is *this* layout contained? Where's the parent? And what does your call to setContentView() look like? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] What does/does not belong in WidgetProvider
Widget Provider is a specialized BroadcastReceiver. Assuming there exists an Application, 1-n android service,1-k activities, and potentially additional 0-n broadcast receivers that are not widgets, I would like to verify what belongs and does not belong logically inside the broadcast receiver. Here are some items .. And assuming that generally what gets launched is the widget first. Please comment on any or all of the items as to whether you think they belong inside or outside the WidgetProvider and why. Pass over any that you are not interested in. Thanks. 1) If the Application needs to always listen for certain events whether they show up in the widget or not where should this go? In the Widget? If not what would keep the broadcast receiver available to listen to the events for duration of the the application? 2) Should the widget issue notification? or request a service to issue them? ie should the notification logic reside in the widget itself or in the service. 3) Should the widget issue broadcasts or ask a service to do this? 4) Should the widget ever access any system services like like Notification Manager, PowerManager etc Why, Why not? 5) Should the widget keep any of its own state? If it should not keep state how can it change what it displays? Like a different text or icon? 6) Should the widget start off activities or let a service handle this? 7) is it ok to user the context passed to update and receiver or should one use ctx.getApplicationContext() to do things like context.startService? ( Perhaps the one passed in is the application context ? ) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: exporting signed apk in Eclipse
The emulator is quite good, but you still need to test on a real device. Even if only a simple, cheap one like the original G1. On Feb 10, 12:17 pm, Danielle Murkerson dmurkerso...@gmail.com wrote: Well I don't have my own device and luckily one of my colleagues does so he agreed to test it for me...I'm totally stumped as to why it's not working on a real device but works perfectly on the emulator.On Thu, Feb 10, 2011 at 3:16 PM, TreKing treking...@gmail.com wrote: On Thu, Feb 10, 2011 at 1:56 PM, Danielle Murkerson dmurkerso...@gmail.com wrote: I noticed under the Project Properties-Java Build Path-Order and Export the Android 2.2 was not checked by default...Does this mean it's not exporting the Android 2.2 libraries? Don't think so ... you'd have bigger issues if that was the case, I think. I have since checked the box and re-exported my project...but have been unable to test it as my tester has not gotten back with me. You have a tester? Where do I get me one of those!? =P - 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] Re: Sliding Drawer question
I'm not surprised the visual editors in ADT are so far behind. It really is difficult to code such things. That is why I never use the visual editors. Actually, there are other reasons, too. On Feb 10, 10:59 am, Salsero69 vaillancourt@gmail.com wrote: I'm having the same issue. Eclipse allows me to add it, but then can't do visual editing which sucks. On Jan 15, 11:24 pm, Scott Deutsch surger...@gmail.com wrote: Hello group. I tried to add a Sliding Drawer through the visual xml builder thingy, but it is telling me The following classes cannot be found SlidingDrawer. Why is that? They they take that out in the SDK or something? What should I try? Thanks group! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Logcat Filter for two or tags in Eclipse?
Clicked on create filter could not figure out from docs how to create a filter for say two or more tags. If I have two tags com.test.TestClassA and com.test.TestClassB how do I create a filter that shows log for both of these classes? I saw how you can start ADB for only certain tags, but how can this be done in eclipse? Please provide details thanks. What exactly do I need to enter on the tag line when creating a new filter in eclipse? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Distinguish between Power button and Screen timeout
In your own activity, you can watch for KEYCODE_POWER in onKeyDown(), apparently: http://stackoverflow.com/questions/3703071/how-to-hook-into-the-power-button-in-android Beyond that, I think you are out of luck. On Fri, Feb 11, 2011 at 9:32 PM, niko001 ebs...@googlemail.com wrote: Hi, in reply to this discussion: http://groups.google.com/group/android-developers/browse_thread/thread/491a9901f0cc58d6# (which is too old to reply to): Is there any way to distinguish between the user pressed the power button and the screen timed out? ACTION_SCREEN_OFF is sent in both cases, but I need to single out the cases in which the user actively pressed the power button. Thanks, Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] What does/does not belong in WidgetProvider
Your entire question is phrased around the Widget. There is no the Widget. From the opening sentence of your question, I am interpreting the Widget to mean a subclass of AppWidgetProvider that handles the processing for an app widget or family of app widget instances. On Sat, Feb 12, 2011 at 5:42 AM, AndroidDevTime androiddevd...@gmail.com wrote: 1) If the Application needs to always listen for certain events whether they show up in the widget or not where should this go? In the Widget? There is no reason for an AppWidgetProvider to respond to other broadcasts, since anything can update the app widget's RemoteViews. And an AppWidgetProvider cannot register listeners (e.g., PhoneStateListener). Hence, I would say the answer here is no. 2) Should the widget issue notification? or request a service to issue them? ie should the notification logic reside in the widget itself or in the service. Technically, AFAIK, raising a notification is cheap and therefore safe for an AppWidgetProvider to do. Logically, an AppWidgetProvider should never have any reason to raise a notification, IMHO. 3) Should the widget issue broadcasts or ask a service to do this? Technically, AFAIK, sending a broadcast is cheap and therefore safe for an AppWidgetProvider to do. Logically, an AppWidgetProvider should never have any reason to send broadcasts, IMHO. 4) Should the widget ever access any system services like like Notification Manager, PowerManager etc Why, Why not? This cannot be answered in the abstract. 5) Should the widget keep any of its own state? If it should not keep state how can it change what it displays? Like a different text or icon? It may need to. For example, suppose you have an app widget that shows the weather for a certain city. The configuration activity for that app widget allows the user to choose the city. Somewhere, you need to store that city, and distinct from the cities that any other instance of that app widget may need (e.g., user adds two copies of the app widget to track weather in two cities). 6) Should the widget start off activities or let a service handle this? An AppWidgetProvider should never have a reason to directly start off activities, nor should a service triggered from an AppWidgetProvider have any reason to directly start off activities, IMHO. However, either are perfectly welcome to create PendingIntents that start off activities and attach them as click handlers for widgets in an app widget's RemoteViews. 7) is it ok to user the context passed to update and receiver or should one use ctx.getApplicationContext() to do things like context.startService? ( Perhaps the one passed in is the application context ? ) Most things you can just use the passed-in Context. One thing that will not work for is using registerReceiver() with a null receiver to get the last value of a sticky broadcast, such as ACTION_BATTERY_CHANGED -- for that, you will need to use getApplicationContext(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Sliding Drawer question
Out of interest, what are the other reasons? I find the visual editor doesn't give an exact idea of the final layout (doesn't auto-scale properly, show custom views sometimes or show sliding drawers at all) but it helps get the basic framework up and running quickly On 12 Feb 2011 10:46, Indicator Veritatis mej1...@yahoo.com wrote: I'm not surprised the visual editors in ADT are so far behind. It really is difficult to code such things. That is why I never use the visual editors. Actually, there are other reasons, too. On Feb 10, 10:59 am, Salsero69 vaillancourt@gmail.com wrote: I'm having the same issue. Eclipse allows me to add it, but then can't do visual editing which sucks. On Jan 15, 11:24 pm, Scott Deutsch surger...@gmail.com wrote: Hello group. I tried to add a Sliding Drawer through the visual xml builder thingy, but it is telling me The following classes cannot be found SlidingDrawer. Why is that? They they take that out in the SDK or something? What should I try? Thanks group! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] debugging services, broadcast messages
Hi, My application listens to a broadcast message sent by a service. I would like to test, debug the activity but I do not want to wait for the time when the broadcast message is actually sent by the service. Is there any way to send a particular broadcast message to the emulator? rrd -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Poor relevancy in Android market since yesterday.
Something weird is going on here, for example if you search on the Market website for twitter you get the official app, and also games like Radiant HD, but you don't get TweetDeck which has Twitter in the title and does appear as the 2nd related app for Twitter (official). Very strange. On 12 Feb 2011, at 00:10, TreKing wrote: On Fri, Feb 11, 2011 at 3:53 PM, Nathan critter...@crittermap.com wrote: On Feb 11, 1:19 pm, JonFHancock jonfhanc...@gmail.com wrote: Getting a little cynical these days, huh TreKing? ;-) These days? LOL - you took my response :-P - 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] Re: ListView of CheckedTextView + SQLite, display checked rows ?
If you have done a cursor adapter once, itis really easy. I have put some example code here. It is stripped down to the essentials: public class HistoryCursorAdapter extends CursorAdapter { private Cursor cursor; public HistoryCursorAdapter(Context context, Cursor c) { super(context, c); cursor = c; } @Override public void bindView(View view, Context context, Cursor cursor) { TextView tvSearchString = (TextView) view.findViewById( R.id.search_string ); // this search_string_view must be part of the layout created in newView. String searchString = cursor.getString( cursor.getColumnIndex( HistoryProvider.SEARCH_STRING)); tvSearchString.setText( searchString ); } @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { LayoutInflater li = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); return li.inflate( R.layout.put_your_listitem_layout_here, parent, false ); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 have an ideas submission website like Adobe?
Adobe has this: http://ideas.adobe.com/ Does Android have anything similar? My idea proposal is to create a kiosk mode feature on the tablet. This kiosk mode would enable the user to block access to any portion of the menu settings by password protection. This would be great for parents to control their kids' access to portions of the tablet. This would also enable companies to limit employee's access to certain parts of the menu. The kiosk mode setup screen could be something as simple as a page with a list of the menu items and a checkbox next to each item. The user simply checks the box they want to block access to. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Honeycomb SDK
Dianne said that Android 3.*0* will not be loaded onto any phone. Phones will just skip 3.0 and start with 3.1 (or anything after 3.0). This way you don't need two disjoint branches. There would only be trouble if the api-level of 2.3.3=10, the API level of Android 3.0=11 and a new in-between version 2.4 will be created. But who says that the API level of Android 3.0=11. Who says that the next Android version (Ice Cream (Sandwich)) is 2.4? All rumours. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Does Android have an ideas submission website like Adobe?
On 12 February 2011 14:56, 95Ghz tom...@gmail.com wrote: My idea proposal is to create a kiosk mode feature on the tablet. White a launcher replacement and do what you want 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] Re: Android MVC Framework
First, welcome to the Android dev community! :-) Whether the Android is MVC framework or not, why are you specifically searching for one? I would just learn the Android SDK, its concepts and start creating my app that fits these concepts, MVC or not. But if your question is a question whether Android allows/helps you to seperate data from controller(s) and view(s), then the answer is 'yes' (see Indicator's post earlier). :-) Still, you could code you app in such a way that would violate the MVC principles. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: What happens when i change the kernel config file and build the OS with the changed kernel config file?
Many thanks! On 2月11日, 下午5时17分, Kostya Vasilyev kmans...@gmail.com wrote: Sounds right. That C function, getaddrinfo, is IPv6 aware. If the kernel was compiled without v6 support, it returns an error code, which is then turned into an exception by the Java networking library. -- Kostya Vasilyev --http://kmansoft.wordpress.com 12.02.2011 1:03 пользователь 捷超 王 ee07b...@gmail.com написал: Thank you very much, The Browser utilizes a class called InetAddress to deal with Internet address. The InetAddress class further calls getaddrinfo, which is a native method to resolve the URLs. This native method is implemented in C and will throw an exception when it is resolving a IPv6 URL when the CONFIG_IPV6 is not set. On Feb 7, 1:48 am, Kostya Vasilyev kmans...@gmail.com wrote: From the group's description on Google Groups: http://groups.google.com/group/android-developers Discuss developing Android applications using the Android SDK. Get help with troubleshooting apps, advice on implementation, and strategies for improving your app's speed and user experience. The kernel is not a part of the SDK, and rebuilding it is not a part of the process of using the SDK. Those other lists (esp. porting) has subscribers who routinely rebuild the kernel, so you'll have a higher chance of getting a good answer. BTW, the following link: http://download.oracle.com/javase/1.5.0/docs/guide/net/ipv6_guide/ind... says that Java applications don't need to worry about choosing a specific IP version, it's automatic - although I don't know if the browser uses Java for networking. -- Kostya 06.02.2011 20:34, 捷超 王 пишет: OK. Thank you. But i would like to know, what problems are appropriate to post here? On Feb 7, 12:04 am, Kostya Vasilyevkmans...@gmail.com wrote: Perhaps the browser always recognizes IPv6 addresses, and tries to use them? If IPv6 is disabled in the kernel, trying to use a v6 socket should fail, and hence you can't open a v6 site. Once kernel support is enabled, the rest would work automatically. You might also want to post your question on a more appropriate list: http://groups.google.com/group/android-platform http://groups.google.com/group/android-porting -- Kostya 06.02.2011 18:29, 捷超 王 пишет: Hi, everyone~ I have been recently studying on why the Browser in the android OS does not support accessing IPv6 websites through IPv6 URLs. At first, I built the source code with CONFIG_IPV6 not set and tried IPv6 URLs in the Browser and the Browser could not access IPv6 websites. I then built the source code with CONFIG_IPV6 set and tried again, the Browser works! But i don't get it. I think the source code of the Browser hasn't been changed, how it can be that the Browser suddenly support accessing websites through IPv6 URLs...? Is it the new kernel config file introduce some modules to be included in the final iso image so that the Browser which utilizes these modules is able to access websites through IPv6 URLs? I just need a hint, such as what reads the changed kernel config file and contributes to the changed behavior of the Browser.apk. Best wishes and thanks in advance! -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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
[android-developers] Share some of my work - DragDrop framework
Hi, I've just finished the first iteration on my dragdrop framework I'm building. http://code.google.com/p/mobile-anarchy-widgets/wiki/Drag_and_Drop?ts=1297527301updated=Drag_and_Drop You can download the full source code from: http://code.google.com/p/mobile-anarchy-widgets/ or the compiled apk from: http://code.google.com/p/mobile-anarchy-widgets/downloads/list Any feedback is appreciated. Oded -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: [ASK] Charting and SVG in android
thanks for reply On Feb 9, 8:22 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Feb 9, 2011 at 8:17 AM, Handita Okviyanto viyanatm...@gmail.com wrote: Hello. I need your help. I want to make an application in android that has a charting features and a map. I have a plan to use SVG in my application in the future. But I'm just a newbie in android. Anyone can help me finding a charting library or how to use SVG in android?? http://stackoverflow.com/questions/424752/any-good-graphing-packages-...http://stackoverflow.com/questions/3889882/svg-support-on-androidhttp://stackoverflow.com/questions/4202030/how-to-read-svg-filehttp://stackoverflow.com/questions/2969037/svg-to-android-shape -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Poor relevancy in Android market since yesterday.
Come to think of it, Radiant HD popped to the top of the list when I searched for Facebook the other day. I think it is because Radiant HD describes itself as being able to share top scores on Facebook. It still shouldn't show up above Facebook though. For a long time, my app, LauncherPro Icons, has shown above LauncherPro for a search for launcherpro despite LP having 1,000,000+ downloads and I have about 30,000. On Sat, Feb 12, 2011 at 5:23 AM, Richard Leggett richard.legg...@gmail.comwrote: Something weird is going on here, for example if you search on the Market website for twitter you get the official app, and also games like Radiant HD, but you don't get TweetDeck which has Twitter in the title and does appear as the 2nd related app for Twitter (official). Very strange. On 12 Feb 2011, at 00:10, TreKing wrote: On Fri, Feb 11, 2011 at 3:53 PM, Nathan critter...@crittermap.com wrote: On Feb 11, 1:19 pm, JonFHancock jonfhanc...@gmail.com wrote: Getting a little cynical these days, huh TreKing? ;-) These days? LOL - you took my response :-P - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 should I invoke InstalledAppDetails from a program?
I am trying to invoke the InstalledAppDetails with following code. I get error message that says activity not found. How should I invoke InstalledAppDetails? Intent intent = Intent.parseUri(dat=package:com.example.android.jetboy cmp=com.android.settings/.applications.InstalledAppDetails, 0); intent.setAction(android.settings.APPLICATION_DETAILS_SETTINGS); startActivity(intent); E/AndroidRuntime( 1007): FATAL EXCEPTION: main E/AndroidRuntime( 1007): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dds.test/com.dds.test.TestLayout}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.APPLICATION_DETAILS_SETTINGS dat=dat=package:com.example.android.jetboy cmp=com.android.settings/.applications.InstalledAppDetails } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 should I invoke InstalledAppDetails from a program?
I would expect more something like this: startActivity(new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS, Uri.parse(package:com.example.android.jetboy))); After all, that's what the documentation for ACTION_APPLICATION_DETAILS_SETTINGS states: http://developer.android.com/reference/android/provider/Settings.html#ACTION_APPLICATION_DETAILS_SETTINGS Also, bear in mind that this is only available on Android 2.3 and higher. On Sat, Feb 12, 2011 at 12:14 PM, dipu contac...@gmail.com wrote: I am trying to invoke the InstalledAppDetails with following code. I get error message that says activity not found. How should I invoke InstalledAppDetails? Intent intent = Intent.parseUri(dat=package:com.example.android.jetboy cmp=com.android.settings/.applications.InstalledAppDetails, 0); intent.setAction(android.settings.APPLICATION_DETAILS_SETTINGS); startActivity(intent); E/AndroidRuntime( 1007): FATAL EXCEPTION: main E/AndroidRuntime( 1007): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dds.test/com.dds.test.TestLayout}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.APPLICATION_DETAILS_SETTINGS dat=dat=package:com.example.android.jetboy cmp=com.android.settings/.applications.InstalledAppDetails } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] debugging services, broadcast messages
12.02.2011 15:47, rrd пишет: Hi, My application listens to a broadcast message sent by a service. I would like to test, debug the activity but I do not want to wait for the time when the broadcast message is actually sent by the service. Is there any way to send a particular broadcast message to the emulator? You can fake it in your own code. Not all system broadcasts can be sent by applications, so you'd need something like this: receiver ... intent-filter action name=android.intent.action.BOOT_COMPLETED/ action name=my.test.boot_completed/ /intent-filter /receiver Then put a button in some activity of yours to send my.test.boot_completed broadcast. -- Kostya rrd -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
Re: [android-developers] Re: Honeycomb SDK
Sorry I thought I was being pretty clear. Do you consider Apple's 3.2 version of iOS to be a fork of their platform in the way you are describing? I mean, you can define fork in various ways, and you could justifiably say such a thing is a fork (though transient). But you seem to be concerned about major work being done on two diverging branches of the platform which, you know, would be kind-of annoying for all concerned. On Sat, Feb 12, 2011 at 2:35 AM, Indicator Veritatis mej1...@yahoo.comwrote: Unfortunately, Diane, you have not answered the question. Worse yet, you are contributing to the confusion. How so? Because you say on the one hand, Honeycomb/3.0 is specifically for tablets, but you then appear to contradict yourself pretty abruptly by immediately adding, Why would anyone want to fork the code base into two completely disjoint branches? But how do you think people will interpret your first assertion, UNLESS as two completely disjoint branches? What did you think 'specifically' means? On Feb 10, 2:46 pm, Dianne Hackborn hack...@android.com wrote: Nobody said Android 3.x line is only for tablets. Honeycomb/3.0 is specifically for tablets. Why would anyone want to fork the code base into two completely disjoint branches for tablets vs. phones? That would be somewhat insane. Did you notice all of the new stuff in HC to help applications scale between tablets and phones? That would be kind-of odd to do if the newer versions are not going to appear on phones. Do you remember when Apple introduced the iPad, and they had a new version 3.2 of iOS just for that? It never appeared on phones. This is similar. The only difference is that we did a lot more work on our core platform to take advantage of larger screens and help applications scale up to them, so our new version was a big enough change that we bumped it up a major version number. On Thu, Feb 10, 2011 at 12:12 PM, Kevin Duffey andjar...@gmail.com wrote: Dianne, If the Android 3.x line is for tablets, and let's assume we don't know the actualy api level for 3.0 yet.. but we know 2.3.3 is now 10.. that would tell us that if 3.0 becomes 11, then 2.3.3 is end of line for 2.x unless there is going to be either some sort of change in api levels to support tablets from phones? If 3.0 does become 11, then what we have now on our phones is it. No more upgrades. You stated before that 3.0 is only for tablets. That means, at least as it stands now, if 3.0 becomes 11, there are no more updates for phones other than minor 2.3.4, 2.3.5 etc that retain the same API level.. aka bug fixes only. I really hope this isn't the case OR that 3.x WILL come to phones. Perhaps, a 3.1 (api lvl 12) will be a merge of tablets and phones into one OS and that 2.3 devices like the Bionic/Atrix and many other makers, will be able to upgrade to a 3.0 api. It's all very confusing at this point. I can see the apple fanboys loving this right now ;) I am sure a lot more posts about fragmentation and confusion will show up until it's all sorted out. It would be great if sooner than later, at least for us developers, that this info was sorted out and provided to us so we know what to expect in the near future. On Thu, Feb 10, 2011 at 11:20 AM, Dianne Hackborn hack...@android.com wrote: Well by definition there would be no API changes between API level 10 and 11. The whole point API levels is to provide a consistent, strict super-setting of platform progression. That is, you can say is the platform API level = X and always know that if this is true it will contain at least all features of API level X as they are specified to work. This is the way API levels have been defined from the start, this is one of the big reasons we made them (to separate platform progression from marketing things like platform versions), and there are no plans to change this. So again, let me please request: don't pay attention to rumors. They are rumors. Trying to predict what is going to happen based on rumors is just going to make your life a lot more difficult. Things should be very clear here: you take the API level of Honeycomb (which I can say I expect to be 11) as the point at which the Honeycomb features are available, and if you need to check for this you say android.os.Build.VERSION.SDK_INT = android.os.Build.VERSION_CODES.HONEYCOMB. Also for the other comment about the HC preview SDK version being 10, actually it didn't yet have its own SDK version. During development, the SDK version remains the same as the previous platform (the dev branch is strictly a superset of the platform it is based on), and it is marked with a codename that is used for android:minSdkVersion and android:targetSdkVersion for apps that are building with its new functionality (which does not
Re: [android-developers] Re: Poor relevancy in Android market since yesterday.
Can someone get into google, figure out what sort of algorithm they are using, so we can adjust our apps descriptions to always appear at the top? On Sat, Feb 12, 2011 at 8:34 AM, Jon F Hancock jonfhanc...@gmail.comwrote: Come to think of it, Radiant HD popped to the top of the list when I searched for Facebook the other day. I think it is because Radiant HD describes itself as being able to share top scores on Facebook. It still shouldn't show up above Facebook though. For a long time, my app, LauncherPro Icons, has shown above LauncherPro for a search for launcherpro despite LP having 1,000,000+ downloads and I have about 30,000. On Sat, Feb 12, 2011 at 5:23 AM, Richard Leggett richard.legg...@gmail.com wrote: Something weird is going on here, for example if you search on the Market website for twitter you get the official app, and also games like Radiant HD, but you don't get TweetDeck which has Twitter in the title and does appear as the 2nd related app for Twitter (official). Very strange. On 12 Feb 2011, at 00:10, TreKing wrote: On Fri, Feb 11, 2011 at 3:53 PM, Nathan critter...@crittermap.comwrote: On Feb 11, 1:19 pm, JonFHancock jonfhanc...@gmail.com wrote: Getting a little cynical these days, huh TreKing? ;-) These days? LOL - you took my response :-P - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] debugging services, broadcast messages
You can use the am shell command to send a broadcast. Use adb shell am to get a help summary. Don't use it to send a BOOT_COMPLETED broadcast, since if you are allowed to do that you will cause all kinds of chaos as tons of stuff receives it and thinks the system has booted again. Instead use the -n option to send a broadcast to your specific component. On Sat, Feb 12, 2011 at 10:20 AM, Kostya Vasilyev kmans...@gmail.comwrote: 12.02.2011 15:47, rrd пишет: Hi, My application listens to a broadcast message sent by a service. I would like to test, debug the activity but I do not want to wait for the time when the broadcast message is actually sent by the service. Is there any way to send a particular broadcast message to the emulator? You can fake it in your own code. Not all system broadcasts can be sent by applications, so you'd need something like this: receiver ... intent-filter action name=android.intent.action.BOOT_COMPLETED/ action name=my.test.boot_completed/ /intent-filter /receiver Then put a button in some activity of yours to send my.test.boot_completed broadcast. -- Kostya rrd -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android MVC Framework
I am a little confused about this android MVC. I always associate MVC with a server side architecture, such as Struts, or Spring Web. I thought at first the OP was asking about building a web server on an android device using MVC. So I am not sure I see how MVC is relevant to android apps themselves per se? On Sat, Feb 12, 2011 at 7:28 AM, Streets Of Boston flyingdutc...@gmail.comwrote: First, welcome to the Android dev community! :-) Whether the Android is MVC framework or not, why are you specifically searching for one? I would just learn the Android SDK, its concepts and start creating my app that fits these concepts, MVC or not. But if your question is a question whether Android allows/helps you to seperate data from controller(s) and view(s), then the answer is 'yes' (see Indicator's post earlier). :-) Still, you could code you app in such a way that would violate the MVC principles. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Distinguish between Power button and Screen timeout
Hm, apps shouldn't see the power key, that is consumed by the system. On Sat, Feb 12, 2011 at 3:51 AM, Mark Murphy mmur...@commonsware.comwrote: In your own activity, you can watch for KEYCODE_POWER in onKeyDown(), apparently: http://stackoverflow.com/questions/3703071/how-to-hook-into-the-power-button-in-android Beyond that, I think you are out of luck. On Fri, Feb 11, 2011 at 9:32 PM, niko001 ebs...@googlemail.com wrote: Hi, in reply to this discussion: http://groups.google.com/group/android-developers/browse_thread/thread/491a9901f0cc58d6# (which is too old to reply to): Is there any way to distinguish between the user pressed the power button and the screen timed out? ACTION_SCREEN_OFF is sent in both cases, but I need to single out the cases in which the user actively pressed the power button. Thanks, Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Does the Google app store allow apps that target just 1 device?
In fact, if a device has its own proprietary APIs, those are expected to be expose to apps through a shared library, so you access them through uses-library, so by having this dependency your app will automatically be filtered by Market as described. On Sat, Feb 12, 2011 at 12:45 AM, Indicator Veritatis mej1...@yahoo.comwrote: If you can find a shared library that is present only on the device you target, then you can use uses-library in your manifest. See http://developer.android.com/guide/appendix/market-filters.html#manifest-filters for details. Likewise for features (uses-feature) On Feb 8, 7:27 am, Lee Leclair zer0stimu...@gmail.com wrote: If I have an app that will only run on the Samsung Galaxy S or HTC Hero, because it uses vendor proprietary SDKs, will the Google app store still accept my app? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
Re: [android-developers] Re: Android MVC Framework
On Sat, Feb 12, 2011 at 1:40 PM, Kevin Duffey andjar...@gmail.com wrote: I am a little confused about this android MVC. I always associate MVC with a server side architecture, such as Struts, or Spring Web. MVC was originally a client-side architecture. In fact, it originated with Smalltalk: http://en.wikipedia.org/wiki/Model%E2%80%93View%E2%80%93Controller (damn, that's an ugly URL) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: In app billing...
So one thing I haven't found yet.. is in-app only for 2.3 and later apps? Or is the SDK going to work for 2.0+? Given that 2.1 and 2.2 are the majority market, with 2.3 going to be building up this year, I am fine with it targeting that, but if it's 2.3 and later, that kinda sucks because it will be a while before we can really tap into a larger market of 2.3+ devices. On Sat, Feb 12, 2011 at 1:54 AM, Miguel Morales therevolti...@gmail.comwrote: I have tried to implement code using the provided example project. Although you can get some work done, the lack of a 2.3 market version really hurts testing. I have tried running the Dungeon app on a 1.6 device with no luck. On Sat, Feb 5, 2011 at 2:14 PM, fooyee reloadingthej...@gmail.com wrote: switching gears a bit, has anyone tried out the in-app billing (dungeon.java) sample provided by Google? Is it working OK? On Feb 5, 9:47 pm, Justin Giles jtgi...@gmail.com wrote: Ok, you two. Now I'm hungry for a donut while I'm doing my laundry! On Sat, Feb 5, 2011 at 10:10 AM, Kostya Vasilyev kmans...@gmail.com wrote: 05.02.2011 18:59, Maps.Huge.Info (Maps API Guru) пишет: I believe being able to provide refunds is important. When you go to a real-world store Since a user upgrading to a pro version isn't buying anything tangible, it's more like going into a donut shop, buying a donut and eating it. How many consumers ask for refunds at that point? Under some circumstances, a refund is called for but not in the same way as a consumer returning an unopened package that can be resold. That's a different type of product, more like a health potion in an RPG game. You might call it a virtual consumable. To me, issuing a refund for a software product is only to be done under some unusual circumstance not because of buyer remorse. The donut has been eaten and that's that. For a virtual consumable, yes. But I'm talking specifically about upgrading from lite to pro, which is not a consumable at all. It's the right to use the software in a certain way, to repeatedly perform certain tasks, and is more like buying... hmm... a microwave or a washing machine, not a donut. -John Coryat -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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.comandroid-developers%2Bunsubs cr...@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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Sliding Drawer question
Reminds me of trying to develop a web site with using JSF.. the visual editors suck at providing any sense of the actual layout and look and feel. Always better to do it in code and refresh the changes in the browser. On Sat, Feb 12, 2011 at 4:45 AM, Cliff Davies cliff.dav...@gmail.comwrote: Out of interest, what are the other reasons? I find the visual editor doesn't give an exact idea of the final layout (doesn't auto-scale properly, show custom views sometimes or show sliding drawers at all) but it helps get the basic framework up and running quickly On 12 Feb 2011 10:46, Indicator Veritatis mej1...@yahoo.com wrote: I'm not surprised the visual editors in ADT are so far behind. It really is difficult to code such things. That is why I never use the visual editors. Actually, there are other reasons, too. On Feb 10, 10:59 am, Salsero69 vaillancourt@gmail.com wrote: I'm having the same issue. Eclipse allows me to add it, but then can't do visual editing which sucks. On Jan 15, 11:24 pm, Scott Deutsch surger...@gmail.com wrote: Hello group. I tried to add a Sliding Drawer through the visual xml builder thingy, but it is telling me The following classes cannot be found SlidingDrawer. Why is that? They they take that out in the SDK or something? What should I try? Thanks group! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: In app billing...
This: http://developer.android.com/guide/market/billing/billing_about.html says: In-app billing relies on version 2.3.0 (and higher) of the Android Market application, which may not be available yet. and doesn't say anything about the platform version. -- Kostya 12.02.2011 21:56, Kevin Duffey пишет: So one thing I haven't found yet.. is in-app only for 2.3 and later apps? Or is the SDK going to work for 2.0+? Given that 2.1 and 2.2 are the majority market, with 2.3 going to be building up this year, I am fine with it targeting that, but if it's 2.3 and later, that kinda sucks because it will be a while before we can really tap into a larger market of 2.3+ devices. On Sat, Feb 12, 2011 at 1:54 AM, Miguel Morales therevolti...@gmail.com mailto:therevolti...@gmail.com wrote: I have tried to implement code using the provided example project. Although you can get some work done, the lack of a 2.3 market version really hurts testing. I have tried running the Dungeon app on a 1.6 device with no luck. On Sat, Feb 5, 2011 at 2:14 PM, fooyee reloadingthej...@gmail.com mailto:reloadingthej...@gmail.com wrote: switching gears a bit, has anyone tried out the in-app billing (dungeon.java) sample provided by Google? Is it working OK? On Feb 5, 9:47 pm, Justin Giles jtgi...@gmail.com mailto:jtgi...@gmail.com wrote: Ok, you two. Now I'm hungry for a donut while I'm doing my laundry! On Sat, Feb 5, 2011 at 10:10 AM, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: 05.02.2011 18:59, Maps.Huge.Info http://Maps.Huge.Info (Maps API Guru) пишет: I believe being able to provide refunds is important. When you go to a real-world store Since a user upgrading to a pro version isn't buying anything tangible, it's more like going into a donut shop, buying a donut and eating it. How many consumers ask for refunds at that point? Under some circumstances, a refund is called for but not in the same way as a consumer returning an unopened package that can be resold. That's a different type of product, more like a health potion in an RPG game. You might call it a virtual consumable. To me, issuing a refund for a software product is only to be done under some unusual circumstance not because of buyer remorse. The donut has been eaten and that's that. For a virtual consumable, yes. But I'm talking specifically about upgrading from lite to pro, which is not a consumable at all. It's the right to use the software in a certain way, to repeatedly perform certain tasks, and is more like buying... hmm... a microwave or a washing machine, not a donut. -John Coryat -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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 mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com mailto:cr...@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 mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@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
Re: [android-developers] Re: In app billing...
According to the docs, it's going to be for 1.6+ devices. They will be pushing updates to the market app worldwide at some point. It's not really an SDK. It's an aidl file which you use to communicate with the market app. But with no 2.3.0 version of the market app available yet, it's not possible to fully test it yet. Even the dungeon app won't work as far as I can tell. On Sat, Feb 12, 2011 at 11:14 AM, Kostya Vasilyev kmans...@gmail.com wrote: This: http://developer.android.com/guide/market/billing/billing_about.html says: In-app billing relies on version 2.3.0 (and higher) of the Android Market application, which may not be available yet. and doesn't say anything about the platform version. -- Kostya 12.02.2011 21:56, Kevin Duffey пишет: So one thing I haven't found yet.. is in-app only for 2.3 and later apps? Or is the SDK going to work for 2.0+? Given that 2.1 and 2.2 are the majority market, with 2.3 going to be building up this year, I am fine with it targeting that, but if it's 2.3 and later, that kinda sucks because it will be a while before we can really tap into a larger market of 2.3+ devices. On Sat, Feb 12, 2011 at 1:54 AM, Miguel Morales therevolti...@gmail.com wrote: I have tried to implement code using the provided example project. Although you can get some work done, the lack of a 2.3 market version really hurts testing. I have tried running the Dungeon app on a 1.6 device with no luck. On Sat, Feb 5, 2011 at 2:14 PM, fooyee reloadingthej...@gmail.com wrote: switching gears a bit, has anyone tried out the in-app billing (dungeon.java) sample provided by Google? Is it working OK? On Feb 5, 9:47 pm, Justin Giles jtgi...@gmail.com wrote: Ok, you two. Now I'm hungry for a donut while I'm doing my laundry! On Sat, Feb 5, 2011 at 10:10 AM, Kostya Vasilyev kmans...@gmail.com wrote: 05.02.2011 18:59, Maps.Huge.Info (Maps API Guru) пишет: I believe being able to provide refunds is important. When you go to a real-world store Since a user upgrading to a pro version isn't buying anything tangible, it's more like going into a donut shop, buying a donut and eating it. How many consumers ask for refunds at that point? Under some circumstances, a refund is called for but not in the same way as a consumer returning an unopened package that can be resold. That's a different type of product, more like a health potion in an RPG game. You might call it a virtual consumable. To me, issuing a refund for a software product is only to be done under some unusual circumstance not because of buyer remorse. The donut has been eaten and that's that. For a virtual consumable, yes. But I'm talking specifically about upgrading from lite to pro, which is not a consumable at all. It's the right to use the software in a certain way, to repeatedly perform certain tasks, and is more like buying... hmm... a microwave or a washing machine, not a donut. -John Coryat -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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.comandroid-developers%2Bunsubs cr...@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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: Castor unmarshalling with Android's SAX DOM implementation throws: The 'namespace-prefix' feature is not supported while the 'namespaces' feature is enabled
Same here... My library does not work on Android because of this bug ( https://code.google.com/p/redmine-java-api/issues/detail?id=13). Any updates on this? I'm quite disappointed that Android uses something, which looks like Java, but is not really Java - so many incompatibilities... Sad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Account name with spaces throws Exception on Android 2.2
Hi Dmitri, thanks for your answer. Because my first mail took a few days until it appeared on this list I reported this bug myself: http://code.google.com/p/android/issues/detail?id=14505 You may want to mark it as duplicate. I still have a question regarding this issue: Are other characters that I should avoid in account names (e.g. : / %)? And I also have another (maybe related) issue. This one is in Android 2.1 already (I could not check 2.2 or 2.3) When I create a contact I do this with the following code: ContentProviderOperation.Builder builder = ContentProviderOperation.newInsert(mRawEntityUri); builder.withValue(RawContacts.ACCOUNT_TYPE, mAccountType); builder.withValue(RawContacts.ACCOUNT_NAME, mAccountName); builder.withValue(DATA_SOURCE, source); builder.withValue(DATA_ETAG, etag); mOperations.add(builder.build()); upon a sync I update it with something like: ContentProviderOperation.Builder builder = ContentProviderOperation.newUpdate(mRawEntityUri); builder.withSelection(ContactsContract.RawContacts._ID + =?, new String[] { String.valueOf(mRawContactId) }); builder.withValue(DATA_SOURCE, source); builder.withValue(DATA_ETAG, etag); builder.withValue(RawContacts.DIRTY, 0); builder.withValue(RawContacts.DELETED, 0); mOperations.add(builder.build()); where DATA_SOURCE = RawContacts.SOURCE_ID and DATA_ETAG = RawContacts.SYNC1 and source is the full URI to a CardDav resource. So it looks like: https://servername.dom:port/path/to/vcard/123456-7890-abc.vcf The insert operations work fine, but if I update a contact I get the following exception when I try to open a contact in the contact app (I obfuscated the host name): I/ActivityManager( 59): Starting activity: Intent { act=android.intent.action.VIEW dat=content://com.android.contacts/ contacts/lookup/46ehttps://xxx..xxx..xxx:8443/caldav..php/test/ addresses/C4A77B71-9880-0001-10C2-4CE11DE076B0..vcf/1408 } D/AndroidRuntime( 5887): Shutting down VM W/dalvikvm( 5887): threadid=3: thread exiting with uncaught exception (group=0x4001b188) E/AndroidRuntime( 5887): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 5887): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=content://com.android.contacts/contacts/lookup/46ehttps:// xxx..xxx..xxx:8443/caldav..php/test/addresses/ C4A77B71-9880-0001-10C2-4CE11DE076B0..vcf/1408 } E/AndroidRuntime( 5887):at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java: 1408) E/AndroidRuntime( 5887):at android.app.Instrumentation.execStartActivity(Instrumentation.java: 1378) E/AndroidRuntime( 5887):at android.app.Activity.startActivityFromChild(Activity.java:2989) E/AndroidRuntime( 5887):at android.app.Activity.startActivityForResult(Activity.java:2769) E/AndroidRuntime( 5887):at com.android.contacts.ContactsListActivity.onListItemClick(ContactsListActivity.java: 1258) E/AndroidRuntime( 5887):at android.app.ListActivity $2.onItemClick(ListActivity.java:312) E/AndroidRuntime( 5887):at android.widget.AdapterView.performItemClick(AdapterView.java:284) E/AndroidRuntime( 5887):at android.widget.ListView.performItemClick(ListView.java:3285) E/AndroidRuntime( 5887):at android.widget.AbsListView $PerformClick.run(AbsListView.java:1640) E/AndroidRuntime( 5887):at android.os.Handler.handleCallback(Handler.java:587) E/AndroidRuntime( 5887):at android.os.Handler.dispatchMessage(Handler.java:92) E/AndroidRuntime( 5887):at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 5887):at android.app.ActivityThread.main(ActivityThread.java:4363) E/AndroidRuntime( 5887):at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 5887):at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime( 5887):at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:860) E/AndroidRuntime( 5887):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) E/AndroidRuntime( 5887):at dalvik.system.NativeStart.main(Native Method) if i omit the line builder.withValue(DATA_SOURCE, source); in the update code, it works and in the logs I see something like: I/ActivityManager( 59): Starting activity: Intent { act=android.intent.action.VIEW dat=content://com.android.contacts/ contacts/lookup/46ehttps%3A%2F%2Fxxx..xxx..xxx%3A8443%2Fcaldav..php %2Ftest%2Faddresses%2FC4A480D3-FB20-0001-40C5-3CC0146EA520..vcf/1406 cmp=com.android.contacts/.ViewContactActivity } notice the encoded URL this time! I suspect this is another case of an URI encoding problem. It seems like my only option is to encode the source with URI-Safe Base64 (which works fine so far). Can you confirm this as an Android bug? cheers Marten On 4 Feb., 05:04, Dmitri Plotnikov dplotni...@google.com wrote: Hi Marten, I have filed an internal bug for this
[android-developers] Re: Completely disable Soft Keyboard from EditText
Hari: this is exactly what I'd like to do. The EditText will be used to input a specific value with only certain units allowed. So I have extended android.inputmethodservice.Keyboard and use it together with android.inputmethodservice.KeyboardView so that the keyboard only shows the characters that make sense in this specific context. So far the solution I have come up with is to get a handle on the InputMethodManager (imm) and add OnFocus-, OnClick- and OnTouchListener's for the EditText which all call the following helper method: private boolean makeActive(View v) { imm.hideSoftInputFromWindow(v.getWindowToken(), 0); EditText e = (EditText) v; int iType = e.getInputType(); e.setInputType(InputType.TYPE_NULL); e.requestFocus(); showKb(); e.setInputType(iType); e.setSelection(e.getText().length()); return true; } protected void showKb() { this.kbView.setVisibility(View.VISIBLE); Here kbView is the KeyboardView connected to my custom keyboard. So far this works - but it's not very elegant nor am I sure it is an optimal solution. But as said, it's the only thing that works for me so far. I'd be glad to receive some comments on your behalf. On Feb 6, 3:51 pm, Hari Edo hari@gmail.com wrote: I think he said he had a special soft keyboard that was to be used for this field. Sounds like he doesn't want to go through the whole hassle of creating an entire soft keyboard, nor creating all the caret- position and backspace-handling code necessary to reinvent EditView. I don't know the actual situation but imagine a Scrabble tile rack that only let you enter the letters in your rack, plus a backspace and DONE key. On Feb 6, 2:26 am, Dianne Hackborn hack...@android.com wrote: Can I first ask, what are you trying to accomplish? What is the purpose of having an editable text view if the user can't actually put text into it? On Tue, Feb 1, 2011 at 10:29 AM, zenperttu perttu.s...@gmail.com wrote: Hi! I would like a way to turn off showing the current soft keyboard for an EditText. I have a custom View that provides the soft input needed for an EditText, so on every occasion (on click, on focus change, on touch...) when by default the soft keyboard would be shown, I want it NOT to be shown. The closest things I found are http://groups.google.com/group/android-developers/browse_thread/threa... and http://stackoverflow.com/questions/1109022/how-to-close-hide-the-andr... and http://stackoverflow.com/questions/1109022/how-to-close-hide-the-andr... These however do not work for me. The solution suggested in the latter InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(myEditText.getWindowToken(), 0); for example works only after the EditText has been selected by the user and is already accepting input and so the soft keyboard is already on the screen. I want it never to appear. I can try to implicitly set all of the onFocusChangeListener, onTouchListener, onClickListener to do public void onSomeActionListener(View v) { InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); if (imm.isActive(v)) { imm.toggleSoftInput(0,0); } } However, this is really not a nice solution because 1) the soft keyboard is first called and shown so that it briefly flashes on the screen before disappearing 2) I can't by trial and error try to find all the different ways user could cause soft keyboard to be shown and override all corresponding methods 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 -- 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] Hello
I have searched on the network about how to upgrade ADP2 to 2.2 or newer, is there effective way to do that? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ListView Dyamically selected layout based on Item type in row.
Could some explain in detail how it is possible to have a ListView where each item in the list is rendered by its type and has different layout. So to clarify if i have ten rows they will all have the same layout if they are each the same type of record like non-fiction book. If have of the books in the list are audio books I will have an audio type layout just for displaying that type of book. How to dynamically assign row layout to item in a row based on its type, type field or some other criterial. 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] ListView Dyamically selected layout based on Item type in row.
Probably the best write-up I've seen about this: http://android.amberfog.com/?p=296 -- Kostya Vasilyev -- http://kmansoft.wordpress.com 13.02.2011 1:26 пользователь AndroidDevTime androiddevd...@gmail.com написал: Could some explain in detail how it is possible to have a ListView where each item in the list is rendered by its type and has different layout. So to clarify if i have ten rows they will all have the same layout if they are each the same type of record like non-fiction book. If have of the books in the list are audio books I will have an audio type layout just for displaying that type of book. How to dynamically assign row layout to item in a row based on its type, type field or some other criterial. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Please give us the samples
I don't have the sdk installed under Program Files, and still got this error when updating some sdk components (outside Eclipse). This is Win 7 64-bit, with administrator rights. In the end, had to remove all Android stuff (keeping Java and Eclipse) and reinstall, then it worked. Didn't take more than 15-20 minutes, actually. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 12.02.2011 3:51 пользователь A. Elk lancaster.dambust...@gmail.com написал: I've often seen this error on Windows 7. I blame Windows. What's happening is that the SDK manager is trying to download the zip file to a temp directory, but it doesn't have write access to the directory. In turn, this is because permissions enforcement in Windows 7 is draconian. Unless one is the top level administrator for the machine, one doesn't have write access to C: \Program Files (x86). One has *installation* access but not write access. The workarounds are: - if you're the top level administrator, give yourself write access to the highest-level directory you can. - if you're not, try giving yourself access to C:\Program Files (x86)\Android\android-sdk-windows and its subdirectories. You can do this by right-clicking on the directory folder, selecting Properties, and then selecting the Security tab. You'll probably see that the folder is set to be read-only. Unset that and try the operation again. Unfortunately, you have to do this for each file you download. - Get the administrator for your machine to log in to it and install the SDK for you. On Feb 3, 10:19 pm, alainr345 alainr...@gmail.com wrote: I followed the instructions and installed JDK6 then Eclipse 3.6 then Android SDK 9 then Android APT. That seemed promising until I got to the Samples step. Downloading the Android sample code through the SDK manager (and there is no other way on Windows) does NOT work (not on Windows 7 at least); the messasge is: Downloading Samples for SDK API 9, revision 1 File not found: C:\Program Files (x86)\Android\android-sdk-windows\temp \samples-2.3_r01-linux.zip (Access is denied) Or similar with all the other versions, Personally, I won't follow the individual links to each sample, it's too cumbersome. So could you get your act together please folks... A.R. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Poor relevancy in Android market since yesterday.
On Feb 12, 10:37 am, Kevin Duffey andjar...@gmail.com wrote: Can someone get into google, figure out what sort of algorithm they are using, so we can adjust our apps descriptions to always appear at the top? Traditionally, their algorithm hasn't been that complicated. You could pretty much just keep repeating the term in your listing (in a natural way) until you saw yourself rise to the top. I don't expect that will always work and could be penalized. That's most useful if you know what keywords are making you the big bucks (and not just think you know). I've pretty much cracked that part of the problem. I've even thought about putting up an online training course on the, but have been too busy. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Market: New country/region pricing - non-US sales drop to zero
Hard to say from the outside if this is connected, but... After setting a variety of country/region pricing in the Android Market console - GBP, EUR and so forth - I continue to see sales in USD only, at the USD price point of $2.99. I'd expect sales in other currencies, or the exchange rate equivalent, but there's none of that. After enjoying a constant stream of purchases from outside the US, such sales are completely gone now. How I can tell? 90%+ of sales for the app are from outside the US, mostly the UK, where the app is targeted at. This is going on for a few days now where sales have abruptly approached zero. This is on an US based account - anybody else seeing 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: Serious problem on Android 2.3 and XmlSerializer
While you are not crazy to think *null* might mean something useful, let me point out the line of reasoning you need to follow: Exactly what namespace did you expect *null* to give you? Why do you hold the opinion that *null* should give you this namespace? And exactly what namespace are you calling the null-Namespace? If you want the same namespace that results when you don't specify a namespace, for example the namespace in the only element in this trivial document: trivialDocument/ Then what you want is java.xml.XMLConstants.NULL_NS_URI. You supply this to the startTag() method. If you want the namespace is that currently associated with no prefix (what the standard calls the default namespace), you use a prefix of and the namespace of whatever namespace you want that prefix to be used, in a call to setPrefix(), then call startTag() using the exact same namespace. Where does *null* fit in here? The XML standards are not written assuming that programming languages even *have* a concept of *null*. I know of no context in any language or API in which *null* is a valid URI. I hope that makes it both clear, and seem less strange. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Emailing Google Publisher Support
Having started developing for android on my own, then publishing under my company, I want to consolidate all the apps into the company account. This is apparently possible, re: https://market.android.com/support/bin/answer.py?hl=enanswer=139626 However I don't see how I contact Google or if I just use some general email address (the faq says i need to contact them from both account addresses). Does anyone know if there is a specific support address to use for publishers? - Brill Pappin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Default browser comms
Hi Ganesh, still no solution. It makes no sense to me for the native browser not to be able to handle such responses correctly. I can see the request reaching the remote web server and I can see the responses leaving the web server to come back to the phone but the android browser completely ignores them! Anyone has any ideas on this? Thanks On Feb 3, 11:20 am, Ganesh Pisal ganeshpi...@gmail.com wrote: You got any solution for same.. if yes. Please tell me. On Jan 16, 11:31 am, kypriakos demet...@ece.neu.edu wrote: Hi all, I use the default browser as a REST service client running an ajax script. Outside the browser I intercept the outgoing Web Service call and I route it myself through peers. I sent the returned response back to the browser on the same port. On Firefox, IE and Safari this works fine, on Android's browser the response I sent back to the ajax script running on it does not do much. I do get preflight OPTIONS headers at request time which I deal with locally. Is there a security restrictions on returned results to the browser? Any ideas? 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: Serious problem on Android 2.3 and XmlSerializer
The documentation of the *startTag* method mentions this: ... If namespace is null no namespace prefix is printed but just name... Regardless of the XML starndard, this means that null is a valid and documented input for this method. If this has suddenly become broken in 2.3 (i haven't seen this problem, though), then that's a regression of the method and a bug. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Market: New country/region pricing - non-US sales drop to zero
I don't think it takes yet, although it isn't clear when it does. I have not seen a single non USD value, or any variance from the USD price. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] It's not the browser?
Hi all, I have tried a number of other browsers (Dolphin, Opera Mini, Opera Mobile) and although the last two falsely advertise that they implement cross-origin resource sharing solutions, Dolphin seems to work exactly the same as the native browser - it sends out the Ajax request to the remote web server, the web server executes the service call but the result does not get posted by the browser. This may indicate that it is a NOT a browser issue I am facing with but rather and Android OS-lever issue (http layers??) where for some reason the responses are not allowed to reach the browser. Would this be a correct assessment? From what I understand, Android OS does not implement a personal firewall correct? What else would be causing this disconnect? I will greatly appreciate any hints on this. 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: Does Android have an ideas submission website like Adobe?
Try this site.. http://www.appubator.com/ Btw, I think there are existing application on Android market that can do something similar. On Feb 13, 2:23 am, Marcin Orlowski webnet.andr...@gmail.com wrote: On 12 February 2011 14:56, 95Ghz tom...@gmail.com wrote: My idea proposal is to create a kiosk mode feature on the tablet. White a launcher replacement and do what you want 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
Re: [android-developers] Emailing Google Publisher Support
On Sat, Feb 12, 2011 at 11:04 PM, Brill Pappin br...@pappin.ca wrote: Does anyone know if there is a specific support address to use for publishers? http://www.google.com/support/androidmarket/bin/answer.py?answer=136601hl=en http://www.google.com/support/androidmarket/bin/answer.py?answer=136601hl=enSee the bottom, choose appropriate link. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] What parameters are needed send C2DM messages?
I am writing the third party application server part of the C2DM messages. I've signed up and have the following: sender_id = my...@abc.com application_id = mycompany.test Using the above two pieces of information I can register on the mobile and can send the registration id to my application sever. Now, to send a message to the device through google server https://android.clients.google.com/c2dm/send I have the data for parameters: registration_id, data, etc. My question is how do I get the client login auth information (GoogleLogin auth) that is needed in the header? Should the mobile application collect user information and get the login auth information on the phone and send it to the third party server? Or should the mobile application user send the Google credentials to the third party server and the server stores it? Or is there any other way? Also, what should be in the collapse_key? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en