[android-developers] No stats? 0 total; 0 active installs while 5000 AdMob impressions??
Hi! I have uploaded a free AdMob supported app to the market two days ago. AdMob shows 5000 impressions (and revenue), while: Android.com: 0 total; 0 active installs (0%) Android Market on the phone: 50 downloads 5000 Ad impressions (and revenue) for 50 downloads and 0 installs can not be true. I would really like to see my stats. Anyone else facing the same problem? Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: get outgoing call details in background
I have a workaround for this one by deferring the call log retrieving process a little bit, say 200ms. I'm still looking for a more elegant solution. On Nov 20 2009, 11:06 pm, patrizio.munzi patrizio.mu...@eris4.com wrote: Hi guys, in this last month I've been trying to develop on Android. I've tried a few stuff and also Nemat's code for intercepting outgoing call details. The only difference is that I've been using the PHONE_CALL_STATE intents for triggering my broadcast receiver retrieving last outgoing call details. My problem is that when I retrieve call details from the CallLog I always get back not the current call details but the previous one, even when I receive the IDLE state ending the call and resetting the phone call state. I find this call log behavior quite fair so I think it's simply not possible to use this way for retrieving last call details. Any ideas, feedback?? Thanks On Oct 14, 11:23 am, Nemat nemate...@gmail.com wrote: Thanks to all of you. I have done it...I removed startManagingCursor() and called the close method() for cursor. On Oct 13, 7:10 pm, Lazarus 101 lazarus...@gmail.com wrote: just remove startManagingCursor andcallthe close() method on the cursor when you've finished reading from it On Oct 13, 5:02 am, Nemat nemate...@gmail.com wrote: @Roman But How would we get the state when thecallis received?I meancall duration means the difference of the time whencallis received and the time when thecallis disconnected.OFFHOOK is the state whencaLL is placed.So we should be notified when thecallis received.How can we get that? @nEx.Software if its not possible with service then it is of no use for me. Anyways is there any way to read thecall-log in service? On Oct 12, 11:08 pm, nEx.Software email.nex.softw...@gmail.com wrote: You are getting the error on startManagingCursor because that method does not exist in a Service. Leave that out and make sure you close the cursor when you are done with it. On Oct 12, 11:00 am, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: You should be able to measure the time between multiple onCallStateChanged events. In case of anoutgoingcallthe state would switch from IDLE to CAll_STATE_OFFHOOK to to IDLE again. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 12, 3:14 am, Nemat nemate...@gmail.com wrote: Hi friends, Actually I was working to get duration ofoutgoingcall.But I dont find any way of doing this.Then I decided to get the details of outgoingcallfromcalllog. But my code works only for Activity.I want this to work with Services because I want to get the details related tooutgoingcallin background using services.What should I do to get these details in background.I currently implement it for Activity.Here is my complete code: public void outgoingRecord() { Cursor c = getContentResolver().query( android.provider.CallLog.Calls.CONTENT_URI, null, null, null, android.provider.CallLog.Calls.DATE+ DESC); startManagingCursor(c); int numberColumn = c.getColumnIndex( android.provider.CallLog.Calls.NUMBER); int dateColumn = c.getColumnIndex( android.provider.CallLog.Calls.DATE); // type can be: Incoming,Outgoingor Missed int typeColumn = c.getColumnIndex( android.provider.CallLog.Calls.TYPE); int durationColumn=c.getColumnIndex( android.provider.CallLog.Calls.DURATION); // Will hold the calls, available to the cursor ArrayListString callList = new ArrayListString(); try{ boolean moveToFirst=c.moveToFirst(); Log.d(MOVETOFIRST, moveToFirst=+moveToFirst);} catch(Exception e) { Log.e(MOVETOFIRSTERROR,MOVETOFIRST Error=+e.toString()); } String callerPhoneNumber = c.getString(numberColumn); int callDate = c.getInt(dateColumn); int callType = c.getInt(typeColumn); int duration=c.getInt(durationColumn); Log.d(CALLS, callDate=+callDate); switch(callType){ case android.provider.CallLog.Calls.INCOMING_TYPE: Log.d(INCOMINGCALLLOG, CallerPhoneNum=+ callerPhoneNumber+ +Duration=+duration); break; case
[android-developers] Android Coverflow widget
Hi, I've had a go at creating a coverflow like widget. My results can be found here: http://www.inter-fuser.com/2010/01/android-coverflow-widget.html If you fancy giving it a try I'd been interested in your feedback. I've only tried it on a HTC G1 running Android 1.1 Thanks, Neil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Where to get a Samsung Moment for development
if you are local to mountain view let me know. I can help -Dan On Thu, Jan 7, 2010 at 4:53 AM, Don donal.morris...@gmail.com wrote: Hello, I'm now having the exact same problem, a customer is reporting an issue with my application on their Samsung Moment, but I can't debug the issue as I don't have the device! I've tried the test services perfectomobile deviceanywhere, but neither has a Samsung Moment! I can see this fragmentation becoming one of the major issues for Android development. Don On Dec 3 2009, 5:28 am, SoftwareForMe.com sa...@softwareforme.com wrote: Hi, We have a G1, MyTouch, Hero and Droid. However, we've been getting odd reports from our Moment customers, and it's time we get one. Anybody know where to do this, and whether there are any issues getting the thing acitvated without a phone plan to go with it? SoftwareForMe.com Makers of PhoneMyPC Imagine Multi-touch -- You received this message because you are subscribed to the Google Groups Android Developers group. 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%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 unsubscribe from this group, 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] iPhone to Android: Creating good Android Interfaces
On 1/8/2010 7:57 AM, Ben Gotow wrote: Hey everybody, I'm porting an iPhone app to Android and I'm having trouble designing an interface that looks and feels Android. I've read all of the design documents in the Android Dev Guide and looked through all the Google-designed apps, but I feel like the layout of activities is largely undefined. Are there any resources that could help me transition my iPhone design to the Android platform? The Android UI guidelines describe some details way beyond what Apple does, but then leave the overall look and feel to the app developer. So detailed *design* guidelines, but almost no *interaction design* guidelines. IMHO this is what you generally get from a through and through engineering company (every seen GE or Siemens do great designs?): http://stopdesign.com/archive/2009/03/20/goodbye-google.html I've been struggling with this myself and while I think some of the UI principles for the iPhone are thought out to be nicer and more consistent (just try getting an app past the app store review) it is comforting to know that especially the built-in apps on the iPhone are as inconsistent/bad as the ones on Android ;-) Which doesn't answer our need for interaction design howtos... At any rate, does anyone know of existing resources that might help me out? What's the best designed app you've used for Android? A few examples of great Android interfaces would go a long way. Agree, would be curious myself :-) Just MTC Michael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to read XML file from sdcard and parse it?
InputStream obj_is = null; Document obj_doc = null; DocumentBuilderFactory doc_build_fact = null; DocumentBuilder doc_builder = null; obj_is = new FileInputStream(/sdcard/xmlfile.xml); doc_build_fact = DocumentBuilderFactory.newInstance(); doc_builder = doc_build_fact.newDocumentBuilder(); obj_doc = doc_builder.parse(obj_is); NodeList obj_nod_list = null; if(null != obj_doc) { org.w3c.dom.Element feed = obj_doc.getDocumentElement(); obj_nod_list = feed.getElementsByTagName(tag name u want to parse); } to get the no of elements founded : obj_nod_list.getLength(); On Fri, Jan 8, 2010 at 12:56 PM, ROHIT rohit...@gmail.com wrote: I want to access the XML file from sdcard and i want to parse thar file. How ta access this file and pass it to Parse method? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you Dilli Rao -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Chinese company offers translation for right to publish app on their market
Why would it be illegal? If your application is under something like CC, you already allowed it - and there is a small checkbox which allows application to be taken off phone - also invitation to republish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: what is a suitable upper limit for application size?
Hi, I agree about the size limit problem. I think there should be a size limit (to keep RAM for OS other app), but we should be able to check in our code if we are 'near' the allocation limit for our app. Anyway, for your case : would it be possible to REMOVE all images from the .apk, and download them in a thread once your app is launched (OK : keep icons in the .apk). You can use the 8Go of the SDCARD to store your images :-) and load them in RAM only when you need to display -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] My activity runs onCreate() every time and process do not disappear
Hello all: I have a activity always runs onCreate() after I come back to previous activity. I think my emulator needs memory, so it killed my activity. But I use eclipse DDMS tool to watch my process, it still there with the same process id. This really confuses me. Could anyone explain why? Here is the link describe activity life cycle, always kill process before running onCreate() http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle Sorry that my source code is too big, so it is hard to post here. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: NPAPI support in Android 2.0 SDK WebView
Hi there, any news on my NPAPI support question in Android 2.0+? Thanks, Anselm On Dec 15 2009, 4:03 pm, garbeam garb...@gmail.com wrote: Hi there, in older android SDK versions it was possible to load custom NPAPI plugins into the WebView through reading them from assets and writing them into the filesystem at the apps data directory, for example something along the lines: webview = (WebView)findViewById(R.id.webview); webview.getSettings().setJavaScriptEnabled(true); webview.getSettings().setPluginsEnabled(true); webview.getSettings().setPluginsPath(/data/data/com.foo.app); webview.setWebViewClient(new NetworkAccess()); in order to have a WebView instance with NPAPI plugin support for plugins in that directory. In Android 2.0 SDK this mechanism does not seem to work anymore and the WebSettings.setPluginsPath() method seems to be deprecated:http://developer.android.com/reference/android/webkit/WebSettings.htm...). Can anyone confirm this is a final decision or just a bug? Are custom NPAPI plugins aren't going to be supported in the future anymore? Would be a shame if that'll be the case ;( Kind regards, Anselm -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] No stats? 0 total; 0 active installs while 5000 AdMob impressions??
Well! I beleive that impression cpm(cost per thousand impression ) is not added in revenue until the end of payment processing. I think you will only see the per click revenue for now. am I right? A little advice. Update your application and add flurry and see the stats. Thank You. On Fri, Jan 8, 2010 at 3:13 AM, greg1x gre...@yahoo.com wrote: Hi! I have uploaded a free AdMob supported app to the market two days ago. AdMob shows 5000 impressions (and revenue), while: Android.com: 0 total; 0 active installs (0%) Android Market on the phone: 50 downloads 5000 Ad impressions (and revenue) for 50 downloads and 0 installs can not be true. I would really like to see my stats. Anyone else facing the same problem? Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: What is the defalt screensize of emulator.
Depends what skin you are using and what API level the emulator is set on... For instance, if you are using the default skin for the emulator on API Level 3, the screen size is 480 x 320. But again, this will change on a phone to phone basis. - jwei http://thinkandroid.wordpress.com On Jan 7, 10:39 pm, Manoj linkex.ma...@gmail.com wrote: Please tell what is the default screensize of emulator. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Segfault in what looks like WebView
Hi, same thing happens when i'm trying to use fbconnect-android sample on emulator (1.6): http://code.google.com/p/fbconnect-android/issues/detail?id=23 I don't have any Unix machine here, so can't build SDK/.so with debugging symbols and decode stack trace. Is there a way to do this other way? BR, Krystian On 16 Lis 2009, 22:51, fadden fad...@android.com wrote: On Nov 3, 6:50 pm, Dan Sherman impact...@gmail.com wrote: From what I can decipher, looks to be coming from a webview component... Is there any way to track it further, or figure out exactly what's causing it? Its relatively rare, so its a bit tough to reproduce, but if I have a way to trace it, at least we'll be prepared when it does happen :) I can see webcore calling into the VM (presumably through JNI), but not much else. Did you want to try native debugging with gdb/gdbserver? Can you make this happen on a production device? I can tell a little more about the native stack trace 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] A Simple Layout question
Hi, I want to add admob add in my application, I want to make application for every screensize, I am having a problem with is, I want to arrange a layout such that, ad comes on the top the rest of which should be webview. I can do it for normal screen sizes by hardcoding the screen size to desired px but it is not working on bigger screensizes, I want to add this in layout.xml please advice. Thank You, Abdul Mateen. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] apk is being downloaded as zip file in IE
I develop for Android in mac . Apart from publishing my app in google market, I also provide the apk file on my website. As, unlike iPhone android published apps dont give us a link similar to itunes link to app, we provide our link pointing to apk file. Now the problem is, this apk file when downloaded from internet explorer is being by default saved as .zip file. the hyper link mentions .apk, but only when the save as dialog comes, it prompts to be saved as .zip. if i rename it to .apk, it works just fine. How will I prevent this file from being saved as zip file ? regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: create app that comes with a widget and the program
Hi, This can be acheived by implementing the AppWidgetProvider Also you need to have a configuration activity,which launches the App widget... The implementation is simple,jus you need to add an activity and use shared preferences to communicate with the AppWidget There are many examples given,you can check the android developer site for this.. On Jan 6, 5:54 pm, Albert albert8...@googlemail.com wrote: Does anyone knows how to achieve this??? Thanks, Alberto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 emulator 1.6/2.0 supports bluetooth and WIFI?
Hi all! 1. Can I emulate the WIFI and bluetooth on emulator? 2. Can you send, please the links to examples for bluetooth and WIFI development? Thanks in advance, Evgeny -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to add footer and Header to a list
Hi all, I have a list view and i need to add a header and footer .In the footer i need to have a button like Next to go to next page.I need it urgently. If anyone knows the answer please send me .. Thanks Ram -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: apk is being downloaded as zip file in IE
make sure you send the right mime type with your file. application/vnd.android.package-archive auto-detection of clients may interpret the file as a zip, because it is, sorta. ;) On Jan 8, 12:44 pm, Jags jag...@gmail.com wrote: I develop for Android in mac . Apart from publishing my app in google market, I also provide the apk file on my website. As, unlike iPhone android published apps dont give us a link similar to itunes link to app, we provide our link pointing to apk file. Now the problem is, this apk file when downloaded from internet explorer is being by default saved as .zip file. the hyper link mentions .apk, but only when the save as dialog comes, it prompts to be saved as .zip. if i rename it to .apk, it works just fine. How will I prevent this file from being saved as zip file ? regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Intent filter matching problem
Hi everyone, I have a problem with an intent-filter matching. I am using the following filter for my activity: intent-filter action android:name=android.intent.action.SEND_MULTIPLE / category android:name=android.intent.category.DEFAULT / data android:mimeType=image/* / /intent-filter My objective is to only receive intents with images. The problem is that intents with mimetype */* are also being matched. Shouldn't the wildcard match be done only for the wildcards in the filter? I mean, It seems correct that a filter with type */* should match an intent with image/*, but not the opposite. Is there any way to specify that I only want images? Thanks! Felipe -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Coverflow widget
good work, thanks for releasing as open source :) On Jan 8, 9:45 am, Taf neild...@gmail.com wrote: Hi, I've had a go at creating a coverflow like widget. My results can be found here: http://www.inter-fuser.com/2010/01/android-coverflow-widget.html If you fancy giving it a try I'd been interested in your feedback. I've only tried it on a HTC G1 running Android 1.1 Thanks, Neil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: What is the defalt screensize of emulator.
See this link http://www.androidpeople.com/category/screen/ On Jan 8, 11:39 am, Manoj linkex.ma...@gmail.com wrote: Please tell what is the default screensize of emulator. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] apk is being downloaded as zip file in IE
Jags wrote: I develop for Android in mac . Apart from publishing my app in google market, I also provide the apk file on my website. As, unlike iPhone android published apps dont give us a link similar to itunes link to app, we provide our link pointing to apk file. Now the problem is, this apk file when downloaded from internet explorer is being by default saved as .zip file. the hyper link mentions .apk, but only when the save as dialog comes, it prompts to be saved as .zip. if i rename it to .apk, it works just fine. How will I prevent this file from being saved as zip file ? Do you have the APK MIME type set up on your Web server? application/vnd.android.package-archive -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] My activity runs onCreate() every time and process do not disappear
Yuchih wrote: Hello all: I have a activity always runs onCreate() after I come back to previous activity. I think my emulator needs memory, so it killed my activity. But I use eclipse DDMS tool to watch my process, it still there with the same process id. This really confuses me. Could anyone explain why? Just because your activity is being destroyed to reclaim memory does not mean the process is going away. Java uses garbage collection, and the Dalvik VM apparently has some hooks to allow the VM to return memory to the OS on occasion. Hence, if Android destroys your activity, and GC reclaims your activity's memory, that memory can be used by others. Here is the link describe activity life cycle, always kill process before running onCreate() http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle You will notice that there are other paths in that diagram that cause your activity to be destroyed that do not involve terminating the process. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to read XML file from sdcard and parse it?
ROHIT wrote: I want to access the XML file from sdcard and i want to parse thar file. How ta access this file and pass it to Parse method? Use Environment.getExternalStorageDirectory() and build a File object to point to the XML file in question. After that, if you are using DOM or SAX, it is no different than any other Java environment, and there are countless examples posted on the Web for using InputSource and stuff. I tend to use exampledepot.com when I need a reminder on how to do things like that. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] AbortBroadcast Problem With 2.0 and 2.0.1 SDK's
Hi All, I am facing issue with 2.0 and 2.0.1 on aborting broadcast for out going calls. In my main activity on callButton press I am initiating call like this /*Mian Activity Where Call Initiating**/ public class MainActivity extends Activity implements OnClickListener{ public void onClick(View v) { if(v == callButton){ String phoneNumber = +45123456 Intent DialIntent = new Intent (Intent.ACTION_CALL,Uri.parse(phoneNumber)); DialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(DialIntent); } } } //*Here is my Broad Cast Receiver// Public Class MyOutGoingCallReceiverIntent extends BroadcastReceiver{ public void onReceive(Context context, Intent intent) { String dialNumber= intent.getStringExtra (Intent.EXTRA_PHONE_NUMBER); if(dialNumber.startsWith(+45))//***International number abort broad cast*// { Log.i(Before Abort Broadcast,111); abortBroadcast(); Log.i(After Abort Broadcast,222); Intent DialIntent = new Intent (Intent.ACTION_CALL,Uri.parse(3224005421));/**local number DialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(DialIntent); } } } /**Register Receiver In menifest/ receiver android:name=MyOutGoingCallReceiverIntent android:enabled=true intent-filter android:priority=200 action android:name=android.intent.action.NEW_OUTGOING_CALL / category android:name=android.intent.category.DEFAULT / /intent-filter /receiver /**Permissions in menifest**/ I have added these permissions in menifest uses-permission android:name=android.permission.CALL_PHONE/uses- permission uses-permission android:name=android.permission.PROCESS_OUTGOING_CALLS/uses- permission uses-permission android:name=android.permission.CALL_PRIVILEGED/ uses-permission ** Now move towoards Issue abortBroadcast(); is working fine with 1.0 to 1.6 SDK's but when i run the same code on 2.0+ SDK's Its print the Log statments as Before Abort Broadcast111 After Abort Broadcast222 But not Abort the broad cast. Any one can help me regarding this issue. I have read the Documentation of 1.0 and 2.0 but there is no difference in documentation. My application is also running on market and there is no issue with 1.0 to1.6 but now i am porting it for 2.0 its not aborting broadcast. Is there any solution Thanks in advance. Gulfam Hassan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Developer console stopped updating?
Just updated for me. Don't know why it was down. And no, the mass active install purging from Dec. 18 still hasn't been fixed. On Thu, Jan 7, 2010 at 6:34 PM, Greg Donald gdon...@gmail.com wrote: On Thu, Jan 7, 2010 at 6:26 PM, nubin...@gmail.com nubin...@gmail.com wrote: My total and active install numbers in Developer Console have not been changing for more than 36 hours -- for all 5 apps that I publish. Has anyone seen the same thing? Yes, the issue has been going on for about 48 hours now. Feel free to contact them, and good luck getting a response. -- Greg Donald http://destiney.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%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 unsubscribe from this group, send email 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: OpenGL; GL11.glDrawTexiOES does not seem to work for Nexus One
Thanks! This function is indeed standard GL 1.1. Maybe there's something else that I don't do right that happens to work on all other phones, but not on the Nexus: Here is the code that draw my background texture: beginBGDrawing(gl); gl.glBindTexture(GL10.GL_TEXTURE_2D, mBackgroundTextureID); ((GL11) gl).glTexParameteriv(GL10.GL_TEXTURE_2D, GL11Ext.GL_TEXTURE_CROP_RECT_OES, smBackgroundCrop,0); ((GL11Ext)gl).glDrawTexiOES(0, 0, 1, (int)mViewWidth, (int) mViewHeight); endBGDrawing(gl); private void beginBGDrawing(GL10 gl) { gl.glShadeModel(GL10.GL_FLAT); gl.glEnable(GL10.GL_BLEND); gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA); gl.glColor4x(0x1, 0x1, 0x1, 0x1); gl.glMatrixMode(GL10.GL_PROJECTION); gl.glPushMatrix(); gl.glLoadIdentity(); gl.glOrthof(0.0f, mViewWidth, 0.0f, mViewHeight, 0.0f, 1.0f); gl.glMatrixMode(GL10.GL_MODELVIEW); gl.glPushMatrix(); } private void endBGDrawing(GL10 gl) { gl.glDisable(GL10.GL_BLEND); gl.glMatrixMode(GL10.GL_PROJECTION); gl.glPopMatrix(); gl.glMatrixMode(GL10.GL_MODELVIEW); gl.glPopMatrix(); } mBackgroundTextureID is valid (if i use this texture-id for other objects, the texture is properly shown) smBackgroundCrop is [0,0,512,512], the size, in pixels, of the texture- bitmap. mViewWidth and mViewHeight are 480 and 762 respectively. On Jan 7, 11:33 pm, Robert Green rbgrn@gmail.com wrote: Here's what my GL setup code detected: I/WorldRenderer( 4454): Determining OpenGL Capabilities I/WorldRenderer( 4454): OpenGL Vendor [Qualcomm] I/WorldRenderer( 4454): OpenGL Renderer [Adreno] I/WorldRenderer( 4454): OpenGL Version [OpenGL ES-CM 1.1] [CM] [1.1] I/WorldRenderer( 4454): GL Extensions [GL_AMD_compressed_3DC_texture GL_AMD_compressed_ATC_texture GL_ARB_texture_env_co mbine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_vertex_buffer_object GL_ATI_compressed_texture_atitc GL_ATI_texture_compression_atitc GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_b lend_subtract GL_EXT_stencil_wrap GL_OES_EGL_image GL_OES_blend_equation_separate GL_OES_blend_func_separate GL_OES_blen d_subtract GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_extended_ma trix_palette GL_OES_framebuffer_object GL_OES_matrix_palette GL_OES_point_size_array GL_OES_point_sprite GL_OES_read_for mat GL_OES_stencil_wrap GL_OES_texture_cube_map GL_OES_texture_env_crossbar GL_OES_texture_mirrored_repeat ] I/WorldRenderer( 4454): VBOs Supported I/WorldRenderer( 4454): HW Mipmap generation supported I/WorldRenderer( 4454): Finished determining OpenGL capabilities. I/WorldRenderer( 4454): EGL_DEPTH_SIZE = 16 I/WorldRenderer( 4454): EGL_BUFFER_SIZE = 16 I/WorldRenderer( 4454): EGL_RED_SIZE = 5 I/WorldRenderer( 4454): EGL_BLUE_SIZE = 5 I/WorldRenderer( 4454): EGL_GREEN_SIZE = 6 I/WorldRenderer( 4454): EGL_ALPHA_SIZE = 0 D/WorldRenderer( 4454): OpenGL Surface Changed to (800x480) D/CameraMan( 4454): Aspect Ratio = 1.666 DrawTexiOES is a standard 1.1 function, right? It should be supported then because this chip reports itself as 1.1-Common. Perhaps you could send an email to the Adreno guys and ask them about it. I don't use that function but so far everything has worked 100% for me. On Jan 7, 8:14 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I use this call (GL11.glDrawTexiOES), copied most of it from the Api Demos' LabelMaker class and it works on every Android phone, so far. However, i tested it on the Nexus One and nothing is rendered when using glDrawTexiOES. I tried the floating-point version of this call as well... nothing... Is there a way around this issue? Thanks!- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] startActivityForResult singleTop.
I need to create an activity that can be singleTop so that multiple intents get sent to the onNewIntent method without restarting the activity. I also need this activity to return a result. The basic behaviour is: Activity A calls startActivityForResult on B one or more times (providing updated information to B). When the user selects the result from B it should return directly to A. I do not want the activity-transition animation to play each time A updates B with new information. How can I do this? Cheers, Keean. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers]
sent.from.G1 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MapView Overlay problem
I'm still a bit confused on what you're doing, but I would suggest: 1 - Subclass ItemizedOverlay instead of Overlay to manage a collection of similar items at once. It maintains a list OverlayItems that represent each unique point on the map. In your case these would be the Track points you have. 2 - In your subclass, implement Parcelable and the write method and constructor that are required to read from / write to a Parcel. In this case you would write out / read back each of your OverlayItem's location. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Tue, Jan 5, 2010 at 5:47 PM, Stefan ebay-dah...@web.de wrote: hi, thanks for your answer :) On Jan 5, 11:30 pm, TreKing treking...@gmail.com wrote: OK, well your main problem is that while you implemented the Parcelable class, you didn't implement the writeToParcel method or the constructor that takes a Parcel. That's the key. in one other class of my app i has implement the parcelable to, but there i mustnt implement these methods. i dont know why but it works. this other class is my SaveHelper class (its like a singleton - i only have one object), where i save my track/route... and i test it: i walk around my block and i rotate the handy several times (==recreation of my activity..). and after saving my gpx file i see, that ALL points are saved. You need to implement the first method to save all you state information (i.e., your member variables) to the Parcel object. Then implement the constructor to restore your instance state from the incoming Parcel object. I override my Overlay object, how you can see in my code and because of that i would only get the last overlay back?!?! I think you mean, that i do following: @Override public void writeToParcel(Parcel dest, int flags) { // TODO Auto-generated method stub dest.writeInt( (int)gp1.getLatitude()); //something like that } and private TrackOverlay(Parcel in) { gp1.setLatitude(in.readInt()); } but the onSaveInstanceState will only be called, if i pause the activity?! So i can only save the last to (TrackOverlay) object?!?! Or if i implement these methods i save all my Overlays?!? Then in your MapActivity onSavedInstanceState, iterate through all of your Overlays and shove them into an array you can store in the Bundle. In onRestoreInstanceState, get a list of Parcelables from the Bundle and re-create all of your Overlays (using the constructor that takes a Parcel). Perhaps it is easier to save all GeoPoints in a list and in onSaveInstanceState() i iterate through that list and save all GeoPoints in a int [] lat and int [] lon array and put it to my bundle and in onRestoreInstanceState i read this arrays and iterate through these arrays and draw the Overlays again, like: gp1.setLatitude(lat[0]); . for(int i= 1; i lat.length; i++) { gp2 = gp1; gp1.setLatitude(..) ... newOverlay = new TrackOverlay(gp1, gp2, MODUS); map.getOverlays().add(newOverlay); } map.ivalidate(); But what is more efficient and/or more elegant ? Other bit of advise: get rid of that if (first) { /*initialze*/} code. Set up your MyLocationOverlay object in onCreate. If you need to have a starting location while you wait for the first update, use getLastKnownLocation(). Yes, this is not the best solution and i will optimize it soon :) I hope that makes sense and helps some. Thanks for your detailed answer. Stefan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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 unsubscribe from this group, send email 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: OpenGL fixed point vs. floating point
Just render a small object using identical code except one is float and one is int, then time them. An API would be nice though. On Jan 7, 10:08 pm, Peter Eastman peter.east...@gmail.com wrote: First you need to find exactly what kind of CPU it has. Then go to the manufactures web site and download the docs on programming there 3d Well, yes, but I didn't mean manually. What I meant is, is there an API by which I can determine whether the device my program is running on has hardware floating point support? The idea is that I want to implement both floating point and fixed point versions of my rendering code, then chose which one to use at runtime based on the hardware it's running on. Peter -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Coverflow widget
Thanks glad you like it :) On 8 Jan, 12:31, zero zeroo...@googlemail.com wrote: good work, thanks for releasing as open source :) On Jan 8, 9:45 am, Taf neild...@gmail.com wrote: Hi, I've had a go at creating a coverflow like widget. My results can be found here: http://www.inter-fuser.com/2010/01/android-coverflow-widget.html If you fancy giving it a try I'd been interested in your feedback. I've only tried it on a HTC G1 running Android 1.1 Thanks, Neil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: what is a suitable upper limit for application size?
Thanks for the interesting suggestion, although it sounds a little technical for my limited expertise. I don't like the idea of the users having to download all that data every time they use my program. That basically turns the app into just a web site, sort of. I could probably shrink it all from 15 to 5MB with only a minor loss of quality and content. If this limit is only a problem with 1.5 and 1.6 , and the first Android phones in Canada are Droids, then I suppose I just have to upgrade my program to 2.0 and hope nothing breaks. On Jan 8, 6:04 am, Nanard bsegon...@free.fr wrote: Hi, I agree about the size limit problem. I think there should be a size limit (to keep RAM for OS other app), but we should be able to check in our code if we are 'near' the allocation limit for our app. Anyway, for your case : would it be possible to REMOVE all images from the .apk, and download them in a thread once your app is launched (OK : keep icons in the .apk). You can use the 8Go of the SDCARD to store your images :-) and load them in RAM only when you need to display -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Chinese company offers translation for right to publish app on their market
I was also contacted by a Chinese company called, Netdragon Company. They are looking for applications to publish in their market. Does anyone know if they are a legitimate business, and safe to work with? Matt On Jan 8, 2:26 am, ko5tik kpriblo...@yahoo.com wrote: Why would it be illegal? If your application is under something like CC, you already allowed it - and there is a small checkbox which allows application to be taken off phone - also invitation to republish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: AppWidget is not updating
Forget it, I figured it out. In the irrelevant code I was calling onUpdate() in onReceive() whenever I wanted to update the app, but I was sending: new int[] {0} as my AppWidgetIds. Duh! Vikas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Nine patch pre-scaling on Hdpi
Hmmh, I checked again and it didn't work. Maybe it worked in the beginning and I am sure that I verified that with an 1.5 emulator, but I added different things meanwhile, e.g. added drawable-mdpi version without providing one in drawable also. But then it seems like I haven't tested that on 1.5 anymore. Glad you responded. Otherwise I probably would have rolled out the broken version today. On Thu, Jan 7, 2010 at 3:36 PM, Dianne Hackborn hack...@android.com wrote: Btw, it may just be luck, that when your resources were build it did the generic ones first, so those are the ones 1.5 sees. I would add the -v4 on the directories just to be sure there are no future problems. (Really aapt should be doing this automatically for you.) On Thu, Jan 7, 2010 at 6:35 AM, Dianne Hackborn hack...@android.comwrote: Just to be sure. :) 1.5 had some early implementation of the density scaling, so I'm not sure what it will do with the new resources. If it works, cool. You'll definitely need the version part for new things like long. On Thu, Jan 7, 2010 at 5:10 AM, Mariano Kamp mariano.k...@gmail.comwrote: Why is that? I didn't do that (drawable-hdpi sans -v4) and it seems it still works fine on an 1.5 device. On Thu, Jan 7, 2010 at 8:41 AM, Pixie m...@labpixies.com wrote: Thanks for your responses. I know I can fix this by creating a high density image, but in the first place, the reason I didn’t do it is because my application is working on version 1.5, which, as you probably know, does not support density-specific resources. I have more than one way to solve this problem, one of them is as you suggested, but I’m still interested to know the difference between a regular PNG and a 9-patch PNG, when it comes to scaling up. Thanks again On Jan 6, 12:41 am, Dianne Hackborn hack...@android.com wrote: I would strongly recommend making density-specific resources. Graphics scaled from one density to another (especially going up) are never going to look as good as ones designed for the density. Plus doing the pre-scaling on 9-patch images is... interesting. :) It's actually amazing to me that it works as well as it does, but it is certainly far from perfect. On Tue, Jan 5, 2010 at 1:48 PM, Jeffrey jeffisagen...@gmail.com wrote: The easiest thing I can think of is to make high density images and see if that fixes the problem. I know that fix isn't the best but it might work. On Jan 5, 7:31 am, Pixie m...@labpixies.com wrote: Hello everyone, I have some 9-patch images on my app, and they work great on the medium density. When I load the app on a High density emulator/device, these images look grainy. It happens only to 9-patch images. The others look great after the pre- scaling. Is there a way to make them look good after the scaling, like the non-9-patch images? 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.comandroid-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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=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. -- Dianne Hackborn Android framework
[android-developers] Re: No stats? 0 total; 0 active installs while 5000 AdMob impressions??
The update of the market stats appears to have been down for the last two days. Mine have been updated again some hours ago. If you check back on the market you might see yours to be updated now as well. On 8 Jan., 09:13, greg1x gre...@yahoo.com wrote: Hi! I have uploaded a free AdMob supported app to the market two days ago. AdMob shows 5000 impressions (and revenue), while: Android.com: 0 total; 0 active installs (0%) Android Market on the phone: 50 downloads 5000 Ad impressions (and revenue) for 50 downloads and 0 installs can not be true. I would really like to see my stats. Anyone else facing the same problem? Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: what is a suitable upper limit for application size?
On Fri, Jan 8, 2010 at 15:43, ian stilbit...@gmail.com wrote: Thanks for the interesting suggestion, although it sounds a little technical for my limited expertise. I don't like the idea of the users having to download all that data every time they use my program. That basically turns the app into just a web site, sort of. I could probably shrink it all from 15 to 5MB with only a minor loss of quality and content. If this limit is only a problem with 1.5 and 1.6 , and the first Android phones in Canada are Droids, then I suppose I just have to upgrade my program to 2.0 and hope nothing breaks. A lot of android apps use this technique : download images to SD card on first run (in fact if it detects data is not there on the card). You get a popup asking if ok to download. This is a one time download, not every time you use the app. Even in android platform, text to speech data has to be downloaded before it can be used (depending on the phones... this is true for space limited G1, and also for my french Magic). Anyway, I consider application using more than 3MB as big ones, and more than 5MB as very big ones. 15MB is a no-go, even if it worked ok at download time from market. And this is with a HTC Magic. G1 users with half the internal memory would be even more reluctent to install such big apps. Future android release will allow installation of apps on sdcard (2.1 does not), which could allow bigger apks Also note that having separated apk and data allows upgrade of one whithout re-downloading the other. Else, any upgrade of your app, even minor, would imply the re-download of 15MB from market. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] I am a german market developer. How can I see the english comments to my program?
Hi! I am a german market developer. How can I see the english comments to my program? I just see the german ones. Greetings, Martin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: what is a suitable upper limit for application size?
25% Don't you think that that is too much? Most users install more than 4-5 applications. I would never ever install an application that is that large. I do however agree with the others who says that it's ok if you download the images dynamically, and stores it on the sdcard. That's how my application handles different skins. On 8 Jan, 03:56, ian stilbit...@gmail.com wrote: The tourism related app I am completing has about 250 images for a total of maybe 15MB. I;d like to add another 100 or so images but sometimes I get an 'Insufficient storage' error message and have to restart the emulator. That in itself isn't so bad a problem but now I'm wondering about practical limits for real devices. Anybody know large can I make my app assuming I wouldn't want to to use up more than perhaps 25% of a user's discretionary storage? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] addToMyContactsGroup does not seem to work on HTC Hero
Hi, I am adding a new contact programatically in this way: final Uri personUri = context.getContentResolver().insert (Contacts.People.CONTENT_URI, peopleValues); final long contactId = ContentUris.parseId(personUri); Contacts.People.addToMyContactsGroup(context.getContentResolver(), contactId); The last call to addToMyContactsGroup is required to make the contact appear in My Contacts group in the address book on the phone. This works OK on G1 (without this call I could see new contact only with menu-Display group=All Contacts), but when the same code runs on Htc Hero, the new contact is shown with Google label and only visible when I check Google contact source in menu-View. This happens with or without calling addToMyContactsGroup. How can I make the contact be shown as a normal phone contact? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: EditTextPreference: how to make it single-line?
On Jan 3, 11:13 am, Wayne Wenthin wa...@fuligin.com wrote: android:singleLine=true Ahh, perfect. I thought that attribute was only for TextView; it's not documented in the EditTextPreference page, but I guess I should have tried it anyway. Thank you very much. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: abort outgoing call
Hi, What do you mean with not reinitiating the call ? On Fri, Jan 8, 2010 at 4:07 AM, Gulfam gulfa...@gmail.com wrote: Hi , I was aborting BroadCastReceiver using abortBroadcast(); method. Its working fine with 1.0 to 1.6 but on 2.0 or + its not working. I have checked the documentation that is also same in 1.0 and 2.0 but in 2.0+sdk's abortBroadCast(); method is not aborting broadcast on out going calls . I have use also setResultData(null) method its aborting the broadcast but not reinitiating the call. Any solution pl ?? Best Regards, Gulfam Hassan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: EditTextPreference: how to make it single-line?
On Jan 8, 8:12 am, Edward Falk ed.f...@gmail.com wrote: it's not documented in the EditTextPreference page Ooor, I could have read the opening paragraph instead of skipping straight to the list of XML attributes. Duh. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: No stats? 0 total; 0 active installs while 5000 AdMob impressions??
My app numbers have not changed in several days which strikes me as unusual as they were very active through October, November and December. But on about Jan 2 they stopped moving. And the active install numbers keep fluctuating in strange ways. Maybe all the Androids being advertised on TV just fell off the Earth? On Jan 8, 10:18 am, tobias429 ecker...@gmx.de wrote: The update of the market stats appears to have been down for the last two days. Mine have been updated again some hours ago. If you check back on the market you might see yours to be updated now as well. On 8 Jan., 09:13, greg1x gre...@yahoo.com wrote: Hi! I have uploaded a free AdMob supported app to the market two days ago. AdMob shows 5000 impressions (and revenue), while: Android.com: 0 total; 0 active installs (0%) Android Market on the phone: 50 downloads 5000 Ad impressions (and revenue) for 50 downloads and 0 installs can not be true. I would really like to see my stats. Anyone else facing the same problem? Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ImageSpan not supported in RemoteViews ?
I have the same problem :( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] A Simple Layout question
I can do it for normal screen sizes by hardcoding the screen size to desired px but it is not working on bigger screensizes, I want to add this in layout.xml please advice. You shouldn't be hard-coding pixels sizes for anything in your layouts. As you have already seen, this will break as soon as you go to different screen sizes. Use weights in your layouts, make things relative to each other, and use dp instead of px as the size type to get a consistent layout across different screen sizes. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: blocking UI thread when Yes/No AlertDialog is displayed
Interesting thread. I actually want the exact same thing as swapnil kamble, coming from .NET it is very nice to deal with MessageBox.Show. The Android way is actually horrible from where Im standing (even though I really like Android and the framework in general). I need to not go forward with some code until the users has made its decision. To have to do these very messy workarounds is just too sad = ( But I guess I dont have a choice. Regards, On 4 Jan, 11:51, swapnil kamble swap.kam...@gmail.com wrote: Thanks Dianne for your nice explanation. I have used synchronization point between two threads with a timeout value. Its smoothly working for me. Thanks Romain for pointing me to CounterDownLatch. On Sat, Jan 2, 2010 at 2:14 AM, Dianne Hackborn hack...@android.com wrote: On Thu, Dec 31, 2009 at 2:39 AM, swapnil kamble swap.kam...@gmail.comwrote: Have you used MessageBox.show() API in Windows ? If yes then you can understand it easily what I am saying. This is API is not really blocking the thread -- it is running a nested event loop, until the user responds to the dialog. This kind of behavior is very deliberately not implemented in Android because it results in poor application interaction behavior and edge cases, which is especially problematic in an environment like a cell phone when an application must be interruptible at any time. For example, if your application is sitting there blocking its main thread like this, and the user receives an incoming call or handles a notification, what do you think should happen? If we try to pause the activity while in this state to move on to the next thing, we will end up calling Activity.onPause() and all kinds of other questionable stuff while nested down inside of your app. Or if you have a broadcast receiver for, say, the device going to sleep, this code would end up being called from deep in your blocking method call. In all of these cases, it is unlikely for the application to really expect this to happen. These kinds of nested event loops are just bad news. PalmOS was the king example of the horror they cause, but even Windows suffers from it -- all those apps that get in weird unresponsive states while waiting on a dialog? MessageBox is often to blame. My strong suggestion: re-arrange your code to not do this kind of thing. You have some method that needs to get input from the user to return a response? Make that method async as well, to return its result in a callback, because if it needs to wait for the user then that is truly what it is. -- 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare Rama Hare Rama Rama Rama Hare Hare || -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: blocking UI thread when Yes/No AlertDialog is displayed
swapnil: I dont understand the code that Romain posted. Would you like to help me out, sending some code if you have a modal dialag as you were looking for? I'd appreciate it =) Regards, Ted On 4 Jan, 11:51, swapnil kamble swap.kam...@gmail.com wrote: Thanks Dianne for your nice explanation. I have used synchronization point between two threads with a timeout value. Its smoothly working for me. Thanks Romain for pointing me to CounterDownLatch. On Sat, Jan 2, 2010 at 2:14 AM, Dianne Hackborn hack...@android.com wrote: On Thu, Dec 31, 2009 at 2:39 AM, swapnil kamble swap.kam...@gmail.comwrote: Have you used MessageBox.show() API in Windows ? If yes then you can understand it easily what I am saying. This is API is not really blocking the thread -- it is running a nested event loop, until the user responds to the dialog. This kind of behavior is very deliberately not implemented in Android because it results in poor application interaction behavior and edge cases, which is especially problematic in an environment like a cell phone when an application must be interruptible at any time. For example, if your application is sitting there blocking its main thread like this, and the user receives an incoming call or handles a notification, what do you think should happen? If we try to pause the activity while in this state to move on to the next thing, we will end up calling Activity.onPause() and all kinds of other questionable stuff while nested down inside of your app. Or if you have a broadcast receiver for, say, the device going to sleep, this code would end up being called from deep in your blocking method call. In all of these cases, it is unlikely for the application to really expect this to happen. These kinds of nested event loops are just bad news. PalmOS was the king example of the horror they cause, but even Windows suffers from it -- all those apps that get in weird unresponsive states while waiting on a dialog? MessageBox is often to blame. My strong suggestion: re-arrange your code to not do this kind of thing. You have some method that needs to get input from the user to return a response? Make that method async as well, to return its result in a callback, because if it needs to wait for the user then that is truly what it is. -- 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare Rama Hare Rama Rama Rama Hare Hare || -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: blocking UI thread when Yes/No AlertDialog is displayed
It's not horrible, it's different. It's not more difficult or easier than MessageBox.Show, it's just different. I need to not go forward with some code until the users has made its decision. To have to do these very messy workarounds is just too sad = These are not workarounds, they're the way to do it. Having dialogs that block the thread causes tons of issues in every framework I used that offer them and you can always do it differently. Regards, On 4 Jan, 11:51, swapnil kamble swap.kam...@gmail.com wrote: Thanks Dianne for your nice explanation. I have used synchronization point between two threads with a timeout value. Its smoothly working for me. Thanks Romain for pointing me to CounterDownLatch. On Sat, Jan 2, 2010 at 2:14 AM, Dianne Hackborn hack...@android.com wrote: On Thu, Dec 31, 2009 at 2:39 AM, swapnil kamble swap.kam...@gmail.comwrote: Have you used MessageBox.show() API in Windows ? If yes then you can understand it easily what I am saying. This is API is not really blocking the thread -- it is running a nested event loop, until the user responds to the dialog. This kind of behavior is very deliberately not implemented in Android because it results in poor application interaction behavior and edge cases, which is especially problematic in an environment like a cell phone when an application must be interruptible at any time. For example, if your application is sitting there blocking its main thread like this, and the user receives an incoming call or handles a notification, what do you think should happen? If we try to pause the activity while in this state to move on to the next thing, we will end up calling Activity.onPause() and all kinds of other questionable stuff while nested down inside of your app. Or if you have a broadcast receiver for, say, the device going to sleep, this code would end up being called from deep in your blocking method call. In all of these cases, it is unlikely for the application to really expect this to happen. These kinds of nested event loops are just bad news. PalmOS was the king example of the horror they cause, but even Windows suffers from it -- all those apps that get in weird unresponsive states while waiting on a dialog? MessageBox is often to blame. My strong suggestion: re-arrange your code to not do this kind of thing. You have some method that needs to get input from the user to return a response? Make that method async as well, to return its result in a callback, because if it needs to wait for the user then that is truly what it is. -- 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare Rama Hare Rama Rama Rama Hare Hare || -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Initiating a GPRS connection
Really need to find a way to do this guys. Help really appreciated. On Thu, Jan 7, 2010 at 6:13 PM, Android Development indodr...@gmail.comwrote: Hello, Any feedback on how to achieve this task? On 1/4/10, Android Development indodr...@gmail.com wrote: Hello, If I wish to initiate a GPRS data connection programatically through a configured access point on the device, how do I go about it ? Any ideas are appreciated. Thanks in advance Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] upgrade my G1 to android 2.0
Hi All I want to upgrade my G1, which is currently running on andriod 1.6, to andriod 2.0 or 2.1. Is it possible? Thanks David -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] upgrade my G1 to android 2.0
DAVIDT wrote: I want to upgrade my G1, which is currently running on andriod 1.6, to andriod 2.0 or 2.1. Is it possible? Not presently, no. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: OpenGL fixed point vs. floating point
Just render a small object using identical code except one is float and one is int, then time them. Unless a garbage collection happens to kick in during one of those tests, or the OS decides to timeslice to another process, or the JIT decides to recompile some code with better optimization, or any of the other things happens that makes timings nondeterministic. Peter -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How do I get full-sized image back from Camera using MediaStore.IMAGE_CAPTURE ?
Hi, I managed to figure out how to get the camara application to give me an image, but it is rather tiny, only 18k. Has anyone figured out a reliable way to get a full-sized image returned if you are using a MediaStore.IMAGE_CAPTURE intent? Thanks, Ray -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: addToMyContactsGroup does not seem to work on HTC Hero
I have made some experiments here and found that this labels google/ phone are not about grouping - there is undocumented type column in the People table which seems to be responcible for this. The following code: final Cursor pcur = context.managedQuery(Contacts.People.CONTENT_URI, null, null, null, null); while (pcur.moveToNext()) { Log.d(#, **); for (int i = 0; i pcur.getColumnCount(); i++) { Log.d(#, pcur.getColumnName(i) + = + pcur.getString(i)); } } pcur.close(); Prints the following: D/#(18621): sort_string=MILO � D/#(18621): primary_organization=null D/#(18621): lastName=null D/#(18621): number=4167103 D/#(18621): number_key=3017614 D/#(18621): times_contacted=0 D/#(18621): _sync_dirty=1 D/#(18621): im_account=null D/#(18621): last_time_contacted=null D/#(18621): _id=1197 D/#(18621): picasaUrl=null D/#(18621): type=2 D/#(18621): extra_group=2 D/#(18621): notes=null D/#(18621): display_name=Milo D/#(18621): _sync_version=null D/#(18621): starred=0 D/#(18621): status=null D/#(18621): phonetic_name=null D/#(18621): mode=null D/#(18621): _sync_account=null D/#(18621): label=null D/#(18621): firstName=null D/#(18621): custom_ringtone=null D/#(18621): im_protocol=null D/#(18621): _sync_time=null D/#(18621): _sync_id=null D/#(18621): im_handle=null D/#(18621): send_to_voicemail=null D/#(18621): name=Milo D/#(18621): primary_email=null D/#(18621): _sync_local_id=null D/#(18621): last_update_time=null D/#(18621): default_action=null D/#(18621): primary_phone=954 the type column value is '0' for contacts with google label and '2' for contacts with phone label. This could be fine - just set type column value to '2' when add contact and it should appear with phone label in contact book: public static final String CONTACT_TYPE = type; public static final int CONTACT_TYPE_GOOGLE = 0; public static final int CONTACT_TYPE_PHONE = 2; final ContentValues peopleValues = new ContentValues(); peopleValues.put(CONTACT_TYPE, CONTACT_TYPE_PHONE); final Uri personUri = context.getContentResolver().insert( Contacts.People.CONTENT_URI, peopleValues); final long contactId = ContentUris.parseId(personUri); Contacts.People.addToMyContactsGroup(context.getContentResolver(), contactId); but this code gives me the following exception: E/DatabaseUtils(17695): Writing exception to parcel E/DatabaseUtils(17695): java.lang.IllegalArgumentException: column 'type' is invalid E/DatabaseUtils(17695): at android.database.DatabaseUtils $InsertHelper.getColumnIndex(DatabaseUtils.java: 794) E/DatabaseUtils(17695): at android.database.DatabaseUtils $InsertHelper.insertInternal(DatabaseUtils.java: 770) E/DatabaseUtils(17695): at android.database.DatabaseUtils $InsertHelper.insert(DatabaseUtils.java: 898) E/DatabaseUtils(17695): at com.android.providers.contacts.ContactsProvider.insertInternal (ContactsProvider.java:5260) E/DatabaseUtils(17695): at android.content.AbstractSyncableContentProvider.insert (AbstractSyncableContentProvider.java: 298) E/DatabaseUtils(17695): at android.content.ContentProvider $Transport.insert(ContentProvider.java: 140) E/DatabaseUtils(17695): at android.content.ContentProviderNative.onTransact (ContentProviderNative.java: 125) E/DatabaseUtils(17695): at android.os.Binder.execTransact (Binder.java: 287) E/DatabaseUtils(17695): at dalvik.system.NativeStart.run (Native Method) What is wrong here? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Virtual Camera + Accelerometer + 3ds max
Good afternoon. Here is my idea shortly: I want to make a virtual camera to 3ds max. I mean, I want to be able to move my phone in space and then export the transformations to my 3ds camera. So I have to consider *basic *points: - how can I recover the accelerometer values and turn then into quaternion rotations?(It is possible?) - its possible to track movement(If I walk forward I could recover the distance's value)? This basic points solved(I really really hope so) I have what can be called *Virtual Camera Engine* set. Now some *advanced* points: - its possible to render 3d content in the phone? Then I can load up my scene. (Low poly, of course.) - if so, using the Virtual Camera Engine is possible to shoot the scene, right? Its a cheap version of James Cameron virtual camera system used in Avatar! hehehehe Come on people! Thank you anyway! Regards! Guilherme -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: what is a suitable upper limit for application size?
Well that idea of downloading of data onto the SD card does sound like the proper route to take. If it didn't happen every start-up then it isn't much of a problem at all. I'll sort out the details and take that good advice. Thanks for the help folks. - Ian On Jan 8, 11:28 am, Cédric Berger cedric.berge...@gmail.com wrote: On Fri, Jan 8, 2010 at 15:43, ian stilbit...@gmail.com wrote: Thanks for the interesting suggestion, although it sounds a little technical for my limited expertise. I don't like the idea of the users having to download all that data every time they use my program. That basically turns the app into just a web site, sort of. I could probably shrink it all from 15 to 5MB with only a minor loss of quality and content. If this limit is only a problem with 1.5 and 1.6 , and the first Android phones in Canada are Droids, then I suppose I just have to upgrade my program to 2.0 and hope nothing breaks. A lot of android apps use this technique : download images to SD card on first run (in fact if it detects data is not there on the card). You get a popup asking if ok to download. This is a one time download, not every time you use the app. Even in android platform, text to speech data has to be downloaded before it can be used (depending on the phones... this is true for space limited G1, and also for my french Magic). Anyway, I consider application using more than 3MB as big ones, and more than 5MB as very big ones. 15MB is a no-go, even if it worked ok at download time from market. And this is with a HTC Magic. G1 users with half the internal memory would be even more reluctent to install such big apps. Future android release will allow installation of apps on sdcard (2.1 does not), which could allow bigger apks Also note that having separated apk and data allows upgrade of one whithout re-downloading the other. Else, any upgrade of your app, even minor, would imply the re-download of 15MB from market. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: upgrade my G1 to android 2.0
if you root your phone and head over to xda there are a few 2.0 builds for G1 but last time I checked the camera wasnt working yet. On Jan 8, 11:05 am, Mark Murphy mmur...@commonsware.com wrote: DAVIDT wrote: I want to upgrade my G1, which is currently running on andriod 1.6, to andriod 2.0 or 2.1. Is it possible? Not presently, no. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Consulting/App Development:http://commonsware.com/consulting -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to best maintain two different versions of the same app?
Hi, this seems to be a very basic need, but googling it I got the impression that is not easily or elegantly solvable. The requirement is totally simple: I want to have a lite and pro version of an app. There is a little bit of difference between those two apps, but they are 99% identically. Unfortunately it seems that the best choice is to really treat this as two projects that are one and the same and copy over the source code and assets from one to the other. The Android Manifest file must be different, because the Android Market - for some reason - makes the implementation's package name the ID. Working around this ID issue the straight forward approach would be to have a third project with the common code that exports its code, libraries and in a best case scenario also the ressources to the other two objects. Unfortunately this doesn't work. Only the actual Android projects generate the R.class and so the common project would need to be dependent on it, which would make it a cycle ;( Am I thinking too complicated? Do I miss the obvious? Cheers, Mariano -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] dispatchTouchEvent
How can I programmatically press/release a button? I was playing with the button.dispatchTouchEvent(motionEvent); but failed to programmatically generate the MotionEvent to be passed to the dispatchTouchEvent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OpenGL fixed point vs. floating point
If there's no API, writing your own code is reasonable. On Jan 8, 2010 9:09 AM, Peter Eastman peter.east...@gmail.com wrote: Just render a small object using identical code except one is float and one is int, then time them... Unless a garbage collection happens to kick in during one of those tests, or the OS decides to timeslice to another process, or the JIT decides to recompile some code with better optimization, or any of the other things happens that makes timings nondeterministic. Peter -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to best maintain two different versions of the same app?
I've suggested using Eclipse project dependency, but haven't whether or not it works for Android projects. On Jan 8, 2010 10:15 AM, Mariano Kamp mariano.k...@gmail.com wrote: Hi, this seems to be a very basic need, but googling it I got the impression that is not easily or elegantly solvable. The requirement is totally simple: I want to have a lite and pro version of an app. There is a little bit of difference between those two apps, but they are 99% identically. Unfortunately it seems that the best choice is to really treat this as two projects that are one and the same and copy over the source code and assets from one to the other. The Android Manifest file must be different, because the Android Market - for some reason - makes the implementation's package name the ID. Working around this ID issue the straight forward approach would be to have a third project with the common code that exports its code, libraries and in a best case scenario also the ressources to the other two objects. Unfortunately this doesn't work. Only the actual Android projects generate the R.class and so the common project would need to be dependent on it, which would make it a cycle ;( Am I thinking too complicated? Do I miss the obvious? Cheers, Mariano -- You received this message because you are subscribed to the Google Groups Android Developers group. 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%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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to best maintain two different versions of the same app?
Mariano Kamp wrote: Working around this ID issue the straight forward approach would be to have a third project with the common code that exports its code, libraries and in a best case scenario also the ressources to the other two objects. Unfortunately this doesn't work. Only the actual Android projects generate the R.class and so the common project would need to be dependent on it, which would make it a cycle ;( That depends on what code you are trying to reuse. I have many projects that package as JARs for reuse -- they simply don't require access to the R. stuff. Check my github page (http://github.com/commonsguy) and look for the cwac- projects. However, that's not really a practical approach for full-fledged applications. Am I thinking too complicated? Do I miss the obvious? It is difficult to answer this, since we don't know what the difference is between the free and not-free versions of your app. I'm going to assume that the differences could be handled by some sort of global free/not-free flag. By that, I mean that the same code would make up both versions of the app, and which portions are enabled or used would be dependent on some public static data member somewhere: if (SomeClass.IS_PAID_APP) { // add more stuff to menu, etc. } If you can organize your app that way, then you only need one code base. Have it set to build your app one way (free or paid, your choice) and with the proper package in your manifest for that version of the app. Then, add an Ant task that does the following: 1. Makes a tree copy of your project dir to a temporary location 2. Switch the copy of the manifest to the new package name via a search-and-replace 3. Switch all import statements for your old package's edition of R to the new package, again via search-and-replace, and again on the copy, not your original 4. Change your IS_PAID_APP (or whatever) to the opposite value (search-and-replace in the copy) 5. Executes an Ant build for the copy of the project 6. Copies the binaries from that build to the main project's bin/ directory under a distinct name (so it doesn't clobber your other copy of the APK) 7. Deletes the tree copy made in step #1 As Mr. Weiss points out, Eclipse dependent projects might handle some of this -- I'm not an Eclipse user, so I cannot say for certain. If Java had a pre-processor, this would be somewhat simpler. However, the basic technique that I describe above has been used for a couple of decades now. It's clunky, but it works, and it means you only have one set of source code to deal with. Note that the Ant replace task would handle your search-and-replace stuff nicely. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.3 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: abort outgoing call
Hi Alejandro D. Garin, Reintiating call means when i setResultData(null); and after this i want to call at new number as Intent DialIntent = new Intent (Intent.ACTION_CALL,Uri.parse(3224005421));/**local number DialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(DialIntent); Its not initiating call now. any help Thanks for your reply. Gulfam Hassan On Jan 8, 9:16 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, What do you mean with not reinitiating the call ? On Fri, Jan 8, 2010 at 4:07 AM, Gulfam gulfa...@gmail.com wrote: Hi , I was aborting BroadCastReceiver using abortBroadcast(); method. Its working fine with 1.0 to 1.6 but on 2.0 or + its not working. I have checked the documentation that is also same in 1.0 and 2.0 but in 2.0+sdk's abortBroadCast(); method is not aborting broadcast on out going calls . I have use also setResultData(null) method its aborting the broadcast but not reinitiating the call. Any solution pl ?? Best Regards, Gulfam Hassan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: dispatchTouchEvent
I found the way to generate the MotionEvent, and it's MotionEvent.obtain On Jan 8, 1:15 pm, Business Talk roman.businesst...@gmail.com wrote: How can I programmatically press/release a button? I was playing with the button.dispatchTouchEvent(motionEvent); but failed to programmatically generate the MotionEvent to be passed to the dispatchTouchEvent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: abort outgoing call
Hi Gulfam, I'm doing exactly the same and it's working, at least in the emulator. And using sdk 2.0 api 6. This are my android permissions: uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED / uses-permission android:name=android.permission.PROCESS_OUTGOING_CALLS / uses-permission android:name=android.permission.CALL_PHONE/ uses-permission android:name=android.permission.READ_PHONE_STATE/ uses-permission android:name=android.permission.CALL_PRIVILEGED/ uses-permission android:name=android.permission.INTERNET/ On Fri, Jan 8, 2010 at 3:36 PM, Gulfam gulfa...@gmail.com wrote: Hi Alejandro D. Garin, Reintiating call means when i setResultData(null); and after this i want to call at new number as Intent DialIntent = new Intent (Intent.ACTION_CALL,Uri.parse(3224005421));/**local number DialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(DialIntent); Its not initiating call now. any help Thanks for your reply. Gulfam Hassan On Jan 8, 9:16 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, What do you mean with not reinitiating the call ? On Fri, Jan 8, 2010 at 4:07 AM, Gulfam gulfa...@gmail.com wrote: Hi , I was aborting BroadCastReceiver using abortBroadcast(); method. Its working fine with 1.0 to 1.6 but on 2.0 or + its not working. I have checked the documentation that is also same in 1.0 and 2.0 but in 2.0+sdk's abortBroadCast(); method is not aborting broadcast on out going calls . I have use also setResultData(null) method its aborting the broadcast but not reinitiating the call. Any solution pl ?? Best Regards, Gulfam Hassan -- You received this message because you are subscribed to the Google Groups Android Developers group. 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%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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to best maintain two different versions of the same app?
On 01/08/2010 07:15 PM, Mariano Kamp wrote: this seems to be a very basic need, but googling it I got the impression that is not easily or elegantly solvable. The requirement is totally simple: I want to have a lite and pro version of an app. There is a little bit of difference between those two apps, but they are 99% identically. Unfortunately it seems that the best choice is to really treat this as two projects that are one and the same and copy over the source code and assets from one to the other. The Android Manifest file must be different, because the Android Market - for some reason - makes the implementation's package name the ID. Working around this ID issue the straight forward approach would be to have a third project with the common code that exports its code, libraries and in a best case scenario also the ressources to the other two objects. Unfortunately this doesn't work. Only the actual Android projects generate the R.class and so the common project would need to be dependent on it, which would make it a cycle ;( Am I thinking too complicated? Do I miss the obvious? The first thing that comes to my mind is to use svn, develop the pro version in the trunk, and create a branch for your lite version. Then merge the trunk changes from time to time into the lite branch. If you want to simplify merging, then you could also create this third project you're talking about, but without trying to export any resources (or code that references them) from it, only generic application model/logic/utilities, etc.. -- Olivier -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: abort outgoing call
I wrote the Uri parse different: Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse(tel: + NUMBER)); NUMBER is a constant with the new number to dial. On Fri, Jan 8, 2010 at 3:43 PM, Alejandro D. Garin aga...@gmail.com wrote: Hi Gulfam, I'm doing exactly the same and it's working, at least in the emulator. And using sdk 2.0 api 6. This are my android permissions: uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED / uses-permission android:name=android.permission.PROCESS_OUTGOING_CALLS / uses-permission android:name=android.permission.CALL_PHONE/ uses-permission android:name=android.permission.READ_PHONE_STATE/ uses-permission android:name=android.permission.CALL_PRIVILEGED/ uses-permission android:name=android.permission.INTERNET/ On Fri, Jan 8, 2010 at 3:36 PM, Gulfam gulfa...@gmail.com wrote: Hi Alejandro D. Garin, Reintiating call means when i setResultData(null); and after this i want to call at new number as Intent DialIntent = new Intent (Intent.ACTION_CALL,Uri.parse(3224005421));/**local number DialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(DialIntent); Its not initiating call now. any help Thanks for your reply. Gulfam Hassan On Jan 8, 9:16 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, What do you mean with not reinitiating the call ? On Fri, Jan 8, 2010 at 4:07 AM, Gulfam gulfa...@gmail.com wrote: Hi , I was aborting BroadCastReceiver using abortBroadcast(); method. Its working fine with 1.0 to 1.6 but on 2.0 or + its not working. I have checked the documentation that is also same in 1.0 and 2.0 but in 2.0+sdk's abortBroadCast(); method is not aborting broadcast on out going calls . I have use also setResultData(null) method its aborting the broadcast but not reinitiating the call. Any solution pl ?? Best Regards, Gulfam Hassan -- You received this message because you are subscribed to the Google Groups Android Developers group. 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%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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to best maintain two different versions of the same app?
We had good luck with our latest project with just checking the package string. Naming the project xxx.xxx.project, and xxx.xx.project_lite And in our Activity subclass, checking for the package name, and setting a static variable for paid. Depends how much code needs to switch with paid/unpaid. For us, it was only 10-20 lines different, so we just wrapped them in that check. When going to export both versions, we export one, then change the package name, recompile, and export the second. Thats about it... - Dan On Fri, Jan 8, 2010 at 1:44 PM, Olivier Guilyardi l...@samalyse.com wrote: On 01/08/2010 07:15 PM, Mariano Kamp wrote: this seems to be a very basic need, but googling it I got the impression that is not easily or elegantly solvable. The requirement is totally simple: I want to have a lite and pro version of an app. There is a little bit of difference between those two apps, but they are 99% identically. Unfortunately it seems that the best choice is to really treat this as two projects that are one and the same and copy over the source code and assets from one to the other. The Android Manifest file must be different, because the Android Market - for some reason - makes the implementation's package name the ID. Working around this ID issue the straight forward approach would be to have a third project with the common code that exports its code, libraries and in a best case scenario also the ressources to the other two objects. Unfortunately this doesn't work. Only the actual Android projects generate the R.class and so the common project would need to be dependent on it, which would make it a cycle ;( Am I thinking too complicated? Do I miss the obvious? The first thing that comes to my mind is to use svn, develop the pro version in the trunk, and create a branch for your lite version. Then merge the trunk changes from time to time into the lite branch. If you want to simplify merging, then you could also create this third project you're talking about, but without trying to export any resources (or code that references them) from it, only generic application model/logic/utilities, etc.. -- Olivier -- You received this message because you are subscribed to the Google Groups Android Developers group. 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%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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do I get full-sized image back from Camera using MediaStore.IMAGE_CAPTURE ?
As far as I know it's bugged and you can't get full resolution images via the intent. I ended up just creating my own camera activity. On Jan 8, 5:26 pm, Ray Benjamin ray.benja...@gmail.com wrote: Hi, I managed to figure out how to get the camara application to give me an image, but it is rather tiny, only 18k. Has anyone figured out a reliable way to get a full-sized image returned if you are using a MediaStore.IMAGE_CAPTURE intent? Thanks, Ray -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with Password Reset Captcha
I was trying to post a response to a message, but I had forgotten my password. I clicked the link to reset my password. I filled in the information on the form and was presented with a captcha. Unfortunately the characters in the captcha were very hard to read and I couldn't enter the correct chaaracters. I was eventually successful, but the process was very frustrating. The captcha system should allow users to select new captcha text if they cannot read the characters. Most captcha systems allow that. Doug Wong Software QA Engineer Plantronics, Inc. Voice: 831-458-7969 Email: douglas.w...@plantronics.commailto:douglas.w...@plantronics.com CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files or previous e-mail messages attached to it, may contain information that is confidential and/or legally privileged. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, please DO NOT disclose the contents to another person, store or copy the information in any medium, or use any of the information contained in or attached to this transmission for any purpose. If you have received this transmission in error, please immediately notify the sender by reply email or at priv...@plantronics.com, and destroy the original transmission and its attachments without reading or saving in any manner. For further information about Plantronics - the Company, its products, brands, partners, please visit our website www.plantronics.com. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Creating Comunal ShoutCasts Lib
Hi, Apparently nobody has published a Android Library to play ShoutCast streams.. there are particular developments but none of the OpenSource. So why don`t we develop our own library? I will post my first approach to the class and the community can post modifications till we get a functional class… This class makes a HTTP petition to a host and send this query: GET / HTTP1.0clrf Icy-Metadata:0 clrf clrf an the response is like this: Recibido: ICY 200 OK icy-notice1:BRThis stream requires a href=http:// www.winamp.com/Winamp/aBR icy-notice2:SHOUTcast Distributed Network Audio Server/Linux v1.9.8BR Recibido: icy-name: : radioname icy-genre:News, Various icy-url:http://www.sampleur.com content-type:audio/aacp icy-pub:1 icy-br:40 streamdata so I split with icy-br:40 string and i supose the nex content is the stream data so i save it on a tempfile tempbuffer.dat.. then the file should be opened with the mediaPlayer but still don`t know how to doi it.. As you can see the http response ha to be changed for somethin better than a split... package dev.andoid.shoutcast; import java.net.Socket; import android.app.Activity; import java.net.InetAddress; import java.net.Inet4Address; import android.app.AlertDialog; import android.content.DialogInterface; import java.net.UnknownHostException; import java.io.IOException; import java.io.BufferedReader; import java.io.PrintWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.FileDescriptor; import java.io.FileWriter; import java.util.StringTokenizer; public class ShoutCastStream extends Activity implements Runnable { private Socket clientsocket; private String streamUrl; private int streamPort; private Thread thread; public FileDescriptor streamFile; public boolean saveStream(String streamUrl, int streamPort) { this.streamUrl = streamUrl; this.streamPort = streamPort; thread = new Thread(this); thread.start(); return true; } public boolean stopThread(){ thread.stop(); return true; } public void run() { try { InetAddress server = Inet4Address.getByName(this.streamUrl); Socket clientsocket = new Socket(server, this.streamPort); BufferedReader entrada = new BufferedReader(new InputStreamReader( clientsocket.getInputStream() ) ); // Crea el canal de salida PrintWriter salida = new PrintWriter(new OutputStreamWriter ( clientsocket.getOutputStream() ),true ); // Envía un comando GET al servidor salida.println(GET / HTTP1.0\nIcy-Metadata:0\n\n); // Se va leyendo el fichero String linea = null; String aux = ; boolean header = false; while( (linea = entrada.readLine()) != null ) { if(header){ WriteSettings(linea); }else{ if(aux.contains(icy-br) ){ header = true; }else{ aux = aux + linea; } } } // Se cierra el socket clientsocket.close(); } catch (UnknownHostException e) { alertbox(Error, Server Not Found); } catch (IOException e) { alertbox(Error, Couldn't open socket); } } protected void alertbox(String title, String mymessage) { new AlertDialog.Builder(this) .setMessage(mymessage) .setTitle(title) .setCancelable(true) .setNeutralButton(android.R.string.cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton){} }) .show(); } public void WriteSettings(String data){ try{ FileWriter fWriter = new FileWriter(/sdcard/ tempbuffer.dat,true); fWriter.write(data); fWriter.flush(); fWriter.close(); }catch(Exception e){ alertbox(Error, Imposible to save Stream); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 docs in an offline format
I am looking for a source for all of the Android docs that can be read offline. It would be great if Google would publish their docs in a linked PDF or Kindle format or even the HTML in a zip file so an individual can reformat the docs themselves into PDF/Kindle. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: what is a suitable upper limit for application size?
apps more than 1MB is relatively very large on android. Maybe you can work around by put something on sd card. On Jan 8, 10:56 am, ian stilbit...@gmail.com wrote: The tourism related app I am completing has about 250 images for a total of maybe 15MB. I;d like to add another 100 or so images but sometimes I get an 'Insufficient storage' error message and have to restart the emulator. That in itself isn't so bad a problem but now I'm wondering about practical limits for real devices. Anybody know large can I make my app assuming I wouldn't want to to use up more than perhaps 25% of a user's discretionary storage? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] To read XML file using xslt
Hii all I want to read XML file using XSLT concept and display it as a web page using webview. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Multitouch support in Android 2.0
I wonder about Pointer ID which is obtained using ACTION_POINTER_ID_MASK. Documentation says Pointer ID is not Array Index but ID, and Index can be found with findPointerIndex(ID). But when I examine source file(InputDevice.java), it looks like Array Index instead of ID as quoted below. upOrDownPointer does not seems to be ID, and it must be Array Index. if (nextNumPointers lastNumPointers) { if (lastNumPointers == 0) { action = MotionEvent.ACTION_DOWN; mDownTime = curTime; } else { action = MotionEvent.ACTION_POINTER_DOWN | (upOrDownPointer MotionEvent.ACTION_POINTER_ID_SHIFT); } } else { if (numPointers == 1) { action = MotionEvent.ACTION_UP; } else { action = MotionEvent.ACTION_POINTER_UP | upOrDownPointer MotionEvent.ACTION_POINTER_ID_SHIFT); } } If documentation is right, I think framework source code should be fixed like below. action = MotionEvent.ACTION_POINTER_UP | mPointerIds[upOrDownPointer] MotionEvent.ACTION_POINTER_ID_SHIFT); Could you clarify this issue for me? On 2009년11월17일, 오전11시30분, Dianne Hackborn hack...@android.com wrote: On Sun, Nov 15, 2009 at 7:21 PM, niko20 nikolatesl...@yahoo.com wrote: I wish though, that the multitouch would have also been natively suuportedk in the sense that multiple views should get touch events also simultaneously. Very, very deliberately not supported. :) You'll need to look at the events arriving in a particular view and do what you want with them. It is too big a can of worms to try to treat these as different event streams, because they really aren't independent, and in many cases the view of the first press really does want to see all of different finger touches during that motion. Also the data you get from the screen is likely not going to be completely independent with respect to multiple fingers -- for example on the G1/Sapphire class screen there are interactions between the two points reported, and if you play with Pointer Location on Droid you will see that pressing a second finger can cause noticeable jitter in the first finger. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ADT Plugin for Exlipse installation fails
I've also had these exact same problems. It's also taking a very long time (10 minutes) for eclipse to download 1.6MB to figure out if it needs to update, even via the check connection button. On Jan 5, 9:59 am, Manimal scire...@gmail.com wrote: I added http://download.eclipse.org/releases/galileo/'so the list of updates sites and i get No repository found athttp://download.eclipse.org/releases/galileo.; I'm also not able to install the ADT. On Dec 7 2009, 5:55 am, Mikael mikaelmoha...@gmail.com wrote: Hi, I had the same problem and I've solved it by reading this quote : http://www.mail-archive.com/android-developers@googlegroups.com/msg69... Go to Help/Install New Software... Addhttp://download.eclipse.org/releases/galileo/tothe update sites list (strange it's not installed by default on ubuntu) From there, install WST (use the filter box to find the package) Restart eclipse Go back to Help/Install New Software... and install the Android ADT as explained on the android website. -- Vineus (thanks Vineus) I hope it can help you, Regards On 6 déc, 05:53, Stefano stefano.me...@gmail.com wrote: I just resucitated an old laptop, wiped out the old corrupted XP, installed Ubuntu 9.1, installed Eclipse 3.5.1, installed the sun-java6- jdk from the Synaptic Manager, then I tried to install the ADT as described inhttp://developer.android.com/sdk/eclipse-adt.html, but the installation fails with the following message: Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group 0.9.5.v200911191123-20404) Missing requirement: Android Development Tools 0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group 0.9.5.v200911191123-20404) requires 'org.eclipse.wst.xml.ui 0.0.0' but it could not be found I found another similar message without solution. Anybody out there can help me getting started? Thanks, Stefano -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Submission Guideline
Hi Experts, Can you please suggest if there is any submission guideline suggested by android before app submission to market place. Do we need to do any level of testing? Thanks Amit Mhatre -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ADB working with HTC Droid Eris?
I installed the HTC sync from the HTC website that includes an ADB driver that works with the Eris. Remove the old driver and install HTCSync. On Dec 9 2009, 11:32 am, nethru lcapr...@gmail.com wrote: I got the same exact issue as original poster. I tried what was on that unlockr site but it didn't workeither. I see the Android CompsositeADBInterface not connected and Android Phone HTC Android PHone USB Device connected. Any other suggestions? I can't use anyADBcommands on the phone. I'm running XP64. On Nov 9, 2:11 pm, wooter wilhew...@gmail.com wrote: this might help:http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-an... On Nov 8, 4:38 pm, drasticp drast...@gmail.com wrote: I'm trying to debug apps with the new HTC DroidErisandADBdoesn't seem to recognize the device. I have the latest SDK installed with Usb Driver Package, Revsion 2 downloaded through the Android SDK and AVD Manager. When the device is connected, it recognizes new hardware and I point it to the usb_driver folder to install the drivers. Windows accepts and installs the drivers. However, adbdevices from a command prompt never lists the phone. I've tried this on two different Windows XP systems. I have Unknown Sources and USB Debugging checked under Application Settings, Development. Is anyone else debugging with theEris?- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Carnegie Mellon University seeks Android developers opinion
We are conducting a survey of mobile application developers aimed at improving our understanding of mobile application development, focused on developer practices for building mobile applications. This is a research project, sponsored by the CyLab Mobility Research Center of Carnegie Mellon University. Survey results will be made public and will be available at http://mobileplatforms.wikidot.com in early 2010. The survey is open to anyone who is involved in the design and development of mobile applications, and should take 10-15 minutes to complete. If you would like to participate in the survey, please click to go to the survey site at: http://2010MobileDeveloperSurvey.questionpro.com You will first be asked to give your consent to participating in the survey. If you have questions about the survey, please send an email message to mobilesur...@sv.cmu.edu Thank you very much for your participation. All responses will remain confidential and secure. Thank you in advance for your valuable feedback. Your input will be used to ensure that we continue to meet your needs. We appreciate your trust and look forward to serving you in the future. NOTE: Feel free to circulate this message amongst your colleagues and/ or post it on your blog. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Spinner questions
Hello, I would appreciate if somebody can comment the questions below... - is there any way to read the spinner status (is it open or closed) ? - Is there any way to change the content of the spinner items without closing it? Currently, I can set a custom data adapter and show the spinner. Then I can set another data adapter (or modify the current one), but the spinner does not change. It changes (refresh the content) only if you close the spinner and open it again. How I can force the spinner to redraw the content from data adapter without closing it? - Can I open the spinner programmatically? - Can I close the spinner programmatically? 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] How much is the weight of the shipped box?
Hello, I'm from Argentina and I'm searching the weight of the Nexus Box, Could you tell me how much it is, please? I can't find it and I need to know before the ship. Thank you salu2... masch... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Create Nexus One live wallpaper
Hi, May I know are we able to create our own live wallpaper ? Thanks. Best Wishes Bayee -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Audio Source for Speech Recognition
When the RecognizerIntent is used with ACTION_RECOGNIZE_SPEECH, or ACTION_WEB_SEARCH for that matter, at what point does the invoked SR Activity capture the voice? To clarify, is the voice data right from the MIC (raw) or post-processed (VOICE_UPLINK)? I ask because with the new Nexus One makes use of a noise suppression chip (Audience A0126) and I'd like to know if the SR engine is getting pre or post-processed voice. Thanks! Scott -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 SDK emulator problem
Hello, When I start the emulator I get the following error: emulator: ERROR: no search paths found in this AVD's configuration. Weird, the AVD's config.ini file is malformed. Try re-creating it. Do you have any idea why this happens? I tried using several Target Names, downloading sdk again but the problem remains. Can you post your config.ini? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to disable Home and End Call Key
Hi, I am going to develop one application for android (As per client request). Which starts after booting of device. When device get booted then only this application will be there on screen. No key press will minimise that application. The solution i found on this site is able to block all keys instead of home and end call keys. Please help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Back ground of List View
Hi, This is the command: android:background=#00 within a list view. ListView android:id=@+id/list android:background=#00 android:layout_width=wrap_content android:layout_height=wrap_content/ Regards, Risha On Jan 7, 2:54 pm, Ali Murtaza mralimurt...@gmail.com wrote: Hi I want to know how to change background color of List View using XML command... Thanks in advance please tell me in steps -- Ali Murtaza BCSF06M021 Research Assistant Data Virtulization Ware House PUCIT, Lahore, Pakistan ali.murt...@pucit.edu.pk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Icons revisited
This is from an old thread, but I think a lot of people still have this problem, so new thread. On Nov 19, 11:59 pm, Dianne Hackborn (at Google) wrote: We don't recommend using the built-in icons. This has already been discussed fairly in-depth here, but the basic answer is: unless there is a standard icon to cover every one of your menus (unlikely, unless we have a huge number of icons in the platform, which we do not want), then you end up with the worse situation of the icons in your app being inconsistent because they are a mix of your own and the built-in ones. Google doesn't recommend using the built-in icons. There are essentially four choices that a developer may make, when dealing with operations covered by those icons: 1. Create entirely new icons, that may (or may not) be similar to the built-in icons, thus confusing the user. Can be costly. 2. Include copies of the built-in icons, licensed under the Apache 2.0 license. That license requires that you distribute a full copy of the license with the icons, and many developers will not want to do this, or will be prevented from doing this by their employer. 3. Include stolen copies of the built-in icons. 4. Use the built-in icons, running the risk that a phone provider will change the aesthetic of the icons, clashing with the icons that were custom-made for the application. By choosing that license, Google has made none of the options attractive. And they've made the most attractive option #4, the one they don't recommend using. Law of unintended consequences! P. V. Nasby -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 icon sometimes open new app sometimes brings up old
Hello, I have an android app which i have written, which exhibits some strange behaviour. When i have an app open, say with three acitivties in the stack A - B - C where a is the entry point and C is the currently viewed activity, if i press the home button and reselect the icon for my app sometimes i see A, which on pressing the back button i can see the task now contains the activities A - B - C - A and sometime it just reopens the app in the last state A - B - C which is what i want to happen. Could anyone inform me of why the inconsitant behaviour is happening. On both cases i press the icon strait after exiting the app via the home key. Thanks for any help! ps i have also asked this question on stack overflow http://stackoverflow.com/questions/2027328/android-icon-sometimes-open-new-app-sometimes-brings-up-old-app-help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Removing the stack of Activity
hi, one of the possible answers may be, you can launch the Activity2 on onClick event of the button in Activity5. and we dont have any options of removing any activities from .apk file. On Jan 7, 11:54 am, Beena swdeveloper2...@gmail.com wrote: Hi All, I have problem of removing activity. I have 5 Activities in sequence Activity1, Activity2, Activity3, Activity4, Activity5. When I am at Activity5 there is a button through I can go to Activity2. Means jump from 5 to 2 with removing the Activity3 4. How can I do that? Please help regarding 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: Intent Call Action
Hi as per my understanding of the question intent can be used to launch any activity,service,brodcast receiver. The methods used for launching any activity component are: 1.startActivity(myIntent):-myintent is the Intent object containing descriptions about the activity to belaunched ad the operation to be performed. 2.startActivityForResult(myintent,requestcode):-requestcode is the code=0 wen an activity exits.This method is used when the called activity needs to return something to the calling activity. I hope this explanation answers your question. On Jan 7, 3:08 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi,, How to invoke call in android using ntent?... -- Thanks Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Enhancement to Emulator
I'll hold him still, you go for the head ;-) On Thu, Jan 7, 2010 at 7:29 PM, Disconnect dc.disconn...@gmail.com wrote: I do have a can opener.. :P On Thu, Jan 7, 2010 at 2:25 PM, David Turner di...@android.com wrote: On Thu, Jan 7, 2010 at 11:12 AM, Disconnect dc.disconn...@gmail.com wrote: Dev phone 2 - dev phone 1 firmware is still hidden/removed. Also, for the planned for 2010 features, where can we see a list of such items? You can't, it's in my head :-) On Thu, Jan 7, 2010 at 1:58 PM, theSmith chris.smith...@gmail.com wrote: Noting what David said, you are better off using a development device like the google dev phone 1. -theSmith On Jan 7, 1:49 pm, David Turner di...@android.com wrote: On Thu, Jan 7, 2010 at 10:36 AM, Thisara Rupasinghe thisara...@gmail.comwrote: Hi all, Im trying to write an application using bluetooth. But using the android emulator, can i try that out. I mean is it emulated that feature(bluetooth). Or even the camera feature. And also if i would like to enhance the capabilities of this emulator can i contribute? Where can i find the source of that emulator? These features are not emulated and are planned for 2010, if not preempted by more important stuff. You can have a look at the emulator sources under external/qemu in the Android repository. I would like to use computers web cam and the bluetooth devices as emulators, if there are those features in the running machine. Is that pissble or can u gv any comments on this to my self. Note that being able to do that will require at the very least changes to the kernel configuration used for the emulator, plus some changes to the system itself. Thanks -- Thanks Regards, Thisara. -- You received this message because you are subscribed to the Google Groups android-platform group. To post to this group, send email to android-platf...@googlegroups.com. To unsubscribe from this group, send email to android-platform+unsubscr...@googlegroups.comandroid-platform%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/android-platform?hl=en. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Offline SDK installation
Hello. I want to use Android SDK on Windows PC. Due to company policy regarding security, development machines are not connected to internet. Only different computer, running MacOSX, is connected to internet. How do I install Android SDK on Windows machine? When I run Android SDK on MacOSX, it allows only to install MacOSX packages. It does not allow to download/install Windows packages. When I select Windows packages, I get error message: Skipping incompatible archive: Android SDK Tools, revision 4 for Windows Skipping incompatible archive: SDK Platform Android 2.0.1, API 6, revision 1 for Windows Skipping incompatible archive: Usb Driver package, revision 3 for Windows Please advise what to do in this situation. -- Martins -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] EditText.getText() not working
I am simple sudoku app. My main.xml has 81 EditText and 2 buttons as shown below. ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=wrap_content android:background=@color/activity_background EditText android:id=@+id/text1 android:layout_width=33dip android:layout_height=33dip android:background=@color/textBox_background android:layout_marginBottom=2dip android:layout_marginRight=2dip android:layout_marginLeft=2dip android:maxLength=1 android:textColor=@color/textBox_color android:numeric=integer android:paddingLeft=11dip android:selectAllOnFocus=true / EditText android:id=@+id/text2 android:layout_width=33dip android:layout_height=33dip android:background=@color/textBox_background android:layout_marginBottom=2dip android:layout_marginRight=2dip android:maxLength=1 android:textColor=@color/textBox_color android:numeric=integer android:paddingLeft=11dip android:layout_toRightOf=@id/text1 android:layout_alignTop=@id/text1 android:selectAllOnFocus=true / EditText android:id=@+id/text3 android:layout_width=33dip android:layout_height=33dip android:background=@color/textBox_background android:layout_marginBottom=2dip android:layout_marginRight=4dip android:maxLength=1 android:textColor=@color/textBox_color android:numeric=integer android:paddingLeft=11dip android:layout_toRightOf=@id/text2 android:layout_alignTop=@id/text1 android:selectAllOnFocus=true / EditText android:id=@+id/text4 android:layout_width=33dip android:layout_height=33dip android:background=@color/textBox_background android:layout_marginBottom=2dip android:layout_marginRight=2dip android:maxLength=1 android:textColor=@color/textBox_color android:numeric=integer android:paddingLeft=11dip android:layout_toRightOf=@id/text3 android:layout_alignTop=@id/text1 android:selectAllOnFocus=true / EditText android:id=@+id/text5 android:layout_width=33dip android:layout_height=33dip android:background=@color/textBox_background android:layout_marginBottom=2dip android:layout_marginRight=2dip android:maxLength=1 android:textColor=@color/textBox_color android:numeric=integer android:paddingLeft=11dip android:layout_toRightOf=@id/text4 android:layout_alignTop=@id/text1 android:selectAllOnFocus=true / EditText android:id=@+id/text6 android:layout_width=33dip android:layout_height=33dip android:background=@color/textBox_background android:layout_marginBottom=2dip android:layout_marginRight=4dip android:maxLength=1 android:textColor=@color/textBox_color android:numeric=integer android:paddingLeft=11dip android:layout_toRightOf=@id/text5 android:layout_alignTop=@id/text1 android:selectAllOnFocus=true / EditText android:id=@+id/text7 android:layout_width=33dip android:layout_height=33dip android:background=@color/textBox_background android:layout_marginBottom=2dip android:layout_marginRight=2dip android:maxLength=1 android:textColor=@color/textBox_color android:numeric=integer android:paddingLeft=11dip android:layout_toRightOf=@id/text6 android:layout_alignTop=@id/text1 android:selectAllOnFocus=true / EditText android:id=@+id/text80 android:layout_width=33dip android:layout_height=33dip android:background=@color/textBox_background android:layout_marginBottom=2dip android:layout_marginRight=2dip
[android-developers] Re: How to transfer data with a successful bluetooth connection.?
Seems that the Bluetooth API only allows p2p apps that both client and server has the same UUID: The string is an identifiable name of your service, which the system will automatically write to a new Service Discovery Protocol (SDP) database entry on the device (the name is arbitrary and can simply be your application name). The UUID is also included in the SDP entry and will be the basis for the connection agreement with the client device. That is, when the client attempts to connect with this device, it will carry a UUID that uniquely identifies the service with which it wants to connect. These UUIDs must match in order for the connection to be accepted (in the next step). - http://developer.android.com/guide/topics/wireless/bluetooth.html On 30 dez 2009, 03:30, prabhu narendraprabh...@gmail.com wrote: I want to implement an application which can successfully transfer a file from my android eclair device to any otherbluetoothdevice. After device discovery and pairing, I'm trying to connect with a remotebluetoothdevice using: BluetoothSocket socket = mbluetoothdevice.createrfcommsockettoservicerecord(uuid); I'm explicitly specifying the uuid for Object push like, UUID uuid = UUID.fromstring(1105--1000-8000-00805F9B34FB); once i try, socket.connect(); I receive BluetoothSocket.ACL_CONNECTED intent, and two or more android.bleutooth.extra.UUID intents, later the connection is shutting off immediately. Even I'm trying to use outputstream.write(int); to transfer the data, but it's not working well for me. Please if anybody know the solutions, kindly help me out, mail me at narendraprabh...@gmail.com or post back here please... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Bouncycastle encryption algorithms and android
I'm trying to use BouncyCastle with android to implement ECDH and EL Gamal. I've added the bouncycastle jar file (bcprov-jdk16-144.jar) and written some code that works with my computers jvm however when I try and port it to my android application it throws: java.security.NoSuchAlgorithmException: KeyPairGenerator ECDH implementation not found A sample of the code is: Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider()); java.security.KeyPairGenerator keyGen = org.bouncycastle.jce.provider.asymmetric.ec.KeyPairGenerator.getInstance (ECDH, BC); ECGenParameterSpec ecSpec = new ECGenParameterSpec(prime192v1); keyGen.initialize(ecSpec, SecureRandom.getInstance(SHA1PRNG)); KeyPair pair = keyGen.generateKeyPair(); PublicKey pubk = pair.getPublic(); PrivateKey prik = pair.getPrivate(); I then wrote a simple program to see what encryption algorithms are available and ran it on my android emulator and on my computers jvm the code was: SetProvider.Service rar = new org.bouncycastle.jce.provider.BouncyCastleProvider().getServices(); IteratorProvider.Service ir = rar.iterator(); while(ir.hasNext()) System.out.println(ir.next().getAlgorithm()); On android I do not get any of the EC algorithms while ran normally on my computer it's fine. I'm also getting the following two errors when compiling for a lot of the bouncy castle classes: 01-07 17:17:42.548: INFO/dalvikvm(1054): DexOpt: not resolving ambiguous class 'Lorg/bouncycastle/asn1/ASN1Encodable;' 01-07 17:17:42.548: DEBUG/dalvikvm(1054): DexOpt: not verifying 'Lorg/ bouncycastle/asn1/ess/OtherSigningCertificate;': multiple definitions One method I tried which has not worked is: I took the bouncycastle source code and made a new jar with the package name changed so that I wouldn't get the DexOpt errors, I also added android.jar before creating the jar so that I wouldn't get the Conversion to Dalvik format failed: Unable to execute dex: null error when building. This removed the DexOpt errors and when I ran the code to see what cryptographic algorithms are allowed it said that El Gamal and ECDH are available but I still get the same errors and exceptions thrown when trying my sample code. What am I doing wrong? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Edinburgh design agency looking for local Android Developers
Are you based in Scotland (or Edinburgh)? If so we are a design agency based in the West End of Edinburgh looking for a junior developer to prototype, develop and experiment with us on some pilot apps for our clients. For more info and to arrange a chat please send a CV with email outlining your interest and experience in Android and / or mobile development. Keen graduates with Java skills but no Android experience welcome, Phillip -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to best maintain two different versions of the same app?
I have spent some time trying to solve the same task in different ways and at the 1st end came to 2 mostly identical projects variant and at the 2nd end came to even more simple solution as suggested above - I have 1 project for both basic and pro versions, and basic version can become pro version at runtime depending on some constant in the code (in order to do this had to make difference with basic and pro versions minimal in order to avoid messing the code) because it was very hard to maintain 2 similar projects at the same time without using some kind of advanced tools like git or something like that. You can have the shared code in the dependency project, but it can have only basic java code - no activities, shared resources and any other staff which should use generated R.java. You even will not be able to load layout.xml file by hands and set it as activity layout at runtime (if you would try to avoid using R.java with such hack) - there is API for that, but it thows runtime exception at some moment. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en