[android-developers] Re: How much money do you make?
But how do you get featured? Our sports app is in top 5 and has been there 6 months. Never been featured. ESPN apps are always featured. Does it favor US sports apps? Ours is a soccer one... Would be great if we knew how they were chosen. On Sep 18, 11:13 pm, Dianne Hackborn hack...@android.com wrote: On Sat, Sep 18, 2010 at 1:43 PM, TreKing treking...@gmail.com wrote: 3 - The system is skewed to the big guys. The only apps I ever see featured are those by big name companies (including Google themselves) that steal all the attention and really don't need the promotional help to begin with. Hm currently featured on my phone... Kids Shape Puzzle by anahoret ESPN Fantasy Footbal by ESPN Inc Glyder 2 by Glu Mobile Deadly Chambers by Battery Powered Games Shanghai Travel Guide by Urban, Inc Radio Ball 3D by Awesome Software Kaplan GRE Exam Vocabulary by gWhiz Mobile On the Go by Five Pumpkins Miami Dolphins by Mobile Roadie Sporting News Pro Football by The Zumobi Network Tumblr by Tumblr Tank Recon 3D by Lone Dwarf Games Inc Amtalee by frostream RD3 - Groovebox by mikrosonic Taylor Swift by Mobile Roadie Granted, most of those companies I've not really heard of, so I can't say for sure whether they are big guys, but it seems reasonably balanced to me. And not a Google app in sight. ;) -- 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: appbucket: all apps for $9.99 per year, are we just going to watch?
It would certainly be difficult if not impossible to sign up for a GMail account while sitting at a MacDonalds, Starbucks or other free wifi location. How in the world could this be tracked back to the person who instigated the account? I would say impossible. With all the free wifi's around, anonymity is easily obtained. But I digress from the OP's topic... -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: webview javascript injection
can noone help me? 2010/9/17 Marco Alexander Schmitz marco.alexander.schm...@googlemail.com hi, I'd like to call a JavaScript function out of Java. Well, the following source code works fine for me (http:// whyandroid.com/android/206-using-webviews.html): /** * This is not called on the UI thread. Post a runnable to invoke * loadUrl on the UI thread. */ public void clickOnAndroid() { mHandler.post(new Runnable() { public void run() { mWebView.loadUrl(javascript:wave()); } }); } My problem now is to use a parameter for the JavaScript function. Let's assume I've got some XML (just like AJAX somehow). I need to escape it just like the iPhone / Objective-C command stringByEvaluatingJavaScriptFromString does. Who can help me on this? Thanks a lot, DaRolla PS: this link maybe helps: http://lexandera.com/2009/01/injecting-javascript-into-a-webview/#comments -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: IntentService: Sending Message to a handler on dead thread
Mark: Thanks you very much for answering my questions. IntentService already uses a background thread for onHandleIntent(). Hence, do not use AsyncTask -- just execute your code in onHandleIntent(). 2. How can such exceptions be avoided? Do not use AsyncTask -- just execute your code in onHandleIntent(). Also, you might consider using a WakefulIntentService, or your own pattern derived from it, to keep the device awake while you are doing work: http://github.com/commonsguy/cwac-wakeful I have removed the extra level of threading from the IntentService class. Now, the logic runs inside onHandleIntent() and not as a AsyncTask. Also, I am going to sub class your WakefullIntentService class and see who things work out. 3. What happens when the device sleeps? All processes and threads are suspended. 4. I've read somewhere that if the network connectivity is through WiFi, it is disabled when the device sleeps. Correct. What are the cases that a developer should take care of when a device wakes up? That is impossible to answer in the abstract. A few questions about WiFi states: I am starting this service from an component which is invoked periodically by the AlarmService. This service attempts to connect to a remote server and fetch the data. Assuming that a device goes to sleep and Wifi connection is dropped, how should I code my remote connection setup and data transfer calls? Will the device still try to connect via WiFi, timeout and then try to connect via GPRS or whatever? What checks should I be doing? Should I listen to WiFi state changes and use it somehow? Presently, I have wrapped the remote connection call with a predicate that checks the Network State. If the device is not connected to the network(via any medium), an attempt is not made to connect to the remote server. If the official documentation details on this or If you've written about it somewhere please share and oblige me. Thanks again and have a nice day! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Widget Configuration Activity issue
19.09.2010 6:08, Chris пишет: I'm having an issue with a config activity for a widget. According to the dev docs, if I specify a configuration activity than the onUpdate method of the AppWidgetProvider doesn't get called until after you request an update once you've completed the configuration activity. For me its happening in reverse, the onUpdate method of the AppWidgetProvider gets called first, followed by the configuration activity. Then the onUpdate method is never called after completion of the config activity even though I request it explicitly. I tried with level 4 and level 7 API, same result. Here is some of the source: onUpdate getting called before the config activity is done is normal (i.e. Android does things this way, not sure it's a good thing, but it's not something specific to your code), the widget is hidden at this point. Not sure what you mean by requesting an update - what config activity is supposed to do is build a RemoteViews object and push it manually to the widget using appWidgetManager.updateAppWidget(widget id, remote views); Using a config activity can result in some issues with stale widget ids (if the user cancels). I've documented my experiences with it here: http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-widgets/ -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Getting the height of a TextView
Before a view can draw on the canvas, the width height will be 0, you can get them in the onDraw() of the view. On Sun, Sep 19, 2010 at 11:46 AM, Bret Foreman bret.fore...@gmail.comwrote: I have a TextView where I have called setText() and setWidth(). This causes the text to wrap and the view to grow longer with more text, which is what I want. But I have some other graphics that I want to position relative to the resulting height of the TextView. I tried calling getHeight() (after setting text and width) and that method returned 0. So how can I find the height of the TextView? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- To Be Greate... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: android emulator is slow on vmware
ok thanx every body I may need extra hardware like ram or processor. regards On Sat, Sep 18, 2010 at 3:16 AM, Lance Nanek lna...@gmail.com wrote: Took 28 seconds to go from pressing Launch to the Press Menu to unlock screen on Windows here, when I timed it just now. 24 when I killed it and ran it again. Tested using an Android 1.5 emulator image with a 64MB SD card image on a 2.8GHz Core 2 Duo laptop with an SSD running Windows 7. The Android 1.5 emulator gets better frame rate in OpenGL than newer Android versions, so I tend to use that, if I have to use an emulator instead of a device. What speed computer are you using that it takes 15 minutes? I didn't even kill Eclipse, which is sucking up massive amounts of memory like usual. -Lance On Sep 17, 8:28 pm, DanH danhi...@ieee.org wrote: Of course, keep in mind that it takes longer than 5 minutes (something like 15) to cold-start the Android emulator on straight windows. On Sep 17, 11:11 am, Ahmad Musa bzu.ah...@gmail.com wrote: hi all, I am using windows XP, and my android development environment is on ubuntu installed inside vmware. all java applications I write on eclipse are running just fine, when it comes to an android app, the simulator is just killing me, it takes about 5 minutes to start my app. please respond to me by email. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Eng. Ahmad R. Musa +972543115260 ahmad.m...@exalt.ps ahmad_ah...@ritaj.ps bzu.ah...@gmail/live.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to rotate screen by program code but not accelerometer sensor?
You can set the orientation of the app in your manifest using android:screenOrientation on your activity element. That will hard-code it to rotate to landscape or portrait by default, then just use SENSOR_DELAY_UI when creating the handler as I think that's the slowest and uses the least battery. Maybe you can switch between landscape and portrait by modifying the activity since it's exposed in the xml it is probably exposed in the api too. Adam On Sep 18, 10:59 pm, San Zhang dahua007...@gmail.com wrote: I known it can be disabled by Settings. My meaning is if there are APIs to manage rotate screen on system level but not my app only. 2010/9/19 Dianne Hackborn hack...@android.com On Fri, Sep 17, 2010 at 5:17 PM, San Zhang dahua007...@gmail.com wrote: 2. Accelerometer consumed power greatly. The power needed for the accelerometer is trivial next to the power needed for the screen. -- 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SendLog
Hi all, I discovered the useful sendlog app. I was just wondering: is there a way to open sendlog generated files with ddms in order to take advantage of nice formatting and filtering?? Thanks, Federico -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: testing android app for different devices
That is a very open-ended question. But I can make a good start on answering it by saying: 1) before you even test on various phones, you should test in the emulator using AVD files for versions 1.5, 1.6, 2.0, 2.1 and 2.2 and with a variety of different screen sizes and densities. Complete coverage is a good idea (large screen, small screen, normal; medium, low and high density). 2) Depending on what you are doing, you may need to test on multiple vendors and models of phones for each of the combinations listed in 1. This is because multimedia support has different limitations and bugs on different phones and versions. Similarly with OpenGL: what looks fine on one vendors phone may look bad on another; it may even crash. 3) If you are doing a r-e-a-l simple app, you can get away with less. But be careful. Do Google searches in these groups and elsewhere to determine what the fragmentation is like for the particular Android features your app requires. On Sep 18, 2:24 pm, Tabman tabishfay...@gmail.com wrote: hello my app works fine on samsung galaxy and nexus one. It is giving problem on htc incredible. How should I test my application for various phones ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 much money do you make?
Sure, you can give away a T-Shirt or Cup or stuff like that and probably not get into conflict with the TOS, but then you're just running an on-line shop + it requires you have an artist/designer to produce something worth giving away. And I'd say you still risk being slapped with 4.5 (Non-compete - thou shall not put stuff on the market to sell stuff outside the market). Of course, enabling stuff in the game as thanks for the donation would run into 3.3 (bypassing the payment processor). Hasn't stopped lots of developers from doing just this, of course. Regards, Michael A. On Sep 19, 12:18 am, Mark Murphy mmur...@commonsware.com wrote: On Sat, Sep 18, 2010 at 6:15 PM, Michael A. michael.aki...@gmail.com wrote: I have also had a few individuals donating money for the app which really impresses me, since the Android Market TOS forbids me to offer any incentives to in return for such donations (and I note this in the app). Out of curiosity, what clause in the TOS do you think applies in that case? If you want to give donors a T-shirt, I'm unaware of any TOS clauses that would prohibit this. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 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: What's happening to my posts here? Is someone deleting them?
Google seems to have a philosophy of tinkering with stuff, getting things to a point where they kinda work, but have issues - then they get bored and move on to the next thing and can't be bothered with fixing the lingering problems. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices Case in point is the new Google music service. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Running activity from my local service
Hi all, I'm trying to run an activity that raise a camera surface, takes a picture and then gone until the next interval. On the first cycle it works well, but on the second cycle it raise an exception. Here is my code (PicTakerActivity is raised on every cycle): http://pastebin.com/MzPZNjwY Here is the log from the start of the service (MyService): http://pastebin.com/HbBT9zHV Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How much money do you make?
On Sun, Sep 19, 2010 at 5:39 AM, Michael A. michael.aki...@gmail.com wrote: Sure, you can give away a T-Shirt or Cup or stuff like that and probably not get into conflict with the TOS, but then you're just running an on-line shop + it requires you have an artist/designer to produce something worth giving away. You need the logo, anyway, for your Web site, ad banners, business cards, and so on. Given the logo, other donation-ware is fairly straightforward. And I'd say you still risk being slapped with 4.5 (Non-compete - thou shall not put stuff on the market to sell stuff outside the market). You really need to consult qualified legal counsel. IANAL, but IMHO 4.5 does not mean what you think it means. That is the anti-Al Sutton clause, prohibiting you from distributing on the Market a client for a competing market. Of course, enabling stuff in the game as thanks for the donation would run into 3.3 (bypassing the payment processor). I agree with you here. My point was that the TOS does not block all freemium/donation strategies. The closer you get to enabling app features, the more likely it is the TOS will be a problem. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: webview javascript injection
On Sun, Sep 19, 2010 at 3:02 AM, Marco Alexander Schmitz marco.alexander.schm...@googlemail.com wrote: can noone help me? See URLEncoder. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Better Dev Tools
Dear Keith, Our MobiForms mobile development tool is the answer to your prayers!!! MobiForms was the world's first rapid application development tool designed for specifically for Google Android smartphones. Additionally, the same app will run on other platforms like Windows Mobile without reconfiguration. In one compact solution MobiForms replaces the need to download, configure and learn 100s MB of diverse tools such as Eclipse, the Android SDK, Droid Draw, Java or XML etc. MobiForms removes the need to learn low level code such as Java or C. With MobiForms apps that would traditionally take hours or days can be created in minutes using the mainly drag and drop MobiForms development and delpoyment environment. MobiForms is ideal for creating professional business database apps. MobiForms can connect directly to a host of industry standard databases such as Oracle and SQL Server (using a secure Wi-Fi network or phone network with a private APN) or for partially disconnected apps using the MobiForms Sync Server for offline buffering and online synchronisation. MobiForms is a proven technology used by hundreds of customers all over the world to create field service, inspection, stock control and CRM apps etc. We have just released MobiForms 5.03 now with native Google Android support for the camera and GPS integration. Ideal for ideal for adding photos to inspection reports and location capture to field service or lone worker apps. For more information please go to: http://www.mobiforms.com. Kind regards, Tim @ MobiForms KPK wrote: Hello Google: I'm sure I'm not the first one to say this, but for goodness sakes, we need a very good Android UI builder plugin for Eclipse or whatever other java tools developers are using (I use Eclipse). A nice toolbox docked on the side where I can drag and drop controls to the screen/form and then allow me to set the properties in the prop inspector and then create events, etc. I've got ideas for some business applications and I HATE having to deal with main.xml. Droid Draw is okay, but it is a far cry from having a good UI plugin. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Better Dev Tools
On Sun, 19 Sep 2010 03:22:47 -0700, Tim wrote: Dear Keith, Our XXX mobile development tool is the answer to your prayers!!! Please stop spamming. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: database difficulties
Dear Damien, You may be interested in looking at our MobiForms Developer. MobiForms is a rapid mobile application development tool ideal for creating professional business database apps. MobiForms can connect directly to a host of industry standard databases such as Oracle and SQL Server (using a secure Wi-Fi network or phone network with a private APN) or for partially disconnected apps using the MobiForms Sync Server for offline buffering and online synchronisation. MobiForms is a proven technology used by hundreds of customers all over the world to create field service, inspection, stock control and CRM apps etc. MobiForms was the world's first rapid application development tool designed for specifically for Google Android smartphones. Additionally, the same app will run on other platforms like Windows Mobile without reconfiguration. In one compact solution MobiForms replaces the need to download, configure and learn 100s MB of diverse tools such as Eclipse, the Android SDK, Droid Draw, Java or XML etc. We have just released MobiForms 5.03 now with native Google Android support for the camera and GPS integration. Ideal for ideal for adding photos to inspection reports and location capture to field service or lone worker apps. For more information please go to: http://www.mobiforms.com. Kind regards, Tim @ MobiForms Damien wrote: Hi All, I am just starting with Android development. I am looking to port one of my iPhone apps to Android as a project to get going. I have an exiting database that I would like to use. So I have subclassed SQLiteOpenHelper and I open the database for writing then close it this should create the database, then I copy the database I have from my assts directory over the freshly created database file. It turns out my directory /data/data/com.mycompany.MyApplication/ databases does not exist. Ok so I try to crate it with File.mkdirs() and it laughs at me and does not create the directory. If anyone has had an issue like this I would love to hear how it was solved. The phone I am using is a HTC Desire running Android 2.1 update 1. Regards Damien -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using Eclipse - can it get faster?
Hi all. I'm sure like many of you, I use Eclipse for my development. The problem with it is, I find it incredibly memory hungry... it often takes ages to load up, when I save a file it hangs for a while (saying Building workspace in the bottom right hand corner), and is just generally slow. I wondered if anyone had any tips for streamlining it for Android. I don't use it for anything else (if necessary, I will install a separate instance for general Java stuff) so I can't help thinking there are lots of modules and stuff I could get rid of which may help it run more smoothly. Anyone have some tips on 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: rotate screen180 degress
I came across another post to help me. But when I use FlipLayout in my view all I get it a black screen. However if I change the rotation from 180 to 0 all is drawn ok. But I want my screen upside down. Whats going on here? import android.content.Context; import android.graphics.Canvas; import android.graphics.Matrix; import android.util.AttributeSet; import android.view.MotionEvent; import android.widget.LinearLayout; public class FlipLayout extends LinearLayout { private Matrix mMatrix = new Matrix(); private float[] mTemp = new float[2]; public FlipLayout(Context context, AttributeSet attr) { super(context, attr); mMatrix.postRotate(180); } @Override protected void dispatchDraw(Canvas canvas) { int sc = canvas.save(); canvas.setMatrix(mMatrix); super.dispatchDraw(canvas); canvas.restoreToCount(sc); } @Override public boolean dispatchTouchEvent(MotionEvent event) { final float[] temp = mTemp; temp[0] = event.getX(); temp[1] = event.getY(); mMatrix.mapPoints(temp); event.setLocation(temp[0], temp[1]); return super.dispatchTouchEvent(event); } } On Sep 19, 3:13 pm, rukiman ruksh...@optushome.com.au wrote: I have a need to rotate the views in my activities by 180 degrees. Any good suggestions on how to do this? Taking into account touch inputs still working. My activity is made up of several views in a linearlayout and also makes use of toasts. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: testing android app for different devices
Indicator, Thanks for a detailed answer. For anyone who come across this post the following could be a solution to the fragmentation problem: http://duarlander.ning.com/ Promote this community, developers can help other developers. On Sep 19, 12:03 pm, Indicator Veritatis mej1...@yahoo.com wrote: That is a very open-ended question. But I can make a good start on answering it by saying: 1) before you even test on various phones, you should test in the emulator using AVD files for versions 1.5, 1.6, 2.0, 2.1 and 2.2 and with a variety of different screen sizes and densities. Complete coverage is a good idea (large screen, small screen, normal; medium, low and high density). 2) Depending on what you are doing, you may need to test on multiple vendors and models of phones for each of the combinations listed in 1. This is because multimedia support has different limitations and bugs on different phones and versions. Similarly with OpenGL: what looks fine on one vendors phone may look bad on another; it may even crash. 3) If you are doing a r-e-a-l simple app, you can get away with less. But be careful. Do Google searches in these groups and elsewhere to determine what the fragmentation is like for the particular Android features your app requires. On Sep 18, 2:24 pm, Tabman tabishfay...@gmail.com wrote: hello my app works fine on samsung galaxy and nexus one. It is giving problem on htc incredible. How should I test my application for various phones ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Eclipse - can it get faster?
Runs pretty well out of the box on my laptop -- 2MHz dual CPU with 4G RAM, running Vista. Not lightning fast, mind you, but certainly not painfully slow (though emulator startup the very first time can be benchmarked with a calendar). I'm guessing that having enough RAM is important. On Sep 19, 6:07 am, Neilz neilhorn...@gmail.com wrote: Hi all. I'm sure like many of you, I use Eclipse for my development. The problem with it is, I find it incredibly memory hungry... it often takes ages to load up, when I save a file it hangs for a while (saying Building workspace in the bottom right hand corner), and is just generally slow. I wondered if anyone had any tips for streamlining it for Android. I don't use it for anything else (if necessary, I will install a separate instance for general Java stuff) so I can't help thinking there are lots of modules and stuff I could get rid of which may help it run more smoothly. Anyone have some tips on 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] refresh menu icon image
where can i get it it's not here http://developer.android.com/guide/practices/ui_guidelines/icon_design.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to share data between applications with no dependency
Hello, I want to share data between 2 applications. the idea is both applications can write and read the SAME data and there is no dependency which one of the apps is installed or first created the data. I have 2 version of the same app: regular and premium and I don't know which of them will be first installed and both of them can change it. I tried to use ContentProvider but the problem is that only the first app can create the Provider and when it is uninstalled it deletes that custom Provider. I want the Content to be kept for the second app. Also, I tried to use Settings.System which keeps the data regardless if the application is installed or not but I don't want to use the permission for that (it is very problematic from user perspective). BTW, it seems that I can change ANY of the Settings.System which is not secured from Android OS perspective - but this is a subject for other post. I see only one left choice using a File for that but, I wanted to know if I can use another way? Thanks, ayanir -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Using Eclipse - can it get faster?
I hope you have 2 Ghz cpu, and not Mhz :P hehe Anyway, to the OP, if you have a large project then the Build Automatically feature of Eclipse might be quite frustrating sometimes (since every time you save a file, the project is compiled). You might try disabling it (by selecting Project -- Build Automatically). Then you can build your project manually. Hope it helps, Yuvi On Sun, Sep 19, 2010 at 2:04 PM, DanH danhi...@ieee.org wrote: Runs pretty well out of the box on my laptop -- 2MHz dual CPU with 4G RAM, running Vista. Not lightning fast, mind you, but certainly not painfully slow (though emulator startup the very first time can be benchmarked with a calendar). I'm guessing that having enough RAM is important. On Sep 19, 6:07 am, Neilz neilhorn...@gmail.com wrote: Hi all. I'm sure like many of you, I use Eclipse for my development. The problem with it is, I find it incredibly memory hungry... it often takes ages to load up, when I save a file it hangs for a while (saying Building workspace in the bottom right hand corner), and is just generally slow. I wondered if anyone had any tips for streamlining it for Android. I don't use it for anything else (if necessary, I will install a separate instance for general Java stuff) so I can't help thinking there are lots of modules and stuff I could get rid of which may help it run more smoothly. Anyone have some tips on 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: appbucket: all apps for $9.99 per year, are we just going to watch?
I'm surprised everyone is focused on what the app developers can do. The people responsible for the market need to remove this stuff, it can't be so hard. I waited a few weeks then posted on Market Help. Amazed they've not done anything, it looks really bad having an advert to cracked apps at the top of all the paid app comments. I mean really. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Eclipse - can it get faster?
Neilz wrote: The problem with it is, I find it incredibly memory hungry... it often takes ages to load up, when I save a file it hangs for a while (saying Building workspace in the bottom right hand corner), and is just generally slow. Building the workspace requires a lot of disk I/O operations. If your HDD is slow or your system needs to swap out memory this can take ages. Using a SSD and enough RAM Eclipse is lightning fast. Robert -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] refresh menu icon image
You can find that image in the android sdk folder, under ./platforms/android-XX/data/res/drawable-hdpi (or just drawable). Then look for ic_menu_refresh.png. In general you should use instead android.R.drawable.XX, but in this case it seems that the refresh icon is not made public. YuviDroid On Sun, Sep 19, 2010 at 2:09 PM, dashman erjdri...@gmail.com wrote: where can i get it it's not here http://developer.android.com/guide/practices/ui_guidelines/icon_design.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to share data between applications with no dependency
On Sun, Sep 19, 2010 at 8:12 AM, ayanir ayanir...@gmail.com wrote: I want to share data between 2 applications. the idea is both applications can write and read the SAME data and there is no dependency which one of the apps is installed or first created the data. I have 2 version of the same app: regular and premium and I don't know which of them will be first installed and both of them can change it. That will be difficult. I tried to use ContentProvider but the problem is that only the first app can create the Provider and when it is uninstalled it deletes that custom Provider. Correct. I want the Content to be kept for the second app. That is only possible if you store it on external storage. Also, I tried to use Settings.System which keeps the data regardless if the application is installed or not but I don't want to use the permission for that (it is very problematic from user perspective). I have no idea what you are talking about. BTW, it seems that I can change ANY of the Settings.System which is not secured from Android OS perspective - but this is a subject for other post. Correct. The secure ones are in Settings.Secure. I see only one left choice using a File for that but, I wanted to know if I can use another way? A file on external storage is the only thing that survives an uninstall and is reachable by two applications. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] refresh menu icon image
On Sun, Sep 19, 2010 at 8:22 AM, YuviDroid yuvidr...@gmail.com wrote: In general you should use instead android.R.drawable.XX, but in this case it seems that the refresh icon is not made public. Actually, Google has advised against this. OEMs can, and do, change these images. The result may clash with the rest of your images. If you want the image to remain consistent, you need to copy it into your own app. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] refresh menu icon image
Ah ok, I didn't know that. I though it was a good idea so that with newer versions of Android your images were automatically upgraded. Thanks for the info! On Sun, Sep 19, 2010 at 2:24 PM, Mark Murphy mmur...@commonsware.comwrote: On Sun, Sep 19, 2010 at 8:22 AM, YuviDroid yuvidr...@gmail.com wrote: In general you should use instead android.R.drawable.XX, but in this case it seems that the refresh icon is not made public. Actually, Google has advised against this. OEMs can, and do, change these images. The result may clash with the rest of your images. If you want the image to remain consistent, you need to copy it into your own app. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to share data between applications with no dependency
You could write a content provider app that installs independent of either of your apps. Then each of your apps could check for and ask to install the content provider as appropriate. May not be the simplest but it's a choice. On Sep 19, 2010 8:23 AM, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 19, 2010 at 8:12 AM, ayanir ayanir...@gmail.com wrote: I want to share data between ... That will be difficult. I tried to use ContentProvider but the problem is that only the first app can create the Provid... Correct. I want the Content to be kept for the second app. That is only possible if you store it on external storage. Also, I tried to use Settings.System which keeps the data regardless if the application is inst... I have no idea what you are talking about. BTW, it seems that I can change ANY of the Settings.System which is not secured from Android OS... Correct. The secure ones are in Settings.Secure. I see only one left choice using a File for that but, I wanted to know if I can use another way... A file on external storage is the only thing that survives an uninstall and is reachable by two applications. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 share data between applications with no dependency
On Sun, Sep 19, 2010 at 9:23 AM, Prakash Iyer thei...@gmail.com wrote: You could write a content provider app that installs independent of either of your apps. Then each of your apps could check for and ask to install the content provider as appropriate. May not be the simplest but it's a choice. Except it won't support the data survives uninstall requirement: -- User installs App A -- App A realizes the provider isn't there and enables its own copy of the provider -- Life is good -- User installs App B -- App B sees that App A's provider is there, uses it -- Life is still good -- User uninstalls App A, wiping out the data -- App B sees that App A's provider isn't there and enables its own copy of the provider -- User sees the data is gone -- User is unhappy -- Life is not so good -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 share data between applications with no dependency
I might be missing something. I was proposing content provider as an app of it's own, much like say how some of the file managers provide security modules. So when A is installed the content provider is not. Of course the user can go and just install the content provider but that's no different than if the user deleted the file I guess. On Sep 19, 2010 9:28 AM, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 19, 2010 at 9:23 AM, Prakash Iyer thei...@gmail.com wrote: You could write a content... Except it won't support the data survives uninstall requirement: -- User installs App A -- App A realizes the provider isn't there and enables its own copy of the provider -- Life is good -- User installs App B -- App B sees that App A's provider is there, uses it -- Life is still good -- User uninstalls App A, wiping out the data -- App B sees that App A's provider isn't there and enables its own copy of the provider -- User sees the data is gone -- User is unhappy -- Life is not so good -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware... Groups Android Developers group. To post to this group, send email to android-develop...@googlegro... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 need complete code of http and php for file upload from android to php server please help me!!!
Dear Members, Please Please help me!!! I need the java code for sending file from android and then a php code to accept that file and store in my server. I tried lots of code available on internet but have not succeeded :( i am using latest Android SDK. Please provide me with complete code if some one has. I am working on this issue from last 14 days and it's still not resolved :( Regards, 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] I need complete code of http and php for file upload from android to php server please help me!!!
Sure. You can find it here, http://www.catb.org/esr/faqs/smart-questions.html Will you take fries and a drink with that? On Sep 19, 2010 9:36 AM, David Harris bumpy...@gmail.com wrote: Dear Members, Please Please help me!!! I need the java code for sending file from android and then a php code to accept that file and store in my server. I tried lots of code available on internet but have not succeeded :( i am using latest Android SDK. Please provide me with complete code if some one has. I am working on this issue from last 14 days and it's still not resolved :( Regards, 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.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] Activity/Intents inTabs
Developers. I am a newbie to Android but a seasoned developer in UI, Java , and ECLIPSE. I am trying to do something I believe is very simple yet I am struggling. I have two tabs, A B. I want to put an Activity in each tab. I want to have the 'B' Activity live inside 'A' so I can access it within 'A'. 'A' has a clock and every second that passes I need to update information in 'B', even if 'A' is not currently shown. I put 'B' into the 2nd tab as follows: TabSpec mapInfo=tabs.newTabSpec(tag3); Intent intent = new Intent(this, MathleteMapActivity.class); mapInfo.setContent(intent); mapInfo.setIndicator(Course Map); tabs.addTab(mapInfo); I am totally confused on how to get the MathleteMapActivity Activity from the Intent 'intent'. There appears no way to do this. Can anyone please recommend a cleaner way to do this knowing what I am trying to do? Thanks in advance. Chris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] File extensions and MIME type
My app has two private file formats with distinctive extensions. How to I register their MIME types and associate them with file extensions? My understanding that then my app can be launched to handle a file. How is this done and how to extract the file path my app is launched to handle? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 share data between applications with no dependency
Can an application not place images or music in directories on the device, and have those files persist beyond the persistence of the app? On Sep 19, 7:23 am, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 19, 2010 at 8:12 AM, ayanir ayanir...@gmail.com wrote: I want to share data between 2 applications. the idea is both applications can write and read the SAME data and there is no dependency which one of the apps is installed or first created the data. I have 2 version of the same app: regular and premium and I don't know which of them will be first installed and both of them can change it. That will be difficult. I tried to use ContentProvider but the problem is that only the first app can create the Provider and when it is uninstalled it deletes that custom Provider. Correct. I want the Content to be kept for the second app. That is only possible if you store it on external storage. Also, I tried to use Settings.System which keeps the data regardless if the application is installed or not but I don't want to use the permission for that (it is very problematic from user perspective). I have no idea what you are talking about. BTW, it seems that I can change ANY of the Settings.System which is not secured from Android OS perspective - but this is a subject for other post. Correct. The secure ones are in Settings.Secure. I see only one left choice using a File for that but, I wanted to know if I can use another way? A file on external storage is the only thing that survives an uninstall and is reachable by two applications. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: File extensions and MIME type
I'd suggest that you get yourself a good Android reference ... only there isn't one. However, even a mediocre reference such as Pro Android 2 covers this topic in more complete detail than you're likely to get asking here. On Sep 19, 9:08 am, ls02 agal...@audible.com wrote: My app has two private file formats with distinctive extensions. How to I register their MIME types and associate them with file extensions? My understanding that then my app can be launched to handle a file. How is this done and how to extract the file path my app is launched to handle? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to share data between applications with no dependency
On Sun, Sep 19, 2010 at 10:09 AM, DanH danhi...@ieee.org wrote: Can an application not place images or music in directories on the device, and have those files persist beyond the persistence of the app? On external storage, yes. In the directory obtained via getFilesDir() (/data/data/your.package.here/files), no. The whole /data/data/your.package.here directory is deleted on uninstall. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to share data between applications with no dependency
Yes. That's what I interpreted the OP saying when he says File is an option but he's looking for alternatives. On Sep 19, 2010 10:10 AM, DanH danhi...@ieee.org wrote: Can an application not place images or music in directories on the device, and have those files persist beyond the persistence of the app? On Sep 19, 7:23 am, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 19, 2010 at 8:12 AM, ayanir ayanir...@gmail.com wrote: I want to share data betw... Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://skillsmatter.com/go/os-mobile-server -- You received this me... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] File extensions and MIME type
On Sun, Sep 19, 2010 at 10:08 AM, ls02 agal...@audible.com wrote: My app has two private file formats with distinctive extensions. How to I register their MIME types and associate them with file extensions? My understanding that then my app can be launched to handle a file. How is this done and how to extract the file path my app is launched to handle? Use the data element in your manifest and the android:mimeType attribute: intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / category android:name=android.intent.category.BROWSABLE / data android:mimeType=application/pdf / /intent-filter The BROWSABLE allows you to be launched by clicks in the browser. The Uri to the file is in getIntent().getData() in your activity. http://github.com/commonsguy/cw-advandroid/tree/master/Introspection/URLHandler/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Activity/Intents inTabs
On Sun, Sep 19, 2010 at 9:55 AM, cwgrc2 ch...@transformsw.com wrote: I have two tabs, A B. I want to put an Activity in each tab. Why? Why not just use a single activity? http://github.com/commonsguy/cw-android/tree/master/Fancy/Tab/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 share data between applications with no dependency
Thank you Mark. I'll go with the file on external storage. I think that there should be a general system ContentProvider for that exact purpose - I could only hope it will be one day... Prakash - you solution of installing a third app which contains the ContentProvider is not really an option for me but thanks. could you please refer me to an example how to create/read a file using the external storage? thanks' ayanir On Sep 19, 4:09 pm, DanH danhi...@ieee.org wrote: Can an application not place images or music in directories on the device, and have those files persist beyond the persistence of the app? On Sep 19, 7:23 am, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 19, 2010 at 8:12 AM, ayanir ayanir...@gmail.com wrote: I want to share data between 2 applications. the idea is both applications can write and read the SAME data and there is no dependency which one of the apps is installed or first created the data. I have 2 version of the same app: regular and premium and I don't know which of them will be first installed and both of them can change it. That will be difficult. I tried to use ContentProvider but the problem is that only the first app can create the Provider and when it is uninstalled it deletes that custom Provider. Correct. I want the Content to be kept for the second app. That is only possible if you store it on external storage. Also, I tried to use Settings.System which keeps the data regardless if the application is installed or not but I don't want to use the permission for that (it is very problematic from user perspective). I have no idea what you are talking about. BTW, it seems that I can change ANY of the Settings.System which is not secured from Android OS perspective - but this is a subject for other post. Correct. The secure ones are in Settings.Secure. I see only one left choice using a File for that but, I wanted to know if I can use another way? A file on external storage is the only thing that survives an uninstall and is reachable by two applications. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to share data between applications with no dependency
On Sun, Sep 19, 2010 at 10:32 AM, ayanir ayanir...@gmail.com wrote: I think that there should be a general system ContentProvider for that exact purpose - I could only hope it will be one day... I rather doubt that will happen, at least in terms of the core OS. Android is very determined to avoid applications leaving crap behind, even if, in your case, that crap is intentional. could you please refer me to an example how to create/read a file using the external storage? Add the WRITE_EXTERNAL_STORAGE permission to your app. Use Environment.getExternalStorageDirectory() to get the path to external storage. From there, it is standard Java I/O to read and write files. Use Environment.getExternalStorageState() and the ACTION_MEDIA_ broadcast Intents to monitor when external storage is available. Note that, since the user can mount external storage on a host computer, external storage is not available 100% of the time. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Activity/Intents inTabs
Hi Mark. I have bought your book and re-read the Put it on my Tab section several times. I have two activities because your book recommends using different ones to cature different grouping of Widgets. So my main Actvity has one page (tab) of Widgets that collect the information and start a stopwatch, then that information feeds into a MapActivty that is on a different tab. Again, each tab has many different things on them and I want to be able to freely communicate between them. Thanks, Chris On Sep 19, 8:27 am, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 19, 2010 at 9:55 AM, cwgrc2 ch...@transformsw.com wrote: I have two tabs, A B. I want to put an Activity in each tab. Why? Why not just use a single activity? http://github.com/commonsguy/cw-android/tree/master/Fancy/Tab/ -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 much money do you make?
On Sep 19, 12:09 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 19, 2010 at 5:39 AM, Michael A. michael.aki...@gmail.com wrote: Sure, you can give away a T-Shirt or Cup or stuff like that and probably not get into conflict with the TOS, but then you're just running an on-line shop + it requires you have an artist/designer to produce something worth giving away. You need the logo, anyway, for your Web site, ad banners, business cards, and so on. Given the logo, other donation-ware is fairly straightforward. Depends. For me this is a part-time occupation, and I haven't found any of those necessary. And I'd say you still risk being slapped with 4.5 (Non-compete - thou shall not put stuff on the market to sell stuff outside the market). You really need to consult qualified legal counsel. IANAL, but IMHO 4.5 does not mean what you think it means. That is the anti-Al Sutton clause, prohibiting you from distributing on the Market a client for a competing market. I seriously doubt that the revenue generated from overpriced coffer mugs would justify the cost of legal counsel for something like this. :-) In any case, I did not say that 4.5 necessarily prohibits this activity - I said that you risk being slapped with 4.5. What a lawyer thinks the clause means is rather irrelevant, because if Google decides that this sort of activity violates 4.5, then it violates 4.5 (see 7.2 which specifically says that determining violations of the TOS are done at Google's sole discretion). Seeing as how I have yet to read of any app being taken off the market (or even warned) for bypassing the payment processor, I don't think this would actually become a problem, but I don't see the point in taking the risk just for a few extra dollars. There are many excellent freemium/donation strategies one can use. If you're outside the magic 12 (or is it 11) countries, though, I think you are pretty much screwed for reasonable options, though. Regards, Michael A. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] setImageViewResource not working
I have a simple widget (whose entire layout is just an ImageView) that starts and stops a service. From within the service, I'd like to switch the image displayed by such ImageView. So, i did this: public int onStartCommand(Intent intent, int flags, int startId){ RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.main); remoteViews.setImageViewResource(R.id.imgView, R.drawable.image1); ... ... return START_STICKY; } and public void onDestroy(){ RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.main); remoteViews.setImageViewResource(R.id.imgView, R.drawable.off); ... ... } But it doesn't work. onStartCommand and onDestroy are called, but the image doesn't change. What gives? Simone -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Activity/Intents inTabs
On Sun, Sep 19, 2010 at 10:41 AM, cwgrc2 ch...@transformsw.com wrote: Hi Mark. I have bought your book and re-read the Put it on my Tab section several times. I have two activities because your book recommends using different ones to cature different grouping of Widgets. I sure hope not. I'll need to fix that section. I have found zero good reasons for using activities in tabs. Having multiple activities as first-class UI components is great -- but for tabs, I recommend just using Views. Again, each tab has many different things on them and I want to be able to freely communicate between them. Which is precisely why you do *not* want those in separate Activities. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Possibility of a curved Gallery
Hi All, Is it possible to change the default arrangement of the Android Gallery? What i meant is can we make the Gallery in a curved path, where the images will be along the curved path and the same time it has all the properties of the Android gallery(which appears to be center locked and horizontal right now..)? If possible, please tell me your ideas. All ideas are welcome. Thanks Regards, Sen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How much money do you make?
19.09.2010 18:47, Michael A. пишет: In any case, I did not say that 4.5 necessarily prohibits this activity - I said that you risk being slapped with 4.5. What a lawyer thinks the clause means is rather irrelevant, because if Google decides that this sort of activity violates 4.5, then it violates 4.5 (see 7.2 which specifically says that determining violations of the TOS are done at Google's sole discretion). Seeing as how I have yet to read of any app being taken off the market (or even warned) for bypassing the payment processor, I don't think this would actually become a problem, but I don't see the point in taking the risk just for a few extra dollars. Having terms of use is one thing, enforcing them is quite another. I think it would take a pretty special application that violated the TOS for Google to actually notice and take action. Perhaps an app that made a lot of money bypassing Android Market, or an app that had really high visibility, or perhaps both. There are many excellent freemium/donation strategies one can use. If you're outside the magic 12 (or is it 11) countries, though, I think you are pretty much screwed for reasonable options, though. +1 to that. Especially ironic given that Google Checkout works in more counties. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Using Eclipse - can it get faster?
Using 64bit win7 with 2Gb RAm + high rpm hardisk is really fast..never had that problem.. On Sun, Sep 19, 2010 at 7:15 PM, Robert Kochem rob...@mailueberfall.dewrote: Neilz wrote: The problem with it is, I find it incredibly memory hungry... it often takes ages to load up, when I save a file it hangs for a while (saying Building workspace in the bottom right hand corner), and is just generally slow. Building the workspace requires a lot of disk I/O operations. If your HDD is slow or your system needs to swap out memory this can take ages. Using a SSD and enough RAM Eclipse is lightning fast. Robert -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Kind Regards - Lorensius W. L. T - - http://www.londatiga.net - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to share data between applications with no dependency
Thanks, it worked like a charm. On Sep 19, 4:39 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 19, 2010 at 10:32 AM, ayanir ayanir...@gmail.com wrote: I think that there should be a general system ContentProvider for that exact purpose - I could only hope it will be one day... I rather doubt that will happen, at least in terms of the core OS. Android is very determined to avoid applications leaving crap behind, even if, in your case, that crap is intentional. could you please refer me to an example how to create/read a file using the external storage? Add the WRITE_EXTERNAL_STORAGE permission to your app. Use Environment.getExternalStorageDirectory() to get the path to external storage. From there, it is standard Java I/O to read and write files. Use Environment.getExternalStorageState() and the ACTION_MEDIA_ broadcast Intents to monitor when external storage is available. Note that, since the user can mount external storage on a host computer, external storage is not available 100% of the time. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Eclipse - can it get faster?
Ah, well I guess it's just my PC build then. It's about 3 years old, and until the other day I had 3Gb Ram, but one of those fried and now I have just 1Gb. But to be honest the extra 2Gb barely made any difference, so I guess the overall motherboard/ processor spec just isn't good enough. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Getting the height of a TextView
What if I was to override TextView.onSizeChanged() and get the h value passed to that method? Will onSizeChanged get called at least once before the TextView is drawn? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] is there a way to make drawable clickable?
hi all, i am using drawable and translateobject to create animation on camera overlay. how do i get clickable drawable object? should i be using drawable? thanks! bryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Eclipse - can it get faster?
Being memory-bound and being disk-I/O-bound are nearly the same thing, since Windows can use extra memory for I/O caching. Being short of both memory and I/O speed is a fatal combination. On Sep 19, 9:18 am, Neilz neilhorn...@gmail.com wrote: Ah, well I guess it's just my PC build then. It's about 3 years old, and until the other day I had 3Gb Ram, but one of those fried and now I have just 1Gb. But to be honest the extra 2Gb barely made any difference, so I guess the overall motherboard/ processor spec just isn't good enough. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] any info about this?
Been using android 2.2 sdk 8 for my app development and i still get write permission denial... i saw more than one app in the Market which is able to delete/edit a bookmark so i know it's possible... Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: I need complete code of http and php for file upload from android to php server please help me!!!
Where are you stuck by the way? And yes, give some details please... -Kumar Bibek http://techdroid.kbeanie.com On Sep 19, 6:44 pm, Prakash Iyer thei...@gmail.com wrote: Sure. You can find it here, http://www.catb.org/esr/faqs/smart-questions.html Will you take fries and a drink with that? On Sep 19, 2010 9:36 AM, David Harris bumpy...@gmail.com wrote: Dear Members, Please Please help me!!! I need the java code for sending file from android and then a php code to accept that file and store in my server. I tried lots of code available on internet but have not succeeded :( i am using latest Android SDK. Please provide me with complete code if some one has. I am working on this issue from last 14 days and it's still not resolved :( Regards, 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp://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: Using Eclipse - can it get faster?
I don't find it too bad on a 6 year old box running ubuntu linux with 2.5gb of ram, though disabling auto build is a good idea on large projects. When I first installed it pre-android I had the wrong java runtime installation and you could literally watch it meter out keystrokes. I downloaded the recommended jdk, used its runtime, and eclipse became useable. Neilz wrote: Ah, well I guess it's just my PC build then. It's about 3 years old, and until the other day I had 3Gb Ram, but one of those fried and now I have just 1Gb. But to be honest the extra 2Gb barely made any difference, so I guess the overall motherboard/ processor spec just isn't good enough. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can ScrollView and Scrollbars in EditText co-exist?
Hi, I have a Dialog implemented with scrollview and a multiline edittext item in the scrollview. I see that I can use the scrollbar in the edittext as the scrollview will take over it. Can they co-exist and work together? Many thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Wrap text for EditText - automatically go to new line?
Hi,can I limit the edittext field so it wrap text around the input box instead of scrolling right unless I hit return? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: finding spinner widgets
When I set the spinner adapter to be: android.R.layout.simple_spinner_dropdown_item I am assuming there are variations on the android.R.layout 'types' that I could use, is there such a list? In terms of Dialog ID - what I am looking for is a picker dialog that I can add the data, is that possible? Thanks, intbt On Sep 10, 3:11 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 10, 2010 at 6:06 PM,intbtin...@tacberry.com wrote: Where can I find a complete list of the spinner types available for use? What do you mean by spinner types? Also how about a list of DIALOG IDs? What do you mean by DIALOG IDs? -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Eclipse - can it get faster?
Yes on two points: 1) Not just for Android, but with just about any use of Eclipse you want to turn off auto build. I probably did that subconsciously when I set up Android. 2) There are several different versions of Eclipse and several different versions of the JDK. I used what seemed to be recommended for Eclipse versioin, plus my existing JDK, and it worked out. No doubt there are other versions that aren't so good. You can have several different versions of Eclipse on your box (I have at least 3) without them fighting, so best to pick one specifically for Android vs trying to use one already installed for another purpose, and if you suspect you have the wrong version it's not that hard to try another. On Sep 19, 12:36 pm, Chris Stratton cs07...@gmail.com wrote: I don't find it too bad on a 6 year old box running ubuntu linux with 2.5gb of ram, though disabling auto build is a good idea on large projects. When I first installed it pre-android I had the wrong java runtime installation and you could literally watch it meter out keystrokes. I downloaded the recommended jdk, used its runtime, and eclipse became useable. Neilz wrote: Ah, well I guess it's just my PC build then. It's about 3 years old, and until the other day I had 3Gb Ram, but one of those fried and now I have just 1Gb. But to be honest the extra 2Gb barely made any difference, so I guess the overall motherboard/ processor spec just isn't good enough. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Wrap text for EditText - automatically go to new line?
Ok, I found it. android:scrollHorizontally=false On Sep 20, 2:07 am, Mystique joven.ch...@gmail.com wrote: Hi,can I limit the edittext field so it wrap text around the input box instead of scrolling right unless I hit return? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How much money do you make?
On Sat, Sep 18, 2010 at 4:13 PM, Dianne Hackborn hack...@android.comwrote: Granted, most of those companies I've not really heard of, so I can't say for sure whether they are big guys, but it seems reasonably balanced to me. Well sure, if you want to play the factual evidence game ... =P I guess I have I should not have generalized and said that's all I ever see - that was an overstatement. I should really start proof-reading my posts. My bad. Certainly that's not the case, but I does seem like there are generally more of these big name or otherwise already so ridiculously popular they really don't need the bump apps in the list than others. Currently 9 of the 15 I'm looking at (some of which are in your list as well) I think would fall in that category, and one developer has two apps featured! How's that fair!? And not a Google app in sight. ;) Sure, Google Employee tries to prove a point and there just happens to not be any Google apps. I smell conspiracy! On Sat, Sep 18, 2010 at 4:21 PM, Justin Giles jtgi...@gmail.com wrote: Reasonable post Agreed - I did over-generalize. I do think that list could stand with a little refreshing every once in a while though. As a user, I get tired of seeing the same apps in rotation - with however many thousands of apps there are now, I don't think it's that hard to find a new app to feature that has not already been. Also, the section in each category at the top that features apps from that category needs major work. In Paid Travel, at least, there are only ever two apps that this flips back and forth between (it used to be only one). This does not effect me personally as my paid app is in the top and visible anyway, but if this is how that thing works across all categories, it sucks for most developers. In the Free Travel section, two of the apps featured are Google Earth and Yelp, which are already featured ON THE SAME PAGE by being visible at the #2 and #6 spots, respectively. Shouldn't those promo spots go to apps that are nowhere near the top but have good apps and could use a little help? On Sat, Sep 18, 2010 at 6:18 PM, Howard M. Harte hhar...@gmail.com wrote: I had an Ad-supported version of my app for a while. It made less in several months than my paid app made in a day. Not worth it IMHO. Yeah, sounds terrible, but the only reason I really bother with ads in the free version is as more incentive for people to buy the paid. Otherwise the profit is so pathetic it just makes me sad. On Sat, Sep 18, 2010 at 6:29 PM, Leigh McRae leigh.mc...@lonedwarfgames.com wrote: I for one have been extremely happy with how I have been treated by Google. Easy to say when you've been featured! On Sun, Sep 19, 2010 at 1:27 AM, Chister Nordvik cnord...@gmail.com wrote: But how do you get featured? Would be great if we knew how they were chosen. That is the million dollar ... err ... $0.99 (ad-free!) ... question and we'll probably never know. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: After onActivityResult event State Is Gone (Droid Phones)
I think I'm missing something. If I add the string as an extra to the image picker intent, then show that intent, that extra is gone in the onActivityResult. Even with setResult it's still gone. This is on my HTC Hero: Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI); i.putExtra(url, url); setResult(1, i); startActivityForResult(i, 1); In the onActivityResult: String url = intent.getStringExtra(url); It's null. On Sep 17, 2:31 pm, GregAZ ggur...@gmail.com wrote: Thanks for the reply. I actually have tried putting it in the intent, but when I try to read it back out in the onActivityResult it's null. I think even on my Hero. I'll look at the setResult... I haven't tried that yet. On Sep 17, 1:10 pm, joebowbeer joe.bowb...@gmail.com wrote: Using the Application should work in this instance, however, why not use setResult(resultCode, data) to return a result from the child activity? http://developer.android.com/reference/android/app/Activity.html#setR..., android.content.Intent) You can add the url to the data (Intent) that is returned: data.putExtra(url, url) On Sep 17, 7:57 am, GregAZ ggur...@gmail.com wrote: I have a problem that's only affecting Droid phones. I end up not being able to access global variables after an onActivityResult event. While looking into this I came across:http://stackoverflow.com/questions/708012/android-how-to-declare-glob... I follow those directions, but still the value is NULL. On my HTC Hero everything I've tried works. On Droid phones everything is NULL or an empty string. What I need is the URL from the webview. In the onPageFinished I've been putting the URL into a global variable. The app has the correct URL in that method because that's when I pop open the imagepicker. After that is when the global variable value is gone. I also can't read the webview (I can on my Hero, can't on Droid's) after hitting the onActivityResult event. GetUrl() returns NULL for them, works fine for me. Everything also works fine in the simulator. I've 1.5, 2.1, and 2.2 in the simulator. How else can I store the info I need to retrieve? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: finding spinner widgets
On Sun, Sep 19, 2010 at 2:10 PM, intbt in...@tacberry.com wrote: When I set the spinner adapter to be: android.R.layout.simple_spinner_dropdown_item I am assuming there are variations on the android.R.layout 'types' that I could use, is there such a list? Not really. You can find the XML source to that layout in your SDK installation: $ANDROID_HOME/platforms/$VERSION/data/res/layout where $ANDROID_HOME is wherever you unpacked your SDK and $VERSION is some Android version. From there, you can copy it into your project and customize to suit. In terms of Dialog ID - what I am looking for is a picker dialog that I can add the data, is that possible? What is the data? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.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] database difficulties
On Thu, Aug 26, 2010 at 8:28 AM, Damien cooke.dam...@gmail.com wrote: It turns out my directory /data/data/com.mycompany.MyApplication/ databases does not exist. Ok so I try to crate it with File.mkdirs() and it laughs at me and does not create the directory. You should not have to call mkdirs() on the data folder - that's there by default so it makes sense you trying to create it would fail (and that it would laugh at you for trying =P). Use getFilesDir() and the other similar file-helper functions to get at your root data directory and create files as necessary. On Sun, Sep 19, 2010 at 6:03 AM, Tim t...@mobiforms.com wrote: Dear Damien, You may be interested in looking at our crap software Dear Tim, You may be interested in looking at better ways of promoting your product than spamming a discussion group. You're hurting yourself and your product more than you're helping it. I, personally, will never bother to even look at your website since you're copy paste responses to these types of posts are incredibly annoying. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: After onActivityResult event State Is Gone (Droid Phones)
On Sun, Sep 19, 2010 at 2:59 PM, GregAZ ggur...@gmail.com wrote: I think I'm missing something. If I add the string as an extra to the image picker intent, then show that intent, that extra is gone in the onActivityResult. Correct. Even with setResult it's still gone. This is on my HTC Hero: Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI); i.putExtra(url, url); setResult(1, i); startActivityForResult(i, 1); You do not call setResult() here. That is for use in the activity that is *started* by startActivityForResult(). In the onActivityResult: String url = intent.getStringExtra(url); It's null. Correct. If you are implementing the activity being started by startActivityForResult(), in that activity, you can use extras with setResult(). In this case, somebody else wrote that activity. Extras you put on the requesting Intent will not automatically be copied to the response Intent. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.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
[android-developers] Re: Widget Configuration Activity issue
Thank you very much for the reply, I was afraid that might be your answer! If it is the case, and the onUpdate method is always called before the configuration activity is launched, then the Android documentation is wrong: From the documentation(http://developer.android.com/guide/topics/ appwidgets/index.html): The onUpdate() method will not be called when the App Widget is created (the system will not send the ACTION_APPWIDGET_UPDATE broadcast when a configuration Activity is launched). It is the responsibility of the configuration Activity to request an update from the AppWidgetManager when the App Widget is first created. However, onUpdate() will be called for subsequent updates—it is only skipped the first time. On Sep 19, 2:50 am, Kostya Vasilyev kmans...@gmail.com wrote: 19.09.2010 6:08, Chris пишет: I'm having an issue with a config activity for a widget. According to the dev docs, if I specify a configuration activity than the onUpdate method of the AppWidgetProvider doesn't get called until after you request an update once you've completed the configuration activity. For me its happening in reverse, the onUpdate method of the AppWidgetProvider gets called first, followed by the configuration activity. Then the onUpdate method is never called after completion of the config activity even though I request it explicitly. I tried with level 4 and level 7 API, same result. Here is some of the source: onUpdate getting called before the config activity is done is normal (i.e. Android does things this way, not sure it's a good thing, but it's not something specific to your code), the widget is hidden at this point. Not sure what you mean by requesting an update - what config activity is supposed to do is build a RemoteViews object and push it manually to the widget using appWidgetManager.updateAppWidget(widget id, remote views); Using a config activity can result in some issues with stale widget ids (if the user cancels). I've documented my experiences with it here: http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-wid... -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Widget Configuration Activity issue
They changed this behavior somewhere along the line -- I forget exactly when. It used to work as documented, and now behaves as Kostya indicated. On Sun, Sep 19, 2010 at 3:06 PM, Chris crebst...@gmail.com wrote: Thank you very much for the reply, I was afraid that might be your answer! If it is the case, and the onUpdate method is always called before the configuration activity is launched, then the Android documentation is wrong: From the documentation(http://developer.android.com/guide/topics/ appwidgets/index.html): The onUpdate() method will not be called when the App Widget is created (the system will not send the ACTION_APPWIDGET_UPDATE broadcast when a configuration Activity is launched). It is the responsibility of the configuration Activity to request an update from the AppWidgetManager when the App Widget is first created. However, onUpdate() will be called for subsequent updates—it is only skipped the first time. On Sep 19, 2:50 am, Kostya Vasilyev kmans...@gmail.com wrote: 19.09.2010 6:08, Chris пишет: I'm having an issue with a config activity for a widget. According to the dev docs, if I specify a configuration activity than the onUpdate method of the AppWidgetProvider doesn't get called until after you request an update once you've completed the configuration activity. For me its happening in reverse, the onUpdate method of the AppWidgetProvider gets called first, followed by the configuration activity. Then the onUpdate method is never called after completion of the config activity even though I request it explicitly. I tried with level 4 and level 7 API, same result. Here is some of the source: onUpdate getting called before the config activity is done is normal (i.e. Android does things this way, not sure it's a good thing, but it's not something specific to your code), the widget is hidden at this point. Not sure what you mean by requesting an update - what config activity is supposed to do is build a RemoteViews object and push it manually to the widget using appWidgetManager.updateAppWidget(widget id, remote views); Using a config activity can result in some issues with stale widget ids (if the user cancels). I've documented my experiences with it here: http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-wid... -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.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
[android-developers] Re: Is anyone's active install % dropping like a rock lately?
I came here to comment again on my active install numbers and this is for sure the same thing that has happened to me. My app works by unlocking the paid features when a user purchases the license key app package. The app detects that it is on the device to unlock features. I was using encryption on the license key to mitigate piracy. Since there wasn't really any code in the license key, I hadn't needed to update it since it was first posted. My numbers seems a little off, but close enough to what I was seeing from the revenue information. Now that Google is close to removing the encryption option, I added LVL code to the license key package that my app will call. I haven't deployed the app yet, but did deploy the new license key app package on Friday morning. I think because without encryption, the license key package is visible to a lot more people that this is one of the big things that has drastically increased my sales numbers on Friday and Saturday (30 this Sat compared to 8 last Sat). So with the huge increase in sales, what does my active installs for the license key look like? It dropped from 78% down to about 58% as of this morning (Sunday). So it really appears that upgrades are being counted as uninstalls...probably for everyone. On Sep 14, 11:55 pm, Tomáš Hubálek tom.huba...@gmail.com wrote: On Wed, Sep 15, 2010 at 4:44 AM, TreKing treking...@gmail.com wrote: Posted this in the other thread. We received a comment from the Market people: Thanks for writing in. We are currently investigating this issue. So far, this appears to be purely a reporting issue: some update events are being inaccurately recorded as uninstalls, rather than updates, creating a lower active installs percentage. However, our investigation tells us that applications are not actually being uninstalled. We hope to have a resolution soon. This is crazy. Tom --http://android.hubalek.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can ScrollView and Scrollbars in EditText co-exist?
On Sun, Sep 19, 2010 at 12:56 PM, Mystique joven.ch...@gmail.com wrote: Can they co-exist and work together? In general, I believe, you cannot (or should not) put auto-scrolling components inside a ScrollView. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Widget Configuration Activity issue
During the first update the widget is not yet visible, anyway. And if you implement a live flag like I describe in my blog, the initial update is not an issue at all. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 19.09.2010 23:09 пользователь Mark Murphy mmur...@commonsware.com написал: They changed this behavior somewhere along the line -- I forget exactly when. It used to work as documented, and now behaves as Kostya indicated. On Sun, Sep 19, 2010 at 3:06 PM, Chris crebst...@gmail.com wrote: Thank you very much for the r... -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: After onActivityResult event State Is Gone (Droid Phones)
That's what I thought. Any ideas why the value is getting lost from the application? I created a class that I called BaseClass that inherits Application. That class contains: private String uploadUrl; public String getUploadUrl(){ return uploadUrl; } public void setUploadUrl(String url){ uploadUrl = url; } In my activity, I'm setting it: public void onPageFinished(WebView view, String url) { BaseClass appState = ((BaseClass)getApplicationContext()); appState.setUploadUrl(new String(url)); Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI); startActivityForResult(i, 1); } Then in the onActivityResult I'm trying to read it back out, but on Droid phones it's NULL. Works perfect on my HTC Hero (and the emulators). I know the url getting set is correct because I'm checking it (I left that part out) and only show the image picker intent if they are at a specific page. protected void onActivityResult(int requestCode, int resultCode, Intent intent) { if (requestCode == 1) { BaseClass appState = ((BaseClass)getApplicationContext()); String uploadUrl = appState.getUploadUrl(); // NULL on Droid phones } } I added android:name=.BaseClass to the manifest. On Sep 19, 2:05 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 19, 2010 at 2:59 PM, GregAZ ggur...@gmail.com wrote: I think I'm missing something. If I add the string as an extra to the image picker intent, then show that intent, that extra is gone in the onActivityResult. Correct. Even with setResult it's still gone. This is on my HTC Hero: Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI); i.putExtra(url, url); setResult(1, i); startActivityForResult(i, 1); You do not call setResult() here. That is for use in the activity that is *started* by startActivityForResult(). In the onActivityResult: String url = intent.getStringExtra(url); It's null. Correct. If you are implementing the activity being started by startActivityForResult(), in that activity, you can use extras with setResult(). In this case, somebody else wrote that activity. Extras you put on the requesting Intent will not automatically be copied to the response Intent. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.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] Re: Debugging Droid X-specific issues
Mark-- Thank you for the MOTODEV tip; I had no idea the site existed. To much dismay however I was not able to reproduce my issue using the Droid X emulator add-on; and I'm embarassed to say that the issue appears related to my use of the un-documented CropImage intent action (which you warned me about in the past .. i know i know, you told me so :-)). I'll go ahead and explain my problem anyway just in case there's another solution other than cloning the CropImage class (I'm actually still trying to accomplish this, but am running into issues building the Camera package with the Android source). To summarize the problem: After passing image data to the CropImage activity and cropping the image, the phone's _WALLPAPER_ changes to the cropped image instead of my application's views! Is it possible the Droid X OS on the phone has a alternate implementation of CropImage that could be causing this behavior? -PT On Tue, Sep 14, 2010 at 7:15 AM, Mark Murphy mmur...@commonsware.comwrote: On Tue, Sep 14, 2010 at 10:09 AM, Paul Tongyoo paul.tong...@gmail.com wrote: Any ideas any one? Is there a way to emulate the Droid X's specific build locally? MOTODEV publishes some SDK add-ons for their various devices. Whether there is one for the Droid X and whether it will help you with your issue is unclear. My recommendation is for you either to explain the actual problem here (your email appears cut off), or go to the MOTODEV support boards for Motorola-specific support. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Re: After onActivityResult event State Is Gone (Droid Phones)
Your process is getting killed, for whatever reason. When you are not in the foreground this can happen at any time. Typically when you start another activity the new activity will be full screen so the previous activity is no longer in the foreground. And if you are using startActivityForResult() to launch an activity in another app (as you are doing here), then your app's process is no longer in the foreground and may get killed. Also I think probably 99% of the time that you would be using a static or Application instance to store state related to startActivityForResult() is wrong. This method is about making a call to another activity, whose result will be delivered back to the caller's activity. There is no global state here -- the result goes back to the original activity. The wrinkle is that this may be a new instance of the activity... but if you save your current state (including whatever state you need about a result you are waiting for) in onSaveInstanceState() and restore it in onCreate(), this will all work correctly. On Sun, Sep 19, 2010 at 12:37 PM, GregAZ ggur...@gmail.com wrote: That's what I thought. Any ideas why the value is getting lost from the application? I created a class that I called BaseClass that inherits Application. That class contains: private String uploadUrl; public String getUploadUrl(){ return uploadUrl; } public void setUploadUrl(String url){ uploadUrl = url; } In my activity, I'm setting it: public void onPageFinished(WebView view, String url) { BaseClass appState = ((BaseClass)getApplicationContext()); appState.setUploadUrl(new String(url)); Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI); startActivityForResult(i, 1); } Then in the onActivityResult I'm trying to read it back out, but on Droid phones it's NULL. Works perfect on my HTC Hero (and the emulators). I know the url getting set is correct because I'm checking it (I left that part out) and only show the image picker intent if they are at a specific page. protected void onActivityResult(int requestCode, int resultCode, Intent intent) { if (requestCode == 1) { BaseClass appState = ((BaseClass)getApplicationContext()); String uploadUrl = appState.getUploadUrl(); // NULL on Droid phones } } I added android:name=.BaseClass to the manifest. On Sep 19, 2:05 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 19, 2010 at 2:59 PM, GregAZ ggur...@gmail.com wrote: I think I'm missing something. If I add the string as an extra to the image picker intent, then show that intent, that extra is gone in the onActivityResult. Correct. Even with setResult it's still gone. This is on my HTC Hero: Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI); i.putExtra(url, url); setResult(1, i); startActivityForResult(i, 1); You do not call setResult() here. That is for use in the activity that is *started* by startActivityForResult(). In the onActivityResult: String url = intent.getStringExtra(url); It's null. Correct. If you are implementing the activity being started by startActivityForResult(), in that activity, you can use extras with setResult(). In this case, somebody else wrote that activity. Extras you put on the requesting Intent will not automatically be copied to the response Intent. -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.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.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. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] is there a way to make drawable clickable?
Drawables don't do anything but draw. That don't receive input events, so they have no concept of being clickable. Views can be clickable, and you can associate a drawable with a view to provide what the view draws. So the simplest thing is to make a View, use View.setBackground() to give a drawable it will draw as its background, and get the click events from the view however you want. On Sun, Sep 19, 2010 at 9:54 AM, dadada ytbr...@gmail.com wrote: hi all, i am using drawable and translateobject to create animation on camera overlay. how do i get clickable drawable object? should i be using drawable? thanks! bryan -- You received this message because you are subscribed to the Google Groups Android Developers group. 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. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Possibility of a curved Gallery
I'd suggest taking the platform's code for the gallery and modifying it to do what you want. You'll need to tweak some things to be able to build it against the SDK, but it is entirely implementable with the SDK. On Sun, Sep 19, 2010 at 8:03 AM, Navaneeth sen4u@gmail.com wrote: Hi All, Is it possible to change the default arrangement of the Android Gallery? What i meant is can we make the Gallery in a curved path, where the images will be along the curved path and the same time it has all the properties of the Android gallery(which appears to be center locked and horizontal right now..)? If possible, please tell me your ideas. All ideas are welcome. Thanks Regards, Sen -- You received this message because you are subscribed to the Google Groups Android Developers group. 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. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to share data between applications with no dependency
On Sun, Sep 19, 2010 at 7:32 AM, ayanir ayanir...@gmail.com wrote: I'll go with the file on external storage. I think that there should be a general system ContentProvider for that exact purpose - I could only hope it will be one day... Why? There is already external storage which is a mess enough. Why add another place for applications to throw random uncontrolled junk in? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] File extensions and MIME type
And fwiw, Android basically knows nothing about extensions. Everything at this point is identified through MIME types. There are some hacks you can do with intent filters to kind-of do matching against file extensions, but I wouldn't recommend it. On Sun, Sep 19, 2010 at 7:25 AM, Mark Murphy mmur...@commonsware.comwrote: On Sun, Sep 19, 2010 at 10:08 AM, ls02 agal...@audible.com wrote: My app has two private file formats with distinctive extensions. How to I register their MIME types and associate them with file extensions? My understanding that then my app can be launched to handle a file. How is this done and how to extract the file path my app is launched to handle? Use the data element in your manifest and the android:mimeType attribute: intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / category android:name=android.intent.category.BROWSABLE / data android:mimeType=application/pdf / /intent-filter The BROWSABLE allows you to be launched by clicks in the browser. The Uri to the file is in getIntent().getData() in your activity. http://github.com/commonsguy/cw-advandroid/tree/master/Introspection/URLHandler/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. 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. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: After onActivityResult event State Is Gone (Droid Phones)
Thanks for that information, that makes a lot of sense. I will give that a try! On Sep 19, 3:07 pm, Dianne Hackborn hack...@android.com wrote: Your process is getting killed, for whatever reason. When you are not in the foreground this can happen at any time. Typically when you start another activity the new activity will be full screen so the previous activity is no longer in the foreground. And if you are using startActivityForResult() to launch an activity in another app (as you are doing here), then your app's process is no longer in the foreground and may get killed. Also I think probably 99% of the time that you would be using a static or Application instance to store state related to startActivityForResult() is wrong. This method is about making a call to another activity, whose result will be delivered back to the caller's activity. There is no global state here -- the result goes back to the original activity. The wrinkle is that this may be a new instance of the activity... but if you save your current state (including whatever state you need about a result you are waiting for) in onSaveInstanceState() and restore it in onCreate(), this will all work correctly. On Sun, Sep 19, 2010 at 12:37 PM, GregAZ ggur...@gmail.com wrote: That's what I thought. Any ideas why the value is getting lost from the application? I created a class that I called BaseClass that inherits Application. That class contains: private String uploadUrl; public String getUploadUrl(){ return uploadUrl; } public void setUploadUrl(String url){ uploadUrl = url; } In my activity, I'm setting it: public void onPageFinished(WebView view, String url) { BaseClass appState = ((BaseClass)getApplicationContext()); appState.setUploadUrl(new String(url)); Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI); startActivityForResult(i, 1); } Then in the onActivityResult I'm trying to read it back out, but on Droid phones it's NULL. Works perfect on my HTC Hero (and the emulators). I know the url getting set is correct because I'm checking it (I left that part out) and only show the image picker intent if they are at a specific page. protected void onActivityResult(int requestCode, int resultCode, Intent intent) { if (requestCode == 1) { BaseClass appState = ((BaseClass)getApplicationContext()); String uploadUrl = appState.getUploadUrl(); // NULL on Droid phones } } I added android:name=.BaseClass to the manifest. On Sep 19, 2:05 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 19, 2010 at 2:59 PM, GregAZ ggur...@gmail.com wrote: I think I'm missing something. If I add the string as an extra to the image picker intent, then show that intent, that extra is gone in the onActivityResult. Correct. Even with setResult it's still gone. This is on my HTC Hero: Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI); i.putExtra(url, url); setResult(1, i); startActivityForResult(i, 1); You do not call setResult() here. That is for use in the activity that is *started* by startActivityForResult(). In the onActivityResult: String url = intent.getStringExtra(url); It's null. Correct. If you are implementing the activity being started by startActivityForResult(), in that activity, you can use extras with setResult(). In this case, somebody else wrote that activity. Extras you put on the requesting Intent will not automatically be copied to the response Intent. -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.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.comandroid-developers%2Bunsubs cr...@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
Re: [android-developers] setImageViewResource not working
Ciao Simone, probably it's stupid to ask this, but just to be sure: have you called updateAppWidget() after setting the RemoteViews object? Like this: appWidgetManager.updateAppWidget(appWidgetId, remoteViews); Yuvi On Sun, Sep 19, 2010 at 4:57 PM, Simone simone.russ...@gmail.com wrote: I have a simple widget (whose entire layout is just an ImageView) that starts and stops a service. From within the service, I'd like to switch the image displayed by such ImageView. So, i did this: public int onStartCommand(Intent intent, int flags, int startId){ RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.main); remoteViews.setImageViewResource(R.id.imgView, R.drawable.image1); ... ... return START_STICKY; } and public void onDestroy(){ RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.main); remoteViews.setImageViewResource(R.id.imgView, R.drawable.off); ... ... } But it doesn't work. onStartCommand and onDestroy are called, but the image doesn't change. What gives? Simone -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: setImageViewResource not working
How can I retrieve the correct appWidgetId from inside the service? On 19 Set, 22:30, YuviDroid yuvidr...@gmail.com wrote: Ciao Simone, probably it's stupid to ask this, but just to be sure: have you called updateAppWidget() after setting the RemoteViews object? Like this: appWidgetManager.updateAppWidget(appWidgetId, remoteViews); Yuvi On Sun, Sep 19, 2010 at 4:57 PM, Simone simone.russ...@gmail.com wrote: I have a simple widget (whose entire layout is just an ImageView) that starts and stops a service. From within the service, I'd like to switch the image displayed by such ImageView. So, i did this: public int onStartCommand(Intent intent, int flags, int startId){ RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.main); remoteViews.setImageViewResource(R.id.imgView, R.drawable.image1); ... ... return START_STICKY; } and public void onDestroy(){ RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.main); remoteViews.setImageViewResource(R.id.imgView, R.drawable.off); ... ... } But it doesn't work. onStartCommand and onDestroy are called, but the image doesn't change. What gives? Simone -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!)http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: setImageViewResource not working
It depends on how you structured your widget. How are you starting the service? If you just need to update all of your widgets that are on the homescreen you can get their ids with appWidgetManager.getAppWidgetIds(). On Sun, Sep 19, 2010 at 10:53 PM, Simone simone.russ...@gmail.com wrote: How can I retrieve the correct appWidgetId from inside the service? On 19 Set, 22:30, YuviDroid yuvidr...@gmail.com wrote: Ciao Simone, probably it's stupid to ask this, but just to be sure: have you called updateAppWidget() after setting the RemoteViews object? Like this: appWidgetManager.updateAppWidget(appWidgetId, remoteViews); Yuvi On Sun, Sep 19, 2010 at 4:57 PM, Simone simone.russ...@gmail.com wrote: I have a simple widget (whose entire layout is just an ImageView) that starts and stops a service. From within the service, I'd like to switch the image displayed by such ImageView. So, i did this: public int onStartCommand(Intent intent, int flags, int startId){ RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.main); remoteViews.setImageViewResource(R.id.imgView, R.drawable.image1); ... ... return START_STICKY; } and public void onDestroy(){ RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.main); remoteViews.setImageViewResource(R.id.imgView, R.drawable.off); ... ... } But it doesn't work. onStartCommand and onDestroy are called, but the image doesn't change. What gives? Simone -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: setImageViewResource not working
Hey, thank you very much, I solved it this way though: appWidgetManager.updateAppWidget(new ComponentName(getApplicationContext(), MyWidget.class), remoteViews); Simone -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Application checksum at runtime
As an additional anti-pirating strategy, I'd like to compute a checksum on my application at runtime. Since my app communicates with a back-end server, I can send the checksum with each message and the server can deny service to altered apps. Not a complete solution to piracy by any means, but a fairly easy way to raise the bar. Anyone know how an app can get access to it's load image at runtime? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 share data between applications with no dependency
You could use network/cloud storage for this instead of SD. Depending on how much data you are talking it's a feasible alternative. Adam On Sep 19, 5:12 am, ayanir ayanir...@gmail.com wrote: Hello, I want to share data between 2 applications. the idea is both applications can write and read the SAME data and there is no dependency which one of the apps is installed or first created the data. I have 2 version of the same app: regular and premium and I don't know which of them will be first installed and both of them can change it. I tried to use ContentProvider but the problem is that only the first app can create the Provider and when it is uninstalled it deletes that custom Provider. I want the Content to be kept for the second app. Also, I tried to use Settings.System which keeps the data regardless if the application is installed or not but I don't want to use the permission for that (it is very problematic from user perspective). BTW, it seems that I can change ANY of the Settings.System which is not secured from Android OS perspective - but this is a subject for other post. I see only one left choice using a File for that but, I wanted to know if I can use another way? Thanks, ayanir -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: appbucket: all apps for $9.99 per year, are we just going to watch?
On Sep 19, 5:15 am, Pent tas...@dinglisch.net wrote: Amazed they've not done anything You must be new 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: appbucket: all apps for $9.99 per year, are we just going to watch?
On Sep 19, 5:15 am, Pent tas...@dinglisch.net wrote: I'm surprised everyone is focused on what the app developers can do. The people responsible for the market need to remove this stuff, it can't be so hard. I waited a few weeks then posted on Market Help. Amazed they've not done anything, it looks really bad having an advert to cracked apps at the top of all the paid app comments. I mean really. This is a very good point, Pent. It would take little to - remove the comments from these criminals since they are very easily identified - ban their gmail accounts - allow developers to make a comment in the market by allowing them to purchase their own apps: appbucket is a website by thieves, the developers get screwed and you will get screwed. Or something like this. Instead, Android gives a free advertisement platform for these pinheads. I feel really ignored by you, Google. Helll -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Application checksum at runtime
I would love your solution to work, but surely any pirate will be able to calculate exactly the same checksum. If they have access to your apk, they have access to the key or algorithm you are using. On Sep 20, 8:07 am, Bret Foreman bret.fore...@gmail.com wrote: As an additional anti-pirating strategy, I'd like to compute a checksum on my application at runtime. Since my app communicates with a back-end server, I can send the checksum with each message and the server can deny service to altered apps. Not a complete solution to piracy by any means, but a fairly easy way to raise the bar. Anyone know how an app can get access to it's load image at runtime? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Application checksum at runtime
I wonder if there's a way to access the application's signature. On Sep 19, 5:07 pm, Bret Foreman bret.fore...@gmail.com wrote: As an additional anti-pirating strategy, I'd like to compute a checksum on my application at runtime. Since my app communicates with a back-end server, I can send the checksum with each message and the server can deny service to altered apps. Not a complete solution to piracy by any means, but a fairly easy way to raise the bar. Anyone know how an app can get access to it's load image at runtime? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Application checksum at runtime
You can usually read non forward locked apk's out of /data/app if you know what their exact path names should be, even though you can't browse. However, I'm not sure that will always be bit for bit the same as what you distribute (for example I forgot to zipalign something the other day, and logcat seemed to indicate the phone was doing it). Anti-piracy measures often rest in the gap between what a third party has access to, and the degree to which they understand in detail what they are looking at. However it would seem that if you have a server involved you have other options. Either sell the app directly and keep track of purchasers, or use market licensing and have the app forward the license server's response to your server when it requests something from you. William Ferguson wrote: I would love your solution to work, but surely any pirate will be able to calculate exactly the same checksum. If they have access to your apk, they have access to the key or algorithm you are using. On Sep 20, 8:07 am, Bret Foreman bret.fore...@gmail.com wrote: As an additional anti-pirating strategy, I'd like to compute a checksum on my application at runtime. Since my app communicates with a back-end server, I can send the checksum with each message and the server can deny service to altered apps. Not a complete solution to piracy by any means, but a fairly easy way to raise the bar. Anyone know how an app can get access to it's load image at runtime? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Application checksum at runtime
Sure, if they could reverse engineer the program logic then they could generate the correct checksum...but that's not so easy. Since the checking logic is on the server side, they won't even know what part of the code is causing the non-response. Anything that raises the reverse-engineering bar is going to motivate a potential cracker to try to break some other app instead of mine. On Sep 19, 3:40 pm, William Ferguson william.ferguson...@gmail.com wrote: I would love your solution to work, but surely any pirate will be able to calculate exactly the same checksum. If they have access to your apk, they have access to the key or algorithm you are using. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Application checksum at runtime
Not a bad idea, but a hacker could see the server's response come over the network and would probably detect me resending part of that response to my server. But an encrypted version of the license server response would work. use market licensing and have the app forward the license server's response to your server when it requests something from 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: Quick Contact Window integration like Facebook and Twitter
Bump. Can anyone help on this subject? How do I integrate with the quick contacts menu? On Sep 9, 10:39 am, Nik Bhattacharya nik.bhattacha...@frogdesign.com wrote: I would like to add an quick contact option to the Quick Contact window that displays for a contact. How do I get this option to show up when the user taps on a contact? I looked at the Facebook and Twitter applications and can see that they have this: Facebook: activity name=.ProfileTabHostActivity intent-filter action name=android.intent.action.VIEW/ category name=android.intent.catefory.DEFAULT/ data mimeType=vnd.android.cursor.item/vnd.facebook.profile host=com.android.contacts/ /intent-filter /activity Twitter: activity name=.ProfileTabActivity intent-filter action name=android.intent.action.VIEW/ category name=android.intent.catefory.DEFAULT/ data mimeType=vnd.android.cursor.item/vnd.twitter.profile host=com.android.contacts/ /intent-filter /activity First of all, I am not sure that the snippets above are *really* what get used to plug into the quick contacts. It's just an educated guess. I still am at a bit of a loss to figure out exactly how to plug into the quick contact window (for example, which xml/java file did Facebook/Twitter apps use to declare their intent to plug into the quick contact window, declare the icon to show etc?). I am not specifically interested in Facebook/Twitter, its just that these apps have plugged into the new API successfully. I am just looking for an end to end example (ideally) or simply pointers to how to integrate my contacts sync info into the quick contacts menu. Any help is much appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Application checksum at runtime
I don't think this will gain you any more than just checking whether the app is signed with your own cert. In order to modify an app, the pirate will need to re-sign it with their own cert and since they don't have your private key they can't sign it with yours. (Note that cert checking is done by comparing SHA hashes anyway.) On Sun, Sep 19, 2010 at 3:07 PM, Bret Foreman bret.fore...@gmail.comwrote: As an additional anti-pirating strategy, I'd like to compute a checksum on my application at runtime. Since my app communicates with a back-end server, I can send the checksum with each message and the server can deny service to altered apps. Not a complete solution to piracy by any means, but a fairly easy way to raise the bar. Anyone know how an app can get access to it's load image at runtime? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ContentResolver resolver reslut GREF has increased to 1901
when i access the phone book,i change the peoleo of the book,or delete the peoploe of the book, or update the people of the book, very qukliy ,the phone tell me GREF has increased to 201,and it increased when i next acess the phone book, i have use the ContentResolver,not the activity query. who know 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