Re: [android-developers] Suspended android developer account
Dear Mobejakt, I met a similar problem. I wrote an application and put it in Android Market. The user feedback are great and it makes me feel I would continue develop and create more feature to fulfill user's requirement. But 3-day before, I get Google's notification and they suspend my app in Android Market. In the notification email, it said I can reply it and get more detail information. I did as they said. But I get nothing from them. I'm still confused after I reviewed their content policy several times. I think I never break them. But Google just suspend my app and no any feedback of my question email. The users are great. They send me email and ask for reason. They show their supportive. But some user starts to doubt whether I put spy into my app. That really makes me feel bad. I use my whole spare time to develop the app, but now I start to be doubted by my user. On Tue, May 3, 2011 at 1:33 AM, mobeljakt nami.zarringha...@gmail.comwrote: Hi! A while ago we wrote a post on our blog about getting spam rewiews on Android market which can be found here: http://www.truecaller.com/blog/2011/04/20/google-please-protect-your-developers/ Just a few weeks ago we used to get about 2-3 reviews per day. Suddenly this increased 10 folds and with all 1 star reviews coming in on bundles. We suspected foul play but unfortunately there wasn't much to do about it however we used the forms for android developers and notified Google about this, hoping that they would be able to detect what was going on. Now 2 weeks later we receive an email saying that our developer account has been suspended because ” We have investigated anomalous app ratings and commenting data associated with your accounts, and have determined that you have engaged in anti-competitive behavior. As a result, your developer account has been closed and your apps have been unpublished from Android Market. ” What have we done? We were attacked, why do you punish us? We don't understand what is wrong and no one in my team believes they have done anything to compromise any competitor. Please Google, help us get to the bottom with this, protect your 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 -- Regards, Jiyu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: switching from one app to another
On May 26, 5:06 pm, bob b...@coolgroups.com wrote: I have an app that opens a web browser, but after awhile I want the app to switch from the web browser back to itself. Is there an easy way to do this? I agree with Justin and Mark, but I don't have any ethical qualms in sharing a solution that does what you want anyway! :-) Below, if the started Dummy class just called finish() when launched, this will achieve the effect you are looking for, but the browser task will still be alive and the user could return to it if they want. By the way, don't do this unless you really understand what you're getting into. Doug public class Main extends Activity { Handler handler; @Override public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); handler = new Handler(); findViewById(R.id.button).setOnClickListener(new View.OnClickListener() { public void onClick(final View v) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(http://www.google.com;))); handler.postDelayed(new Runnable() { public void run() { final Intent intent = new Intent(Main.this, Dummy.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); getApplicationContext().startActivity(intent); } }, 1); } }); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Slow motion video
On May 27, 11:20 am, New Developer secur...@isscp.com wrote: Anyone got an idea how to implement slow motion ? or at least slow down the playback of a video ? Android media components won't do this for you, sorry. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Text scaling properly on two different mdpi devices (Evo, and Galaxy Tab 10.1)
On May 25, 11:49 am, Mike michaeldouglaskra...@gmail.com wrote: Is there way to do font scaling similar to the way you can assign percentages to a layout? LinearLayout does percentage-like calculations for its children when you're using the weight attribute on its childrens' layouts. Or force height and width settings during layout. Yes, you need complete control of your own views. Then, if you're then just trying to fit text into a TextView that's already been sized, take some hints from the Market app: http://www.pushing-pixels.org/2010/12/16/meet-the-green-goblin-part-4.html Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: switching from one app to another
This will also cause the browser to add new windows/tabs to the single task it maintains. Please don't do this kind of thing. :} On Sun, May 29, 2011 at 12:01 AM, Doug beafd...@gmail.com wrote: On May 26, 5:06 pm, bob b...@coolgroups.com wrote: I have an app that opens a web browser, but after awhile I want the app to switch from the web browser back to itself. Is there an easy way to do this? I agree with Justin and Mark, but I don't have any ethical qualms in sharing a solution that does what you want anyway! :-) Below, if the started Dummy class just called finish() when launched, this will achieve the effect you are looking for, but the browser task will still be alive and the user could return to it if they want. By the way, don't do this unless you really understand what you're getting into. Doug public class Main extends Activity { Handler handler; @Override public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); handler = new Handler(); findViewById(R.id.button).setOnClickListener(new View.OnClickListener() { public void onClick(final View v) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(http://www.google.com;))); handler.postDelayed(new Runnable() { public void run() { final Intent intent = new Intent(Main.this, Dummy.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); getApplicationContext().startActivity(intent); } }, 1); } }); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Career as an Andoid developer. Is there any point?
Hate to break up this tender moment, but I'd like to get back to the original statement: Additionally, Android, as it's currently designed, does not have legs. The process model and UI are both too restrictive to be extendable to the pads and other new paradigms of the future. Who would have guessed that MS-DOS/Windows/Windows NT/Windows had legs? Or Mac Os? And do any of the modern day instances of those technologies bear much resemblance to their roots at two years into their existence? Would anyone have made a career of being an Windows programmer (and would that have necessarily been a bad call given the data at the time)? Is anyone really predicting that the Linux process model is going to doom Android? If so, when? And does anyone really think the UI is going to stay the way it is today (and for that matter, has anyone observed that the legged Windows and Mac have evolved over time)? On these terms, I still think it's rash to have made the above statement given that change has been and will continue persist on the Android platform. I think that's what's got everyone upset here. It's just too early to call, unless you have a proven history of making those calls. (And if you do have that history, please also tell me your 100% guaranteed top stock picks for the next 10 years!) FWIW, I moved 3000 miles across the US to make a career switch from web dev (15 years) to Android (2 years) and it's not turned out bad for me at all. I have more compelling job offers and opportunities than any other time in my life. The next time I detect a future trend, I might chase that as well and try to master it. But then again, I have a education in Computer Science and a history of making stuff work that people want to pay for, regardless of platform. But I'm in no way changing what I do today nor making plans to change. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Regarding Flash Usage in Android App
Hi All, I need some flash concepts to be used in my app developing so please can any one tel how to implement in my app if its available in android 2.2 and above with sample codes or app...?? Hop For Positive reply. Thanx In Advance. Regards, Yogi... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Very puzzling crash report from user
I've now had 2 reports of this problem. The first user claims he doesn't use a custom ROM, stock Android 2.1. I haven't heard back from the 2nd user yet. But the problem is real. Which file should I be copying into my project? The problem is if I do that, it will probably break on Honeycomb which would use a different version of the file. And I have no way of getting the Honeycomb version to include it in my project, as the source is not available. On May 29, 1:29 pm, Brill Pappin bpap...@sixgreen.com wrote: Are you in contact with the user? I've had some very strange error reports both from custom ROMs and from crackers attempting to modify my apps. I usually wait to see if there is a trend before I worry too much about a strange error report like that. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Very puzzling crash report from user
Actually, I think the problem is that the color attribute I am using textColorPrimaryInverseDisableOnly doesn't exists (or 0) on the Wildfire/Tattoo On May 29, 8:29 am, Mark Murphy mmur...@commonsware.com wrote: Based upon the exception, Android is failing to load R.drawable.btn_dropdown (android.content.res.Resources$NotFoundException: File res/drawable/btn_dropdown.xml), not android.R.drawable.btn_dropdown. On Sat, May 28, 2011 at 8:10 PM, Zsolt Vasvari zvasv...@gmail.com wrote: I've received the following crash report from a user. He's running HTC Wildfire 2.1. I've tried duplicating the issue on the emulator by setting up a Wildfire-like system (2.1, QVGA). but no luck. I suspected a corrupt installation, so I sent him my APK and the same thing happened. I am at a complete loss. Mark Murphy appears to have answered a similar question recently on StackOverflow, but he's just stating what I already know: http://stackoverflow.com/questions/6060592/resources-notfoundexceptio... But I am not using a the compatibility library. My error indicates that the system cannot inflate a TextView as it cannot load one of the built in resources. Anybody has a clue? Caused by: android.view.InflateException: Binary XML file line #40: Error inflating class unknown 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.view.LayoutInflater.createView(LayoutInflater.java:513) 05-28 10:47:40.346 E/AndroidRuntime(2108): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java: 56) 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563) 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 05-28 10:47:40.346 E/AndroidRuntime(2108): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java: 207) 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.app.Activity.setContentView(Activity.java:1629) 05-28 10:47:40.346 E/AndroidRuntime(2108): at com.zvasvari.anmoney.app.transaction.activity.NewEdit.e(Unknown Source) 05-28 10:47:40.346 E/AndroidRuntime(2108): at com.zvasvari.anmoney.app.AnMoneyActivity.onCreate(Unknown Source) 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2549) 05-28 10:47:40.346 E/AndroidRuntime(2108): ... 11 more 05-28 10:47:40.346 E/AndroidRuntime(2108): Caused by: java.lang.reflect.InvocationTargetException 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.widget.TextView.init(TextView.java:329) 05-28 10:47:40.346 E/AndroidRuntime(2108): at java.lang.reflect.Constructor.constructNative(Native Method) 05-28 10:47:40.346 E/AndroidRuntime(2108): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 05-28 10:47:40.346 E/AndroidRuntime(2108): ... 24 more 05-28 10:47:40.346 E/AndroidRuntime(2108): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/ btn_dropdown.xml from color state list resource ID #0x0 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.content.res.Resources.loadColorStateList(Resources.java:1813) 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.content.res.TypedArray.getColorStateList(TypedArray.java:289) 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.widget.TextView.init(TextView.java:639) 05-28 10:47:40.346 E/AndroidRuntime(2108): ... 28 more 05-28 10:47:40.346 E/AndroidRuntime(2108): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/ btn_dropdown.xml from xml type colorstatelist resource ID #0x0 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.content.res.Resources.loadXmlResourceParser(Resources.java: 1920) 05-28 10:47:40.346 E/AndroidRuntime(2108): at android.content.res.Resources.loadColorStateList(Resources.java:1808) 05-28 10:47:40.346 E/AndroidRuntime(2108): ... 30 more -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send
[android-developers] Re: Gallery with Adapter witch is return layouts
Hi there! Yes, it is! But when I trying to return (in getView) my class (which is extended from a LinearLayout) I got child has already got parent, run removeAllView on parent. The problem is, when I try to get the parent I got NULLpointer exception... So, I don't know who am I able to upload my custrom gallery with my custrom layouts. The main problem, I can't use layoutinflater, because I'm storing the layout in a class file, not in an xml. Thx: Károly On máj. 28, 15:00, B Lyon bradfl...@gmail.com wrote: LinearLayout is a view, isn't it? View -- ViewGroup -- Linearlayout 2011/5/28 KárolyHolczhauserholczhau...@gmail.com: Hi all ! I would like to make my custrom gallery, but when I'm implementing the adapter it have to be return an View. I would like to use the gallery to display my own LinearLayout-s, so the adapter have to return these ! Any idea how can I use gallery to display my own , custrom linearlayouts ? Thx: Károly from Hungary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Career as an Andoid developer. Is there any point?
Like any occupation, unless you're some sort of savant you need to spend about 2000 hours (a year) working at it to achieve basic competence, and 10,000 hours (five years) to become an expert. If you're not prepared to spend that sort of time working at it, then find a different occupation. Dan, in the beginning I completely disagreed with the things you wrote, but I completely agree with what you've written in your last message (although I still believe Android is a good framework:-) ). Yes indeed, anybody who is not willing to spend that much time, should better be a consumer of applications at the Marketplace. The hours you should spend to gain good insight and expertise may vary depending on your experience, but the final message is that you should work hard and spend time. I like the Android framework and I believe that developing applications for Android is a good step to get involved in mobile development. However, I don't like certain things around it. One example is the App Inventor. I've never used it; maybe it can be a helpful tool for people with software engineering background to start a new application very fast. However, App Inventor and the things you can do with it, is either perceived wrongly (in this case Google should deliver the message better) or deliberately marketed with overpromisses (hoax, hoax, hoax!!!). I've seen people who have never written a single for-loop in their life, trying to develop applications with the App Inventor and make money with it. One can always argue that natural selection will eventually eliminate such people, but they will also cause pollution which could hurt the credibility of the framework. (The following is just a hypothetical question, I've not done a statistical analysis in the Marketplace). If 5 out of 10 applications I find in the Marketplace would be rubbish, would I bother searching it in the long run for applications and would I continue using Android? I don't mean that this is the current situation in the Marketplace, by no means. But giving people a tool like App Inventor and then either not delivering the message correctly or deliberately marketing it with empty promises, has the risk to backfire and maybe it's not worth taking that risk. Software development cannot be 100% automated. Period. -Ali On May 29, 6:07 am, DanH danhi...@ieee.org wrote: Yeah, Bob, I think you mostly understand where I was coming from: 1) Don't focus your career on any single technology or product but rather seek to have a broad-based, multi-specialty background and the flexibility to move from project to project. And don't short-change learning the fundamentals. 2) Don't expect to strike it rich on some viral app. Work up a plan for who your customer is and how you will serve their needs. In terms of marketing, market yourself to a few people (ie, other companies) rather than the masses. Mass marketing is simply beyond the capabilities of an individual developer. I do take issue with the argument that there's no room for innovation with big (or small) corporations. I've spent most of my career (about 36 years) working for large corporations, and, save for the last 2-3 years of that time (when my employer essentially decided they were out of the innovation business), I was always innovating, in small and large ways. I have my name on something like 20 patents, I won several awards from my company, and I had the opportunity to work on a number of interesting projects. But the main point I'd make is that programming is HARD WORK. I see too many people on various forums (actually less here than elsewhere) who try to get into it without doing their homework, figuring they can get along by just modifying sample programs, lashing together bits of code they've Googled, begging experienced people to do their work for them. You might be able to lash together some app that sells a few hundred copies in the Marketplace this way, but it's not going to even pay the rent, much less put a kid through college or buy you a house. No company is going to hire you, or, if they do, you won't last long. Like any occupation, unless you're some sort of savant you need to spend about 2000 hours (a year) working at it to achieve basic competence, and 10,000 hours (five years) to become an expert. If you're not prepared to spend that sort of time working at it, then find a different occupation. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Very puzzling crash report from user
Speaking of list view selector highlight - the color would break not just on HC: the standard highlight is orange, while the Galaxy S uses a light blue and Xperia Arc - silver gray. And the button down image looks different between my Motorola Milestone (2.1), Galaxy S (2.2) and Xperia Arc (2.3). When you sent the user a reference .apk, did he/she make sure to uninstall the application first? -- Kostya 2011/5/29 Zsolt Vasvari zvasv...@gmail.com I've now had 2 reports of this problem. The first user claims he doesn't use a custom ROM, stock Android 2.1. I haven't heard back from the 2nd user yet. But the problem is real. Which file should I be copying into my project? The problem is if I do that, it will probably break on Honeycomb which would use a different version of the file. And I have no way of getting the Honeycomb version to include it in my project, as the source is not available. On May 29, 1:29 pm, Brill Pappin bpap...@sixgreen.com wrote: Are you in contact with the user? I've had some very strange error reports both from custom ROMs and from crackers attempting to modify my apps. I usually wait to see if there is a trend before I worry too much about a strange error report like that. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Very puzzling crash report from user
I am 100% sure it's because the early Sense UI didn't define textColorPrimaryInverseDisableOnly, even though it was supposed to be standard from 1.6 on. I've now changed it to just textColorPrimaryInverse, I don't remember why I went with textColorPrimaryInverseDisableOnly in the first place. Will see if it will fix these customers, but I am confident that it will. On May 29, 4:47 pm, Kostya Vasilyev kmans...@gmail.com wrote: Speaking of list view selector highlight - the color would break not just on HC: the standard highlight is orange, while the Galaxy S uses a light blue and Xperia Arc - silver gray. And the button down image looks different between my Motorola Milestone (2.1), Galaxy S (2.2) and Xperia Arc (2.3). When you sent the user a reference .apk, did he/she make sure to uninstall the application first? -- Kostya 2011/5/29 Zsolt Vasvari zvasv...@gmail.com I've now had 2 reports of this problem. The first user claims he doesn't use a custom ROM, stock Android 2.1. I haven't heard back from the 2nd user yet. But the problem is real. Which file should I be copying into my project? The problem is if I do that, it will probably break on Honeycomb which would use a different version of the file. And I have no way of getting the Honeycomb version to include it in my project, as the source is not available. On May 29, 1:29 pm, Brill Pappin bpap...@sixgreen.com wrote: Are you in contact with the user? I've had some very strange error reports both from custom ROMs and from crackers attempting to modify my apps. I usually wait to see if there is a trend before I worry too much about a strange error report like that. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NFC send Photo
So are you saying the NFC would not be good for a Bump-type comm between two devices? It just seems so much easier than pairing two Bluetooth devices and since Android doesn't even support peer-to-peert WIFI networking, that's completely out of the question. On May 29, 9:13 am, Bob Kerns r...@acm.org wrote: Send? Just what do you think NFC is, exactly? It sounds like you think it's an alternative to WiFi or Bluetooth. That's not exactly true, or only approximately true, depending on how you want to look at it. While in theory you could use it to communicate between two devices, the short range involved, and the low speed, make it less than attractive for this. If you Bluetooth or WiFi available, those would be much more natural. So you may want to rethink whether this is the right tool for your job. Probably as a result, the activity I'm aware of is more around RFID tags and various active readers. Probably there are people doing it, my point is just that it doesn't seem to be terribly mainstream, and you may have trouble finding code samples. Yes, you'll have to divide it. The details are clearly laid out in the NDEF standard document, which should only have taken you two minutes to locate. That's how long it took me, anyway, starting from never having read any technical details on NFC. Really, I just entered NFC Tag into Google, clicked on Wikipedia, and clicked on this link from the Standards section there: http://www.nfc-forum.org/specs/ http://www.nfc-forum.org/specs/See Section 2.3.3 of the NDEF spec. On Wednesday, May 25, 2011 5:10:56 AM UTC-7, ari...@hotmail.com wrote: hi, I do not think I explained myself well. What I need is the code, so that when i take a photo with my mobile. it bring me the option to send the picture by nfc. thx On 13 mayo, 17:28, cg-dev charles.g...@gmail.com wrote: Hi, As far as I know, I don't think you can put an image into a tag in a standard way. Check with Smart Poster Ndef tag type, maybe you can with this type. If only your application need to read and write the image, you can simply use Ndef type Text and put your image in a raw buffer. Regards. On 12 mai, 13:46, ari...@hotmail.com ari...@hotmail.com wrote: Hi I asked for the code to send a photo with NFC without using a web page, if the records are 7ks we will have to divide it? or use many, or how can I do it?- Ocultar texto de la cita - - Mostrar texto de la cita -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Lifetime of static [instance] variables
Replying back to the list. Most (all?) platforms' model is process == application (more or less). In Android, there really is no such thing as the application (there is, but it is useful to ignore it at first). Therefore, one should unlearn that equality between application and process The unit of installation is package, and the unit of execution is component. Components come in various shapes: activity, broadcast receiver, service, content provider, etc. These components have well defined lifecycles with callbacks. On the other hand, a process is more or less just an implementation detail, having to do more with memory and file protection, crash handling, dealing with out of memory situations, etc. Android keeps processes running as long as possible while there is enough memory. This significantly improves performance if the user or the system again needs one of the components provided by this process. Well written code detects when it's in the background and stops CPU intensive work, so it just sits there dormant, not consuming the CPU battery resources. Mark Murphy compares this model to a web application: just because the user left a page, doesn't mean the web server is stopped right away. I see a similarity to Microsoft COM. Android components are similar to COM objects with a well defined interface (Automation?). Releasing a COM object is not the same as stopping its process, one could keep the process around for a while in case another of its objects is needed (although I don't remember is Windows actually does that). There is a hack an application can use to stop its process, but it is seen by Android as an application crash, and may have unplesant side effects, so I'm not going to provide it here. Bottom line - don't worry about process lifetimes too much yourself, and tell users who do that they need to learn to stop worrying and love the Android way of managing resources. -- Kostya 2011/5/29 Anirvan anirvan.majum...@gmail.com thanks for your patience and responses kostya. i really appreciate it. the tip for tracking the process state through the ddms is a good one. so far, i've only used the ddms to track memory usage, cpu load and log comments. and yes, you're right. even upon pressing 'back' from the one and only main activity does NOT kill the process. i wonder why :[ - it feels very counter-intuitive. i understand that pressing the 'home' button while the app runs, puts the app's state into a stack which android can recover again. but i certainly feel that pressing back from the main activity should kill the process unless explicitly programmed not to do so. at this point, i'll need to work around this new found knowledge about process lifecycles. while you mentioned that there doesn't exist a callback mechanism for process kills, but is there a way through which the app process can be killed programmatically from within an app? On May 29, 2:14 am, Kostya Vasilyev kmans...@gmail.com wrote: Your application logic should be coded in such a way that the process can be killed at any time (usually once it's in the background), or not be killed, and still work correctly. There is no callback when the process is killed. Pressing the back key always finishes the current activity - the back key tells Android that the user is done with whatever he was doing in that activity, and will not come back. But this does not kill the process, because activity != process. Try pressing the home key instead - the activity will be paused / stopped, but not terminated, then come back by long-pressing the home key - you should see onStart / onResume, but not onCreate. All of this is explained very well here: http://developer.android.com/guide/topics/fundamentals/activities.htm... http://developer.android.com/guide/topics/fundamentals/processes-and-... For debugging purposes, use adb shell ps (the usual Unix ps - process state), look for your application within the process list, and note its process ID. Or use the DDMS perspective in Eclipse - the second column in the Devices panel, under Online, is also the process ID. -- Kostya 2011/5/29 Anirvan anirvan.majum...@gmail.com thanks for the response Kostya. but i does one truly determine that the application 'process' has terminated? for testing, i've created a single Activity which serves as the Main. when i press the back button after launching this activity, the app ends. i've also verified that the app is no longer running by checking the Task Manager. is there some other check that i can make from my program to make sure that the app process has terminated? On May 29, 12:33 am, Kostya Vasilyev kmans...@gmail.com wrote: Statics do live as long as the process. onDestroy is not an indication that the process is exiting - your activity is getting destroyed, but the process may (and in your case, does)
[android-developers] Strategy to implelment various themes?
Could somebody offer any pointters/best practicies to swap the LF of an app based on a user perference? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Cannot enable Bluetooth
Hi everyone, I'm creating an simple chatter appllication on Android via Bluetooth. I use *mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();* but,* mBluetoothAdapter = null, *so I don't know how to eable * BluetoothAdapter*? --- Regards, Khanh. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cannot enable Bluetooth
Hi Khan, On 2011-05-29 12:22, khanh_qhi™ wrote: I'm creating an simple chatter appllication on Android via Bluetooth. I use *mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();* but,*mBluetoothAdapter = null, *so I don't know how to eable *BluetoothAdapter*? Tried this? http://developer.android.com/guide/topics/wireless/bluetooth.html Best / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cannot enable Bluetooth
Hi Jonas, I have tried this one, but it didn't solve this problem. Here is my use: mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); if (!mBluetoothAdapter.isEnabled()) { Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT); } It alerts *Force Close* On Sun, May 29, 2011 at 5:32 PM, Jonas Petersson jonas.peters...@xms.sewrote: Hi Khan, On 2011-05-29 12:22, khanh_qhi™ wrote: I'm creating an simple chatter appllication on Android via Bluetooth. I use *mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();* but,*mBluetoothAdapter = null, *so I don't know how to eable *BluetoothAdapter*? Tried this? http://developer.android.com/guide/topics/wireless/bluetooth.html Best / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Khanh. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Cannot enable Bluetooth
I implemented a Tic-Tac-Toe app using Bluetooth No problems. On May 29, 6:32 pm, Jonas Petersson jonas.peters...@xms.se wrote: Hi Khan, On 2011-05-29 12:22, khanh_qhi wrote: I'm creating an simple chatter appllication on Android via Bluetooth. I use *mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();* but,*mBluetoothAdapter = null, *so I don't know how to eable *BluetoothAdapter*? Tried this?http://developer.android.com/guide/topics/wireless/bluetooth.html Best / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Cannot enable Bluetooth
Hi Zsolt, Could you send Tic-Tac-Toe source code for me to see how it work? Thank a lot! On Sun, May 29, 2011 at 6:08 PM, Zsolt Vasvari zvasv...@gmail.com wrote: I implemented a Tic-Tac-Toe app using Bluetooth No problems. On May 29, 6:32 pm, Jonas Petersson jonas.peters...@xms.se wrote: Hi Khan, On 2011-05-29 12:22, khanh_qhi wrote: I'm creating an simple chatter appllication on Android via Bluetooth. I use *mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();* but,*mBluetoothAdapter = null, *so I don't know how to eable *BluetoothAdapter*? Tried this? http://developer.android.com/guide/topics/wireless/bluetooth.html Best / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Khanh. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] openvpn in android
On Sun, May 29, 2011 at 2:25 PM, Sundi sundi...@gmail.com wrote: I am trying to enable openvpn http://openvpn.net/ in android xt5 , looking for some procedure and head start tutorials, If anyone has tried this before please point me to some working examples. You can't do this without modifying the platform. CyanogenMod has had OpenVPN support for ages, check out their code for pointers. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Lifetime of static [instance] variables
I am so thankful to you kostya, for such an excellent and simple explanation. Lesson learnt. Thanks again. On 29 May 2011 15:13, Kostya Vasilyev kmans...@gmail.com wrote: Replying back to the list. Most (all?) platforms' model is process == application (more or less). In Android, there really is no such thing as the application (there is, but it is useful to ignore it at first). Therefore, one should unlearn that equality between application and process The unit of installation is package, and the unit of execution is component. Components come in various shapes: activity, broadcast receiver, service, content provider, etc. These components have well defined lifecycles with callbacks. On the other hand, a process is more or less just an implementation detail, having to do more with memory and file protection, crash handling, dealing with out of memory situations, etc. Android keeps processes running as long as possible while there is enough memory. This significantly improves performance if the user or the system again needs one of the components provided by this process. Well written code detects when it's in the background and stops CPU intensive work, so it just sits there dormant, not consuming the CPU battery resources. Mark Murphy compares this model to a web application: just because the user left a page, doesn't mean the web server is stopped right away. I see a similarity to Microsoft COM. Android components are similar to COM objects with a well defined interface (Automation?). Releasing a COM object is not the same as stopping its process, one could keep the process around for a while in case another of its objects is needed (although I don't remember is Windows actually does that). There is a hack an application can use to stop its process, but it is seen by Android as an application crash, and may have unplesant side effects, so I'm not going to provide it here. Bottom line - don't worry about process lifetimes too much yourself, and tell users who do that they need to learn to stop worrying and love the Android way of managing resources. -- Kostya 2011/5/29 Anirvan anirvan.majum...@gmail.com thanks for your patience and responses kostya. i really appreciate it. the tip for tracking the process state through the ddms is a good one. so far, i've only used the ddms to track memory usage, cpu load and log comments. and yes, you're right. even upon pressing 'back' from the one and only main activity does NOT kill the process. i wonder why :[ - it feels very counter-intuitive. i understand that pressing the 'home' button while the app runs, puts the app's state into a stack which android can recover again. but i certainly feel that pressing back from the main activity should kill the process unless explicitly programmed not to do so. at this point, i'll need to work around this new found knowledge about process lifecycles. while you mentioned that there doesn't exist a callback mechanism for process kills, but is there a way through which the app process can be killed programmatically from within an app? On May 29, 2:14 am, Kostya Vasilyev kmans...@gmail.com wrote: Your application logic should be coded in such a way that the process can be killed at any time (usually once it's in the background), or not be killed, and still work correctly. There is no callback when the process is killed. Pressing the back key always finishes the current activity - the back key tells Android that the user is done with whatever he was doing in that activity, and will not come back. But this does not kill the process, because activity != process. Try pressing the home key instead - the activity will be paused / stopped, but not terminated, then come back by long-pressing the home key - you should see onStart / onResume, but not onCreate. All of this is explained very well here: http://developer.android.com/guide/topics/fundamentals/activities.htm. .. http://developer.android.com/guide/topics/fundamentals/processes-and-. .. For debugging purposes, use adb shell ps (the usual Unix ps - process state), look for your application within the process list, and note its process ID. Or use the DDMS perspective in Eclipse - the second column in the Devices panel, under Online, is also the process ID. -- Kostya 2011/5/29 Anirvan anirvan.majum...@gmail.com thanks for the response Kostya. but i does one truly determine that the application 'process' has terminated? for testing, i've created a single Activity which serves as the Main. when i press the back button after launching this activity, the app ends. i've also verified that the app is no longer running by checking the Task Manager. is there some other check that i can make from my program to make sure that the app process has terminated? On May 29, 12:33 am, Kostya Vasilyev kmans...@gmail.com
[android-developers] Re: Lifetime of static [instance] variables
i just recalled i wanted one last thing clarified - in an android system, what's the relevance of the Task Manager? i was under the impression that if i were to terminate an application there, it also meant that its related process would end. Conversely, i believed that if the process related to an app is running, then it shows up in the Task Manager. Clearly this is not the case, as i verified on my device. So can you let me know what precisely is the role of the Task Manager? On Sun, May 29, 2011 at 4:53 PM, Anirban Majumdar anirvan.majum...@gmail.com wrote: I am so thankful to you kostya, for such an excellent and simple explanation. Lesson learnt. Thanks again. On 29 May 2011 15:13, Kostya Vasilyev kmans...@gmail.com wrote: Replying back to the list. Most (all?) platforms' model is process == application (more or less). In Android, there really is no such thing as the application (there is, but it is useful to ignore it at first). Therefore, one should unlearn that equality between application and process The unit of installation is package, and the unit of execution is component. Components come in various shapes: activity, broadcast receiver, service, content provider, etc. These components have well defined lifecycles with callbacks. On the other hand, a process is more or less just an implementation detail, having to do more with memory and file protection, crash handling, dealing with out of memory situations, etc. Android keeps processes running as long as possible while there is enough memory. This significantly improves performance if the user or the system again needs one of the components provided by this process. Well written code detects when it's in the background and stops CPU intensive work, so it just sits there dormant, not consuming the CPU battery resources. Mark Murphy compares this model to a web application: just because the user left a page, doesn't mean the web server is stopped right away. I see a similarity to Microsoft COM. Android components are similar to COM objects with a well defined interface (Automation?). Releasing a COM object is not the same as stopping its process, one could keep the process around for a while in case another of its objects is needed (although I don't remember is Windows actually does that). There is a hack an application can use to stop its process, but it is seen by Android as an application crash, and may have unplesant side effects, so I'm not going to provide it here. Bottom line - don't worry about process lifetimes too much yourself, and tell users who do that they need to learn to stop worrying and love the Android way of managing resources. -- Kostya 2011/5/29 Anirvan anirvan.majum...@gmail.com thanks for your patience and responses kostya. i really appreciate it. the tip for tracking the process state through the ddms is a good one. so far, i've only used the ddms to track memory usage, cpu load and log comments. and yes, you're right. even upon pressing 'back' from the one and only main activity does NOT kill the process. i wonder why :[ - it feels very counter-intuitive. i understand that pressing the 'home' button while the app runs, puts the app's state into a stack which android can recover again. but i certainly feel that pressing back from the main activity should kill the process unless explicitly programmed not to do so. at this point, i'll need to work around this new found knowledge about process lifecycles. while you mentioned that there doesn't exist a callback mechanism for process kills, but is there a way through which the app process can be killed programmatically from within an app? On May 29, 2:14 am, Kostya Vasilyev kmans...@gmail.com wrote: Your application logic should be coded in such a way that the process can be killed at any time (usually once it's in the background), or not be killed, and still work correctly. There is no callback when the process is killed. Pressing the back key always finishes the current activity - the back key tells Android that the user is done with whatever he was doing in that activity, and will not come back. But this does not kill the process, because activity != process. Try pressing the home key instead - the activity will be paused / stopped, but not terminated, then come back by long-pressing the home key - you should see onStart / onResume, but not onCreate. All of this is explained very well here: http://developer.android.com/guide/topics/fundamentals/activities.htm... http://developer.android.com/guide/topics/fundamentals/processes-and-... For debugging purposes, use adb shell ps (the usual Unix ps - process state), look for your application within the process list, and note its process ID. Or use the DDMS perspective in Eclipse - the
Re: [android-developers] Re: Lifetime of static [instance] variables
On Sun, May 29, 2011 at 7:44 AM, Anirban Majumdar anirvan.majum...@gmail.com wrote: in an android system, what's the relevance of the Task Manager? There is no task manager in Android. There is the recent tasks list, brought up by a long-press on the HOME button (Android 1.x and 2.x) or a dedicated soft button (Android 3.x). There is the Running tab of the Manage Applications screen in Settings on newer versions of Android. Anything else is a third-party application, either from a device manufacturer or an app you installed yourself. i was under the impression that if i were to terminate an application there, it also meant that its related process would end. You cannot terminate an application in the recent tasks list. You can stop an application via the Running tab, which should cause its process to end. Conversely, i believed that if the process related to an app is running, then it shows up in the Task Manager. The recent tasks list has nothing to do with processes. If an application has a running activity or service, it should appear in the Running tab. -- 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.6 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: Career as an Andoid developer. Is there any point?
Let me tell you something: When a company hires you to do an app (or your management in a large company asks for some new software function of any sort), nine times out of ten they don''t have the foggiest idea what they want you to do. Even if they have a 50-page spec, it'll be more concerned with legalese than actual function. While it can be frustrating and painful to drag out of them the expected function, and negotiate how it will be implemented, the opportunities for innovation are substantial. (In a couple of cases I was given free rein in developing multi-million $ projects.) Certainly there's a trade-off -- working for yourself you only have to negotiate with yourself. But for many programmers (who often as not have more than a touch of ADHD) having some external source of direction (and schedule pressure) can actually be helpful -- helps keep you from running around in circles forever. And, while the negotiations with a company can be painful, there are, as I'm fond of saying, toilets to be cleaned in any occupation. It comes with the job. Don't expect working for yourself to be pain-free and not involve a substantial amount of dog work. On May 28, 11:59 pm, Bob Kerns r...@acm.org wrote: I meant something far more narrow. If you work create a phone app as a work-for-hire, whether as a contractor, vendor, or even as an employee, you will be expected to produce what they're asking for. Often, in this scenario, it will be on a tight budget, and quite narrowly defined. This is in contrast with doing something on your own, where you have a wide open field, and can pursue whatever idea interests you. The question of whether you can innovate in a large company depends a lot on both you and the company. Some large companies are quite well known for encouraging innovation. To take one very significant (though somewhat historical) example: Xerox. I've worked in Digital Equipment's Cambridge Research Lab. Plenty of room to explore and innovate there. But had I been hired, even as an employee, to create an Android app, that would be different -- at least for the life of that product. Sometimes that kind of relationship though can be a route into a company, and lead to more interesting work. I'd like to highlight one thing you said: I was always innovating, in small and large ways. That's a good attitude, and expectation, to go into any work, even the most narrowly defined. There's always room for innovation in small ways, and you will always learn more, be worth more, and have more fun. I only meant to illustrate the that there can be a trade-off between work-for-hire and your own work, in terms of how freely you can innovate. On Saturday, May 28, 2011 9:07:57 PM UTC-7, DanH wrote: I do take issue with the argument that there's no room for innovation with big (or small) corporations. I've spent most of my career (about 36 years) working for large corporations, and, save for the last 2-3 years of that time (when my employer essentially decided they were out of the innovation business), I was always innovating, in small and large ways. I have my name on something like 20 patents, I won several awards from my company, and I had the opportunity to work on a number of interesting projects. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Career as an Andoid developer. Is there any point?
App Inventor is just COBOL warmed over. Nothing changes. Like COBOL, I'm sure that App Inventor has it's uses, but neither will eliminate the need for trained programmers. SQL was also touted as eliminating the need for programmers, and now it's developed into its own programming specialty. On May 29, 4:10 am, Ali Chousein ali.chous...@gmail.com wrote: Like any occupation, unless you're some sort of savant you need to spend about 2000 hours (a year) working at it to achieve basic competence, and 10,000 hours (five years) to become an expert. If you're not prepared to spend that sort of time working at it, then find a different occupation. Dan, in the beginning I completely disagreed with the things you wrote, but I completely agree with what you've written in your last message (although I still believe Android is a good framework:-) ). Yes indeed, anybody who is not willing to spend that much time, should better be a consumer of applications at the Marketplace. The hours you should spend to gain good insight and expertise may vary depending on your experience, but the final message is that you should work hard and spend time. I like the Android framework and I believe that developing applications for Android is a good step to get involved in mobile development. However, I don't like certain things around it. One example is the App Inventor. I've never used it; maybe it can be a helpful tool for people with software engineering background to start a new application very fast. However, App Inventor and the things you can do with it, is either perceived wrongly (in this case Google should deliver the message better) or deliberately marketed with overpromisses (hoax, hoax, hoax!!!). I've seen people who have never written a single for-loop in their life, trying to develop applications with the App Inventor and make money with it. One can always argue that natural selection will eventually eliminate such people, but they will also cause pollution which could hurt the credibility of the framework. (The following is just a hypothetical question, I've not done a statistical analysis in the Marketplace). If 5 out of 10 applications I find in the Marketplace would be rubbish, would I bother searching it in the long run for applications and would I continue using Android? I don't mean that this is the current situation in the Marketplace, by no means. But giving people a tool like App Inventor and then either not delivering the message correctly or deliberately marketing it with empty promises, has the risk to backfire and maybe it's not worth taking that risk. Software development cannot be 100% automated. Period. -Ali On May 29, 6:07 am, DanH danhi...@ieee.org wrote: Yeah, Bob, I think you mostly understand where I was coming from: 1) Don't focus your career on any single technology or product but rather seek to have a broad-based, multi-specialty background and the flexibility to move from project to project. And don't short-change learning the fundamentals. 2) Don't expect to strike it rich on some viral app. Work up a plan for who your customer is and how you will serve their needs. In terms of marketing, market yourself to a few people (ie, other companies) rather than the masses. Mass marketing is simply beyond the capabilities of an individual developer. I do take issue with the argument that there's no room for innovation with big (or small) corporations. I've spent most of my career (about 36 years) working for large corporations, and, save for the last 2-3 years of that time (when my employer essentially decided they were out of the innovation business), I was always innovating, in small and large ways. I have my name on something like 20 patents, I won several awards from my company, and I had the opportunity to work on a number of interesting projects. But the main point I'd make is that programming is HARD WORK. I see too many people on various forums (actually less here than elsewhere) who try to get into it without doing their homework, figuring they can get along by just modifying sample programs, lashing together bits of code they've Googled, begging experienced people to do their work for them. You might be able to lash together some app that sells a few hundred copies in the Marketplace this way, but it's not going to even pay the rent, much less put a kid through college or buy you a house. No company is going to hire you, or, if they do, you won't last long. Like any occupation, unless you're some sort of savant you need to spend about 2000 hours (a year) working at it to achieve basic competence, and 10,000 hours (five years) to become an expert. If you're not prepared to spend that sort of time working at it, then find a different occupation. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this
[android-developers] Re: Network operation every half sec.
Anyone out there who had handled such type of scenarios previously? Regards, Mahavir On Sun, May 29, 2011 at 7:51 AM, Mahavir Jain vir.j...@gmail.com wrote: Hi, I want to make network operation in every half sec and depending on data, i want to update the ListView continuously. Following is my approach: Using thread and handler.postDelayed, it makes the network request every sec and update only those views of the row in ListView which needs to be updated. It does not update ListView using notifyDatasetChanged(). Though it updates the UI, but it takes time in updating the UI. Is it because, I am using emulator? Is this the right approach for this scenario? Any other best approach for this? Anyone handled such scenarios previously? Thanks in advance. Regards, Mahavir Jain -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Does new Google Music Beta support end user selection of songs via intents
I have an application that uses ACTION_PICK to allow the user to pick a song. Once that song is picked, the application uses the cursor location and does another intent later on to show the NOW_PLAYING interface. The application worked fine until I installed Music Beta on my droid device. The application then began failing with UnsupportedOperationException. The intent and filters looked like this: Intent intent = new Intent(Intent.ACTION_PICK); intent.setType(vnd.android.cursor.dir/track); this.startActivity(intent); I uninstalled Music Bata and the application again worked fine. Wanted to see if this was a bug related to new Google music application and see if anyone else was having this problem. Here is the log: 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): FATAL EXCEPTION: main 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.PICK dat= typ=vnd.android.cursor.dir/track } 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java: 1408) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at android.app.Instrumentation.execStartActivity(Instrumentation.java: 1378) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at android.app.Activity.startActivityForResult(Activity.java:2817) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at djf.songing.Songing.onTouchEvent(Songing.java:124) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at android.app.Activity.dispatchTouchEvent(Activity.java:2089) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1655) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at android.view.ViewRoot.handleMessage(ViewRoot.java:1785) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at android.os.Handler.dispatchMessage(Handler.java:99) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at android.os.Looper.loop(Looper.java:123) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at android.app.ActivityThread.main(ActivityThread.java:4627) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at java.lang.reflect.Method.invokeNative(Native Method) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at java.lang.reflect.Method.invoke(Method.java:521) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:858) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Strategy to implelment various themes?
You can read what theme the user has selected from preference and then set it before the setContentView() method with setTheme(). However you cannot change it on the fly in android, so you need to restart the app for the new theme to kick in. On May 29, 12:50 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Could somebody offer any pointters/best practicies to swap the LF of an app based on a user perference? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ListView overscroll disable
I might be asking in the wrong group, but maybe somebody has an idea... so here goes: how can I disable the list overscroll that Samsung has implemented on some terminals running Android, like Galaxy S? And it`s on the 2.2 build. 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] Does new Google Music Beta support end user selection of songs via intents
Try MediaStore.Audio.Media.CONTENT_TYPE instead, which maps to vnd.android.cursor.dir/audio. The MIME type you are using is undocumented. On Sun, May 29, 2011 at 9:13 AM, dsurround dsurro...@gmail.com wrote: I have an application that uses ACTION_PICK to allow the user to pick a song. Once that song is picked, the application uses the cursor location and does another intent later on to show the NOW_PLAYING interface. The application worked fine until I installed Music Beta on my droid device. The application then began failing with UnsupportedOperationException. The intent and filters looked like this: Intent intent = new Intent(Intent.ACTION_PICK); intent.setType(vnd.android.cursor.dir/track); this.startActivity(intent); I uninstalled Music Bata and the application again worked fine. Wanted to see if this was a bug related to new Google music application and see if anyone else was having this problem. Here is the log: 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): FATAL EXCEPTION: main 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.PICK dat= typ=vnd.android.cursor.dir/track } 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java: 1408) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at android.app.Instrumentation.execStartActivity(Instrumentation.java: 1378) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at android.app.Activity.startActivityForResult(Activity.java:2817) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at djf.songing.Songing.onTouchEvent(Songing.java:124) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at android.app.Activity.dispatchTouchEvent(Activity.java:2089) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1655) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at android.view.ViewRoot.handleMessage(ViewRoot.java:1785) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at android.os.Handler.dispatchMessage(Handler.java:99) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at android.os.Looper.loop(Looper.java:123) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at android.app.ActivityThread.main(ActivityThread.java:4627) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at java.lang.reflect.Method.invokeNative(Native Method) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at java.lang.reflect.Method.invoke(Method.java:521) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:858) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.6 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: Want to know about Jython for Monkey runner
You only need monkeyrunner to run monkeyrunner scripts. On May 25, 6:06 am, harry asir harryjoh...@gmail.com wrote: Hi, I am very new to monkey runner. Inorder to write code/scripts using monkey runner API, need Jython. I want to know whether Jython is opensource or licenced one. Also, need help in running monkey runner on android devices (focusing mainly on key storkes and screen shots). ThanksRegards, John -- Have you read my blog ? http://dtmilano.blogspot.com android junit tests ui linux cult thin clients -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cannot enable Bluetooth
Hi everyone, What Andoird APIs level does Bluetooth support? I cannot enable Bluetooth, could someone instruct me to enable this? On Sun, May 29, 2011 at 5:32 PM, Jonas Petersson jonas.peters...@xms.sewrote: Hi Khan, On 2011-05-29 12:22, khanh_qhi™ wrote: I'm creating an simple chatter appllication on Android via Bluetooth. I use *mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();* but,*mBluetoothAdapter = null, *so I don't know how to eable *BluetoothAdapter*? Tried this? http://developer.android.com/guide/topics/wireless/bluetooth.html Best / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Khanh. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cannot enable Bluetooth
Hi again Kahn, On 2011-05-29 16:24, khanh_qhi™ wrote: What Andoird APIs level does Bluetooth support? You'll need at least 2.0 for SDK BT support (with a fair amount of effort you MAY be able to enable it in 1.x, but for that you are in the wrong group). I cannot enable Bluetooth, could someone instruct me to enable this? At the bottom of the page I sent earlier is a link to a demo app: http://developer.android.com/resources/samples/BluetoothChat/index.html Good luck / Jonas On Sun, May 29, 2011 at 5:32 PM, Jonas Petersson jonas.peters...@xms.se mailto:jonas.peters...@xms.se wrote: [...] Tried this? http://developer.android.com/guide/topics/wireless/bluetooth.html Best / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ListView overscroll disable
On 29 May 2011 15:28, crios crios8...@gmail.com wrote: I might be asking in the wrong group, but maybe somebody has an idea... so here goes: how can I disable the list overscroll that Samsung has implemented on some terminals running Android, like Galaxy S? And it`s on the 2.2 build. In your app? Try going that way if you *really* need to: http://jasonfry.co.uk/?id=27 Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cannot enable Bluetooth
Did you make sure you got the right permissions? What is the error (check your logcat after the force close, or catch the exception in the debugger.) On May 29, 2011 10:41 AM, Jonas Petersson jonas.peters...@xms.se wrote: Hi again Kahn, On 2011-05-29 16:24, khanh_qhi™ wrote: What Andoird APIs level does Bluetooth support? You'll need at least 2.0 for SDK BT support (with a fair amount of effort you MAY be able to enable it in 1.x, but for that you are in the wrong group). I cannot enable Bluetooth, could someone instruct me to enable this? At the bottom of the page I sent earlier is a link to a demo app: http://developer.android.com/resources/samples/BluetoothChat/index.html Good luck / Jonas On Sun, May 29, 2011 at 5:32 PM, Jonas Petersson jonas.peters...@xms.se mailto:jonas.peters...@xms.se wrote: [...] Tried this? http://developer.android.com/guide/topics/wireless/bluetooth.html Best... -- 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] Faster screen orientation change for fragments
Android activities have a pair of methods onRetainNonConfigurationInstance()/getLastNonConfigurationInstance() for keeping objects expensive for load during configuration changes. What should be a nice behavior for fragments in such case? Is setRetainInstance() a solution? What about usage of configuration- specific resources after setting it to true? Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android gps error on mobile when touch screen to send the lat and long
Here is the error i got when i run my android code contains two activities . enter code here 05-29 19:23:42.131: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:42.131: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:42.131: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:42.384: WARN/ActivityManager(180): Activity destroy timeout for HistoryRecord{49f447f0 yaraby.y/.yarab} 05-29 19:23:43.136: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:43.136: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:43.136: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:44.136: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:44.136: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:44.136: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:45.131: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:45.131: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:45.131: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:46.135: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:46.135: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:46.135: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:47.136: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:47.136: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:47.136: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:48.131: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:48.131: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:48.131: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:49.135: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:49.135: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:49.135: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:50.135: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:50.135: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:50.135: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:51.131: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:51.131: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:51.131: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E the code its a map view and contains button start so that when i click on it its send the string data lat and long to my server enter code here package yaraby.y; public class yarab extends MapActivity { Socket clientSocket; TextView Text; private MapView mapView; private MapController mc; DataOutputStream outToServer; BufferedReader inFromServer ; Button start; int error = 50; GeoPoint p, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13,p14,p15,p16,p17,p18,p19,p20,p21,p22,p23,p24,p25,p26,p27,p28,p29; ListOverlay mapOverlays; Drawable drawable, drawable2, drawable3, drawable4, drawable6, drawable7, drawable8, drawable9, drawable10, drawable11, drawable12, drawable13, drawable5, drawable14, drawable15, drawable16, drawable17, drawable18, drawable19, drawable20, drawable21, drawable22, drawable23, drawable24, drawable25, drawable26, drawable27, drawable28, drawable29; HelloItemizedOverlay itemizedOverlay, itemizedOverlay2, itemizedOverlay3, itemizedOverlay4, itemizedOverlay5, itemizedOverlay6, itemizedOverlay7, itemizedOverlay8, itemizedOverlay9, itemizedOverlay10, itemizedOverlay11, itemizedOverlay12, itemizedOverlay13, itemizedOverlay14, itemizedOverlay15, itemizedOverlay16, itemizedOverlay17, itemizedOverlay18, itemizedOverlay19, itemizedOverlay20, itemizedOverlay21, itemizedOverlay22, itemizedOverlay23, itemizedOverlay24, itemizedOverlay25, itemizedOverlay26, itemizedOverlay27, itemizedOverlay28, itemizedOverlay29; LocationManager locationManager; Button next; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main2); /* Use the LocationManager
[android-developers] Intent fails to grab image on certain devices
In my application I want to let users pick a custom image. Currently I'm using the following code to do this: http://paste2.org/p/1442508 (also pasted below). It works great on most phones but a few users have reported it isn't working on their phones. Also this also only works using the default gallery application. Is there a better way to do this that work on all devices and not just a narrow subset? -- public final int GOT_IMAGE =1; private void getImage() { Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType(image/*); mUri = Uri.fromFile(new File(Environment.getExternalStorageDirectory(),temp_image + .jpg)); intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, mUri); try { intent.putExtra(return-data, true); startActivityForResult(intent,GOT_IMAGE ); } catch (ActivityNotFoundException e) { e.printStackTrace(); } } protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode != RESULT_OK) { customImgChk.setChecked(false); return; } if (requestCode == GOT_IMAGE) { Bitmap image = BitmapFactory.decodeFile(mUri.getPath()); if (image!=null) { image = WPUtil.resizeBitmap(image, WPUtil.IMAGE_SIZE_X, WPUtil.IMAGE_SIZE_Y); } else { customImgChk.setChecked(false); Toast.makeText(this.getApplicationContext(), Failed to grab image!, Toast.LENGTH_LONG).show(); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Ang.: Accelerometer frequency
Hi, I made some more tests on my Nexus S with OS 2.3.4. Sensor reading period averages for different sensor delays. Sensor.TYPE_GYROSCOPE - SENSOR_DELAY_NORMAL 9.2ms - SENSOR_DELAY_UI 9.2ms - SENSOR_DELAY_GAME 9.2ms - SENSOR_DELAY_FASTEST 1.15ms Sensor.TYPE_ACCELEROMETER - SENSOR_DELAY_NORMAL 161ms - SENSOR_DELAY_UI 20ms - SENSOR_DELAY_GAME 20ms - SENSOR_DELAY_FASTEST 20ms Sensor.TYPE_MAGNETIC_FIELD - SENSOR_DELAY_NORMAL 125ms - SENSOR_DELAY_UI 60ms - SENSOR_DELAY_GAME 20ms - SENSOR_DELAY_FASTEST 16.7ms Regards, Dag -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Intent fails to grab image on certain devices
Write your own image selector using the MediaStore content provider. On Sun, May 29, 2011 at 2:26 PM, neuromit stuart.lay...@gmail.com wrote: In my application I want to let users pick a custom image. Currently I'm using the following code to do this: http://paste2.org/p/1442508 (also pasted below). It works great on most phones but a few users have reported it isn't working on their phones. Also this also only works using the default gallery application. Is there a better way to do this that work on all devices and not just a narrow subset? -- public final int GOT_IMAGE =1; private void getImage() { Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType(image/*); mUri = Uri.fromFile(new File(Environment.getExternalStorageDirectory(),temp_image + .jpg)); intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, mUri); try { intent.putExtra(return-data, true); startActivityForResult(intent,GOT_IMAGE ); } catch (ActivityNotFoundException e) { e.printStackTrace(); } } protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode != RESULT_OK) { customImgChk.setChecked(false); return; } if (requestCode == GOT_IMAGE) { Bitmap image = BitmapFactory.decodeFile(mUri.getPath()); if (image!=null) { image = WPUtil.resizeBitmap(image, WPUtil.IMAGE_SIZE_X, WPUtil.IMAGE_SIZE_Y); } else { customImgChk.setChecked(false); Toast.makeText(this.getApplicationContext(), Failed to grab image!, Toast.LENGTH_LONG).show(); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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.6 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] Regarding Flash Usage in Android App
On Sun, May 29, 2011 at 3:09 AM, yogendra G yogi2...@gmail.com wrote: I need some flash concepts to be used in my app developing so please can any one tel how to implement in my app if its available in android 2.2 and above with sample codes or app...?? http://www.catb.org/~esr/faqs/smart-questions.html - 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: Intent fails to grab image on certain devices
hmm... so I take it there isn't a simpler way than that. On May 29, 2:42 pm, Mark Murphy mmur...@commonsware.com wrote: Write your own image selector using the MediaStore content provider. On Sun, May 29, 2011 at 2:26 PM, neuromit stuart.lay...@gmail.com wrote: In my application I want to let users pick a custom image. Currently I'm using the following code to do this: http://paste2.org/p/1442508(also pasted below). It works great on most phones but a few users have reported it isn't working on their phones. Also this also only works using the default gallery application. Is there a better way to do this that work on all devices and not just a narrow subset? -- public final int GOT_IMAGE =1; private void getImage() { Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType(image/*); mUri = Uri.fromFile(new File(Environment.getExternalStorageDirectory(),temp_image + .jpg)); intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, mUri); try { intent.putExtra(return-data, true); startActivityForResult(intent,GOT_IMAGE ); } catch (ActivityNotFoundException e) { e.printStackTrace(); } } protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode != RESULT_OK) { customImgChk.setChecked(false); return; } if (requestCode == GOT_IMAGE) { Bitmap image = BitmapFactory.decodeFile(mUri.getPath()); if (image!=null) { image = WPUtil.resizeBitmap(image, WPUtil.IMAGE_SIZE_X, WPUtil.IMAGE_SIZE_Y); } else { customImgChk.setChecked(false); Toast.makeText(this.getApplicationContext(), Failed to grab image!, Toast.LENGTH_LONG).show(); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 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: Intent fails to grab image on certain devices
On Sun, May 29, 2011 at 3:27 PM, neuromit stuart.lay...@gmail.com wrote: hmm... so I take it there isn't a simpler way than that. You are welcome to recommend to users that they install some third-party application that supports ACTION_GET_CONTENT for images. Otherwise, at best, the default gallery application will be what responds, by definition. -- 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.6 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: Intent fails to grab image on certain devices
That's actually not a bad idea, i wonder if anyone has a recommendation On May 29, 3:31 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, May 29, 2011 at 3:27 PM, neuromit stuart.lay...@gmail.com wrote: hmm... so I take it there isn't a simpler way than that. You are welcome to recommend to users that they install some third-party application that supports ACTION_GET_CONTENT for images. Otherwise, at best, the default gallery application will be what responds, by definition. -- 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.6 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: android gps error on mobile when touch screen to send the lat and long
Androiders any help please it is not hard On May 29, 7:46 pm, ingy abbas ingy.abba...@gmail.com wrote: Here is the error i got when i run my android code contains two activities . enter code here 05-29 19:23:42.131: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:42.131: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:42.131: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:42.384: WARN/ActivityManager(180): Activity destroy timeout for HistoryRecord{49f447f0 yaraby.y/.yarab} 05-29 19:23:43.136: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:43.136: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:43.136: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:44.136: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:44.136: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:44.136: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:45.131: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:45.131: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:45.131: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:46.135: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:46.135: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:46.135: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:47.136: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:47.136: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:47.136: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:48.131: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:48.131: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:48.131: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:49.135: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:49.135: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:49.135: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:50.135: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:50.135: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:50.135: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E 05-29 19:23:51.131: ERROR/libgps(180): onUnsol: cmd 0x04 plen 57 05-29 19:23:51.131: ERROR/libgps(180): oem_unsol_gps_measurement: num_sv 3 05-29 19:23:51.131: ERROR/libgps(180): oem_unsol_gps_measurement: used_in_fix_mask 014E the code its a map view and contains button start so that when i click on it its send the string data lat and long to my server enter code here package yaraby.y; public class yarab extends MapActivity { Socket clientSocket; TextView Text; private MapView mapView; private MapController mc; DataOutputStream outToServer; BufferedReader inFromServer ; Button start; int error = 50; GeoPoint p, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13,p14,p15,p16,p17,p18,p19,p20,p21,p22,p23,p24,p25,p26,p27,p28,p29; ListOverlay mapOverlays; Drawable drawable, drawable2, drawable3, drawable4, drawable6, drawable7, drawable8, drawable9, drawable10, drawable11, drawable12, drawable13, drawable5, drawable14, drawable15, drawable16, drawable17, drawable18, drawable19, drawable20, drawable21, drawable22, drawable23, drawable24, drawable25, drawable26, drawable27, drawable28, drawable29; HelloItemizedOverlay itemizedOverlay, itemizedOverlay2, itemizedOverlay3, itemizedOverlay4, itemizedOverlay5, itemizedOverlay6, itemizedOverlay7, itemizedOverlay8, itemizedOverlay9, itemizedOverlay10, itemizedOverlay11, itemizedOverlay12, itemizedOverlay13, itemizedOverlay14, itemizedOverlay15, itemizedOverlay16, itemizedOverlay17, itemizedOverlay18, itemizedOverlay19, itemizedOverlay20, itemizedOverlay21, itemizedOverlay22, itemizedOverlay23, itemizedOverlay24, itemizedOverlay25, itemizedOverlay26, itemizedOverlay27, itemizedOverlay28, itemizedOverlay29; LocationManager locationManager; Button next; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState)
[android-developers] Three-level ExpandableListView possible?
I was wondering if there is a way to make a three-level ExpandableListView? I successfully made a two-level ExpandableListView with the help of a tutorial (http://developer.android.com/resources/samples/ApiDemos/src/ com/example/android/apis/view/ExpandableList1.html) But what I want to do is to display an object SystemPlatform which contains an array of sub-objects Game. The sub-objects Game also each can contain sub-objects Cheat. So I want to display all three levels in an ExpandableListView. First only displaying the names of the SystemPlatform objects. When clicking on a SystemPlatform the Game sub-objects will be displayed. If clicked on a Game then the Cheat objects will be expanded. Basically I don't have a two-level list (group children) but a three- level list (group child-groups children). Any way how I could do such a thing? Thanks a lot for help! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: EditText stops displaying characters as I'm typing?
I have run into this as well. The edit text will accept entry without issue, then it just stops displaying the text entered, but it is there because the getText will find it. EditText android:id=@+id/inputText android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1 android:inputType=textMultiLine / Like you, I originally had the requestFocus / property set, but had to get rid of it as it seemed to be causing other issues. This error occurs both with and without that attribute. Like your code above, I get the text and set it to an empty string when finished. I use an EditText.OnKeyListener and perform my work on KeyEvent.KEYCODE_ENTER and KeyEvent.KEYCODE_DPAD_CENTER, however. I haven't seen this behavior on an emulator, but I have seen it on an LG device. Web searches seem to indicate that it might occur on Samsung devices as well and some of my customers have reported it in market comments (so I don't know what devices they are using) so I don't think it is a device specific bug But who knows. Hopefully someone has some insight. Best Regards, Eric -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HierarchyViewer on Nexus 1 HowTo
Hi, Does anyone know of a HowTo for getting HierarchyViewer going on a Nexus 1? So far I have unlocked the bootloader and rooted the device. From what I understand I next need to find a ROM which is suitable. (I'm still getting Unable to debug device errors) (I was told at IO that this is a useful tool but running the emulator in my environment isn't really practical) Regards, Julius. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Three-level ExpandableListView possible?
On Sun, May 29, 2011 at 3:14 PM, Dominik Erbsland derbsl...@gmail.comwrote: Any way how I could do such a thing? There is nothing built-in for this. You'd have to write your own based on the existing implementation. Or use 3 ListViews. Or a ListView and an ExpandableListview. - 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] Gallery question: loading the current image from a context menu to wallpaper
I'm looking at the Gallery example from the Android-sdk samples (android-7/ApiDemos/src//view/Gallery1.java), and am trying to load the currently-displayed image, from the long-press context menu, as wallpaper. In that example, I have the index number within the array of R.drawable.filename values (i.e., for mImageIds[position], I have position, but what I need, is the value of mImageIds[position]. Is there a way to query the Gallery code for the resource value for the current image? I've looked, and I've been trying to do this for days, and have gotten nothing but one error after another, where correcting one error causes another, for which the correction is to reverse the correction for the first error (that, or declare variables that change constantly to static and/or final). How would I go about this? Later, --jim -- 73 DE N5IAL (/4) Running FreeBSD 7.0 ICBM / Hurricane: 30.44406N 86.59909W No, try rm -rf / As your life flashes before your eyes, in the unit of time known as an ohnosecond (alt.sysadmin.recovery) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] facebook
I've been trying to learn how to integrate facebook stuff here: http://developers.facebook.com/docs/guides/mobile/#android I've got this code: package com.greatapp; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import com.facebook.android.*; import com.facebook.android.Facebook.*; public class hmm extends Activity { Facebook facebook = new Facebook(my app id); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); facebook.authorize(this, new DialogListener() { @Override public void onComplete(Bundle values) {} @Override public void onFacebookError(FacebookError error) {} @Override public void onError(DialogError e) {} @Override public void onCancel() {} }); } @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); facebook.authorizeCallback(requestCode, resultCode, data); } } Do I need to put the API key or the app secret anywhere to make this work? 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] post on wall
I have the following code that posts a message on a facebook wall: package com.greatapp; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import com.facebook.android.*; import com.facebook.android.Facebook.*; public class hmm extends Activity { static Context c; Facebook facebook = new Facebook(app id); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); c = this.getApplicationContext(); setContentView(R.layout.main); String[] permissions = new String[] { publish_stream, read_stream, offline_access }; facebook.authorize(this, permissions, new DialogListener() { @Override public void onComplete(Bundle values) { postOnWall(this is a test); } @Override public void onFacebookError(FacebookError error) { } @Override public void onError(DialogError e) { } @Override public void onCancel() { } }); } public void postOnWall(String msg) { try { String response = facebook.request(me); Bundle parameters = new Bundle(); parameters.putString(message, msg); parameters.putString(description, test test test); response = facebook.request(me/feed, parameters, POST); if (response == null || response.equals() || response.equals(false)) { } } catch (Exception e) { e.printStackTrace(); } } @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); facebook.authorizeCallback(requestCode, resultCode, data); } } It works on one phone but seems to exit quickly on another. Any ideas why it fails on one phone? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] post on wall
Did you debug it on the other phone and set a breakpoint to tell you what went wrong / check the logcat? Kris On Sun, May 29, 2011 at 9:35 PM, bob b...@coolgroups.com wrote: I have the following code that posts a message on a facebook wall: package com.greatapp; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import com.facebook.android.*; import com.facebook.android.Facebook.*; public class hmm extends Activity { static Context c; Facebook facebook = new Facebook(app id); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); c = this.getApplicationContext(); setContentView(R.layout.main); String[] permissions = new String[] { publish_stream, read_stream, offline_access }; facebook.authorize(this, permissions, new DialogListener() { @Override public void onComplete(Bundle values) { postOnWall(this is a test); } @Override public void onFacebookError(FacebookError error) { } @Override public void onError(DialogError e) { } @Override public void onCancel() { } }); } public void postOnWall(String msg) { try { String response = facebook.request(me); Bundle parameters = new Bundle(); parameters.putString(message, msg); parameters.putString(description, test test test); response = facebook.request(me/feed, parameters, POST); if (response == null || response.equals() || response.equals(false)) { } } catch (Exception e) { e.printStackTrace(); } } @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); facebook.authorizeCallback(requestCode, resultCode, data); } } It works on one phone but seems to exit quickly on another. Any ideas why it fails on one phone? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sample App with Bluetooth
Hi, Anyone has sample application with bluetooth? can you send it to me to read more about how to use bluetooth? -- Regards, Khanh. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: EditText stops displaying characters as I'm typing?
Simply question: Does the problem happen if you remove your editor action listener? On May 30, 4:21 am, Eric Carman ewcarma...@gmail.com wrote: I have run into this as well. The edit text will accept entry without issue, then it just stops displaying the text entered, but it is there because the getText will find it. EditText android:id=@+id/inputText android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1 android:inputType=textMultiLine / Like you, I originally had the requestFocus / property set, but had to get rid of it as it seemed to be causing other issues. This error occurs both with and without that attribute. Like your code above, I get the text and set it to an empty string when finished. I use an EditText.OnKeyListener and perform my work on KeyEvent.KEYCODE_ENTER and KeyEvent.KEYCODE_DPAD_CENTER, however. I haven't seen this behavior on an emulator, but I have seen it on an LG device. Web searches seem to indicate that it might occur on Samsung devices as well and some of my customers have reported it in market comments (so I don't know what devices they are using) so I don't think it is a device specific bug But who knows. Hopefully someone has some insight. Best Regards, Eric -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: NFC send Photo
Android does support peer-to-peer wifi network, what exactly are you talking about? I suspect you mean something somewhat different. Ad hoc access points? You wouldn't want to do that anyway -- it would kill the user's active WiFi connection, and this isn't even remotely a legitimate application for ad hoc access points. (I'm not saying you couldn't establish one as a fallback - ad hoc networks are an ad hoc way of establishing connectivity when there's no regular access point. But that's at a lower level than an application; ad hoc networking is not an application-level feature). Peer-to-peer when not on the same subnet? That is entirely out of Android's hands; it can work, but you shouldn't expect it. If they're on the same subnet and can see each other (which depends on WiFi router configuration, *not* the Android), then you can communicate directly. If not, then try Bluetooth, otherwise, do what Bump appears to do -- send it via an intermediary server, which you can even do over 3G if there's no WiFi. If all else fails, you could display a 2D bar code on the sender's screen and let the receiver pick that up, and queue up the send and receive for later. But no, I'm not saying NFC would not be good for any particular application. I'm saying consider the limitations and see if it's a fit. A Bump-type comm would seem to me to be a good fit. Photo sync would in most cases not be, IMHO. A comm between a camera and a photo frame might be. But since NFC is not universally available, I'd currently consider it to be optional, and give development priority to Bluetooth and WiFi. But since it sets up quickly, once implemented, I'd try it first! Actually, I'd try to do the setup for the different transfer modes in parallel. Still you make a good point about it being easier than Bluetooth. I'd probably do WiFi first because it's easy and familiar and a higher priority product-wise, but NFC looks simple enough to be a reasonable choice of a starting point. On Sunday, May 29, 2011 2:28:35 AM UTC-7, Zsolt Vasvari wrote: So are you saying the NFC would not be good for a Bump-type comm between two devices? It just seems so much easier than pairing two Bluetooth devices and since Android doesn't even support peer-to-peert WIFI networking, that's completely out of the question. On May 29, 9:13 am, Bob Kerns r@acm.org wrote: Send? Just what do you think NFC is, exactly? It sounds like you think it's an alternative to WiFi or Bluetooth. That's not exactly true, or only approximately true, depending on how you want to look at it. While in theory you could use it to communicate between two devices, the short range involved, and the low speed, make it less than attractive for this. If you Bluetooth or WiFi available, those would be much more natural. So you may want to rethink whether this is the right tool for your job. Probably as a result, the activity I'm aware of is more around RFID tags and various active readers. Probably there are people doing it, my point is just that it doesn't seem to be terribly mainstream, and you may have trouble finding code samples. Yes, you'll have to divide it. The details are clearly laid out in the NDEF standard document, which should only have taken you two minutes to locate. That's how long it took me, anyway, starting from never having read any technical details on NFC. Really, I just entered NFC Tag into Google, clicked on Wikipedia, and clicked on this link from the Standards section there: http://www.nfc-forum.org/specs/ http://www.nfc-forum.org/specs/See Section 2.3.3 of the NDEF spec. On Wednesday, May 25, 2011 5:10:56 AM UTC-7, ari...@hotmail.com wrote: hi, I do not think I explained myself well. What I need is the code, so that when i take a photo with my mobile. it bring me the option to send the picture by nfc. thx On 13 mayo, 17:28, cg-dev charle...@gmail.com wrote: Hi, As far as I know, I don't think you can put an image into a tag in a standard way. Check with Smart Poster Ndef tag type, maybe you can with this type. If only your application need to read and write the image, you can simply use Ndef type Text and put your image in a raw buffer. Regards. On 12 mai, 13:46, ari...@hotmail.com ari...@hotmail.com wrote: Hi I asked for the code to send a photo with NFC without using a web page, if the records are 7ks we will have to divide it? or use many, or how can I do it?- Ocultar texto de la cita - - Mostrar texto de la cita -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to
[android-developers] Re: NFC send Photo
By peer-to-peer WIFI I meant that there is no router. I am no networking expert (as you can tell), so my terminology is probably off. An intermediary server in my case is not an option due to the sensitive nature of my custumers' financial data, so it needs to be some sort of peer-to-peer communincation. I wonder if those stickers Google promised to retrofit phones for Google Wallet would be usuable for general purpose NFC applications. On May 30, 10:20 am, Bob Kerns r...@acm.org wrote: Android does support peer-to-peer wifi network, what exactly are you talking about? I suspect you mean something somewhat different. Ad hoc access points? You wouldn't want to do that anyway -- it would kill the user's active WiFi connection, and this isn't even remotely a legitimate application for ad hoc access points. (I'm not saying you couldn't establish one as a fallback - ad hoc networks are an ad hoc way of establishing connectivity when there's no regular access point. But that's at a lower level than an application; ad hoc networking is not an application-level feature). Peer-to-peer when not on the same subnet? That is entirely out of Android's hands; it can work, but you shouldn't expect it. If they're on the same subnet and can see each other (which depends on WiFi router configuration, *not* the Android), then you can communicate directly. If not, then try Bluetooth, otherwise, do what Bump appears to do -- send it via an intermediary server, which you can even do over 3G if there's no WiFi. If all else fails, you could display a 2D bar code on the sender's screen and let the receiver pick that up, and queue up the send and receive for later. But no, I'm not saying NFC would not be good for any particular application. I'm saying consider the limitations and see if it's a fit. A Bump-type comm would seem to me to be a good fit. Photo sync would in most cases not be, IMHO. A comm between a camera and a photo frame might be. But since NFC is not universally available, I'd currently consider it to be optional, and give development priority to Bluetooth and WiFi. But since it sets up quickly, once implemented, I'd try it first! Actually, I'd try to do the setup for the different transfer modes in parallel. Still you make a good point about it being easier than Bluetooth. I'd probably do WiFi first because it's easy and familiar and a higher priority product-wise, but NFC looks simple enough to be a reasonable choice of a starting point. On Sunday, May 29, 2011 2:28:35 AM UTC-7, Zsolt Vasvari wrote: So are you saying the NFC would not be good for a Bump-type comm between two devices? It just seems so much easier than pairing two Bluetooth devices and since Android doesn't even support peer-to-peert WIFI networking, that's completely out of the question. On May 29, 9:13 am, Bob Kerns r@acm.org wrote: Send? Just what do you think NFC is, exactly? It sounds like you think it's an alternative to WiFi or Bluetooth. That's not exactly true, or only approximately true, depending on how you want to look at it. While in theory you could use it to communicate between two devices, the short range involved, and the low speed, make it less than attractive for this. If you Bluetooth or WiFi available, those would be much more natural. So you may want to rethink whether this is the right tool for your job. Probably as a result, the activity I'm aware of is more around RFID tags and various active readers. Probably there are people doing it, my point is just that it doesn't seem to be terribly mainstream, and you may have trouble finding code samples. Yes, you'll have to divide it. The details are clearly laid out in the NDEF standard document, which should only have taken you two minutes to locate. That's how long it took me, anyway, starting from never having read any technical details on NFC. Really, I just entered NFC Tag into Google, clicked on Wikipedia, and clicked on this link from the Standards section there: http://www.nfc-forum.org/specs/ http://www.nfc-forum.org/specs/See Section 2.3.3 of the NDEF spec. On Wednesday, May 25, 2011 5:10:56 AM UTC-7, ari...@hotmail.com wrote: hi, I do not think I explained myself well. What I need is the code, so that when i take a photo with my mobile. it bring me the option to send the picture by nfc. thx On 13 mayo, 17:28, cg-dev charle...@gmail.com wrote: Hi, As far as I know, I don't think you can put an image into a tag in a standard way. Check with Smart Poster Ndef tag type, maybe you can with this type. If only your application need to read and write the image, you can simply use Ndef type Text and put your image in a raw buffer. Regards. On 12 mai, 13:46, ari...@hotmail.com ari...@hotmail.com wrote: Hi I asked for the code to send a photo with NFC without using a
Re: [android-developers] Re: NFC send Photo
On Mon, May 30, 2011 at 11:41 AM, Zsolt Vasvari zvasv...@gmail.com wrote: I wonder if those stickers Google promised to retrofit phones for Google Wallet would be usuable for general purpose NFC applications. Most probably not. A sticker is just an NFC chip that you can glue to your phone or anything else for that matter (we've had those for iPhone for a while). Since the phone has no NFC reader-writer, you need an external device to communicate with those. Plus the Wallet once will be probably be single purpose, so you'd probably not be able to change anything. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: NFC send Photo
I thought I've read somewhere that the sticker would communicate with the phone via Bluetooth. I guess that cannot be right as it would need a power source. On May 30, 11:35 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Mon, May 30, 2011 at 11:41 AM, Zsolt Vasvari zvasv...@gmail.com wrote: I wonder if those stickers Google promised to retrofit phones for Google Wallet would be usuable for general purpose NFC applications. Most probably not. A sticker is just an NFC chip that you can glue to your phone or anything else for that matter (we've had those for iPhone for a while). Since the phone has no NFC reader-writer, you need an external device to communicate with those. Plus the Wallet once will be probably be single purpose, so you'd probably not be able to change anything. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: NFC send Photo
Don't worry about the terminology -- ad hoc wifi network is what you're looking for. I just wanted to figure out what you intended to say. Hmm, peer-to-peer and sensitive financial data has me a bit concerned. I don't advocate sending sensitive data, via servers or not, unencrypted. I hope you're using some sort of public key encryption, with a secure key exchange, such as Diffie-Hellman. If all I have to do is eavesdrop on your NFC communications (The role of the public key encryption part is to give you a way to strongly identify the recipient you're exchanging the encryption keys with). And recognize that phones can be lost or stolen; that poses an upper limit of how secure they are. In fact, ideally, really sensitive data wouldn't be stored on the phone at all. Seriously, I would not consider an intermediate server to be a security issue in the slightest. The reason is -- you should always assume that the communication itself can be intercepted. If you don't store it on a server temporarily -- the attacker may, so that he can attack it at leisure, with as much computer power as he wants. (That assumes it's only on the server for a short time, as part of the communication process. If you store large amounts of secure communications long-term, you become a whole different type of target). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How do you deal with skins clashing with your UI?
I've run into a problem on Motoblur I am not exactly sure how to solve. I have a TextView that I want to look like a Spinner. I can set the theme to android:Widget.Spinner, no problem, but the TextView insits on messing around with the text color unless one is specifically set. So I am giving it the normal Spinner text color, which is textColorPrimaryInverse. The problem is that Motorola decide to customize the Spinner theme so they actually us textColorPrimary (or similar) as the spinner text color. Now, me setting it to textColorPrimaryInverse gives a black text on dark background look which is, obviously, not too good for readability. So my question is: 1) How could I force TextView not to screw around with the color? 2) If that's not possible, how can I detect the presence of Motoblur and set the text color conditionally? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Suspended android developer account
Guys, Any idea about this. What I want is just have a way to get Google's feedback. I just need to know what mistake I make and how can I make my app back to Android Market. Thanks you all. On Sun, May 29, 2011 at 2:31 PM, A.TNG tang.j...@gmail.com wrote: Dear Mobejakt, I met a similar problem. I wrote an application and put it in Android Market. The user feedback are great and it makes me feel I would continue develop and create more feature to fulfill user's requirement. But 3-day before, I get Google's notification and they suspend my app in Android Market. In the notification email, it said I can reply it and get more detail information. I did as they said. But I get nothing from them. I'm still confused after I reviewed their content policy several times. I think I never break them. But Google just suspend my app and no any feedback of my question email. The users are great. They send me email and ask for reason. They show their supportive. But some user starts to doubt whether I put spy into my app. That really makes me feel bad. I use my whole spare time to develop the app, but now I start to be doubted by my user. On Tue, May 3, 2011 at 1:33 AM, mobeljakt nami.zarringha...@gmail.comwrote: Hi! A while ago we wrote a post on our blog about getting spam rewiews on Android market which can be found here: http://www.truecaller.com/blog/2011/04/20/google-please-protect-your-developers/ Just a few weeks ago we used to get about 2-3 reviews per day. Suddenly this increased 10 folds and with all 1 star reviews coming in on bundles. We suspected foul play but unfortunately there wasn't much to do about it however we used the forms for android developers and notified Google about this, hoping that they would be able to detect what was going on. Now 2 weeks later we receive an email saying that our developer account has been suspended because ” We have investigated anomalous app ratings and commenting data associated with your accounts, and have determined that you have engaged in anti-competitive behavior. As a result, your developer account has been closed and your apps have been unpublished from Android Market. ” What have we done? We were attacked, why do you punish us? We don't understand what is wrong and no one in my team believes they have done anything to compromise any competitor. Please Google, help us get to the bottom with this, protect your 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 -- Regards, Jiyu -- Regards, Jiyu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Sample App with Bluetooth
There's a sample app in the SDK demos that works pretty well. BT isn't ultra stable, but works well enough if you're willing to take the time to pair, not expect to connect to a bunch of people, etc... On May 29, 2011 9:49 PM, khanh_qhi™ khanhqh20...@gmail.com wrote: Hi, Anyone has sample application with bluetooth? can you send it to me to read more about how to use bluetooth? -- Regards, Khanh. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Sample App with Bluetooth
Have you looked at the BluethoothChat app? http://developer.android.com/resources/samples/BluetoothChat/index.html On Sun, May 29, 2011 at 9:11 PM, Kristopher Micinski krismicin...@gmail.com wrote: There's a sample app in the SDK demos that works pretty well. BT isn't ultra stable, but works well enough if you're willing to take the time to pair, not expect to connect to a bunch of people, etc... On May 29, 2011 9:49 PM, khanh_qhi™ khanhqh20...@gmail.com wrote: Hi, Anyone has sample application with bluetooth? can you send it to me to read more about how to use bluetooth? -- Regards, Khanh. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Suspended android developer account
What's your app? On May 30, 11:58 am, A.TNG tang.j...@gmail.com wrote: Guys, Any idea about this. What I want is just have a way to get Google's feedback. I just need to know what mistake I make and how can I make my app back to Android Market. Thanks you all. On Sun, May 29, 2011 at 2:31 PM, A.TNG tang.j...@gmail.com wrote: Dear Mobejakt, I met a similar problem. I wrote an application and put it in Android Market. The user feedback are great and it makes me feel I would continue develop and create more feature to fulfill user's requirement. But 3-day before, I get Google's notification and they suspend my app in Android Market. In the notification email, it said I can reply it and get more detail information. I did as they said. But I get nothing from them. I'm still confused after I reviewed their content policy several times. I think I never break them. But Google just suspend my app and no any feedback of my question email. The users are great. They send me email and ask for reason. They show their supportive. But some user starts to doubt whether I put spy into my app. That really makes me feel bad. I use my whole spare time to develop the app, but now I start to be doubted by my user. On Tue, May 3, 2011 at 1:33 AM, mobeljakt nami.zarringha...@gmail.comwrote: Hi! A while ago we wrote a post on our blog about getting spam rewiews on Android market which can be found here: http://www.truecaller.com/blog/2011/04/20/google-please-protect-your-... Just a few weeks ago we used to get about 2-3 reviews per day. Suddenly this increased 10 folds and with all 1 star reviews coming in on bundles. We suspected foul play but unfortunately there wasn't much to do about it however we used the forms for android developers and notified Google about this, hoping that they would be able to detect what was going on. Now 2 weeks later we receive an email saying that our developer account has been suspended because ” We have investigated anomalous app ratings and commenting data associated with your accounts, and have determined that you have engaged in anti-competitive behavior. As a result, your developer account has been closed and your apps have been unpublished from Android Market. ” What have we done? We were attacked, why do you punish us? We don't understand what is wrong and no one in my team believes they have done anything to compromise any competitor. Please Google, help us get to the bottom with this, protect your 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 -- Regards, Jiyu -- Regards, Jiyu- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Suspended android developer account
I mean Google doesn't even punish blatant violators. (DocumentsToGo, hello?). So we have no idea why they would suspend you. On May 30, 11:58 am, A.TNG tang.j...@gmail.com wrote: Guys, Any idea about this. What I want is just have a way to get Google's feedback. I just need to know what mistake I make and how can I make my app back to Android Market. Thanks you all. On Sun, May 29, 2011 at 2:31 PM, A.TNG tang.j...@gmail.com wrote: Dear Mobejakt, I met a similar problem. I wrote an application and put it in Android Market. The user feedback are great and it makes me feel I would continue develop and create more feature to fulfill user's requirement. But 3-day before, I get Google's notification and they suspend my app in Android Market. In the notification email, it said I can reply it and get more detail information. I did as they said. But I get nothing from them. I'm still confused after I reviewed their content policy several times. I think I never break them. But Google just suspend my app and no any feedback of my question email. The users are great. They send me email and ask for reason. They show their supportive. But some user starts to doubt whether I put spy into my app. That really makes me feel bad. I use my whole spare time to develop the app, but now I start to be doubted by my user. On Tue, May 3, 2011 at 1:33 AM, mobeljakt nami.zarringha...@gmail.comwrote: Hi! A while ago we wrote a post on our blog about getting spam rewiews on Android market which can be found here: http://www.truecaller.com/blog/2011/04/20/google-please-protect-your-... Just a few weeks ago we used to get about 2-3 reviews per day. Suddenly this increased 10 folds and with all 1 star reviews coming in on bundles. We suspected foul play but unfortunately there wasn't much to do about it however we used the forms for android developers and notified Google about this, hoping that they would be able to detect what was going on. Now 2 weeks later we receive an email saying that our developer account has been suspended because ” We have investigated anomalous app ratings and commenting data associated with your accounts, and have determined that you have engaged in anti-competitive behavior. As a result, your developer account has been closed and your apps have been unpublished from Android Market. ” What have we done? We were attacked, why do you punish us? We don't understand what is wrong and no one in my team believes they have done anything to compromise any competitor. Please Google, help us get to the bottom with this, protect your 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 -- Regards, Jiyu -- Regards, Jiyu- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: NFC send Photo
On Mon, May 30, 2011 at 12:51 PM, Bob Kerns r...@acm.org wrote: Don't worry about the terminology -- ad hoc wifi network is what you're looking for. I just wanted to figure out what you intended to say. Hmm, peer-to-peer and sensitive financial data has me a bit concerned. I don't advocate sending sensitive data, via servers or not, unencrypted. I hope you're using some sort of public key encryption, with a secure key exchange, such as Diffie-Hellman. If all I have to do is eavesdrop on your NFC communications (The role of the public key encryption part is to give you a way to strongly identify the recipient you're exchanging the encryption keys with). It might actually be easier and more secure to exchange just URLs, and have the app get the data via https *and* authenticate to the server, rather than trying to implement a secure protocol on top of NFC. That way the app can be sure it's talking to the right server (server certificate) and the server can be sure it's giving the data to the right person (Google account, etc. authentication). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: NFC send Photo
I have zero problems with using a servers, but my customers do. My app doesn't require an Internet permission and I intend it to keep it that way. By sensitive I dont' really mean to the point where if I steal a user's phone, I can drain his bank account empty. The worse that will happen is they find out how much I make. It's nothing a Chinese person wouldn't flat out ask you and would expect an honest answer :) On May 30, 12:14 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Mon, May 30, 2011 at 12:51 PM, Bob Kerns r...@acm.org wrote: Don't worry about the terminology -- ad hoc wifi network is what you're looking for. I just wanted to figure out what you intended to say. Hmm, peer-to-peer and sensitive financial data has me a bit concerned. I don't advocate sending sensitive data, via servers or not, unencrypted. I hope you're using some sort of public key encryption, with a secure key exchange, such as Diffie-Hellman. If all I have to do is eavesdrop on your NFC communications (The role of the public key encryption part is to give you a way to strongly identify the recipient you're exchanging the encryption keys with). It might actually be easier and more secure to exchange just URLs, and have the app get the data via https *and* authenticate to the server, rather than trying to implement a secure protocol on top of NFC. That way the app can be sure it's talking to the right server (server certificate) and the server can be sure it's giving the data to the right person (Google account, etc. authentication). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Moving from free app to a paid model
Hi there, So I started working with Android a while back and have an app on the market (which I pertty much wrote for myself) that surprisingly got a great response, especially from abroad. I'm wondering if any of you ever had to take something from free/hobby-focused to a paid model. I'm curious about the technical details, like how to a) organize the package/app names to differentiate the two, because I want the free paid one available at the same time, and b) some good advice on moving my few but loyal users over without forcing them to download a new app entirely. Lurkingly yours, - C -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Moving from free app to a paid model
They will HAVE to download a new app. Each app is different and there is no way of making a previously free app paid. So you will need to change the package name and package name = app. Personally, I just appended a p after my non-paid app name to create the new package name. Coincidentally, just a couple of weeks ago, as an experiment, I stopped publishing my free app completely and instead am offering a 72- hour money back guarantee. My sales have noticably increased and the refund rate is less than 5% so it may have been a good move -- time will tell. On May 30, 12:21 pm, Chris crehb...@gmail.com wrote: Hi there, So I started working with Android a while back and have an app on the market (which I pertty much wrote for myself) that surprisingly got a great response, especially from abroad. I'm wondering if any of you ever had to take something from free/hobby-focused to a paid model. I'm curious about the technical details, like how to a) organize the package/app names to differentiate the two, because I want the free paid one available at the same time, and b) some good advice on moving my few but loyal users over without forcing them to download a new app entirely. Lurkingly yours, - C -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] 回覆:facebook
no, you don't need to put app secret. authorization of your app will be done by official app installed. a pop up browser window will be shown. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: NFC send Photo
Ah. Well, I'm going to assume you understand your customers (but suggest you always question whether you do! :=) Indeed, one should always keep one's security practices in conformity with the nature of what you are protecting. But I would certainly consider salary information to be sensitive enough to justify encryption. But you're not giving us a lot of detail, so I guess I can't say much more. (I am not faulting you for that). Good luck. On Sunday, May 29, 2011 9:21:39 PM UTC-7, Zsolt Vasvari wrote: I have zero problems with using a servers, but my customers do. My app doesn't require an Internet permission and I intend it to keep it that way. By sensitive I dont' really mean to the point where if I steal a user's phone, I can drain his bank account empty. The worse that will happen is they find out how much I make. It's nothing a Chinese person wouldn't flat out ask you and would expect an honest answer :) On May 30, 12:14 pm, Nikolay Elenkov nikolay...@gmail.com wrote: On Mon, May 30, 2011 at 12:51 PM, Bob Kerns r@acm.org wrote: Don't worry about the terminology -- ad hoc wifi network is what you're looking for. I just wanted to figure out what you intended to say. Hmm, peer-to-peer and sensitive financial data has me a bit concerned. I don't advocate sending sensitive data, via servers or not, unencrypted. I hope you're using some sort of public key encryption, with a secure key exchange, such as Diffie-Hellman. If all I have to do is eavesdrop on your NFC communications (The role of the public key encryption part is to give you a way to strongly identify the recipient you're exchanging the encryption keys with). It might actually be easier and more secure to exchange just URLs, and have the app get the data via https *and* authenticate to the server, rather than trying to implement a secure protocol on top of NFC. That way the app can be sure it's talking to the right server (server certificate) and the server can be sure it's giving the data to the right person (Google account, etc. authentication). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Sample App with Bluetooth
Hi Indika, I have tried BluetoothChat app at your link, but when I run this one I got the message from app: Bluetooth is not enable and finish app. I don't understand? Can you tell me more clear about this? On Mon, May 30, 2011 at 11:13 AM, Indika Jayasinghe ijaya...@gmail.comwrote: Have you looked at the BluethoothChat app? http://developer.android.com/resources/samples/BluetoothChat/index.html On Sun, May 29, 2011 at 9:11 PM, Kristopher Micinski krismicin...@gmail.com wrote: There's a sample app in the SDK demos that works pretty well. BT isn't ultra stable, but works well enough if you're willing to take the time to pair, not expect to connect to a bunch of people, etc... On May 29, 2011 9:49 PM, khanh_qhi™ khanhqh20...@gmail.com wrote: Hi, Anyone has sample application with bluetooth? can you send it to me to read more about how to use bluetooth? -- Regards, Khanh. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Khanh. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: NFC send Photo
Well, I am just throwing idea out there. I haven't decided on NFC or that it would use encryption -- it might based on your feedback. I just won't be going the centralized server route, that's I am 100% certain about. Salary information is sensitive enough in the Western world, but if you ever drive around in a taxi in Beijing, don't be surprised if the driver will ask you hold old you are, if you are married and how much money you make. It's a cultural thing. On May 30, 1:06 pm, Bob Kerns r...@acm.org wrote: Ah. Well, I'm going to assume you understand your customers (but suggest you always question whether you do! :=) Indeed, one should always keep one's security practices in conformity with the nature of what you are protecting. But I would certainly consider salary information to be sensitive enough to justify encryption. But you're not giving us a lot of detail, so I guess I can't say much more. (I am not faulting you for that). Good luck. On Sunday, May 29, 2011 9:21:39 PM UTC-7, Zsolt Vasvari wrote: I have zero problems with using a servers, but my customers do. My app doesn't require an Internet permission and I intend it to keep it that way. By sensitive I dont' really mean to the point where if I steal a user's phone, I can drain his bank account empty. The worse that will happen is they find out how much I make. It's nothing a Chinese person wouldn't flat out ask you and would expect an honest answer :) On May 30, 12:14 pm, Nikolay Elenkov nikolay...@gmail.com wrote: On Mon, May 30, 2011 at 12:51 PM, Bob Kerns r@acm.org wrote: Don't worry about the terminology -- ad hoc wifi network is what you're looking for. I just wanted to figure out what you intended to say. Hmm, peer-to-peer and sensitive financial data has me a bit concerned. I don't advocate sending sensitive data, via servers or not, unencrypted. I hope you're using some sort of public key encryption, with a secure key exchange, such as Diffie-Hellman. If all I have to do is eavesdrop on your NFC communications (The role of the public key encryption part is to give you a way to strongly identify the recipient you're exchanging the encryption keys with). It might actually be easier and more secure to exchange just URLs, and have the app get the data via https *and* authenticate to the server, rather than trying to implement a secure protocol on top of NFC. That way the app can be sure it's talking to the right server (server certificate) and the server can be sure it's giving the data to the right person (Google account, etc. authentication).- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: NFC send Photo
Note that using HTTPS does not give you end-to-end security in this scenario. The server is a man-in-the-middle. It's not a surreptitious one, but it is a man-in-the-middle nonetheless. The cert only serves to ensure it's the *right* man in the middle. So you'll still want to encrypt the payload when using a server this way, unless you're going to make the server a trusted partner. And -- for liability reasons, if nothing else -- you'd like to avoid that unless it's essential to the service being provided. A secure key exchange requires at least a pair of bidirectional messages. You're going to have to do that as well. Basically, to communicate securely any untrusted channel, you'll have to do something like what TLS does under HTTPS -- verification of the identity of the other end of the exchange, secure key exchange, and subsequent encryption. You also have to pay attention to key lifetimes, etc. HTTPS between you and the server really isn't buying you much toward end-to-end security. Having the server handle authentication does simplify the picture in various ways. And a secure server in the middle can let you address various security issues with mobile devices, like revoking access more strongly than is possible with certificate revocation lists. There are no simple answers in security. Everything ends up being complicated. On Sunday, May 29, 2011 9:14:11 PM UTC-7, Nikolay Elenkov wrote: It might actually be easier and more secure to exchange just URLs, and have the app get the data via https *and* authenticate to the server, rather than trying to implement a secure protocol on top of NFC. That way the app can be sure it's talking to the right server (server certificate) and the server can be sure it's giving the data to the right person (Google account, etc. authentication). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] mp3 cutter
hi , i am thinking of desining a mp3 cutter on andrioid . i refered the pais and well prepared with an idea but i dint understand how to cut a mp3 song from start point to end point . anyone plz help me in getting the correct idea to develop this app . Thanks in advance ,. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NFC send Photo
Yes, I understand it varies by culture. Here (US), it's exacerbated by a lot of factors with how we handle credit, jobs, etc., but we also have a moderate expectation of privacy. (The Europeans are stronger on it, at least in terms of what laws are on the books. I think our attitudes and our laws don't exactly match up). I generally advocate designing for a multi-cultural world, and this suggests designing privacy and security for the most restrictive cultures. Anyway, I hope the discussion was useful for you. I think it may have been more useful for other readers. On Sunday, May 29, 2011 10:11:28 PM UTC-7, Zsolt Vasvari wrote: Salary information is sensitive enough in the Western world, but if you ever drive around in a taxi in Beijing, don't be surprised if the driver will ask you hold old you are, if you are married and how much money you make. It's a cultural thing. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Sample App with Bluetooth
Are you running it on the emulator? That won't work. On May 30, 2011 1:08 AM, khanh_qhi™ khanhqh20...@gmail.com wrote: Hi Indika, I have tried BluetoothChat app at your link, but when I run this one I got the message from app: Bluetooth is not enable and finish app. I don't understand? Can you tell me more clear about this? On Mon, May 30, 2011 at 11:13 AM, Indika Jayasinghe ijaya...@gmail.com wrote: Have you looke... -- Regards, Khanh. -- You received this message because you are subscribed to the Google Groups Andr... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Orientation problem
Hi guys, Good Morning I need help from yours. I develop one apps that time i met one problem. That is when ever i change that orientation my apps running from starting i dnt knw how to overcome that problem... I wrote separate xml's for portrait and landscape.. can anyone help me pls its very urgent... -- With Regards, SHANMUGANATHAN. A Software Engineer Trainee, Citrisys Solution, Phone: +91.44.22311173 Mail To: sayyadu...@citrisys.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] Orientation problem
are you trying to change the orientation when your app is running or at the beginning ? Please be more clear when asking questions On Mon, May 30, 2011 at 11:02 AM, shanmu nathan win.sha...@gmail.comwrote: Hi guys, Good Morning I need help from yours. I develop one apps that time i met one problem. That is when ever i change that orientation my apps running from starting i dnt knw how to overcome that problem... I wrote separate xml's for portrait and landscape.. can anyone help me pls its very urgent... -- With Regards, SHANMUGANATHAN. A Software Engineer Trainee, Citrisys Solution, Phone: +91.44.22311173 Mail To: sayyadu...@citrisys.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 -- ThanksRegards Kaushik Pendurthi http://kaushikpendurthi.blogspot.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] Minor layout editor bug report
Since I know Xavier reads this forum. Tested with all the latest and greatest: - Open a layout - Save as a different name - Edit the new layout's XML - Switch to the graphical viewer - The graphical viewer is still showing the old layout from before Save as - To get the new layout to display, you need to close the file and reopen it -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] mp3 cutter
Hi check out(CO ) this code and i think it will solve the problem http://code.google.com/p/ringdroid/source/checkout On Mon, May 30, 2011 at 10:53 AM, kampy narasimha1...@gmail.com wrote: hi , i am thinking of desining a mp3 cutter on andrioid . i refered the pais and well prepared with an idea but i dint understand how to cut a mp3 song from start point to end point . anyone plz help me in getting the correct idea to develop this app . Thanks in advance ,. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ThanksRegards Kaushik Pendurthi http://kaushikpendurthi.blogspot.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: Moving from free app to a paid model
Hi guys , can you just mention any place where all the details regarding the app hosting on android market is available ? And can we host paid android apps on our website without anyones permission ?? On Mon, May 30, 2011 at 9:58 AM, Zsolt Vasvari zvasv...@gmail.com wrote: They will HAVE to download a new app. Each app is different and there is no way of making a previously free app paid. So you will need to change the package name and package name = app. Personally, I just appended a p after my non-paid app name to create the new package name. Coincidentally, just a couple of weeks ago, as an experiment, I stopped publishing my free app completely and instead am offering a 72- hour money back guarantee. My sales have noticably increased and the refund rate is less than 5% so it may have been a good move -- time will tell. On May 30, 12:21 pm, Chris crehb...@gmail.com wrote: Hi there, So I started working with Android a while back and have an app on the market (which I pertty much wrote for myself) that surprisingly got a great response, especially from abroad. I'm wondering if any of you ever had to take something from free/hobby-focused to a paid model. I'm curious about the technical details, like how to a) organize the package/app names to differentiate the two, because I want the free paid one available at the same time, and b) some good advice on moving my few but loyal users over without forcing them to download a new app entirely. Lurkingly yours, - C -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ThanksRegards Kaushik Pendurthi http://kaushikpendurthi.blogspot.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] Orientation problem
ok Kaushik Pendurthi. Now what is my need is when i changing the orientation my apps is work continuesly not from the begining... Eg.. Normally i run that app in portrait then time picker shows current value for instance 12:10. i change some values like 21:12. If i changing the orientation the Time picker value also changed to current value thats the problem.. On Mon, May 30, 2011 at 11:08 AM, kaushik p kaushiks...@gmail.com wrote: are you trying to change the orientation when your app is running or at the beginning ? Please be more clear when asking questions On Mon, May 30, 2011 at 11:02 AM, shanmu nathan win.sha...@gmail.comwrote: Hi guys, Good Morning I need help from yours. I develop one apps that time i met one problem. That is when ever i change that orientation my apps running from starting i dnt knw how to overcome that problem... I wrote separate xml's for portrait and landscape.. can anyone help me pls its very urgent... -- With Regards, SHANMUGANATHAN. A Software Engineer Trainee, Citrisys Solution, Phone: +91.44.22311173 Mail To: sayyadu...@citrisys.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 -- ThanksRegards Kaushik Pendurthi http://kaushikpendurthi.blogspot.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 -- With Regards, SHANMUGANATHAN. A Software Engineer Trainee, Citrisys Solution, Phone: +91.44.22311173 Mail To: sayyadu...@citrisys.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: Moving from free app to a paid model
You could offer an in-app purchase to upgrade users from your existing free app to whatever extra capability/content you believe they will pay for. That way you only have a single app, single source base. On May 30, 2:21 pm, Chris crehb...@gmail.com wrote: Hi there, So I started working with Android a while back and have an app on the market (which I pertty much wrote for myself) that surprisingly got a great response, especially from abroad. I'm wondering if any of you ever had to take something from free/hobby-focused to a paid model. I'm curious about the technical details, like how to a) organize the package/app names to differentiate the two, because I want the free paid one available at the same time, and b) some good advice on moving my few but loyal users over without forcing them to download a new app entirely. Lurkingly yours, - C -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Sample App with Bluetooth
Yeah, I run it on emulator and it won't work. On Mon, May 30, 2011 at 12:28 PM, Kristopher Micinski krismicin...@gmail.com wrote: Are you running it on the emulator? That won't work. On May 30, 2011 1:08 AM, khanh_qhi™ khanhqh20...@gmail.com wrote: Hi Indika, I have tried BluetoothChat app at your link, but when I run this one I got the message from app: Bluetooth is not enable and finish app. I don't understand? Can you tell me more clear about this? On Mon, May 30, 2011 at 11:13 AM, Indika Jayasinghe ijaya...@gmail.com wrote: Have you looke... -- Regards, Khanh. -- You received this message because you are subscribed to the Google Groups Andr... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Khanh. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en