[android-developers] Re: how to make the phone number to be auto formatted to 123-123-1234 this format
http://developer.android.com/reference/android/telephony/PhoneNumberUtils.html#formatNanpNumber(android.text.Editable) On Friday, October 19, 2012 4:17:20 PM UTC+2, Tom wrote: Hi, i need help for this code. if you know about it please help me *how to make the phone number to be auto formatted to 123-123-1234 this format* *on ontextchangelistener of edittext..* * * Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: It seems easy to get rid of a competitor’s app
On Sat, Oct 20, 2012 at 11:44 PM, Kristopher Micinski krismicin...@gmail.com wrote: Please read the developer agreement you signed. There is nothing in it that says that Google has the responsibility to take legal action on your behalf. I don't take this discussion as being about whether you're entitled to free legal help from Google - you're most obviously not, and I believe people here generally understand this even without checking the dev agreement. Does it suck that this happens? Yes, it does. Is there any possibility that Google would spend enough money for tons of lawyers to protect you on an individual basis? I don't think that makes sense for them, economically. I think it would make sense for Google to take a look at the problem. I mean, if the bad guys are required to substantiate their claim that they are taking the thing to the court with a document or some kind of proof, what's so efficient about tens or hundreds of little guys hiring tens or hundreds lawyers to research this same problem and get to the same conclusion? Would it not make sense for Google to take a look and *if* a proof is required, get it from the take-down notice author? Or, if such a proof is *not* required, wouldn't that be a gaping hole in DMCA? If so, who's better positioned to have the problem fixed, somehow, eventually - the little guys, or Google? And mind you again, I'm not discussing what Google *should* or *needs* to do - just what would seem to make sense to me. Depending on what Google wants to do with Android, having a bunch of developers on their side shouldn't hurt. If they decide to not protect their developers where Apple does, it's one more point against Android. If Apple does not either, it could be a point for Android if Google did. (And no, I have no idea what Apple does.) (However, of course, you can argue they do something for you legally, they routinely take quite a hit from lawsuits against the Android platform from every major player..) Well, AFAIK most of those have nothing to do with developers, they don't it for us. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 an onDraw() get called if I don't do invalidate() but did the requestLayout()?
Thank you very much. That helps. what if the layout results in shifting a view in its placement (origin change but not size). will that result in using the cached results of the previous draw? On Sat, Oct 20, 2012 at 4:19 PM, Romain Guy romain...@android.com wrote: requestLayout() itself does not lead to a draw pass but some views might react to a Layout change by calling invalidate. On Oct 20, 2012 12:59 PM, Satya Komatineni satya.komatin...@gmail.com wrote: For a UI action in the same thread: //On my view I call requestLayout() ViewRoot schedules a traversal //I don't call invalidate() on my view So, no rectangle is invalid (I am assuming that is the assertion because I didn't call invalidate) Is it possible that the layout phase may invalidate() some of the views? I suppose for those views that don't change their position or size, I am assuming onDraw() won't be called. Wondering if someone could comment on this. Thanks a lot. Satya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- http://satyakomatineni.com/android/training http://satyakomatineni.com http://androidbook.com http://twitter.com/SatyaKomatineni -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
On Thursday, July 12, 2012 1:15:33 PM UTC-4, Dianne Hackborn wrote: If you want the user to give you debugging information, you can have them generate a bug report with power + volume down + volume up which includes the logs and lots of other data, and automatically brings up their e-mail app to sent it all (plus a screenshot). Unfortunately, this only works with devices that have actual volume buttons, which the Kindle Fire doesn't have. Hoping an easier way to generate an bug report gets implemented soon. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: It seems easy to get rid of a competitor’s app
On Sun, Oct 21, 2012 at 8:16 AM, Latimerius l4t1m3r...@gmail.com wrote: Does it suck that this happens? Yes, it does. Is there any possibility that Google would spend enough money for tons of lawyers to protect you on an individual basis? I don't think that makes sense for them, economically. I think it would make sense for Google to take a look at the problem. I mean, if the bad guys are required to substantiate their claim that they are taking the thing to the court with a document or some kind of proof, what's so efficient about tens or hundreds of little guys hiring tens or hundreds lawyers to research this same problem and get to the same conclusion? Would it not make sense for Google to take a look and *if* a proof is required, get it from the take-down notice author? It seems like it would make sense in the abstract, but time and time again I've been surprisingly wrong about legal action seeming like it should be obvious / easy, and having this be completely false. Or, if such a proof is *not* required, wouldn't that be a gaping hole in DMCA? If so, who's better positioned to have the problem fixed, somehow, eventually - the little guys, or Google? I'm surprised, most people think the DMCA has gaping holes and don't find this surprising in the slightest. And I'm absolutely sure the amount of money required to get the DMCA changed would be way more money than Google would want to spend :-)... And mind you again, I'm not discussing what Google *should* or *needs* to do - just what would seem to make sense to me. I don't disagree. I think this needs to happen, it is a shortcoming of the DMCA, and it would be great if Google took the time to follow up on ensuring substantiation of legal action threats. But I'm willing to accept the reality that this is very difficult and time consuming, and in reality won't make sense for them to do. What they *should* be doing, on the other hand, and what I think you care about, is reinstating apps after a sufficient amount of time goes by. I also don't know enough of the legal requirement here to be able to say why this isn't happening. Let's say you want to stop this kind of thing, and you are Google. Are you going to take developers to court for DMCA abuse? No, that just wouldn't make any sense to me, too much money, too many developers, I completely understand why their feeling is probably this sucks but doesn't seem to happen that often. Depending on what Google wants to do with Android, having a bunch of developers on their side shouldn't hurt. If they decide to not protect their developers where Apple does, it's one more point against Android. If Apple does not either, it could be a point for Android if Google did. (And no, I have no idea what Apple does.) In reality a few angry developers will leave, but only a drop in the pond, even though it seems easy to get rid of a competitor's app, I highly doubt it happens very often. But I could be wrong. (However, of course, you can argue they do something for you legally, they routinely take quite a hit from lawsuits against the Android platform from every major player..) Well, AFAIK most of those have nothing to do with developers, they don't it for us. My point is this: if you write apps, and want people to use them, people need to use Android, without continual legal defense for the platform it's very likely people would switch away to other platforms. So I believe that this very much does have something to do with developers. kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: It seems easy to get rid of a competitor’s app
And I don't mean to discourage you, it would be nice to know why this isn't happening, but in reality nobody from Google is going to reply to you on this forum, that seems legally risky for them. kris On Sun, Oct 21, 2012 at 10:26 AM, Kristopher Micinski krismicin...@gmail.com wrote: On Sun, Oct 21, 2012 at 8:16 AM, Latimerius l4t1m3r...@gmail.com wrote: Does it suck that this happens? Yes, it does. Is there any possibility that Google would spend enough money for tons of lawyers to protect you on an individual basis? I don't think that makes sense for them, economically. I think it would make sense for Google to take a look at the problem. I mean, if the bad guys are required to substantiate their claim that they are taking the thing to the court with a document or some kind of proof, what's so efficient about tens or hundreds of little guys hiring tens or hundreds lawyers to research this same problem and get to the same conclusion? Would it not make sense for Google to take a look and *if* a proof is required, get it from the take-down notice author? It seems like it would make sense in the abstract, but time and time again I've been surprisingly wrong about legal action seeming like it should be obvious / easy, and having this be completely false. Or, if such a proof is *not* required, wouldn't that be a gaping hole in DMCA? If so, who's better positioned to have the problem fixed, somehow, eventually - the little guys, or Google? I'm surprised, most people think the DMCA has gaping holes and don't find this surprising in the slightest. And I'm absolutely sure the amount of money required to get the DMCA changed would be way more money than Google would want to spend :-)... And mind you again, I'm not discussing what Google *should* or *needs* to do - just what would seem to make sense to me. I don't disagree. I think this needs to happen, it is a shortcoming of the DMCA, and it would be great if Google took the time to follow up on ensuring substantiation of legal action threats. But I'm willing to accept the reality that this is very difficult and time consuming, and in reality won't make sense for them to do. What they *should* be doing, on the other hand, and what I think you care about, is reinstating apps after a sufficient amount of time goes by. I also don't know enough of the legal requirement here to be able to say why this isn't happening. Let's say you want to stop this kind of thing, and you are Google. Are you going to take developers to court for DMCA abuse? No, that just wouldn't make any sense to me, too much money, too many developers, I completely understand why their feeling is probably this sucks but doesn't seem to happen that often. Depending on what Google wants to do with Android, having a bunch of developers on their side shouldn't hurt. If they decide to not protect their developers where Apple does, it's one more point against Android. If Apple does not either, it could be a point for Android if Google did. (And no, I have no idea what Apple does.) In reality a few angry developers will leave, but only a drop in the pond, even though it seems easy to get rid of a competitor's app, I highly doubt it happens very often. But I could be wrong. (However, of course, you can argue they do something for you legally, they routinely take quite a hit from lawsuits against the Android platform from every major player..) Well, AFAIK most of those have nothing to do with developers, they don't it for us. My point is this: if you write apps, and want people to use them, people need to use Android, without continual legal defense for the platform it's very likely people would switch away to other platforms. So I believe that this very much does have something to do with developers. kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: It seems easy to get rid of a competitor’s app
I think the reason that this tactic is rare is a very human one. Most developers, the vast majority, are regular, moral and well meaning people. In order to stoop to tactics like this a person would have to be evil by nature. There just aren't that many people in the world who could stomach such things. If there were, then civilization would have perished millennia ago. Perhaps I am naive to think of people as basically good and moral. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Does an onDraw() get called if I don't do invalidate() but did the requestLayout()?
Satya Komatineni schrieb: For a UI action in the same thread: //On my view I call requestLayout() ViewRoot schedules a traversal //I don't call invalidate() on my view So, no rectangle is invalid (I am assuming that is the assertion because I didn't call invalidate) Is it possible that the layout phase may invalidate() some of the views? I suppose for those views that don't change their position or size, I am assuming onDraw() won't be called. Wondering if someone could comment on this. Thanks a lot. Satya Maybe you are not dealing with GridView? But in case: I recently wanted to refresh a GridView. And tried first requestLayout(). Nothing happened. I then tried invalidate(). Again nothing happened. So finally I went for invalidateViews(), which was fine. But this is AbsListView specific (*): public void invalidateViews () Causes all the views to be rebuilt and redrawn. And I would be more happy if I could invalidate a single grid element separately, when I know that only the appearance changed. But I did not yet have time to figure this out. Bye P.S.: Some source code for GridView says: /** * Causes all the views to be rebuilt and redrawn. */ public void invalidateViews() { mDataChanged = true; rememberSyncState(); requestLayout(); invalidate(); } And in AdapterView: /** * True if the data has changed since the last layout */ boolean mDataChanged; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: It seems easy to get rid of a competitor’s app
On Sun, Oct 21, 2012 at 4:26 PM, Kristopher Micinski krismicin...@gmail.com wrote: It seems like it would make sense in the abstract, but time and time again I've been surprisingly wrong about legal action seeming like it should be obvious / easy, and having this be completely false. Have to agree here, perhaps the DMCA leaves Google with not much playroom. Still, ideally I'd expect them to either figure something out, or say put an explanation in a blog post so that people understand. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: It seems easy to get rid of a competitor’s app
I honestly think the problem with this is that the legal people don't write blogs, and the software people don't have the ability to write legal blogs. But it'd be nice. kris On Sun, Oct 21, 2012 at 3:06 PM, Latimerius l4t1m3r...@gmail.com wrote: On Sun, Oct 21, 2012 at 4:26 PM, Kristopher Micinski krismicin...@gmail.com wrote: It seems like it would make sense in the abstract, but time and time again I've been surprisingly wrong about legal action seeming like it should be obvious / easy, and having this be completely false. Have to agree here, perhaps the DMCA leaves Google with not much playroom. Still, ideally I'd expect them to either figure something out, or say put an explanation in a blog post so that people understand. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Does an onDraw() get called if I don't do invalidate() but did the requestLayout()?
It depends on whether your app is hardware accelerated or not but at least one view will have its onDraw method invoked. On Oct 21, 2012 5:52 AM, Satya Komatineni satya.komatin...@gmail.com wrote: Thank you very much. That helps. what if the layout results in shifting a view in its placement (origin change but not size). will that result in using the cached results of the previous draw? On Sat, Oct 20, 2012 at 4:19 PM, Romain Guy romain...@android.com wrote: requestLayout() itself does not lead to a draw pass but some views might react to a Layout change by calling invalidate. On Oct 20, 2012 12:59 PM, Satya Komatineni satya.komatin...@gmail.com wrote: For a UI action in the same thread: //On my view I call requestLayout() ViewRoot schedules a traversal //I don't call invalidate() on my view So, no rectangle is invalid (I am assuming that is the assertion because I didn't call invalidate) Is it possible that the layout phase may invalidate() some of the views? I suppose for those views that don't change their position or size, I am assuming onDraw() won't be called. Wondering if someone could comment on this. Thanks a lot. Satya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- http://satyakomatineni.com/android/training http://satyakomatineni.com http://androidbook.com http://twitter.com/SatyaKomatineni -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Omap3 GingerBread change screen resulation
Hi How can i change screen resulation on the external screen connected to pandaboard. 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] Inserting past event in local android calendar in Froyo
Objective: To write a sync adapter that syncs Google calendar events with local android calendar (server to device - one way only). Android Version: Froyo Debugging Steps: 1. A past non-recurring event (one month old) is read from Google Calendar 2. I insert it locally in android calendar (calendar entry that I created) 3. The event is inserted successfully in events table but the corresponding entry in instances table is not created 4. I update the calendarmetadata table values to mininstance=0 and maxinstance=event's end date in millis (on command prompt through sqlite3 tool) 5. I again try inserting the same event locally 6. This time the event is inserted successfully in events table and the corresponding entry in instances table also gets created Looking at the CalendarProvider.java and Calendar.java source code and further probing revealed the following: 1. After I insert a row in Calendars table, the mininstance is set to today's date and maxinstance is set to some 7 or 15 days in future so e.g. if today is 19-Oct, creating a calendar entry and accessing the calendar agenda activity sets mininstance=19-Oct (in millis) and maxinstance=26-Oct (in millis). 2. In step # 3 above when the content provider inserts an event it looks at the mininstance and maxinstance values to expand and insert instances for the given event in instances table. Since the event start time lies before the mininstance value (since the event is one month old) the content provider doesn't create corresponding instances entry. Given that I cannot directly write to calendarmetadata and instances tables from my code how can I sync older events with my local calendar on android device for froyo version? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SSl Certification to access Https protocol API
Hi guys, i got a problem to figure it out to access https using SSL Certification from my android, base on the article i read, advised me to create keystore certification first then put into my workspace project under res/raw directory, but after do it the whole things , the problems still not solved .. may you guys have clues for me for this case. this my code : https://snipt.net/logout/?next=/acan12/httpclient-access-api-https-protocol/ Best Regards Ary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help with bluetooth printing Please
Can Somebody help please? I think I have tried every app available for bluetooth printing and have pulled all my hair out now ,The problem is. I have installed printer share onto my HTC phone which is running android 2.3.5 and on my Samsung tablet galaxy tab 2 which is running android 4.0.4. and printing on a bluetooth HP deskjet 450 it all works fine when printing from my HTC phone but when trying to print from the tablet it starts to print and then a message comes up: *software caused connection abort*? It seams the samsung tablets sends the information too quick to the print. When printing from HTC phone when it is sending information to the printer the percentage numbers go up slower than when sending from Samsung which makes me think why it is aborting? Hope somebody can help please -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: the Welcome to Android Development window doesn't appears
I have the same problem. I use Ubuntu 32 bits and the same Eclipse and ADT's version. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help with downloading the SDK for eclipse Juno through Android SDK Manager
ive tried for months to get the SDKs to download to Eclipse Juno with the Android SDK Manager to get the different SDK platforms I dont have the best connection. I connect through WiFi with my phone. Although I have a booster in my house, its just not enough bandwidth to download the SDKs Ive left it connected for up to 48 hours, and was still unable to get even 1 package. Either its just too slow or freezes up Ive taken my laptop to a better area, yet still my connection is just not enough Where I work has a really fast connection, but, I would not be allowed to install Juno on my work computer. or download anything is there another way to get these packages? is there a way that I can maybe download the packages to a CD or something that I can take home and get them to Juno without having to use a WiFi connection to download? please advise thanks all -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Serialport communication, Android 2.2
Hi, I am working on developing a serialport application for reading data from the card swipe with the android service for tablets. The scenarios are firstly on the startup of the tablet the service will start and opens the serialport and initialization command written on the serialport. On click of a button the thee swipe command will be written andbefore swipping when i click on cancel button at the same moment after writting swipe command i want to write cancel command. I am not sure that is it possible to write cancel command when the serialport is in read mode after writing swipe command. Sorry for my bad english. Please help. 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] Java SE
Hi I've downloaded Android SDK but the Java jdk wasn't apart of Android SDK download? Where can I find Java SE that's compatible windows 32? So that I can properly install Android SDK on my laptop. 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] Emulator error
Hi! I am new to android development. I have installed android sdk. I am using Eclipse to run the application. When I run application results in two errors as follows: *[2012-10-21 13:54:49 - Emulator] Failed to create Context 0x3005 [2012-10-21 13:54:49 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.* After the errors AVD is launched but it does not show any output other than ANDROID name. I have been searching on google many other forums from last 3 days but no solution is helpful for me. Please help me! 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] HTML5, CSS, JSCRIPT
Hi I'm completely new to Android developement and it probably shows :) Anyways: It is a long time since I have programmed in java and I found something I thought was a nice option for me: Using Oreileys guide to making web apps into native Android play app, using html5, css, jquery.. There is also a lot of tools that can do this for you. But I want to create an app that connects to a central database out on the Internet (on a server) and none of these even mention that these tools only works locally or how to connect to a real non-local database/script/server. Is there any way I can use javascript/jquery to grab content for my app? As far as I understand, even though the author is making the app from his webserver, all these files will be packed and only be local files without any connection to the website. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 cuts off HttpURLConnection when screen timeout occurs.
The app I am writing uses a Streaming (REST) api that opens a HttpURLConnection and listens to a response from a server. I use IntentService for this function so it runs in the background. When my LG phone (ICS 4.03) goes dark (screen timeout), it terminates the connection. But it works fine on my ASUS tablet (ICS 4.03) and will continue to accept more responses from the server and process the data. So I wrote a small app which uses a timer to make a Http request every 30 seconds and then gets a response from the server. For the LG phone, this app will continue to function as long as the screen is on, but when the screen times out, it will stop the activity (timer) but it will resume making Http request when the screen is back on. But for the ASUS tablet the app will continue to make Http request continuously even when the screen time out occurs. Are there settings that I am not aware of that allow opened network connections to remain open and activities to continue to function when the screen times out? 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] Creating keys for usage with KeyChain
Google can create keys accessible through KeyChain using the browser and keygen. How can mere mortals do the same 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
[android-developers] Android Bluetooth Device Picker Usage
My Application required bluetooth connectivity. And in the first phase I am trying to open up the standard Activity *Bluetooth Device Picker* to help user scan for new device or chose a device from the list. The problem is that I am unable to get any working example for the bluetooth device picker. The task is simple. To start an Activity with Intent *android.bluetooth.devicepicker.action.LAUNCH* And the device picker is opening without any problem. But the device picker requires four *extras* and I am unable to figure out the exact parameters for two of the extras listed below. .putExtra(android.bluetooth.devicepicker.extra.LAUNCH_PACKAGE,com.extreme.controlcenter .putExtra(android.bluetooth.devicepicker.extra.DEVICE_PICKER_LAUNCH_CLASS,com.extreme.controlcenter.WelcomeActivity) What I thought the parameters should be that *android.bluetooth.devicepicker.extra.LAUNCH_PACKAGE* should have the name of my package, so I passed that only. That is * com.extreme.controlcenter* The second should be the name of the component that must receive the broadcast that is done after a device is selected. Here I tried putting the name of the class that has the *onReceive()* function. But the problem is that the onReceive() function is NOT getting called when a device is picked in device picker! public void onReceive(Context context, Intent intent) { String action = intent.getAction(); //Device Selected on Device Picker if(android.bluetooth.devicepicker.action.DEVICE_SELECTED.equals(action)) { //context.unregisterReceiver(this); BluetoothDevice device = (BluetoothDevice) intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); Toast.makeText(context, device + device.getAddress(), Toast.LENGTH_SHORT).show(); String MAC = device.getAddress(); //Log.d(my, MAC); Intent intent2 = new Intent(WelcomeActivity.this, ControlActivity.class); intent2.putExtra(EXTRA_DEVICE_ADDRESS, MAC); startActivity(intent2); } }; I have created an *Intent filter* and registered a receive in the onCreate() of the main Activity // Register the BroadcastReceiver IntentFilter filter = new IntentFilter(android.bluetooth.devicepicker.action.DEVICE_SELECTED); registerReceiver(mReceiver, filter); One thing is that if I don't provide those two extras, the *Broadcast*event is received successfully. But that code only runs on my TAB, but same is crashing in cell phone. So I think providing those two extras are mandatory. 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: Can i convert AMR to MP3 OR WAV in my activity?
Hello. I have the same problem, convert amr to mp3. But it seems like you have already found out that it is not possible. so in my case. I will solve my problem by play my amr recordings on a good stereo, and record the sound. so maybe that's an idea for you to:) good Luck -Andy Rocket- On Wednesday, March 18, 2009 10:44:15 AM UTC+1, genxsol wrote: Hi Android Experts, i want to convert recorded AMR sound into mp3 or WAV within my activity, is there any method or package i can use? i am using this activity for recording: Intent intent = new Intent (MediaStore.Audio.Media.RECORD_SOUND_ACTION); startActivityForResult(intent, SELECT_AUDIO); this gives me amr content uri but my question is , how can i get the mp3/wav uri? i posted this question long ago but still no solution, please help me as i am really stuck on this. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: It seems easy to get rid of a competitor’s app
I cannot believe that this is really happening! Is it? Andrew On Wednesday, 17 October 2012 12:57:05 UTC+2, Peter wrote: This does not seem to be the first time they are doing this: * https://www.google.com/transparencyreport/removals/copyright/requests/341196/ *https://www.google.com/transparencyreport/removals/copyright/requests/341196/ *http://www.chillingeffects.org/notice.cgi?sID=575491*http://www.chillingeffects.org/notice.cgi?sID=575491 *http://www.chillingeffects.org/notice.cgi?sID=626169*http://www.chillingeffects.org/notice.cgi?sID=626169 And all of this just to protect a single paid app in the play store. It is hard to understand. They seem desperate. I wonder if they really do take the matter to court for every removal request they make - such as they are required to? Peter kl. 02:38:31 UTC+2 onsdag 17. oktober 2012 skrev Chris Sarbora følgende: Most people don't know how to fistfight either, but that doesn't mean you should let bullies give it to you on the chin ;) On Sunday, October 14, 2012 9:26:56 AM UTC-7, Kristopher Micinski wrote: On Sun, Oct 14, 2012 at 12:17 PM, Chris Sarbora top...@gmail.com wrote: Escalate the issue with Google and point out that no legal action has actually been taken, and that they are required to reinstate your material. Follow through and do not relent until it happens or you are served with a court appearance. Then, if I were you, I would find out who is abusing the DMCA takedown and actually file suit against them. You probably have a decent case. Except that the vast vast majority of indie developers have neither the time, legal experience, or money to do this. kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Always receiving default values for childs within custom layout
Hi, I wanted to create my own custom layout. While testing it, i found out that the custom attributes that i implemented in my layout don't get passed to the childs of my layout correctly and always are equal to my specified default values. I couldn't find any suitable things on the internet about this and I'm really new to android development, so forgive me if it's some really dumb thing I did wrong. This is the xml code of my main activity: ?xml version=1.0 encoding=utf-8? com.myCompany.myProjectName.TestLayout xmlns:android=http://schemas.android.com/apk/res/android; xmlns:custom=http://schemas.adroid.com/apk/res/com.myCompany.myProjectName; xmlns:tools=http://schemas.android.com/tools; android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical tools:context=.Main TextView android:id=@+id/textView android:layout_width=wrap_content android:layout_height=wrap_content custom:test=1 android:text= android:background=#FFF / /com.myCompany.myProjectName.TestLayout I defined the layout attributes in res/values/attrs.xml: ?xml version=1.0 encoding=utf-8? resources declare-styleable name=TestLayout / declare-styleable name=TestLayout_LayoutParams attr name=test format=integer / /declare-styleable /resources and the code for the layout itself: public class TestLayout extends ViewGroup { public TestLayout(Context context) { super(context); } public TestLayout(Context context, AttributeSet attrs) { super(context, attrs); } @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { for (int i = 0; i getChildCount(); i++) { getChildAt(i).layout(0, 0, 400, 200); } } @Override protected boolean checkLayoutParams(ViewGroup.LayoutParams p) { return p instanceof LayoutParams; } @Override protected LayoutParams generateDefaultLayoutParams() { return new LayoutParams(0, 0); } @Override public LayoutParams generateLayoutParams(AttributeSet attrs) { return new LayoutParams(getContext(), attrs); } @Override protected LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) { return new LayoutParams(p.width, p.height); } public static class LayoutParams extends ViewGroup.LayoutParams { public int test; public LayoutParams(int width, int height) { super(width, height); } public LayoutParams(Context context, AttributeSet attrs) { super(context, attrs); TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.RelativeLayoutEx_LayoutParams); try { this.test = a.getInt(R.styleable.TestLayout_LayoutParams_test, 0); } finally { a.recycle(); } } } } In fact, I'm not doing much in these lines and since it's only for testing, the onLayout function gives every child the same values for position and size. The only thing my app does in the moment is printing the test attribute of the TextView if i click on it: public class Main extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); TextView tv = (TextView)findViewById(R.id.textView); tv.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { TextView tv = (TextView)v; TestLayout.LayoutParams lp = (TestLayout.LayoutParams)v.getLayoutParams(); tv.setText(test: + lp.test); } }); } } Well, and it always prints test: 0, no matter what value i give it in the main.xml. ..has anyone around here a clue what this could be all about? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Pushing a screen to the front.
Hi I have written an application which include a service running in the background, and a GUI that includes (amongst other things) the ability to make a call to a predefined number. Now- when the user presses the button to make the call- the call is made OK- and the screen changes to the phone's GUI. I'd rather the app stays in view and the phone isn't shown at all really- but I can live with it briefly showing. However, to return to the application, the user must manually click the back button£ on the phone. I want this to happen immediately the call is ringing if at all possible. I have tried using the PhoneStateListener- which I am already using for something else (in the service part of the app)- but can't seem to detect the call being made, and then show the main screen again. Suggestions would be much appreciated! Many 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] Android notification repeats itself randomly
I've created ~25 notifications. Those notifications pop-up at the right times, but after a while they pop-up randomly to. I'm unsure why because I've programmed them to only go off at the times I gave in: Main activity code: //Alarm one private void Alarm(Context context) { Calendar updateTime = Calendar.getInstance(); updateTime.set(Calendar.HOUR_OF_DAY, 8); updateTime.set(Calendar.MINUTE, 25); updateTime.set(Calendar.SECOND, 0); if(updateTime.before(new GregorianCalendar())){ updateTime.add(GregorianCalendar.DAY_OF_MONTH, 1); } Intent intent = new Intent(context, AlarmReceiver1.class); intent.putExtra(ONE_TIME, Boolean.TRUE); PendingIntent pi = PendingIntent.getBroadcast(context, 0, intent, 0); AlarmManager alarmManager = (AlarmManager) getSystemService(MyApp.ALARM_SERVICE); alarmManager.set(AlarmManager.RTC_WAKEUP, updateTime.getTimeInMillis(), pi); } AlarmReceiver1.class public class AlarmReceiver1 extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Intent dailyUpdater = new Intent(context, MyAlarm1.class); context.startService(dailyUpdater); Log.d(MyApp BOT, Alarm did go off..); } } MyAlarm1.class public class MyAlarm1 extends Service { private static final int NOTIFICATION_ID=2; private static final int REQUEST_CODE=1; public void displayNotification(String msg) { NotificationManager manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Notification notification = new Notification(R.drawable.app_icon_v2, msg, System.currentTimeMillis()); notification.defaults |= Notification.DEFAULT_LIGHTS; notification.flags |= Notification.FLAG_AUTO_CANCEL | Notification.FLAG_SHOW_LIGHTS; PendingIntent contentIntent = PendingIntent.getActivity(this, REQUEST_CODE, new Intent(this, ExpandNotification.class), 0); notification.setLatestEventInfo(this, MyApp, Notification one.., contentIntent); manager.notify(NOTIFICATION_ID, notification); } private NotificationManager mNM; private int NOTIFICATION = 546; public class LocalBinder extends Binder { MyAlarm1 getService() { return MyAlarm1.this; } } @Override public void onCreate() { mNM = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); showNotification(); } @Override public int onStartCommand(Intent intent, int flags, int startId) { showNotification(); return START_STICKY; } @Override public void onDestroy() { mNM.cancel(NOTIFICATION); //Toast.makeText(this, stopped service, Toast.LENGTH_SHORT).show(); } @Override public IBinder onBind(Intent intent) { return mBinder; } private final IBinder mBinder = new LocalBinder(); private void showNotification() { //Ringtone.. Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); Ringtone r = RingtoneManager.getRingtone(getApplicationContext(), notification); r.play(); displayNotification(MyApp Message..); // Vibrate patern // End of vibrate } } ExpandNotification.class is an empty class file, not sure if I need it? Why does my notification pops-up at the given times but also random after a while ?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using DexClassLoader to load an interface
I am using a dynamically loaded 3rd party library. I followed this article in getting this to work: http://android-developers.blogspot.com/2011/07/custom-class-loading-in-dalvik.html, except that I have to access every class/method/field via reflection since I don't have any interface stubs for the classes I am loading. Every class I needed so far loads just fine. Now I need to find a method in one of the classes that has an interface as one of its parameters that is also part of the library (so I need the Class? instance for the interface). But when I am trying to load this interface via its name using DexClassLoader, it fails with a ClassNotFoundException. I verified that I am using the correct qualified name of the interface and that it is indeed contained in the library (the original jar and the classes.dex file I created using 'dx'). Any idea what could be the problem here? Any idea for a workaround? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to do HTTP post requests from Android on my Mule service bus app.
Hi guys, I'm pretty new to Android software development, but have to say I like it more each day! I would like my android app to contact my servicebus over a simple HTTP post request, in which I'm able to specify: URL, portnumber, path and body, etc. Below you can see a screenshot of an old application called WebFetch what I always use to test the communication and check resulted data objects. Can someone explain me how to achieve the same results directly from the android code? Thanks in advance, Wim https://lh5.googleusercontent.com/-C2x5Lq6g8-0/UIBdIJfEv3I/AAM/KRKQPNE73F8/s1600/webfetch.png -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] I'm looking for articles, tutorials, examples, stories about the implementation of the change effect viewflipper to be similar to the change of pages of a book.
Hi, I'm looking for articles, tutorials, examples, stories about the implementation of the change effect viewflipper to be similar to the change of pages of a book. Does anyone know where I can find this kind of reading? thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ADB interface is too slow to install
I used adbwireless. then install a APK it take too long time to install .(C:\Documents and Settings\Administratoradb install D:\workspace-mobile\pandaspa ce_web\bin\LoadingActivity-debug.apk) it's about 400s。 so please fix as soon as possible On Saturday, December 3, 2011 3:40:48 AM UTC+8, qwesthead wrote: I am using Windows 7. When I connect phones through USB port, adb devices command lists the device. I can run any adb command like uninstall, shell, etc. It works fine. But, when I install an apk, it takes a long time. I used to get adb time out and I increased the time out period. Now it takes a long time. Also, I notice that adb logcat lists the log very slow. This is happening on HTC, Motorola, and Samsung devices. It does not happen on Nexus One. Has any one faced this problem? Any solutions/work around? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Installation requires org.eclipse.wst.sse.core - how to download and install?
I have downloaded the Android SDK v20.0.3 and was going through the process of downloading and installing the Android ADT Plugin into Eclipse. As per the instructions on Installing the Eclipse Plugin ( http://developer.android.com/sdk/installing/installing-adt.html), I downloaded and installed Eclipse Classic 4.2.1 for Windows 64 Bit. Continuing with the instructions in Download the ADT Plugin on the same page, when I got to step 5 and clicked next, I got the following error: Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 20.0.3.v201208082019-427395 (com.android.ide.eclipse.adt.feature.group 20.0.3.v201208082019-427395) Missing requirement: Android Development Tools 20.0.3.v201208082019-427395 (com.android.ide.eclipse.adt.feature.group 20.0.3.v201208082019-427395) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found In the section Other install errors, it describes a condition similar to mine so I went to the page ADT Installation Error: requires plug-in org.eclipse.wst.sse.ui. ( http://developer.android.com/guide/faq/troubleshooting.html). In this paragraph it describes how to download components for Eclipse 3.3 and for Eclipse 3.4. I have the most recent version of Eclipse 4.2.1. Neither of the instructions seem compatable for my version of Eclipse. Can someone tell me how to download and install 'org.eclipse.wst.sse.core 0.0.0' into Eclipse 4.2.1? I have looked through the forum, FAQs, and have Googled for this and haven't found an answer. Any pointers are welcome. Dogulas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] To ContentProvide Sqlite DB or Not
Group: I am very confused about the need to wrap a ContentProvider around a sqlite db if the db is to only be used locally. I have no plans to expose the data in my sqlite db to any other app. The quote on the following page would indicate a cp is not necessary if the data is only to be accessed by the local application: *You don't need a provider to use an SQLite database if the use is entirely within your own application.* http://developer.android.com/guide/topics/providers/content-provider-creating.html That said, it seems every other piece of documentation on the web espouses the use of ContentProviders since they aid multi-threaded programming via the use of Loaders. Can someone please answer definitively for me the following: 1. Are ContentProviders required to use Loaders w/Sqlite? 2. If ContentProviders are *not* required to use Loaders w/Sqlite, is there any recommended example which shows how to use the two together? 1. I really like the update notification feature of Loaders so this would aid me greatly 3. If Sqlite has a recommended way to achieve functional parity to Loaders with another method, what is that method? Hopefully this all makes sense. I have been reading all day, and that quote in the Google docs worries me. I don't want to waste time creating the ContentProvider layer if it is a waste of time. I don't have any idea why the google doc says ContentProviders are not necessary with a local Sqlite data store--when it seems absolutely required to have a ContentProvider in order to be able to use the cool functionality of Loaders? Thanks in advance. -ncdroid -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Drive app and Intent.ACTION_GET_CONTENT.
Hi, I would like to import files to my app using the Intent.ACTION_GET_CONTENT and the mimetype of the intent set to image/* On a Galaxy Nexus that has Google Drive and dropbox apps installed, I only get dropbox and the built-in gallery app as possible choices to import the images from. Is the drive app just missing the needed functionality to use it for selecting/importing images, or do I need some extra settings(category, etc...) with the Intent? -Jaakko Nissi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Virtual Device fails with no error message
I am going through the steps in Building Your First App ( http://developer.android.com/training/basics/firstapp/index.html). I have installed Eclipse 4.2.1 on my Windows 7 x64 box. I have installed Android SDK 20.0.3 for Windows. In the step-by-step instructions I get to Running Your App and Run on the Emulator ( http://developer.android.com/training/basics/firstapp/running-app.html#Emulator). I get to step 5 and click the Start button. A Launch Options window opens. I then click the Launch button. A Starting Android Emulator window opens with a green progress bar. Before the progress bar completes a new emulator-arm.exe window opens. The content of this window is as follows: emulator-arm.exe has stopped working Windows can check online for a solution to the problem Then there are one of three options: Check online for a solution and close the program Close the program Debug the program Typically this window is pretty useless. All I know is the emualtor crashed unexpectedly and with no messages. I tried the emulator with many configurations and the same results. I tried searching all over the internet for answers, but without an error message it is hard to find anything. Can anyone give me a pointer to a solution or have any suggestions how I can proceed? Dogulas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sending commands to the SIM Application Toolkit (SAT)
Hi, I've been trying to find a way to access the SAT from an app I'm building but nothing has been forthcoming. Now this question has been asked on stack overflow before, the answer being that its not possible to access another app that hasn't exposed an explicit API. I think that since the SIM card is kinda part of the phone hardware, it should be possible to send commands to relevant portions of the SAT. Almost all 'dumb' phones can 'see' it meaning that its based on a set of very primitive commands. I believe that surely there must be a hack for this. Anyone with any info on this, please chip in. Rgds, EK. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] adb am start -W hangs
I have an app that if run in test mode using adb am start class path/test activity name successfully launches my app, runs the tests, and exits. When I run this from our automated build machine I need to run with the -W option to get command to wait for the app to finish so that I can then run a logcat command to capture the test results. The problem is when I add the -W option the script becomes if'y and sometimes it works, and sometimes it just hangs forever. Can someone give me a clue as to why? Regards, Guy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] I'm using ShareActionProvider. Can't change Intent's extra at runtime
actionProvider.setOnShareTargetSelectedListener(new ShareActionProvider.OnShareTargetSelectedListener() { @Override public boolean onShareTargetSelected(ShareActionProvider source, Intent intent) { intent.setType(text/plain); Bundle b = new Bundle(); b.putString(Intent.EXTRA_TEXT, editor.getText().toString()); intent.replaceExtras(b); return true; } }); This code doesn't working. Please help me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Difference between Android and Linux Kernel ?
What kind of test are you doing ? Il giorno venerdì 19 ottobre 2012 08:13:53 UTC+2, chain_chelliah ha scritto: I know Android uses the Linux kernel. I hope the Android developers did some modification with original Linux Kernel, especially in standard C libraries. My question is whether the processing speed of Linux and Android kernel are the same or different. I did some tests in different OS like windows and Redhat Linux and unbuntu and android. By the results Android is very slow. Android uses same Linux kernel... why this process variations but i know we cant expect same speed as in Linux, but I had huge differences (for example: Windows take 11 sec, Linux takes 4 sec, but Android takes 55 sec to complete my test) So What is the reason for this speed variation between these two linux kernels (Android and redhat both are 2.6)? I'm using Android Kernel version 3.2.0. Thanks and Regards, Sangili Pandian 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: You have another application on Google Play with the same package name. Go to that other application, and click upgrade.
ok -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with reading File in Native code in Android
Dear all, I need to do the following steps 1- read text file contains for example This is a file test using native code and return this text 2- build it using NDK to be .so file 3- run android application which loads this library to display the returned text on the mobile screen I searched for a solution , and tried more and more on this .. but I didn't get a result ... so I'd be grateful, if you have a step by step example to do this. Many Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: BadParcelableException: lost CREATOR?
I have the same issue and it's almost definitely because of ProGuard... What's the command for keeping it, and where does it go? I think it's something like -keep [something] in proguard.cfg but I don't know... On Tuesday, May 17, 2011 8:48:04 PM UTC-5, Zsolt Vasvari wrote: My guess is that CREATOR was optimized away by ProGuard. On May 18, 1:24 am, Streets Of Boston flyingdutc...@gmail.com wrote: Hard to say. You'd have to show us your code of my.class.Name before we can give you an answer. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] can someone answer me a question about webkit android?
Hi all ,my question is : In android 4.0 webkit,there is a FrameCache Mechanism. I have found that when a webkit is rendering a webpae,it would call updateFrameCache method at the RecordPictureSet method of WebViewCore.cpp. But when the web page is Complex,the updateFrameCache will reduce the rendering performance because it has record pictureset for twice. so,I want to remove this Mechanism,can someone tell me What is the impact?In other words,what is the purporse of the FrameCache? In any case,thank you very much! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Captive portal for mobile hotspot
I am trying to find code to help me force those that connect to my hotspot from my Razr to a captive portal. Is this possible? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Muting the music stream
I'm building up a small app that should mute and unmute the music stream using the class AudioManager. When I run the app, it works: clicking on the toggle button I can do the stuff. The problem is when I mute the stream and close the app. (the stream is muted now) I start the app and it displays the stream is muted (fine! ), I click the button to unmute it but it doesn't work. I've attached the code I used for better understanding) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enpublic void onToggleClicked(View view) { switch(view.getId()){ case R.id.tb_music: if (!isMuted(AudioManager.STREAM_MUSIC)){ audioMgr.setStreamVolume(AudioManager.STREAM_MUSIC, 0, 0); audioMgr.setStreamMute(AudioManager.STREAM_MUSIC,true); }else{ audioMgr.setStreamMute(AudioManager.STREAM_MUSIC,false); audioMgr.setStreamVolume(AudioManager.STREAM_MUSIC, (audioMgr.getStreamMaxVolume(AudioManager.STREAM_MUSIC))/2, AudioManager.FLAG_PLAY_SOUND); } //other cases } public boolean isMuted(int stream){ boolean value; if (audioMgr.getStreamVolume(stream)== 0){ value = true; }else{ value = false; } return value; }
[android-developers] Intermitent problems with java.net.URL
Hi, I wrote this function in order to retrieve data from a web server: String getWebData(String arg) { URL url; String retVal; try { url = new URL(arg); HttpURLConnection conexion = (HttpURLConnection) url.openConnection(); InputStream instream = new BufferedInputStream(conexion.getInputStream()); InputStreamReader rdr = new InputStreamReader(instream); char[] buff = new char[32767]; rdr.read(buff); conexion.disconnect(); retVal = new String(buff); } catch (Exception e){ retVal = EXCEP: + e.toString(); } return retVal; } it takes arguments like http://somewebsite.com/someprog.php?arg1=thisarg2=that. In some particular cases, when the third argument is a business name, it fails (e.g.) http://www.mypage.com.ve/procesarActivacion.php?usrid=xxxpwd=zzzserial=PR333-RU26empresa=Cafe Oaxaca DBL, c.a. By modifying the contents of empresa, in the very same instance of the application, it works with: http://www.mypage.com.ve/procesarActivacion.php?usrid=xxxpwd=zzzserial=PR333-RU26empresa=Oaxaca When entering the complete string in a browser, I get proper results in all cases. I wrote an ad hoc encoding function in order to supress the potentially offending chars (spaces, periods and commas, replaced by /SP/, /DOT/ and /COMA/ respectively), and use a matching decoder in the to restore the original values. It worked a couple of times, but then it went back to the initial situation. Is this behaviour known? Any workaround suggested? Is there any other set of classes or standard library that allows me to retrieve data from a web server? TIA -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] NDK jni recommend some examples for me
NDK jni recommend some examples for me . How to link the .so file? How to write the .mk file? everything about this . My system environment is Ubuntu 12.04 .I set everything up. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Opening the SDK Manager from the Start Menu and through Eclipse shows 2 different versions.
Okay, so I run Eclipse and it says I need the latest revision of the Android SDK Tools (20, and I have 16), and it offers to open the SDK Manager. It says that I have 16 and I try to update it and it fails. The first couple of times it said file not found. And now it says something about how 'something' 20 depends on 'something' revision 12. I've tried opening SDK Manager as administrator outside of Eclipse and it says I already have the latest versions! But if I go back to Eclipse and launch the manager through their they are not up to date. I've restarted Eclipse, my computer, reinstalled the SDK. I don't know what's wrong. I've noticed that the SDK Path in each SDK Manager is different but I don't know how to change it. One is in Appdata the other is in my Program Files. I'm going to try to uninstall and reinstall it all again but I'd like to hear some insight if anyone has any. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Creating Activity Helpers
Hi, I created Helpers class for my app acitvitys, the probleme i found is that I not do code such TextView eText = new TextView(this); or even TextView eText = new TextView(getApplicationContext()); How can I creat Android widget from non Activity classes ?? Thinks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] About debug in nexus 7
hi eveyone today I want debug my program in nexus 7 I was intall asus usb driver in my win7 and found it in my device manage have item name is android phone next open usb debugging in nexus7 developer options but when I use adb devices in cmd can't found any device can you tell me where is my mistake 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] Views with same ids getting same when restored
I have a custom component with one RadioGroup that has two RadioButton, ids @+id/radioButton1and @+id/radioButton2. On the other hand, there is a TabActivity with five tabs. On each tab, this component is used more than one time. Here's the problem, when orientation changes and the activity is recreated, all of the RadioButton are loaded with the same attrs, this includes android:text, android:layout_margin and even the styled attrs that i've created. It also happens with all the CheckBox that has the same ids. I spent some time trying to discover why this was happening and concluded that android is doing that in onRestoreInstanceState. If I comment the line that calls the super method it works fine. @Override protected void onRestoreInstanceState(Bundle savedInstanceState) { // super.onRestoreInstanceState(savedInstanceState); } Is this how it's supposed to be? Or what could one do to cause this? I'm guessing that it's not a normal behaviour because when a custom view is created, it inflates the same layout with the same views that has the same ids. So it's not possible to instantiate a new custom view generating different ids for its child every time. Using the code above or android:configChanges on the manifest seems to be a bad workaround to me. So, any help is appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problemas con el ProgressBar y con el Botón Stop.
Hola a todos y a todas. Estoy desarrollando una aplicación, para escuchar una radio online. Pero tengo dos problemas que no se cómo solucionar: El primero es muy grabe ya que cuando le doy al play reproducir, se activa el botón stop parar. Hasta aquí todo bien, pero si pulso el botón Stop antes de que comience a reproducir el audio, se desactiva el stop y se activa el play pero la aplicación sigue reproduciéndose. Esto no tendría que pasar. Yo quiero que el botón se active para ser pulsado cuando se comience a escuchar el audio, no cuando se comience a cargar. El segundo va relacionado con el ProgressBar. No sé porqué no se carga la barra de progreso. Si se muestra pero no se carga. Espero haber sido explicito en los problemas que tengo. Mi Activity tiene este contenido: import java.io.IOException; import android.app.Activity; import android.media.MediaPlayer; import android.media.MediaPlayer.OnBufferingUpdateListener; import android.media.MediaPlayer.OnPreparedListener; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.ProgressBar; public class RadioActivity extends Activity implements OnClickListener { private final static String RADIO_STATION_URL = http://;; private ProgressBar playSeekBar; private Button buttonPlay; private Button buttonStopPlay; private MediaPlayer player; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.radio); initializeUIElements(); initializeMediaPlayer(); } private void initializeUIElements() { playSeekBar = (ProgressBar) findViewById(R.id.progressBar1); playSeekBar.setMax(100); playSeekBar.setVisibility(View.INVISIBLE); buttonPlay = (Button) findViewById(R.id.buttonPlay); buttonPlay.setOnClickListener(this); buttonStopPlay = (Button) findViewById(R.id.buttonStop); buttonStopPlay.setEnabled(false); buttonStopPlay.setOnClickListener(this); } @Override public void onClick(View v) { if (v == buttonPlay) { startPlaying(); } else if (v == buttonStopPlay) { stopPlaying(); } } private void startPlaying() { buttonStopPlay.setEnabled(true); buttonPlay.setEnabled(false); playSeekBar.setVisibility(View.VISIBLE); player.prepareAsync(); player.setOnPreparedListener(new OnPreparedListener() { @Override public void onPrepared(MediaPlayer mp) { player.start(); } }); } private void stopPlaying() { if (player.isPlaying()) { player.stop(); /**player.release();**/ player.reset(); player.release(); initializeMediaPlayer(); } buttonPlay.setEnabled(true); buttonStopPlay.setEnabled(false); playSeekBar.setVisibility(View.INVISIBLE); } private void initializeMediaPlayer() { player = new MediaPlayer(); try { player.setDataSource(RADIO_STATION_URL); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (IllegalStateException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } player.setOnBufferingUpdateListener(new OnBufferingUpdateListener() { @Override public void onBufferingUpdate(MediaPlayer mp, int percent) { playSeekBar.setSecondaryProgress(percent); Log.i(Buffering, + percent); } }); } @Override protected void onPause() { super.onPause(); if (player.isPlaying()) { /**player.stop();**/ /**stopPlaying();**/ } } @Override protected void onStop(){ super.onStop(); if (player.isPlaying()){ stopPlaying(); } } } Y mi Layout tiene este otro: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:background=#0069AD ImageView android:id=@+id/imageView1 android:layout_width=wrap_content android:layout_height=320dp android:layout_alignParentTop=true android:layout_centerHorizontal=true android:contentDescription=@string/imgreproductor android:src=@drawable/reproductor / TextView android:id=@+id/textView1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_below=@+id/imageView1
[android-developers] Testing My Paid Game
Is there a way for me to download my own, require payment game? i want to make sure it uploaded correctly and the signing is correct. *The lite version works 100% correctly. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 CookieManager fails to refresh cookies
Curently in my Android app, I am using CookieManager and CookieSyncManager. What I notice is that, the cookie is not updated properly. For example: Android Server: No cookie Server Android: Cookie C1 Android Server: Cookie C1 (Correct) Server Android: Cookie C2 Android Server: Cookie C1 C2 (Incorrect) Because of the 2 cookies returned, server side rejected the transaction. I have tried to force sync, but the issue still persists. I even tried to add some sleep, but it did not help either. Any suggestion on what else I can try? Thank a lot. Regards Kevin = cookieManager = CookieManager.getInstance(); cookieInput = cookieManager.getCookie(OCBCConstants.HOST_URL); write(Cookie from CookieManager 4: + cookieInput); cookieManager.removeAllCookie(); //SystemClock.sleep(2000); cookieManager = CookieManager.getInstance(); cookieInput = cookieManager.getCookie(OCBCConstants.HOST_URL); write(Cookie from CookieManager 5: + cookieInput); cookieManager.removeSessionCookie(); cookieManager.removeAllCookie(); //SystemClock.sleep(2000); //CookieSyncManager.getInstance().sync(); cookieManager.setCookie(OCBCConstants.HOST_URL, cookieString); cookieManager.setCookie(OCBCConstants.HOST_URL, cookieString1); cookieManager.setCookie(OCBCConstants.HOST_URL, cookieString2); //SystemClock.sleep(5000); cookieManager = CookieManager.getInstance(); cookieInput = cookieManager.getCookie(OCBCConstants.HOST_URL); write(Cookie from CookieManager 6: + cookieInput); CookieSyncManager.getInstance().sync(); //SystemClock.sleep(3); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to search data by ListView in Android
http://stackoverflow.com/questions/12949715/how-to-search-data-by-listview-in-android# I am trying to search data by ListView data coming from a websevice.. Description: if I enter *[abc]* in search editview[searchText] and if I click serachbutton(buttonSearch), it must show all related data in listview(listView) Ex: abc, abacd, abcderg etc. in this way... Here is my code. Please help me do it. I have tried, but I was not able to figure out how to do this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Adding fontsize, textcolor and fonttypeface to an activity
Hee, i tried to add some specifications to the listpicker activity theme, but can't get it to work... the theme works, just translucent, but how can i set the fontsize, fonttypeface and textcolor? I'm just new here! https://lh3.googleusercontent.com/-XnDGPl6rlTw/UICCCHPuROI/AD0/upbpdeVr2Fg/s1600/Help1.png https://lh6.googleusercontent.com/-w9WS6cTf5wg/UICCU83GxhI/AD8/wfZOEjstBKg/s1600/Help2.png -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to search data by ListView in Android.. can any one say my mistike
I am trying to search data by ListView data coming from a websevice.. Description: if I enter *[abc]* in search editview[searchText] and if I click serachbutton(buttonSearch), it must show all related data in listview(listView) Ex: abc, abacd, abcderg etc. in this way... This topic is new for me. Here is my code. Please help me do it. I have tried, but I was not able to figure out how to do thi ArrayListPatient patientListArray; listView = (ListView) findViewById(R.id.workListview); objectAdapter = new WorkListAdapter(this, patientListArray); listView.setAdapter(objectAdapter); listView.setTextFilterEnabled(true); searchText = (EditText) findViewById(R.id.searchView); searchText.addTextChangedListener(new TextWatcher() { public void afterTextChanged(Editable s) { } public void beforeTextChanged(CharSequence s, int start, int count, int after) { } public void onTextChanged(CharSequence s, int start, int before, int count) { dataAdapter.getFilter().filter(s.toString()); } }); WorkListAdapter.java public Filter getFilter() { Filter myFilter = new Filter() { @Override protected void publishResults(CharSequence constraint, FilterResults results) { if (!patientListArray.isEmpty()){ clear(); } for (int i = 0; i patientListArray.size(); i++) { if(patientListArray.get(i).getName().toLowerCase().startsWith(constraint.toString().toLowerCase())){ add(patientListArray.get(i)); } } notifyDataSetChanged(); } private void add(Patient patient) { } private void clear() { } @Override protected FilterResults performFiltering(CharSequence constraint) { return null; } }; return myFilter; } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] I'm using ShareActionProvider. Can't change Intent's extra at runtime
Quoting the documentation for OnShareTargetSelectedListener: Note: Modifying the intent is not permitted and any changes to the latter will be ignored. On Fri, Oct 19, 2012 at 7:54 AM, Hurelhuyag hurle0...@gmail.com wrote: actionProvider.setOnShareTargetSelectedListener(new ShareActionProvider.OnShareTargetSelectedListener() { @Override public boolean onShareTargetSelected(ShareActionProvider source, Intent intent) { intent.setType(text/plain); Bundle b = new Bundle(); b.putString(Intent.EXTRA_TEXT, editor.getText().toString()); intent.replaceExtras(b); return true; } }); This code doesn't working. Please help me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 4.2 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] Individual order of favourites
Hi i wonder that this feature is not implemented yet, sometimes you have 10, 20 or more favourites and want to order them in a special way, like your family first, but at the moment it doesn´t seem to be possible. I´m sure a lot of people are working with favourites in their contactlist but it seems that this can be solved only via an app. Are there any other solutions? cheers -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Add a library project using ant
Hey guys i`m facing an issue, and i'm a little lost on this. I need to add a library Project in my Project using ANT(i cant use Eclipse `cause i work with corona framework that dont let me). and my Build process is failling. The thing is, i need to add the ability to use the Extension Files in my project, so i need to add the following library projects to my project without using Eclipse: - downloader_library - zip_file on downloader library i need to add another library project: - play_licensing I'm acctually a Corona/Lua developer, so i dont have much experience on Android, sorry for some noob question. xD What i'm doing now: 1. Adding the files to use those librarys: 1. AlarmReceiver.java 2. DownloaderActivity.java 3. DownloaderService.java 2. Adding the librarys on my project: 1. ~/android-sdks/tools/android update lib-project -p ../../../../android-sdks/extras/google/play_licensing/library 2. ~/android-sdks/tools/android update lib-project -p ../../../../android-sdks/extras/google/play_apk_expansion/downloader_library 3. ~/android-sdks/tools/android update lib-project -p ../../../../android-sdks/extras/google/play_apk_expansion/zip_file 3. make a build: 1. ant release The error message i see is: BUILD FAILED /Users/hout/android-sdks/tools/ant/build.xml:679: The following error occurred while executing this line: /Users/hout/android-sdks/tools/ant/build.xml:692: Compile failed; see the compiler error output for details. the Java error is on the imports, on this files: 1. AlarmReceiver.java 2. DownloaderActivity.java 3. DownloaderService.java the error messages: - package com.google.android.vending.expansion.downloader does not exist This is the downloader_library package - package com.android.vending.expansion.zipfile does not exist This is the zip_file package - It seems that i did not add the library project correctly, if someone could point a direction will be a great help! thank you guys -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Master-Detail layout inside a TabActivity
Hi! How can I use a Master-Detail structure inside an ActionTab? I have implemented it, but I don't know how to do it without nesting nested fragments.. I have putted fragment list and FrameLayout inside the fragment opened by Tab.. [image: enter image description here] Thank you! Marco -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Emulator - sdk 4.1 wallpaper does not scroll
I have 2 emulators a)sdk 2.2 and b)sdk 4.1 The wallpaper does not scroll on the 4.1 when I pan between the home screens. But scrolls as expected on the 2.2 sdk. Is this a setting issue? 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] To ContentProvide Sqlite DB or Not
On Fri, Oct 19, 2012 at 8:13 PM, ncdroid jbla...@gmail.com wrote: Can someone please answer definitively for me the following: Are ContentProviders required to use Loaders w/Sqlite? No. If you really want to use loaders with SQLite directly, I have a SQLiteCursorLoader that works without a ContentProvider: https://github.com/commonsguy/cwac-loaderex If ContentProviders are *not* required to use Loaders w/Sqlite, is there any recommended example which shows how to use the two together? What is (are?) the two in this sentence? If Sqlite has a recommended way to achieve functional parity to Loaders with another method, what is that method? :: shrug :: I use ordinary AsyncTasks myself, way more often than Loaders. -- 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 4.2 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] Master-Detail layout inside a TabActivity
Hi Marco, Nested Fragments are not supported by Android. You could change the activity layout, putting 3 containers to attach the 3 different fragments when the tab is selected. If you do not need these containers on the other tabs, you can set their visibility to gone after detach the fragments. Em 21/10/2012 18:33, Marco Serioli mseri...@gmail.com escreveu: Hi! How can I use a Master-Detail structure inside an ActionTab? I have implemented it, but I don't know how to do it without nesting nested fragments.. I have putted fragment list and FrameLayout inside the fragment opened by Tab.. [image: enter image description here] Thank you! Marco -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: If hdpi and xhdpi drawables defined, which drawable is used as base for an mdpi device?
So I ran some tests on Gingerbread with drawables only defined for hdpi and xhdpi. Both ldpi devices and mdpi devices used the hdpi drawables. Wouldn't it be better for mdpi to use xhdpi because wouldn't you get better quality by just halving the xhdpi resolution? BTW, currently xhdpi and hdpi collectively cover about 80% of devices: http://developer.android.com/about/dashboards/index.html On Friday, October 19, 2012 12:29:14 AM UTC+11, RichardC wrote: I think none of the above but you should read: http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch and also this is very easy to test just use different coloured bitmaps in each qualified folder. On Thursday, October 18, 2012 1:53:40 PM UTC+1, Mark Carter wrote: If I define a drawable in hdpi and xhdpi but not mdpi, will Android (on an mdpi device) take the xhdpi drawable and scale it down by a factor of two or will it use the nearest defined density (hdpi) drawable? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Creating keys for usage with KeyChain
On Thu, Oct 18, 2012 at 1:47 PM, Anders Rundgren anders.rundg...@telia.com wrote: Google can create keys accessible through KeyChain using the browser and keygen. How can mere mortals do the same thing? Not sure what exactly you are trying to do. The keystore has interfaces for storing keys (and since JB directly generating), but those are not public. Anyone (i.e., not system-level permission required) can use them though, so the Android browser probably is. Of course if you use them, you risk breaking in the next Android version. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Sending commands to the SIM Application Toolkit (SAT)
On Sat, Oct 20, 2012 at 12:56 PM, Elijah eljh...@gmail.com wrote: Hi, I've been trying to find a way to access the SAT from an app I'm building but nothing has been forthcoming. Now this question has been asked on stack overflow before, the answer being that its not possible to access another app that hasn't exposed an explicit API. I think that since the SIM card is kinda part of the phone hardware, it should be possible to send commands to relevant portions of the SAT. Almost all 'dumb' phones can 'see' it meaning that its based on a set of very primitive commands. I believe that surely there must be a hack for this. As you have read, it is possible, but there is no public API for this. And it will probably not be made available: http://source.android.com/tech/security/#sim-card-access Even if you manage to hack it on a certain phone you can't make it work reliably on different devices. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Not able to install ADT plugin for eclipse in Ubuntu 11.10
Go back to the previous screen in that wizard and make sure the checkbox for contacting all update centers is checked. -- Tor On Sat, Oct 20, 2012 at 4:20 AM, praveen10 personalid.prav...@gmail.comwrote: I am getting error while installing eclipse ADT plugin: Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 20.0.3.v201208082019-427395 OS: Ubuntu 11.10 Eclipse: Juno , Ingigo (Tried with both version) Java: jdk 1.6 Find screenshot atached. Thanks, Praveen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Installation requires org.eclipse.wst.sse.core - how to download and install?
In the first page of the install wizard, make sure the Contact all update sites during the install to find required software is checked. Alternatively, download the Mobile edition which I think has all the WST components preinstalled. -- Tor On Thu, Oct 18, 2012 at 9:11 AM, dogulas doug.tay...@accipitersoftware.comwrote: I have downloaded the Android SDK v20.0.3 and was going through the process of downloading and installing the Android ADT Plugin into Eclipse. As per the instructions on Installing the Eclipse Plugin ( http://developer.android.com/sdk/installing/installing-adt.html), I downloaded and installed Eclipse Classic 4.2.1 for Windows 64 Bit. Continuing with the instructions in Download the ADT Plugin on the same page, when I got to step 5 and clicked next, I got the following error: Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 20.0.3.v201208082019-427395 (com.android.ide.eclipse.adt.feature.group 20.0.3.v201208082019-427395) Missing requirement: Android Development Tools 20.0.3.v201208082019-427395 (com.android.ide.eclipse.adt.feature.group 20.0.3.v201208082019-427395) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found In the section Other install errors, it describes a condition similar to mine so I went to the page ADT Installation Error: requires plug-in org.eclipse.wst.sse.ui. ( http://developer.android.com/guide/faq/troubleshooting.html). In this paragraph it describes how to download components for Eclipse 3.3 and for Eclipse 3.4. I have the most recent version of Eclipse 4.2.1. Neither of the instructions seem compatable for my version of Eclipse. Can someone tell me how to download and install 'org.eclipse.wst.sse.core 0.0.0' into Eclipse 4.2.1? I have looked through the forum, FAQs, and have Googled for this and haven't found an answer. Any pointers are welcome. Dogulas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: the Welcome to Android Development window doesn't appears
The Welcome Wizard is only shown the very first time you run the Android tools (when we need to get you to point Eclipse to an SDK install, etc). In addition to storing the path to the Android SDK in the Eclipse workspace settings, it also stores it in your home directory's .android/ddms.cfg file. -- Tor On Thu, Oct 18, 2012 at 1:14 PM, Cristina Blanco cbc.cristi...@gmail.comwrote: I have the same problem. I use Ubuntu 32 bits and the same Eclipse and ADT's version. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Problemas con el ProgressBar y con el Botón Stop.
2012/10/19 José Juan Sosa Rodríguez josejuansosarodrig...@gmail.com Hola a todos y a todas. 1 - Es preferido hablar Ingles aquí, si puedes. Si no, usa Google Translate por lo menos. 2 - Es mejor mostrar lo mas mínimo ejemplo que puedas para que gente aquí cojan tiempo para ayudarte. Poca gente va a leer tanto para resolver tu propia problema. Trata de nuevo. Buenas suerte. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Testing My Paid Game
On Thu, Oct 18, 2012 at 1:01 AM, LostDude lostmythicalga...@gmail.comwrote: Is there a way for me to download my own, require payment game? Use a different Google Account than the one with which you uploaded it. i want to make sure it uploaded correctly and the signing is correct. As for uploading, if it shows up in Google Play, it was uploaded correctly. As for signing, if you can install and run the app locally (the same copy you uploaded), then you should be fine. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Creating Activity Helpers
On Sat, Oct 20, 2012 at 4:30 PM, Mohamed Kharrat kharrat.moha...@gmail.comwrote: How can I creat Android widget from non Activity classes ?? 1. Don't, if you can help it. 2. If you can't help it, pass along a Context to use where required. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to do HTTP post requests from Android on my Mule service bus app.
On Thu, Oct 18, 2012 at 2:50 PM, Speedy31 isdwimpoirt...@gmail.com wrote: Can someone explain me how to achieve the same results directly from the android code? See the URL class in the documentation. - 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: Difference between Android and Linux Kernel ?
Its a kind of bio-metric finger print template matching system, there using one algorithm for verify FP templates. On Friday, October 19, 2012 2:36:11 PM UTC+5:30, mrrocc wrote: What kind of test are you doing ? Il giorno venerdì 19 ottobre 2012 08:13:53 UTC+2, chain_chelliah ha scritto: I know Android uses the Linux kernel. I hope the Android developers did some modification with original Linux Kernel, especially in standard C libraries. My question is whether the processing speed of Linux and Android kernel are the same or different. I did some tests in different OS like windows and Redhat Linux and unbuntu and android. By the results Android is very slow. Android uses same Linux kernel... why this process variations but i know we cant expect same speed as in Linux, but I had huge differences (for example: Windows take 11 sec, Linux takes 4 sec, but Android takes 55 sec to complete my test) So What is the reason for this speed variation between these two linux kernels (Android and redhat both are 2.6)? I'm using Android Kernel version 3.2.0. Thanks and Regards, Sangili Pandian 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] Java SE
in andriod developer site On Thu, Oct 18, 2012 at 8:06 PM, Alana Weaver alana.c.wea...@gmail.comwrote: Hi I've downloaded Android SDK but the Java jdk wasn't apart of Android SDK download? Where can I find Java SE that's compatible windows 32? So that I can properly install Android SDK on my laptop. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en