[android-developers] Re: android Telephony API access levels
Hi i am searching the same feature (specially accepting call) from last 3 months but found nothing significant 1.Some tell to change android source code and relative permission to avail this feature.(fruitless) 2.some tell you should build your own application to accept call. Can you imagine how much low level working needed to implement this application. 3.some tell me for key injection. But android was aware of it and blocked such types of key injection. Possible in Black Berry 4. most people tell it is impossible in present version but Google might consider it in heir future release. 5. There is no way to override the existing phone application. though android says All applications are same. But i think it is not true in case android built in phone application. I m urging if any people reading this thread have any idea about it Please share as it is a long desired question On Mar 17, 1:56 pm, Venu toyv...@gmail.com wrote: Hi, I'm also having similar kind oftarget. But I didn't find any thing suitable for my requirement in SDK. How can I develope a complete third party telephony application using SDK. [Dialing a call Answering an incoming call Call supplementary services etc., using SDK ] Can any one at least say possibilities YES/NO FYI: I am exactly looking for CTelephony equivalent in Android. Is is possible in Android 1.5 SDK ??? -regards Bytes On Feb 15, 10:26 am, mike hasitharand...@gmail.com wrote: intelephonyAPI what are the access levels, can i change certain methods in other terms i wanted to run my application on top oftelephonyAPI. When a call comes or when dialing a certain number i want to access my application and need to display my application output as well. so will i be able to run third party applications on top of API??? can i be able to change native methods??? what are the access levels ?? regards, Randika -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: glBufferData crash
your suggestions solved the problem. Thanks! Mario Zechner wrote: Oh and one more thing final int siz = testBuffer.capacity() * Integer.SIZE; should really be final int siz = testBuffer.capacity() * Integer.SIZE / 8; as Integer.SIZE gives you the number of bits an integer occupies. On 17 Mrz., 01:23, ac andres.colu...@gmail.com wrote: Hello, I have experienced some trouble using VBOs, since the method glBufferData crashes when I try to copy data to the vertex buffer. Below is the smallest snippet of code that I found to generate the crash: int numVert = 32; GL11 gl11 = (GL11)gl; testArray = new int[numVert * 3]; testBuffer = IntBuffer.wrap(testArray); gl11.glGenBuffers(1, testID, 0); gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, testID[0]); final int siz = testBuffer.capacity() * Integer.SIZE; gl11.glBufferData(GL11.GL_ARRAY_BUFFER, siz, testBuffer, GL11.GL_STATIC_DRAW); gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); testArray, testBuffer and testID are members of the class containing this code, declared as follows: int[] testArray; IntBuffer testBuffer; int[] testID = {0}; I tried this code in several OpenGL applications which don't show any problem otherwise. The crash occurs specifically at the glBufferData() method call. If numVert is set to zero, then the crash doesn't occur. Any comments will be greatly appreciated. Thanks, ac -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Application wake up
Hi, No, if you register a broadcast reciever in the manifest, it will be started if the intent matches. From there you can either implement your functionality, or start a service or an activity. Best regards, Andreas On Mar 18, 2:49 pm, SAM gulati...@gmail.com wrote: hi, I found a link:http://davanum.wordpress.com/2007/12/15/android-listen-for-incoming-s... But to recieve the SMS, my application need not be runnning. Can I receive SMS when my app is not running. Moreover after scanning the SMS prefix eg: 'MyAppID':XYZ, I also also want to start the application through code. Thanks Sameer On Mar 18, 10:03 am, SAM gulati...@gmail.com wrote: Hi, I have a requirement to wake up my application upon receiving a particular formatted SMS or App directed notification from server. My application is in dead state. Whenever the device receives a event may be a SMS in a particular format OR some notification(eg app directed notification from server), android OS will start my application. Its possible in Windows Mobile and BREW. Please let me know if its possible in Android and how. Thanks Sam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Handler is not using seperate Thread
Thanks for all replies, it really helps. It helps me to dig deep into handler... Till now i thought, handler will create in a seperate thread.. Thanks Lance for providng the link and of course Mark murphy, always there to help us(Android Developers).. Nithin On Mar 17, 6:57 pm, Lance Nanek lna...@gmail.com wrote: When created by the no argument constructor, aHandlerruns on thethreadit is created on. You often see aHandlercreated on the mainthreadintentionally, like in Mark's example above, so that a secondthreadcan send messages to it that will be acted on in the mainthread. This is needed because the Android UI Toolkit isn'tthread safe; it needs to be called from the mainthread. TheHandlerin that case is just used for UI updates, not for the work that should be done in the otherthread. You can use aHandlerfor doing work in anotherthread, however. There's an example of that in the documentation here:http://developer.android.com/intl/de/reference/android/os/Looper.html There are also some alternatives to that example explored here:http://stackoverflow.com/questions/2187464/how-do-i-ensure-another-th... On Mar 17, 6:03 am, Nithin nithin.war...@gmail.com wrote: Hi, For showing loading screen, in the activity's mainthread, I draw loading screen and created ahandlerfor doing other extensive operations like database creations, parsing etc. But unfortunate;y, for me, all is executing in mainthreadonly. Seems likeHandleris not working as a seperateThread. Any idea please.. Nithin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Application wake up
Hi SAM, As per the link that gives the sample application of handling the SMS, you registers your application to the Android OS by mentioning in the manifest file, the intended receiver on any incoming SMS message. So your application need not be active for this. The moment device receives an SMS, your application will get the notification at onReceive. Regards, Raj On Mar 18, 10:49 am, SAM gulati...@gmail.com wrote: hi, I found a link:http://davanum.wordpress.com/2007/12/15/android-listen-for-incoming-s... But to recieve the SMS, my application need not be runnning. Can I receive SMS when my app is not running. Moreover after scanning the SMS prefix eg: 'MyAppID':XYZ, I also also want to start the application through code. Thanks Sameer On Mar 18, 10:03 am, SAM gulati...@gmail.com wrote: Hi, I have a requirement to wake up my application upon receiving a particular formatted SMS or App directed notification from server. My application is in dead state. Whenever the device receives a event may be a SMS in a particular format OR some notification(eg app directed notification from server), android OS will start my application. Its possible in Windows Mobile and BREW. Please let me know if its possible in Android and how. Thanks Sam- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem about GPS
Hi, I'm not sure what you mean, and I think it would help if you would elaborate a bit. GPS is generally wireless, since the problem of getting a cable to connect to objects in low earth orbit is still not solved. ( *_^) The connection to GPS satellites is generally a _lot_ better outside, since the signal does not penetrate buildings very well. That is a limitation of the GPS technology rather than of Android, and hence cannot be solved through software. What you can do is trying to use coarse location or wifi positioning, that might or might not be suitable for your needs. Best regards, Andreas On Mar 18, 1:49 pm, Ewing ewing0...@gmail.com wrote: I have a problem about getting GPS My app can getting GPS but only can using in outdoor , it cannot get the wireless GPS. Have anyone can tell me how can I getting wireless GPS when getting GPS in long time. Thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Answer automatically to Incoming Call
if NY ONE OUT THEIR FIND ANY CLUE PLEASE POST HERE. it is a long desired question On Mar 18, 6:43 am, phillip phtp...@gmail.com wrote: Hi, I got the same problem as you do. I'm trying to look atthe original Phone app fromgoogle, but have no clue. The app manifest doesn't have Action_answer. Phillip On Mar 17, 3:40 pm, midoub elmehdi.benso...@gmail.com wrote: hello, I know this is not the good forum to post my question, but I need help and I spend 3 days to try to find solution ,but no way:(. I'm trying to develop application that can answer incoming call automatically. In my code I use the intent Action_Anwser but it's seem not work. The snippet of my code : public void onCallStateChanged(int state, String incomingNumber) { super.onCallStateChanged(state, incomingNumber); : Intent intent = new Intent(Intent.ACTION_CALL_BUTTON); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Maybe I had forget the permission in manifest or somthing like this!!! Thanks for your help. best regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Game Developers: Some general questions about high scores, achievements, multi player support and in game ads.
Kevin, First of all, let me clarify some numbers: Your average EA game costs a lot more than 10s of thousands of dollars. I bet no iphone port of any game cost them less than 100k to do. I wouldn't be surprised if they spent 100k-500k on an iphone version of an existing title. They deal with games that go into the millions in development cost. How much does it cost to pay a staff of 25 for 9 months to develop something? Even at a modest 50k per person (which is reasonable for a junior level artist dying to make game art) you're looking at around a million dollars. That's a normal size staff and a very conservative timeline for a big title. They're also difficult to compete with because of that. It's harder for us to put together content that people won't scoff at. Just the other day I got a comment saying that one of my games looks like it took 2 weeks to make. That's after 6 months of development. How much is 6 months of your time worth? At my last job, that would be around 50k. One could say that the true cost of developing that game was then 50k. I won't recoup those costs, but I think that over the course of releasing my next few games which are far nicer than anything I've ever done before (partially due to my experience from working on past games and the new artist I work with) I think I'll get far better returns on future time invested. Also, being at the top of the market helps a ton. It can really make a game, but take, for instance, Polarbit's last few games. They got the market late and STILL nailed it (relatively speaking). It's the games themselves... They brought a handful of high quality 3D games to a platform with very few, and people took notice. People (myself included sometimes) complain about how unfair the mobile markets are. It's true to a degree, but when I see good apps and good games make breakthroughs, it reminds me that it's still really about the well executed idea getting strong word of mouth recommendations and making it. It still works that way. The problem is that as the market gets more and more apps and games, you have to make a bigger splash to get noticed, which takes more people and more time to do. It's at that point that people complain that the gold rush is over. I think that anyone who is here for a gold rush ought to just pack up there bags and head somewhere else now because I can only see those who are truly into what they do succeeding in markets like this. We'll see people succeed and act like they are lucky but they really aren't. Maybe they got some luck along the way but much of what makes people successful is a genuinely well executed, good idea. Build truly great products for an audience who actually needs or would really enjoy them and you'll do ok. On Mar 17, 10:54 pm, Kevin Duffey andjar...@gmail.com wrote: I too am interested in how developers make money off of games... and other than the usual sell for .99 or ads in the game. By this I mean, unless your game is shown on the android market near the top, how do you either avoid your game going further down the list so as to most likely never be found by most people searching? I think that's the kiss of death, as some others have written about from time to time. When iPhone first opened it's store, it was ripe for new apps to make good money. Now, it seems very few apps make good money, enough to run a business around. I am amazed at companies like EA and even smaller ones that put a few games up each year... it must cost 10s of thousands in development dollars to make those games, and at a couple bucks a pop, I wonder if they ever recoup their costs, much less profit. I see games even on Android with over 250,000 downloads, but how much of that is turned into money for the developer. At $3 a pop, some of the defense games are really good, provides hours of fun, and worth $3, but I wonder if they've actually made $750,000 with their 250,000+ downloads.. or if about 95% of that is downloads then returns a day later to avoid the costs. I am also very interested in how many end users (not developers) actually go thru the trouble of setting up an account to pay for things. I still do not understand for the life of me why google (and even iPhone) did NOT make this charge directly to the carrier bill. It's a clear way to make it super easy to get people to pay more frequently. I would actually buy $1 apps, many of them, if I could just simply be charged on my phone bill each month and not have the hassle of going thru a setup process, google checkout, etc. I am also curious from another thread posted, with regards to games being able to do their own in-game charge process.. to allow players to buy game items, gold, etc using real money... or buying game money with real money, then using that to purchase game items, etc. Has anyone actually done this... or is this completely against googles rules... and thus google would take down/ban the game from
[android-developers] is Styled.java been removed?
but which one replaced this class? can anyone give me some clue? Thanks -- ian.luo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Accessing External Database
OK, it seems there's several things going on here. From your URL, it looks like you can download a copy of a sqllite database file. If this is just static content, that you're treating as a document -- then you don't need any of what I've been talking about so far. At this level, you have a file. You just copy it locally, perhaps to your SD card, and then access it using Android's built-in sqllite interfaces. You CANNOT access directly over the network this way. Sqllite depends on being able to manage concurrency, and update individual pages within the database file. It cannot do these things over an HTTP connection -- and shouldn't try to do it over any other kind of network connection, either. But once you have copied it to a local file, Android's sqllite should be able to work on it directly. If you make changes, you can save it over the network, treating it like any other docuument. But that's not really using it as a database in the usual sense of live shared data. It's a good approach, however, for static data, such as historical records. For example, baseball statistics for a specific year. On the other hand, if you want to be able to access the data simultaneously from multiple applications, and at least one process somewhere is making changes, then you DO need a shared database, and you DO want to expose it as a web service. Examples would be contacts databases, current sales figures, stock price tickers, etc. How I'd start, is to identify each logical kind of object, and define URL's to refer to each of them, and to each collection of them. These can be explicit entities in your database, or they can be the results of queries, where the query is encoded in the URL. Then I'd identify the data content of these, and write code to encode each entity into this format. I'd pick either JSON or XML as a base for my data format, just because they're readily available on most platforms. Then I'd define the operations on this data. I'm afraid I've been around this stuff to have a good beginning reference to suggest. But I will point out that the content: URIs used by the provider interface generally follow this pattern, so you can look at how the contacts provider has been designed. In terms of the actual mechanics, an HTTP-based RESTful interface uses regular HTTP connections and operations. The REST pattern is just an effective way to use HTTP to build a web application. On Mar 17, 9:40 pm, uday kiran uday.pic...@gmail.com wrote: Thanks Bob, I got very good information from this... Let me explain thing i want to do.. There is a database present at some IPhttp://10.117.23.45/databases/database.db I want to access this database from my android application.. for this im using HttpURLConnection interface.. The way that im accessing the database is fine r not try { URL url = new URL(http://www.uploadhub.com/mobile9/ gallery/gallery_android/); HttpURLConnection conn = (HttpURLConnection)url.openConnection(); conn.setDoInput(true); conn.setDoOutput(true); conn.setUseCaches(false); conn.setRequestMethod(POST); } The code above i have given is some sample only.. As u said how to implement RESTful interface instead of doing this?? If u have any idea of code please let me know... Thanks for the information in advance.. Cheers Uday On Mar 18, 4:26 am, Bob Kerns r...@acm.org wrote: Please don't do this. You really, really don't want to do this. I've written about this before -- it's the wrong way for a lot of reasons -- security, interoperability, performance, maintainability, upgradability, compatibility with firewalls... What you want to do instead, is to build a web service, that exposes the proper functionality. I'd suggest a RESTful interface (google it; there are lots of examples and documents available), as it's more flexible and simpler than SOAP. You don't even want to expose yourdatabaseserver to the internet. It should be securely behind a firewall. And think about what happens when you want to change yourdatabase, and you have all these applications out there, expecting to be able to use specific SQL queries to get at the data. You cannot force users to upgrade. You can just break, of course -- but you'll lose a lot of customers, and a lot of them will tell other customers to stay away -- and they'd be right. Actually, I just saw the message that says you're using Sqllite. So you CAN'T even do it anyway, even if you wanted to. There is no network access to Sqllite. I'd saw sqllite isn't a good choice for a server application in any event. I'd suggest MySQL as an alternative. To quote the sqllite documentation: On the other hand, adatabaseengine that uses a server can provide better protection from bugs in the client application - stray pointers in a client cannot corrupt memory on
[android-developers] Re: Http proxy settings not working in Android Emulator 2.1
Any idea for this problem? On Mar 17, 8:42 pm, ademiguelglez ademiguelg...@gmail.com wrote: I'm stuck with the same problem. Any help? Regards, Alejandro. On 22 feb, 10:19, Vibhor Mahajan mahajan.vib...@gmail.com wrote: I am not able to access Internet from Android web browser but Internet is accessible from Development machine's web browser. Yes, Internet access using Android web browser is OK using Android 1.6 by Settings proxyusing APN settings. Any help of accessing Internet from Android 2.1? Regards, Vibhor On Feb 20, 3:34 am, Sam Dutton sam.dut...@gmail.com wrote: I'm no expert, but it looks like you might be having trouble with the proxyrather than troublesettingaproxyfrom Android. Can you use theproxyelsewhere, e.g. from a web browser? You say thatsettingtheproxyworked until Android 1.6 -- can you use theproxyif you use an early SDK version? Here are some ways to use theemulatorbehind aproxy-- not sure which of these you've tried. 1. Set the defaultproxyfrom Windows Preferences Android Launch. 2. Add '-http-proxyhttp://www.example.com:80'toDebugConfigurations Target (pane) AdditionalEmulatorCommand Line Options (you need to resize the dialog to see this). 3. Set theproxyon theemulatorfrom Settings Wireless controls Mobile Networks Access Point Names T-Mobile US ... For me, none of these works on its own -- though a colleague tells me that 2. works on his Mac. What works best for me in most contexts is to set theproxyon the emulator(as per 3.) and then use the following in my code: final String proxyHost = android.net.Proxy.getDefaultHost(); final int proxyPort = android.net.Proxy.getDefaultPort(); // returns -1 if not set if (proxyPort != -1) { System.setProperty(http.proxyHost, proxyHost); System.setProperty(http.proxyPort, Integer.toString(proxyPort)); } With DefaultHttpClient, I do this: client = new DefaultHttpClient(); String proxyHost = android.net.Proxy.getDefaultHost(); int proxyPort = 0; proxyPort = android.net.Proxy.getDefaultPort(); if (proxyPort 0) // !!!hack: this means that aproxyhas been set { HttpHostproxy= new HttpHost(proxyHost, proxyPort); client.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); } else { Log.d(Proxycould not be set for port: , Integer.toString(proxyPort)); } Sam Dutton On Feb 19, 12:37 pm,VibhorMahajan mahajan.vib...@gmail.com wrote: Hello, I am trying to configure http_proxy settings for Internet access from Androidemulator(behind aproxy). I tried following options: 1. -http-proxyoption usingemulatorcommand. 2.settinghttp_proxy environment and then launching theemulator. 3. Settingsproxyusing APN settings (Telkilla) (this worked till Android 1.6 version) 4. adding an entry in settings.db adb shell sqlite3 /data/data/ com.android.providers.settings/databases/settings.db INSERT INTO system VALUES(101,'http_proxy','10.0.0.27:80'); adb shell sqlite3 /data/data/com.android.providers.settings/databases/ settings.db SELECT * FROM system I also checked -debug-proxylog messages and it showed below messages emulator.exe -avd avd_21 -debug-proxy-http-proxy http://vibhor.mahajan:xyz~1...@10.0.0.27:80 proxy_http_setup: creating httpproxyservice connecting to: 10.0.0.27:80 server name '10.0.0.27' resolved to 10.0.0.27:80 proxy_http_setup: creating HTTPProxyService Footer is (len=63): 'Proxy-authorization: Basic dmliaG9yLm1haGFqYW46eHl6fjEyMzQ= ' http_service_connect: trying to connect to 209.85.231.104:80 http_service_connect: using HTTP rewriter tcp:209.85.231.104:80(1496): cannot connect toproxy: unknown error http_service_connect: trying to connect to 209.85.231.104:80 http_service_connect: using HTTP rewriter tcp:209.85.231.104:80(1496): cannot connect toproxy: unknown error http_service_connect: trying to connect to 209.85.231.104:80 http_service_connect: using HTTP rewriter tcp:209.85.231.104:80(1456): cannot connect toproxy: unknown error http_service_connect: trying to connect to 209.85.231.104:80 http_service_connect: using HTTP rewriter tcp:209.85.231.104:80(1440): cannot connect toproxy: unknown error http_service_connect: trying to connect to 10.0.0.22:80 http_service_connect: using HTTP rewriter tcp:10.0.0.22:80(1440): cannot connect toproxy: unknown error http_service_connect: trying to connect to 10.0.0.22:80 http_service_connect: using HTTP rewriter tcp:10.0.0.22:80(1440): cannot connect toproxy: unknown error Kindly suggest how can we access Internet fromemulator(behind a proxy). Thanks, Vibhor -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to
[android-developers] Re: Answer automatically to Incoming Call
Hi, I have not tried this, but it seems to me that you use the ACTION_CALL_BUTTON in your code, rather than the ACTION_ANSWER, and you should probably broadcast it using Context.sendBroadcast rather than startActivity. Just my cents. Regards Andreas On Mar 18, 7:40 am, midoub elmehdi.benso...@gmail.com wrote: hello, I know this is not the good forum to post my question, but I need help and I spend 3 days to try to find solution ,but no way:(. I'm trying to develop application that can answer incoming call automatically. In my code I use the intent Action_Anwser but it's seem not work. The snippet of my code : public void onCallStateChanged(int state, String incomingNumber) { super.onCallStateChanged(state, incomingNumber); : Intent intent = new Intent(Intent.ACTION_CALL_BUTTON); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Maybe I had forget the permission in manifest or somthing like this!!! Thanks for your help. best regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] The auto-generated R.java generation is invalid. Can't compile a new APK.
Hi all, When I opened my old project, but surprisingly it generates non-compilable R.java , I have checked all layout xml files for incorrect id attribute of this form: android:id=@+id/, and found out that I am using all the the correct values. In the auto-generated R.java, it has this line: public static final int =0x7f0b0027; I am clueless, i need to get compile a new APK and I am stuck with this tiny issue. Agus. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: AVD which resembles the Nexus One?
On Mar 16, 6:07 pm, Kumar Bibek coomar@gmail.com wrote: Try with WVGA800 and SDK 2.1 or 2.0 Thank you for your reply. But what about flash size, ram size, touchscreen, and other properties? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 auto-generated R.java generation is invalid. Can't compile a new APK.
Try deleting the R.java source file. That usually clears this problem. -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
Re: [android-developers] Re: The auto-generated R.java generation is invalid. Can't compile a new APK.
I did. I generates the same R.java with errors. On Thu, Mar 18, 2010 at 12:48 AM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Try deleting the R.java source file. That usually clears this problem. -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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: The auto-generated R.java generation is invalid. Can't compile a new APK.
Interestingly, if i delete the bin folder, the Android plugin generates the apk automatically just fine. but the R.java is still invalid. On Thu, Mar 18, 2010 at 12:48 AM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Try deleting the R.java source file. That usually clears this problem. -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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Basic program structure questions
Interesting indeed that it freezes. Could you copy-paste the adb logcat output? Furthermore, you might wanna take a look at http://www.warriorpoint.com/blog/2009/05/24/android-how-to-switch-between-activities/ On Mar 17, 8:30 am, Andreas andreas.bex...@gmail.com wrote: I think it is interesting that your program freezes. What can you see in your log? On Mar 17, 5:17 am, ARB andrewrbro...@gmail.com wrote: Hello everyone, I am starting my first Android program, and I am just having trouble structuring my program appropriately (in terms of views, activities, etc...) Basically, the program is a simple multiplayer trivia game where the phone is passed from player to player for each turn. Right now, I am storing game state in an object that is accessible in all other classes of the program. I have an activity that successfully retrieves a question, displays it for the current player, and correctly verifies input. Then, how do I change it so that it is the next player's turn? I tried starting a new instance of that same activity, since it could get the new game state from the separate object, but that just causes my program to freeze. Similarly, a while loop inside my activity causes the program to loop infinitely at that spot. I'm sure I just don't quite understand how it all fits together, and I'd appreciate some help. So, to be clear, here are the important parts of my program that I have so far: StartGame - activity that allows you to set up a new game launches PlayGame activity as an intent PlayGame - activity that displays a question and verifies input as an answer. I can only launch it once and display one question. This activity is meant to be re-used to display all the questions, since it gets information on the game state (turns, current question, answer, etc...) from the Game class. Game - object that is statically available to all other parts of the program. It is a singleton, so there will only ever be one instance of it. How should I structure my program so that it can show multiple questions in succession until a certain condition is met (i.e. each player has had 4 turns, or there have been 10 total rounds, etc...)? 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: Help regarding Logging
well preferably I wouldn't use a 3rd party library, simply because I don't want to be dependable from someone else.. As in, if the service ceases to exist, and obviously it is a possible security leak... After all I am sending my debugging logs to them... On 16 mrt, 19:51, chris harper ch393...@gmail.com wrote: Oh and it's free. :-) On Tue, Mar 16, 2010 at 12:50 PM, chris harper ch393...@gmail.com wrote: Guys I had the same request. I wanted to monitor my app after it was out on the market to fix bugs etc. Someone pointed me to this: http://www.flurry.com/ I am incorporating it into my app now. I have not launched my app yet but I seems like what we need. It's has capabilities to report exceptions and events in your app that you want to track among other things. -Chris On Tue, Mar 16, 2010 at 7:07 AM, MobDev developm...@mobilaria.com wrote: Hi, for my application I would like to be able to incorporate some good Logging capabilities... I would also like to use the networiking capabilitites for two purposes : - first I should be able to send a Logging Level from my server to my client (Android app)... So the Logging Level should be adjustable client-side - secondly I must be able to read out the Log to send it to my server through http... I have seen there are two options in Android : java.util.Log and java.util.Logging The first one seems pretty straight forward but there are two issues with that : - can I programmatically read out the Log ? And if so how ? - I have read that specific Logging Levels are automatically ignored once an app has been deployed (like the verbose level)... Because of the fact that I might want to have verbose-level logging from the server I was wondering if it's able to actually de-ignore those Levels ? Also are there any tutorials reagrding these two packages ? And what woul you, as an experienced developer, advise me to use of those two methods ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] FLAG_ONLY_ALERT_ONCE not working in notification at all
I check the flag and find the bit is set. But nothing happens at all. Related information: Pick the sound using system ringtone picker Vibrate once keep playing the ringtone ceaselessly. Touch the title area and stop playing Would anyone help me? 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: Windows Phone and XNA. Nightmare is real. What we do with that ?
On 18 Mar, 05:18, Kevin Duffey andjar...@gmail.com wrote: [...]The screen touch issue that is causing massive lag on input and slowing games down greatly, and the buggy multi-touch capabilities... yes, this event-driven approach is not good for games, and even for most applications with their own graphics, where smooth animation is required. I think, game low level framework should allow simple and quick testing screen touch position or control keys in a game loop. Eh.. even old j2me phones with a much slower cpus and less resources are running great games with smooth animation, that I still never seen on Android. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HistoryRecord - Activity instance
Hi This may sounds weird. I have a HistoryRecord variable, which stand for an activiy (I think). How to get the real activity instance from it ? Regards, Shawn. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to find out when any activity starts or get focus
I understand this scenarios Bob and I agree with You. But what you say is DOABLE right now very-very easy with a background service which is polling the current task (current activity) periodically using the ActivityManager.getCurrentTasks function (ofc GET_TASKS right is needed for it). This solution will eat a bit more cpu that's it, but it is working, tried already. Since this wasn't considered as a vulnerability I thought it is a simplier way to achieve this. Maybe after Dianne reads this it won't be possible in the next versions :) IActivityWatcher Thank You Dianne - I'll try this one. At the end we might completly drop this feature - it seems to be too complicated, we wanted only if it's easy, doesn't eats too much resources and doesn't needs big changes in the activity manager deep code. We will give led control for custom aplications via a service or a lib which is more important for us. We'll see. moved to android-porting I think we can close this one - Your answer cleared up what is possible and what's not. TY. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL Circle drawing
Loki, you can try this: Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG); paint.setColor(Color.BLUE); paint.setStyle(Style.STROKE); paint.setStrokeWidth(2); c.drawCircle(100, 100, 60, paint); On Mar 16, 11:38 pm, Loki117 thomas.sheppar...@gmail.com wrote: Afternoon all, I hope someone can help. I am trying to get my head around OpenGL on Android and hopefully start making some nice GUI's that are both quick and nice to look at. At the moment I am attempting to draw a radar type screen. To describe the screen think of a mapview with a point on the map. From the point a circle will radiate like a sonar pulse spreading out. Now I have tried doing this via MapOverlays and it is just not fast enough so I would like to try doing it via openGL ontop of the mapview. Does anyone know how I can draw this ring? I can't even work out where to start here. I did have a look at the OpenGL sample for the spinning cubes but that just confused me further. Any help would be much appreciated. Thanks in advance, Tom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] IPSEC for Android
Hi. I have a linux C application I need to port to Android. The application has some IPSec features that need to be supported as well. I looked in the latest NDK (1.6), but couldn't find ipsec.h header file. Does Android support IPSec? Any ideas how should I continue? Thanks, Ofer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Accessing External Database
On Mar 18, 11:49 am, Bob Kerns r...@acm.org wrote: OK, it seems there's several things going on here. From your URL, it looks like you can download a copy of a sqllitedatabasefile. If this is just static content, that you're treating as a document -- then you don't need any of what I've been talking about so far. At this level, you have a file. You just copy it locally, perhaps to your SD card, and then access it using Android's built-in sqllite interfaces. You CANNOT access directly over the network this way. Sqllite depends on being able to manage concurrency, and update individual pages within thedatabasefile. It cannot do these things over an HTTP connection -- and shouldn't try to do it over any other kind of network connection, either. So SQlite can't use over networks for accessing database... I dont want to save this database file into my local folder..i want to change the contents in the file by online.. But once you have copied it to a local file, Android's sqllite should be able to work on it directly. If you make changes, you can save it over the network, treating it like any other docuument. This is not a good idea to use as a document.. But that's not really using it as adatabasein the usual sense of live shared data. It's a good approach, however, for static data, such as historical records. For example, baseball statistics for a specific year. On the other hand, if you want to be able to access the data simultaneously from multiple applications, and at least one process somewhere is making changes, then you DO need a shareddatabase, and you DO want to expose it as a web service. Examples would be contacts databases, current sales figures, stock price tickers, etc. How to expose any database as a webservice?? If u have any example code pls provide me..because im new to android as well as database concepts.. Thats y i dont have clear idea on this.. How I'd start, is to identify each logical kind of object, and define URL's to refer to each of them, and to each collection of them. These can be explicit entities in yourdatabase, or they can be the results of queries, where the query is encoded in the URL. Then I'd identify the data content of these, and write code to encode each entity into this format. I'd pick either JSON or XML as a base for my data format, just because they're readily available on most platforms. So for communicating database(On remote server) from our application it is compulsory to write a driver like odbc??? Then I'd define the operations on this data. I'm afraid I've been around this stuff to have a good beginning reference to suggest. But I will point out that the content: URIs used by the provider interface generally follow this pattern, so you can look at how the contacts provider has been designed. In terms of the actual mechanics, an HTTP-based RESTful interface uses regular HTTP connections and operations. The REST pattern is just an effective way to use HTTP to build a web application. On Mar 17, 9:40 pm, uday kiran uday.pic...@gmail.com wrote: Thanks Bob, I got very good information from this... Let me explain thing i want to do.. There is adatabasepresent at some IPhttp://10.117.23.45/databases/database.db I want to access thisdatabasefrom my android application.. for this im using HttpURLConnection interface.. The way that imaccessingthedatabaseis fine r not try { URL url = new URL(http://www.uploadhub.com/mobile9/ gallery/gallery_android/); HttpURLConnection conn = (HttpURLConnection)url.openConnection(); conn.setDoInput(true); conn.setDoOutput(true); conn.setUseCaches(false); conn.setRequestMethod(POST); } The code above i have given is some sample only.. As u said how to implement RESTful interface instead of doing this?? If u have any idea of code please let me know... Thanks for the information in advance.. Cheers Uday On Mar 18, 4:26 am, Bob Kerns r...@acm.org wrote: Please don't do this. You really, really don't want to do this. I've written about this before -- it's the wrong way for a lot of reasons -- security, interoperability, performance, maintainability, upgradability, compatibility with firewalls... What you want to do instead, is to build a web service, that exposes the proper functionality. I'd suggest a RESTful interface (google it; there are lots of examples and documents available), as it's more flexible and simpler than SOAP. You don't even want to expose yourdatabaseserver to the internet. It should be securely behind a firewall. And think about what happens when you want to change yourdatabase, and you have all these applications out there, expecting to be able to use specific SQL queries to get at the data. You cannot force users to upgrade. You can
答复: [android-developers] Re: How to launch YouTu be with specified keywords?
App1 calls the youtube search and can get the right result list as your solution, when press back key, the result list disappears, but the Youtube's main window appears automatically, we have to press back again to come back to the App1. Anyone knows how to skip the second step? Thanks in advance. -邮件原件- 发件人: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] 代表 Kumar Bibek 发送时间: 2010年3月11日 20:12 收件人: Android Developers 主题: [android-developers] Re: How to launch YouTube with specified keywords? Check this link http://tech-droid.blogspot.com/2010/03/youtube-intent-for-search-in-android.html Thanks and Regards, Kumar Bibek On Mar 11, 5:01 pm, Kumar Bibek coomar@gmail.com wrote: This works Intent intent = new Intent(Intent.ACTION_SEARCH); intent.setPackage(com.google.android.youtube); intent.putExtra(query, Android); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Thanks and Regards, Kumar Bibek. On Mar 11, 10:13 am, Kumar Bibek coomar@gmail.com wrote: Try this. Intent intent = new Intent(Intent.ACTION_SEARCH); intent.putExtra(query, Android); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Here, you will get a Chooser activity. Now when you select Youtube, you will get video results for Android. Thanks and Regards, Kumar Bibek On Mar 11, 6:28 am, David android.and...@gmail.com wrote: Dear All, I want launch the YouTube with specified video searching list at startup(e.g I want YouTube shows the video list all related with the key word Susan and U.S in the first page.) But The YouTube application is not open source in Éclair, would you please tell me which YuTube API can implement this feature? Thanks, Best Regards, David -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] accessing database on server side
Hi All, I'm having a problem in accessing a database on remote server from my android application. In some blogs i found that by using Webservices we can do it. but i dont know what are webservices? Can any one help me how do i do that? Thanks in advance Sid -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Some Queries about ListView
Well, your example is quite good. but i need to be more aware of android to fully understand it LoL still im unclear about how to add images to the row,and feed them with image data, and add text views to a row, and feed them with data. any examples? On Mar 16, 10:15 pm, Kumar Bibek coomar@gmail.com wrote: Yes, theListViewis fully customisable. Look forsomeexamples on the net. http://tech-droid.blogspot.com/2009/07/custom-listview-for-android.html Thanks and Regards, Kumar Bibek On Mar 16, 2:14 pm, SheikhAman shekh.a...@gmail.com wrote: Hello all. I am very new to Android, but I love it because it has given me back what i was longing for : Java. but I am facingsomedoubts and confusions about is, since I am totally new to Mobile App Development. :-| I am listing myquerieshere- 1.) I wish to put various items in a single element of aListView. Like one image in the left, so many TextViews in a single element, and more things. Is it possible? 2.) I wish to give my text different colors, different sizes, and different fonts. how to do this? 3.) I wish to insert or delete elements from a List inListView. How to do that? 4.) I wish to change the background color of my list. how to do this? Please reply so that i can advance with my programming. Thanks in advance 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
Re: [android-developers] Re: Some Queries about ListView
SheikhAman wrote: Well, your example is quite good. but i need to be more aware of android to fully understand it LoL still im unclear about how to add images to the row,and feed them with image data, and add text views to a row, and feed them with data. any examples? http://commonsware.com/Android/excerpt.pdf This is an excerpt from one of my books that discusses some of the techniques. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now 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] accessing database on server side
sid wrote: I'm having a problem in accessing a database on remote server from my android application. In some blogs i found that by using Webservices we can do it. but i dont know what are webservices? http://en.wikipedia.org/wiki/Web_service Can any one help me how do i do that? Here are some books on Web services: http://www.amazon.com/Restful-Web-Services-Leonard-Richardson/dp/0596529260 http://www.amazon.com/Java-Web-Services-Up-Running/dp/059652112X http://www.amazon.com/RESTful-PHP-Services-Samisa-Abeysinghe/dp/1847195520 You are better served by searching for how to build a Web service in a particular technology or language you are comfortable with (Java, Ruby, .NET, Perl, assembler, REXX, SNOBOL, etc.). Since this list is for Android, not Web services, you will probably find more targeted support resources elsewhere. There are also 400 questions on Stack Overflow pertaining to Web services -- perhaps one of them will help: http://stackoverflow.com/search?q=web+services -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now 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] accessing database on server side
As its name aims webservice are services that a client can access through internet. If you googling a bit you'll find lot of information. There are two ways of accesing to an external database: SOAP and REST. I did it (access to the external database) with a REST architecture which is an easy way. I ve used Tomcat as the container of the webservice and then use a HttpClient in android. As you alredy know you can t use JDBC driver in android i wasted a lot of time until i noticed this so i warned you. You also must know that the communication between the client and the server is with XML so you must know how to work with it. i refer you this link which was very useful for me to code the client side: http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restful-client-at-android/ In the android google group there are lots of threads talking about this topic. I hope you'll be succeded. --- El jue, 18/3/10, sid wakeupsi...@gmail.com escribió: De: sid wakeupsi...@gmail.com Asunto: [android-developers] accessing database on server side Para: Android Developers android-developers@googlegroups.com Fecha: jueves, 18 de marzo, 2010 11:38 Hi All, I'm having a problem in accessing a database on remote server from my android application. In some blogs i found that by using Webservices we can do it. but i dont know what are webservices? Can any one help me how do i do that? Thanks in advance Sid -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Some Queries about ListView
I want this thing from my list view- http://lh3.ggpht.com/_o9EYB0b5APY/S6IYbRBvOcI/CoA/Kv94dWitZXY/custom%20listview.PNG On Mar 18, 4:44 pm, Mark Murphy mmur...@commonsware.com wrote: SheikhAman wrote: Well, your example is quite good. but i need to be more aware of android to fully understand it LoL still im unclear about how to add images to the row,and feed them with image data, and add text views to a row, and feed them with data. any examples? http://commonsware.com/Android/excerpt.pdf This is an excerpt from one of my books that discusses some of the techniques. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Some Queries about ListView
thanks for the resource. how much the book costs? is it the famous USD$40 subscription every developer keeps talking about?? :-) On Mar 18, 4:44 pm, Mark Murphy mmur...@commonsware.com wrote: SheikhAman wrote: Well, your example is quite good. but i need to be more aware of android to fully understand it LoL still im unclear about how to add images to the row,and feed them with image data, and add text views to a row, and feed them with data. any examples? http://commonsware.com/Android/excerpt.pdf This is an excerpt from one of my books that discusses some of the techniques. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Beginning Android_ from Apress Now 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] Google Analytics for Android: Dispatcher thinks it finished, but there were 65 failed events
I get this strange error message: W/googleanalytics(29930): Dispatcher thinks it finished, but there were 65 failed events Anyone an idea where this comes from and what the solution/workaround is? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Some Queries about ListView
SheikhAman wrote: I want this thing from my list view- http://lh3.ggpht.com/_o9EYB0b5APY/S6IYbRBvOcI/CoA/Kv94dWitZXY/custom%20listview.PNG You can achieve that with a RelativeLayout for your rows. In fact, here's a project that uses a row almost identical to that: http://github.com/commonsguy/cw-andtutorials/tree/master/05-FancyList/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Some Queries about ListView
SheikhAman wrote: thanks for the resource. how much the book costs? is it the famous USD$40 subscription every developer keeps talking about?? :-) That book is available in print as _Beginning Android 2_ from Apress, or as _The Busy Coder's Guide to Android Development_ under the 40 USD Warescription. If you have questions about the books, head over to the [cw-android] Google Group, and we can answer them there: http://groups.google.com/group/cw-android -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] onFling
Hi, I am having two horizontal scroll views in my app. If I do a scroll/ fling in one view, I have to scroll/fling the other view. It does work, but it has a minor mismatch sometimes in the amount of scroll. I suspect this might be because the onFling listener callback has a float velocity, whereas the call method fling() takes an integer parameter. Any idea why is this mismatch? Thank you, AJ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: android Telephony API access levels
The Fring Android app does much of this already - which indicates that it's possible. On 18 March 2010 07:09, saru sarucs...@gmail.com wrote: Hi i am searching the same feature (specially accepting call) from last 3 months but found nothing significant 1.Some tell to change android source code and relative permission to avail this feature.(fruitless) 2.some tell you should build your own application to accept call. Can you imagine how much low level working needed to implement this application. 3.some tell me for key injection. But android was aware of it and blocked such types of key injection. Possible in Black Berry 4. most people tell it is impossible in present version but Google might consider it in heir future release. 5. There is no way to override the existing phone application. though android says All applications are same. But i think it is not true in case android built in phone application. I m urging if any people reading this thread have any idea about it Please share as it is a long desired question On Mar 17, 1:56 pm, Venu toyv...@gmail.com wrote: Hi, I'm also having similar kind oftarget. But I didn't find any thing suitable for my requirement in SDK. How can I develope a complete third party telephony application using SDK. [Dialing a call Answering an incoming call Call supplementary services etc., using SDK ] Can any one at least say possibilities YES/NO FYI: I am exactly looking for CTelephony equivalent in Android. Is is possible in Android 1.5 SDK ??? -regards Bytes On Feb 15, 10:26 am, mike hasitharand...@gmail.com wrote: intelephonyAPI what are the access levels, can i change certain methods in other terms i wanted to run my application on top oftelephonyAPI. When a call comes or when dialing a certain number i want to access my application and need to display my application output as well. so will i be able to run third party applications on top of API??? can i be able to change native methods??? what are the access levels ?? regards, Randika -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do i check app close gracefully during shutdown scenario
I also wonder is there shutdown event in 2.0 maybe? I could save some service data to file, before shutdown. On Mar 13, 9:20 am, James Wang jameswangc...@gmail.com wrote: I think Not unregisterReceiver is no harm to system because power down. I believe the foreground activity's onDestroy will be called. As for others, there seems be no assurance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How do i check app close gracefully during shutdown scenario
Did You tried this? http://developer.android.com/reference/android/content/Intent.html#ACTION_SHUTDOWN I also wonder is there shutdown event in 2.0 maybe? I could save some service data to file, before shutdown. On Mar 13, 9:20 am, James Wang jameswangc...@gmail.com wrote: I think Not unregisterReceiver is no harm to system because power down. I believe the foreground activity's onDestroy will be called. As for others, there seems be no assurance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] screen flickering in GLSurfaceView
Hello, I'm using GLSurfaceView to create a simple OpenGL drawing application. Since the elements drawn in each frame must remain on screen in order to be composed into the whole drawing, I don't use gl.glClear(GL10.GL_COLOR_BUFFER_BIT) at the beginning of each frame. But not clearing the color buffer leads to substantial flickering. Is there any way to eliminate flickering while still not clearing the screen at the beginning of each frame? Thanks a lot, ac -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Manually set preferences being overwritten by a subclass of PreferenceActivity
Thanks for the reply. In answer to your questions: Are you calling commit() on the editor to actually save your preferences? Yeah, the bespoke preference screen that isn't backed by a subclass of PreferenceActivity has buttons which allow the user to persist their preference changes. The codes updates the preference and calls commit(). Are you sure both Activities are using the same SharedPreferences object (the default global one)? The bespoke one is using a call to getSharedPreferences and passing in a name for the preferences that is unique to my application. This has been working fine for a long time and has only had problems when introducing another preference screen that is backed by a subclass of PreferenceActivity. What do you mean overwritten? What I mean is that any preference that I store using the bespoke preference screen is persisted fine. But after I change a preference from the screen that is backed by an Activity that extends PreferenceActivity, the value that I set originally in my bespoke screen is no longer there. Are you using the same keys to store different things in both activities? Nope. Are the first set of values being set to default? Nope. What happens if you use the PreferenceActivity first and then your custom one? Does that overwrite the PreferenceActivity settings? Good question. I will try that a little later and see what happens. Its really quite odd and I need to do a little more testing to try to determine the precise cause of the problem. On Mar 17, 4:33 pm, TreKing treking...@gmail.com wrote: On Tue, Mar 16, 2010 at 5:33 PM, Pete petesla...@gmail.com wrote: I am finding that any data that I store from the first activity, my bespoke preference screen which manually adds the data using a StoredPreferences.Editor instance is overwritten once the user selects an option in my activity that extends PreferenceActivity. Are you calling commit() on the editor to actually save your preferences? Are you sure both Activities are using the same SharedPreferences object (the default global one)? What do you mean overwritten? Are you using the same keys to store different things in both activities? Are the first set of values being set to default? What happens if you use the PreferenceActivity first and then your custom one? Does that overwrite the PreferenceActivity settings? - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Some Queries about ListView
ohh thanks!! What is a warescription? a subscription to an ebook? will it be getting updates? how long this subscription will last for? On Mar 18, 5:23 pm, Mark Murphy mmur...@commonsware.com wrote: SheikhAman wrote: thanks for the resource. how much the book costs? is it the famous USD$40 subscription every developer keeps talking about?? :-) That book is available in print as _Beginning Android 2_ from Apress, or as _The Busy Coder's Guide to Android Development_ under the 40 USD Warescription. If you have questions about the books, head over to the [cw-android] Google Group, and we can answer them there: http://groups.google.com/group/cw-android -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Consulting/App Development:http://commonsware.com/consulting -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to choose connection type
Hi, in my application I need sometimes send data via http (using HttpClient, HttpGet and HttpPost). Can I choose (from source code) connection which is used? For example, I'd like to use only gprs, not wifi, not bluetooth. Or only wifi, not gprs. Thanks for replies :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: screen flickering in GLSurfaceView
The problem is that there's actually to targets you render to, the back and the frontbuffer of the OpenGL surface. In each call to Renderer.onDrawFrame() you actually render to the back buffer while the front buffer is presented on screen. Once you leave the onDrawFrame method the back buffer becomes the new front buffer and is presented on screen, while the former front buffer becomes the new back buffer. This is called double buffering and is actually used to reduce another form of flickering which is related to screen refresh rates. What happens in your case is the following (as far as i can tell). In the first onDrawFrame() call you render some elements to the initially black back buffer. The front buffer is also black. Now you leave onDrawFrame() and the back buffer gets presented while the front buffer becomes your new back buffer. But the new back buffer does not contain the elements you just rendered! So you render your new elements to a completely black back buffer this time so the final image is not a composition of the first onDrawFrame and the second one. As the buffers are constantly swaped they never have the same content as half of the elements is in one buffer and the others are in the other buffer. There might be a way to disable double buffering in the GLSurfaceView if you use that. Otherwise you will need to use EGL directly to setup your OpenGL surface without double buffering. On the other hand i wonder why you don't compose your complete scene in a single onDrawFrame call. On 18 Mrz., 13:44, ac andres.colu...@gmail.com wrote: Hello, I'm using GLSurfaceView to create a simple OpenGL drawing application. Since the elements drawn in each frame must remain on screen in order to be composed into the whole drawing, I don't use gl.glClear(GL10.GL_COLOR_BUFFER_BIT) at the beginning of each frame. But not clearing the color buffer leads to substantial flickering. Is there any way to eliminate flickering while still not clearing the screen at the beginning of each frame? Thanks a lot, ac -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid
Out of curiosity, why? Have you tried not doing this, and just using PreferenceManager.getDefaultSharedPreferences() everywhere, to see if this is somehow contributing to your woe? That's what the docs said when I read them! I'm loathe to change as all my disgruntled users who upgrade will lose all their data... again... but I guess I could at least test it to see what happens. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid
Well, it could point to a different application, if you make the mistake of calling getApplicationContext() rather than getApplication(). So make sure to use getApplication() instead! I only see getApplication() for services and activities - how do I get this in my widget code and my broadcast receivers? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: screen flickering in GLSurfaceView
What happens in your case is the following (as far as i can tell). In the first onDrawFrame() call you render some elements to the initially black back buffer. The front buffer is also black. Now you leave onDrawFrame() and the back buffer gets presented while the front buffer becomes your new back buffer. But the new back buffer does not contain the elements you just rendered! So you render your new elements to a completely black back buffer this time so the final image is not a composition of the first onDrawFrame and the second one. As the buffers are constantly swaped they never have the same content as half of the elements is in one buffer and the others are in the other buffer. Thanks for the explanation, this makes the source of the problem perfectly clear. There might be a way to disable double buffering in the GLSurfaceView if you use that. That would be nice, I wonder if it is possible to do at all... After a quick look at the source code of GLSurfaceView, it seems to me that the double buffering is hard coded into the EglHelper class. Otherwise you will need to use EGL directly to setup your OpenGL surface without double buffering. I'd like to avoid this, since it basically means implementing my own GLSurfaceView... On the other hand i wonder why you don't compose your complete scene in a single onDrawFrame call. Because the goal is to have an interactive drawing application controlled by the user input (brushes strokes, etc). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 mapview getbounds
Hi, How can we get latitude and longitude values of northwest and southeast coordinates points of the mapview. Please help!. In GMap JS/AS API, ders getbounds() property. i want the same in android mapview. Thanks Veradis -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] recording volume indicator
Hi i have an application that records audio and i want to add an indicator which shows the volume of the recorded audio ( in real time ). Any ideas how to do is. 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: Problem about GPS
I think what he means is that Google Maps can still get your approximate location by knowing which cell towers you are closest too. It uses this to get a general location when the GPS doesn't have enough signal. -Kevin On Mar 18, 2:27 am, Andreas andreas.bex...@gmail.com wrote: Hi, I'm not sure what you mean, and I think it would help if you would elaborate a bit. GPS is generally wireless, since the problem of getting a cable to connect to objects in low earth orbit is still not solved. ( *_^) The connection to GPS satellites is generally a _lot_ better outside, since the signal does not penetrate buildings very well. That is a limitation of the GPS technology rather than of Android, and hence cannot be solved through software. What you can do is trying to use coarse location or wifi positioning, that might or might not be suitable for your needs. Best regards, Andreas On Mar 18, 1:49 pm, Ewing ewing0...@gmail.com wrote: I have a problem about getting GPS My app can getting GPS but only can using in outdoor , it cannot get the wireless GPS. Have anyone can tell me how can I getting wireless GPS when getting GPS in long time. Thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: File operation in Android
Hi Mark, I tried the same. Along with that I also set the WRITE_EXTERNAL_STORAGE permission, it(file.mkdir()) still returns false. Am I missing something? Thanks, DK On Mar 17, 4:18 pm, dillipk codersnet2...@gmail.com wrote: Thanks Mark for the info. Let me try these On Mar 17, 1:25 pm, Mark Murphy mmur...@commonsware.com wrote: dillipk wrote: Hi, I am new to Android development. I was wondering how the file operations works in Android. As in J2ME it has FileConnection class that takes care of most of the File operation tasks.. and it FileConnection doesn't support Android, what is the best way to accomplish the File Operation tasks? I would appreciate if someone could send me some code snippet: Thanks.. http://exampledepot.com/egs/java.io/pkg.html The above link should have everything you need for standard Java I/O. Tasks I want to do : 1) Create a Directory( check for its existence first, if not then create it) 2) Create a File in the newly created Directory 3) Write data into the file 4) Read from the file 5) Delete the file That is standard Java I/O. See the above link. I want to create the file in Built-in memory or SDCard.. so for this, how do I specify the PATH.? Use getFilesDir() on Activity (or any Context) to get the app-local file storage area. Use Environment.getExternalStorageDirectory() to get the path to the SD card. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Training:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: screen flickering in GLSurfaceView
oh, i tried that once with OpenGL ES. I didn't use the backbuffer but drew directly to a texture using an intermediate Bitmap as the drawing surface and reuploading only those parts of the texture that changed. You can find a video and an apk of that at http://apistudios.com/hosted/marzec/badlogic/wordpress/?cat=10. The problem is that if you update to much of the texture at once you get 100ms interruptions which might be visible to the user. On 18 Mrz., 14:46, Andres Colubri andres.colu...@gmail.com wrote: What happens in your case is the following (as far as i can tell). In the first onDrawFrame() call you render some elements to the initially black back buffer. The front buffer is also black. Now you leave onDrawFrame() and the back buffer gets presented while the front buffer becomes your new back buffer. But the new back buffer does not contain the elements you just rendered! So you render your new elements to a completely black back buffer this time so the final image is not a composition of the first onDrawFrame and the second one. As the buffers are constantly swaped they never have the same content as half of the elements is in one buffer and the others are in the other buffer. Thanks for the explanation, this makes the source of the problem perfectly clear. There might be a way to disable double buffering in the GLSurfaceView if you use that. That would be nice, I wonder if it is possible to do at all... After a quick look at the source code of GLSurfaceView, it seems to me that the double buffering is hard coded into the EglHelper class. Otherwise you will need to use EGL directly to setup your OpenGL surface without double buffering. I'd like to avoid this, since it basically means implementing my own GLSurfaceView... On the other hand i wonder why you don't compose your complete scene in a single onDrawFrame call. Because the goal is to have an interactive drawing application controlled by the user input (brushes strokes, etc). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Accessing External Database
Look at line 395 of this sql access. It hits a php file I can send you if you go this route. Good Luck. jp http://code.google.com/p/speedlimit/source/browse/BackSeatDriverV-X-Ship-Pulp/src/org/wikispeedia/backseatdriverV/TranslateTask.java -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: File operation in Android
dillipk wrote: I tried the same. Along with that I also set the WRITE_EXTERNAL_STORAGE permission, it(file.mkdir()) still returns false. Am I missing something? You might be missing an SD card. If you are using the emulator, and you did not set up an SD card image, you won't have a (virtual) card to write to. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.0 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] How to use scroller in an application?
Hello all, How to use Scroller in an application? do anyone have any reference? please help . Thanks, satish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: screen flickering in GLSurfaceView
ok, I see... thanks for the link. So I guess that finding a way to disable the double buffering, at least temporarily, should be the best way to go then... Mario Zechner wrote: oh, i tried that once with OpenGL ES. I didn't use the backbuffer but drew directly to a texture using an intermediate Bitmap as the drawing surface and reuploading only those parts of the texture that changed. You can find a video and an apk of that at http://apistudios.com/hosted/marzec/badlogic/wordpress/?cat=10. The problem is that if you update to much of the texture at once you get 100ms interruptions which might be visible to the user. On 18 Mrz., 14:46, Andres Colubri andres.colu...@gmail.com wrote: What happens in your case is the following (as far as i can tell). In the first onDrawFrame() call you render some elements to the initially black back buffer. The front buffer is also black. Now you leave onDrawFrame() and the back buffer gets presented while the front buffer becomes your new back buffer. But the new back buffer does not contain the elements you just rendered! So you render your new elements to a completely black back buffer this time so the final image is not a composition of the first onDrawFrame and the second one. As the buffers are constantly swaped they never have the same content as half of the elements is in one buffer and the others are in the other buffer. Thanks for the explanation, this makes the source of the problem perfectly clear. There might be a way to disable double buffering in the GLSurfaceView if you use that. That would be nice, I wonder if it is possible to do at all... After a quick look at the source code of GLSurfaceView, it seems to me that the double buffering is hard coded into the EglHelper class. Otherwise you will need to use EGL directly to setup your OpenGL surface without double buffering. I'd like to avoid this, since it basically means implementing my own GLSurfaceView... On the other hand i wonder why you don't compose your complete scene in a single onDrawFrame call. Because the goal is to have an interactive drawing application controlled by the user input (brushes strokes, etc). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Game Developers: Some general questions about high scores, achievements, multi player support and in game ads.
I agree full heartedly Robert. I can't imagine EA spending a few hundred grand on a game for mobile, knowing that they likely won't recoup the costs.. unless it's just a brand recognition thing and an exepected loss. I am well aware of the costs for large scale games, have a few friends in the business working for EA, Blizzard, etc. I've wanted to break into the gaming business for a looong time. I am just not so good with all that extensive math involved in the bigger games. That is why kits like Rokon are really interesting to me, might give me a chance to build some decent games and focus less on the stuff I don't know much about and more on the game itself. I hope anyway. Couple other kits were mentioned in a different thread that sound promising. I am looking to just learn, have some fun, and possibly make a little money, but not holding my breath to do so. My kids are always telling me about this pokemon like fantasy world they've invented, thought it would be really fun to do something like that for them so they could show their friends. I don't know if Android has enough of any one type of game or app to be over that hill where you absolutely must be at the top to succeed.. there is only room for a few there and it would seem to me that the chances your app will make it are so slim, it's not worth the effort. Hence, making games or apps for yourself or in your spare time are a better effort to me than trying to make a living. I can see where contracting out to do apps for specific companies, like banks, warehouses, etc could be profitable tho... although I have no clue how to market myself to get such gigs. lol. It is pretty impressive how one developer can write a game, the aI, collision detection, physics, music/sound fx, and more in a couple months time tho. I commend you and the others that can do that. I am stuck on how to do graphics as well. I can't pay anyone to do art, so I think I am going to have to digitize stick figures. On Wed, Mar 17, 2010 at 11:41 PM, Robert Green rbgrn@gmail.com wrote: Kevin, First of all, let me clarify some numbers: Your average EA game costs a lot more than 10s of thousands of dollars. I bet no iphone port of any game cost them less than 100k to do. I wouldn't be surprised if they spent 100k-500k on an iphone version of an existing title. They deal with games that go into the millions in development cost. How much does it cost to pay a staff of 25 for 9 months to develop something? Even at a modest 50k per person (which is reasonable for a junior level artist dying to make game art) you're looking at around a million dollars. That's a normal size staff and a very conservative timeline for a big title. They're also difficult to compete with because of that. It's harder for us to put together content that people won't scoff at. Just the other day I got a comment saying that one of my games looks like it took 2 weeks to make. That's after 6 months of development. How much is 6 months of your time worth? At my last job, that would be around 50k. One could say that the true cost of developing that game was then 50k. I won't recoup those costs, but I think that over the course of releasing my next few games which are far nicer than anything I've ever done before (partially due to my experience from working on past games and the new artist I work with) I think I'll get far better returns on future time invested. Also, being at the top of the market helps a ton. It can really make a game, but take, for instance, Polarbit's last few games. They got the market late and STILL nailed it (relatively speaking). It's the games themselves... They brought a handful of high quality 3D games to a platform with very few, and people took notice. People (myself included sometimes) complain about how unfair the mobile markets are. It's true to a degree, but when I see good apps and good games make breakthroughs, it reminds me that it's still really about the well executed idea getting strong word of mouth recommendations and making it. It still works that way. The problem is that as the market gets more and more apps and games, you have to make a bigger splash to get noticed, which takes more people and more time to do. It's at that point that people complain that the gold rush is over. I think that anyone who is here for a gold rush ought to just pack up there bags and head somewhere else now because I can only see those who are truly into what they do succeeding in markets like this. We'll see people succeed and act like they are lucky but they really aren't. Maybe they got some luck along the way but much of what makes people successful is a genuinely well executed, good idea. Build truly great products for an audience who actually needs or would really enjoy them and you'll do ok. On Mar 17, 10:54 pm, Kevin Duffey andjar...@gmail.com wrote: I too am interested in how developers make money
[android-developers] How to show a ScrollView with button anchored to bottom of screen?
Hello, I'm trying to show a ScrollView with a button anchored to bottom of screen. This is coded programmatically (without using XML layout for now). The trouble is when the ScrollView has many items (requiring scrolling), it prevents the button at the bottom from showing. The bottom button is sort of pushed off the screen. Look at the code below. I have a TODO which mentions a workaround to specify the exact pixel height of the ScrollView, but this is not a good solution. If you change the for loop to add only 2 buttons, then the bottom button will show. So how do I make the ScrollView show a scrolling list, with the bottom button in view, and without specifying an exact size of the ScrollView? I've seen some discussions here: http://groups.google.com/group/android-developers/browse_thread/thread/fe2862a135b46f7f/bae38e8cf012e06a?lnk=gstq=add+button+below+scrollview#bae38e8cf012e06a http://groups.google.com/group/android-developers/browse_thread/thread/7d45c5ba63c9f8e9/ec675a5ce8835d1d?lnk=gstq=set+layout_weight+in+code#ec675a5ce8835d1d But I don't know how to apply these to my situation. Please help. package com.test.ScrollViewTest; import android.app.Activity; import android.os.Bundle; import android.view.Gravity; import android.view.ViewGroup.MarginLayoutParams; import android.widget.Button; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.ScrollView; import android.widget.TextView; public class MyScrollViewTest extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LinearLayout ll = new LinearLayout(this); // the main layout of the screen ll.setOrientation(LinearLayout.VERTICAL); TextView tv1 = new TextView(this); tv1.setText(First line of text); TextView tv2 = new TextView(this); tv2.setText(Second line of text); ll.addView(tv1); ll.addView(tv2); ScrollView sv = new ScrollView(this); // You can only add one child (usually a layout) to a scrollview, // otherwise you get exception: ScrollView can host only one direct child LinearLayout ll2 = new LinearLayout(this); ll2.setOrientation(LinearLayout.VERTICAL); /* * TODO: PROBLEM HERE: You cannot use WRAP_CONTENT for height, because * the layout below the scrollView will not show (it's sort of pushed * off the screen - even if a margin is specified). * * An alternate value of 300 works OK (remove the bottom margin too). * But this is only suitable for screen size 320x480 in portrait mode. */ LinearLayout.LayoutParams paramsLinear = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT /*300*/); // Add 50 pixel margin to bottom of scrollview (this margin doesn't scroll) paramsLinear.bottomMargin = 50; sv.addView(ll2); // Add some stuff to scrollView to test its depth // (it should leave a margin at bottom of screen) for (int i = 1; i 10; i++) { TextView textView = new TextView(this); textView.setText(Text View + i); LinearLayout.LayoutParams p = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT); ll2.addView(textView, p); Button buttonView = new Button(this); buttonView.setText(Button + i); ll2.addView(buttonView, p); } ll.addView(sv, paramsLinear); RelativeLayout rl = new RelativeLayout(this); RelativeLayout.LayoutParams paramsRelative = new RelativeLayout.LayoutParams( RelativeLayout.LayoutParams.FILL_PARENT, RelativeLayout.LayoutParams.WRAP_CONTENT); // Make the button anchored to the bottom of the screen... // ...But this doesn't work when the ScrollView has a scrolling list of items. Why?? paramsRelative.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM); rl.setLayoutParams(paramsRelative); Button b = new Button(this); b.setText(Button anchored to bottom); rl.addView(b, paramsRelative); ll.addView(rl);
[android-developers] Re: Want to execute arm compiled executable file on Android adb shell
On Mar 17, 11:20 am, Parse paritosh6...@gmail.com wrote: I stuck in a problem. I want a chmreader executable file to be used in android application. Now whenever I tried to execute it from adb shell, it gives error permission denied # su /sdcard/extract_chmLib /sdcard/docs/HArdcore.chm I may be wrong, but I think the sdcard is mounted with the NOEXEC flag, so you can't run programs from there. The best way is to integrate the executable into your app as a native library using the NDK. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] recording volume indicator
what are you using for the recording functions? On Thu, Mar 18, 2010 at 9:54 AM, manigault manig...@gmail.com wrote: Hi i have an application that records audio and i want to add an indicator which shows the volume of the recorded audio ( in real time ). Any ideas how to do is. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com 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] recording volume indicator
Thanks for the answer. I am using AudioRecord. On Thu, Mar 18, 2010 at 4:47 PM, kyle smith ksmithanimat...@gmail.comwrote: what are you using for the recording functions? On Thu, Mar 18, 2010 at 9:54 AM, manigault manig...@gmail.com wrote: Hi i have an application that records audio and i want to add an indicator which shows the volume of the recorded audio ( in real time ). Any ideas how to do is. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Life cycle
Hi, 1. I want to know the behavior of activity for the cases where onStop and onDestroy were not called like low memory situations. 2. I was registered my handler in onCreate() and unregistring in onDestroy, what is the behavior if other thread sends messages to the registrants after the activity was killed by android without calling onDestroy. I know that those handler were not removed by GC as they are still referring by the thread. 3. Also suggest me to handle the above situations. Regards, Anzi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Http proxy settings not working in Android Emulator 2.1
It looks like I can't reproduce this on Linux and OS X, I guess you're all on Windows, right ? On Wed, Mar 17, 2010 at 11:50 PM, Tony liuguolong...@gmail.com wrote: Any idea for this problem? On Mar 17, 8:42 pm, ademiguelglez ademiguelg...@gmail.com wrote: I'm stuck with the same problem. Any help? Regards, Alejandro. On 22 feb, 10:19, Vibhor Mahajan mahajan.vib...@gmail.com wrote: I am not able to access Internet from Android web browser but Internet is accessible from Development machine's web browser. Yes, Internet access using Android web browser is OK using Android 1.6 by Settings proxyusing APN settings. Any help of accessing Internet from Android 2.1? Regards, Vibhor On Feb 20, 3:34 am, Sam Dutton sam.dut...@gmail.com wrote: I'm no expert, but it looks like you might be having trouble with the proxyrather than troublesettingaproxyfrom Android. Can you use theproxyelsewhere, e.g. from a web browser? You say thatsettingtheproxyworked until Android 1.6 -- can you use theproxyif you use an early SDK version? Here are some ways to use theemulatorbehind aproxy-- not sure which of these you've tried. 1. Set the defaultproxyfrom Windows Preferences Android Launch. 2. Add '-http-proxyhttp://www.example.com:80'toDebugConfigurations Target (pane) AdditionalEmulatorCommand Line Options (you need to resize the dialog to see this). 3. Set theproxyon theemulatorfrom Settings Wireless controls Mobile Networks Access Point Names T-Mobile US ... For me, none of these works on its own -- though a colleague tells me that 2. works on his Mac. What works best for me in most contexts is to set theproxyon the emulator(as per 3.) and then use the following in my code: final String proxyHost = android.net.Proxy.getDefaultHost(); final int proxyPort = android.net.Proxy.getDefaultPort(); // returns -1 if not set if (proxyPort != -1) { System.setProperty(http.proxyHost, proxyHost); System.setProperty(http.proxyPort, Integer.toString(proxyPort)); } With DefaultHttpClient, I do this: client = new DefaultHttpClient(); String proxyHost = android.net.Proxy.getDefaultHost(); int proxyPort = 0; proxyPort = android.net.Proxy.getDefaultPort(); if (proxyPort 0) // !!!hack: this means that aproxyhas been set { HttpHostproxy= new HttpHost(proxyHost, proxyPort); client.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); } else { Log.d(Proxycould not be set for port: , Integer.toString(proxyPort)); } Sam Dutton On Feb 19, 12:37 pm,VibhorMahajan mahajan.vib...@gmail.com wrote: Hello, I am trying to configure http_proxy settings for Internet access from Androidemulator(behind aproxy). I tried following options: 1. -http-proxyoption usingemulatorcommand. 2.settinghttp_proxy environment and then launching theemulator. 3. Settingsproxyusing APN settings (Telkilla) (this worked till Android 1.6 version) 4. adding an entry in settings.db adb shell sqlite3 /data/data/ com.android.providers.settings/databases/settings.db INSERT INTO system VALUES(101,'http_proxy','10.0.0.27:80'); adb shell sqlite3 /data/data/com.android.providers.settings/databases/ settings.db SELECT * FROM system I also checked -debug-proxylog messages and it showed below messages emulator.exe -avd avd_21 -debug-proxy-http-proxy http://vibhor.mahajan:xyz~1...@10.0.0.27:80 proxy_http_setup: creating httpproxyservice connecting to: 10.0.0.27:80 server name '10.0.0.27' resolved to 10.0.0.27:80 proxy_http_setup: creating HTTPProxyService Footer is (len=63): 'Proxy-authorization: Basic dmliaG9yLm1haGFqYW46eHl6fjEyMzQ= ' http_service_connect: trying to connect to 209.85.231.104:80 http_service_connect: using HTTP rewriter tcp:209.85.231.104:80(1496): cannot connect toproxy: unknown error http_service_connect: trying to connect to 209.85.231.104:80 http_service_connect: using HTTP rewriter tcp:209.85.231.104:80(1496): cannot connect toproxy: unknown error http_service_connect: trying to connect to 209.85.231.104:80 http_service_connect: using HTTP rewriter tcp:209.85.231.104:80(1456): cannot connect toproxy: unknown error http_service_connect: trying to connect to 209.85.231.104:80 http_service_connect: using HTTP rewriter tcp:209.85.231.104:80(1440): cannot connect toproxy: unknown error http_service_connect: trying to connect to 10.0.0.22:80 http_service_connect: using HTTP rewriter tcp:10.0.0.22:80(1440): cannot connect toproxy: unknown error http_service_connect: trying to connect to 10.0.0.22:80 http_service_connect: using HTTP rewriter tcp:10.0.0.22:80(1440): cannot
[android-developers] ADEProxy.exe and adb server out of date?
I have a process running called ADEProxy.exe - it runs automatically upon windows startup, and I think it is the core reason that I keep repeatedly getting the error: adb server is out of date. killing... Can someone tell me why this adb server is out of date. killing... error occurs, how I can stop it for good, and why I have a service/ process that starts up automatically when windows starts? It is so odd to me, because the SDK simply gets unzipped, not installed, so how would I get a service that automatically starts? I am afraid that the root issue is that I have more than one SDK installed (out of necessity - a custom device that I am developing for has a custom SDK) and there are conflicts somehow. I have tried rebooting my machine deleting my C:\Documents and Settings \User\.android folder, emptying my temp folder, etc, to no avail. Do I need to clear something in the registry? Thanks, Cheryl -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Brand New Troubles Building on Mac OSX
I just got a new computer, a Mac-mini, and I'm working on getting my Android development going on the new machine. I'm migrating from Vista, where my application currently runs correctly. It does not build correctly on OSX. I can create a new project, like HelloAndroid from the samples and run it. When I tried to do this with my real project, first I got an error saying that my project overlapped an existing project of the same name (pretty funny on a brand new computer with almost nothing on it and surely no other Eclipse projects with my project's name). I fixed that by moving things around, but the software still won't build. I've seen this problem before, but can't remember what I did to fix it then. Basically, it's complaining about @Override, in functions that override existing system classes. And example is in my adapter, derived from BaseAdapter, it complains about getCount() and getItem(int pos) and more, saying The method getCount() must override a superclass method I've got 5 out of 10 files that won't compile for similar reasons. One implements OnClickListener, but Eclipse complains about the @Override on the onClick() function. I repeat: this code compiles and runs on Windows Vista. I have a Vista laptop sitting right over there that can build and run this exact software. Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Brand New Troubles Building on Mac OSX
On 03/18/10 11:11, Brion Emde wrote: I just got a new computer, a Mac-mini, and I'm working on getting my Android development going on the new machine. I'm migrating from Vista, where my application currently runs correctly. It does not build correctly on OSX. I can create a new project, like HelloAndroid from the samples and run it. When I tried to do this with my real project, first I got an error saying that my project overlapped an existing project of the same name (pretty funny on a brand new computer with almost nothing on it and surely no other Eclipse projects with my project's name). I fixed that by moving things around, but the software still won't build. I've seen this problem before, but can't remember what I did to fix it then. Basically, it's complaining about @Override, in functions that override existing system classes. And example is in my adapter, derived from BaseAdapter, it complains about getCount() and getItem(int pos) and more, saying The method getCount() must override a superclass method I've got 5 out of 10 files that won't compile for similar reasons. One implements OnClickListener, but Eclipse complains about the @Override on the onClick() function. I repeat: this code compiles and runs on Windows Vista. I have a Vista laptop sitting right over there that can build and run this exact software. Any ideas? @Override works differently in Java 5 and 6 (?!) In Java 5, it can't be used when implementing an interface-- in Java 6 it can. You probably were building with Java 6 on Vista, while AFAIK OS/X still only supports Java 5. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Life cycle
Anzi wrote: 1. I want to know the behavior of activity for the cases where onStop and onDestroy were not called like low memory situations. The process is destroyed, so the activity has no more behavior. 2. I was registered my handler in onCreate() and unregistring in onDestroy, what is the behavior if other thread sends messages to the registrants after the activity was killed by android without calling onDestroy. I know that those handler were not removed by GC as they are still referring by the thread. The process is destroyed, so the activity has no more behavior, and the threads are terminated, so the threads cannot send messages. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Brand New Troubles Building on Mac OSX
Wow, thanks Michael. That indeed did fix the problem. I knew it had to be something simple. You are right. I am building with Java 6 on Windows and apparently Java 5 (didn't pay attention) here. On the other hand, I'm now sure that I've never seen this problem before. I am so grateful! Despite my vast stores of patience, fooling around with this was vexing to me, on top of the low-level frustrations of learning a new platform. On Mar 18, 8:18 am, Michael MacDonald googlec...@antlersoft.com wrote: On 03/18/10 11:11, Brion Emde wrote: I just got a new computer, a Mac-mini, and I'm working on getting my Android development going on the new machine. I'm migrating from Vista, where my application currently runs correctly. It does not build correctly on OSX. I can create a new project, like HelloAndroid from the samples and run it. When I tried to do this with my real project, first I got an error saying that my project overlapped an existing project of the same name (pretty funny on a brand new computer with almost nothing on it and surely no other Eclipse projects with my project's name). I fixed that by moving things around, but the software still won't build. I've seen this problem before, but can't remember what I did to fix it then. Basically, it's complaining about @Override, in functions that override existing system classes. And example is in my adapter, derived from BaseAdapter, it complains about getCount() and getItem(int pos) and more, saying The method getCount() must override a superclass method I've got 5 out of 10 files that won't compile for similar reasons. One implements OnClickListener, but Eclipse complains about the @Override on the onClick() function. I repeat: this code compiles and runs on Windows Vista. I have a Vista laptop sitting right over there that can build and run this exact software. Any ideas? @Override works differently in Java 5 and 6 (?!) In Java 5, it can't be used when implementing an interface-- in Java 6 it can. You probably were building with Java 6 on Vista, while AFAIK OS/X still only supports Java 5. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] GPS without gps signal
Hi All Is possible that can using the signal GPS without signal the telephony active. I need save the gps location in the sqllite when the telephony is disabled Thanks David -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid
(thought I posted this, can't see the post!) Well, it could point to a different application, if you make the mistake of calling getApplicationContext() rather than getApplication(). So make sure to use getApplication() instead! I only see getApplication on services and activities.. how do I call this from broadcast receivers and widget updates? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ADEProxy.exe and adb server out of date?
I have a little more info now - this ADEProxy.exe process starts up when the device is first attached via USB data cable... I had the device attached at windows startup previously. Anyone know where I can go to disable this? On Mar 18, 10:08 am, Cheryl Sedota cherylsed...@gmail.com wrote: I have a process running called ADEProxy.exe - it runs automatically upon windows startup, and I think it is the core reason that I keep repeatedly getting the error: adb server is out of date. killing... Can someone tell me why this adb server is out of date. killing... error occurs, how I can stop it for good, and why I have a service/ process that starts up automatically when windows starts? It is so odd to me, because the SDK simply gets unzipped, not installed, so how would I get a service that automatically starts? I am afraid that the root issue is that I have more than one SDK installed (out of necessity - a custom device that I am developing for has a custom SDK) and there are conflicts somehow. I have tried rebooting my machine deleting my C:\Documents and Settings \User\.android folder, emptying my temp folder, etc, to no avail. Do I need to clear something in the registry? Thanks, Cheryl -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] need suggestion on how to create views at run time and efficiently
Hi, I have a case where I have add to listview textview based on no of messages. 1) I am doing like this for(int i=0;i10;i++) { TextView tv=new TextView(context); linearlayout.add(tv); } this seems fine but it seems to be very slow especially where there are lot of messages. 2) I also tried inflating a xml where xml file contains just the textview xml file is ?xml version=1.0 encoding=utf-8? TextView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/text_favmsg_botg_msg android:paddingTop=10px android:paddingBottom=10px android:paddingLeft=15px android:paddingRight=15px android:layout_width=315px android:layout_height=wrap_content android:background=@drawable/textview_background /TextView for(int i=0;i10;i++) { View v= mLayoutInflater.inflate(R.layout.fav, null, false); TextView mTextMessage=(TextView)v.findViewById(R.id.text); mMessageLayout.addView(mTextMessage); } this seems fine little bit faster I really like to know is there a better way to do than this way. is there a way to clone a textview and reuse it rather than inflating every time Thanks in advance for your help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Samsung Moment does not return anything in parameters.getSupportedFlashModes()
Sorry for this bump... I have no idea where else to ask this question... On Mar 10, 7:53 am, Streets Of Boston flyingdutc...@gmail.com wrote: Thank you Dianne, But wouldn't there be a value/name pair that one can set in the Camera.Parameters instance, e.g. 'cameraParms.set(flash- mode,auto)' or something similar, much like you can set scene-modes on the G1 despite the fact that Android1.6 does not officially support scene-modes? On Mar 10, 1:28 am, Dianne Hackborn hack...@android.com wrote: FlashAPIs we defined in 2.0, so if this is a pre-2.0 device then there is a good chance this is a feature that is not visible to applications. On Tue, Mar 9, 2010 at 8:36 PM, Streets Of Boston flyingdutc...@gmail.comwrote: anyone... ? On Mar 8, 10:49 am, Streets Of Boston flyingdutc...@gmail.com wrote: Bump.. sorry... Anyone knows how to control theflashonSamsung(Moment)? I guess it's some set of name/value pairs to be set in the Camera.Parameters instance. The Camera.Parameters.get(flash-mode-values) seems to returns null and therefore my app can't query the phone's flahs capabilities. On Mar 6, 11:26 pm, Streets Of Boston flyingdutc...@gmail.com wrote: TheSamsungMoment moment has aflashonboard that can be used for taking pics. But, from customers i learned that theSamsungMoment does not return anything when parameters.getSupportedFlashModes() is called. If this is a bug, what is are the android.os.Build.MODEL, android.os.Build.DEVICE and android.os.Build.BRAND of this phone and the accepted values for 'parameters.setFlashMode(flashModeParamValue)'? Thank you!- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] BOOT_COMPLETED broadcast sent much later on some devices than others
One of my applications relies heavily on a speedy BOOT_COMPLETED broadcast action. The original devices I designed it on, and the emulator, each send BOOT_COMPLETED before the lock screen even appears. I designed my app with this assumption. As the months go by I received a few comments such as Doesn't work, which I attributed to the typical ignorant Market comment. I've come to find out that on some devices this intent is not sent for almost 5 minutes after the lock screen appears! I can understand why this was done, to give priority to their own apps at boot time, and to speed up boot time, but it certainly makes it difficult to advertise an app in a consistent way. At this point I have dozens of asterisks: *You can do this amazing feature on every phone except phone X; *You'll have to wai*AVERAGE USER STOPPED READING*. I guess typing this out has helped. I could probably look to see if the system sends another popular broadcast even before this one. Still, more fiddling around than necessary. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Samsung Moment does not return anything in parameters.getSupportedFlashModes()
This is what I have for it: BRAND: Samsung DEVICE: SPH-M900 MODEL: SPH-M900 VER: 3 PRODUCT: Samsung On Mar 18, 11:48 am, Streets Of Boston flyingdutc...@gmail.com wrote: Sorry for this bump... I have no idea where else to ask this question... On Mar 10, 7:53 am, Streets Of Boston flyingdutc...@gmail.com wrote: Thank you Dianne, But wouldn't there be a value/name pair that one can set in the Camera.Parameters instance, e.g. 'cameraParms.set(flash- mode,auto)' or something similar, much like you can set scene-modes on the G1 despite the fact that Android1.6 does not officially support scene-modes? On Mar 10, 1:28 am, Dianne Hackborn hack...@android.com wrote: FlashAPIs we defined in 2.0, so if this is a pre-2.0 device then there is a good chance this is a feature that is not visible to applications. On Tue, Mar 9, 2010 at 8:36 PM, Streets Of Boston flyingdutc...@gmail.comwrote: anyone... ? On Mar 8, 10:49 am, Streets Of Boston flyingdutc...@gmail.com wrote: Bump.. sorry... Anyone knows how to control theflashonSamsung(Moment)? I guess it's some set of name/value pairs to be set in the Camera.Parameters instance. The Camera.Parameters.get(flash-mode-values) seems to returns null and therefore my app can't query the phone's flahs capabilities. On Mar 6, 11:26 pm, Streets Of Boston flyingdutc...@gmail.com wrote: TheSamsungMoment moment has aflashonboard that can be used for taking pics. But, from customers i learned that theSamsungMoment does not return anything when parameters.getSupportedFlashModes() is called. If this is a bug, what is are the android.os.Build.MODEL, android.os.Build.DEVICE and android.os.Build.BRAND of this phone and the accepted values for 'parameters.setFlashMode(flashModeParamValue)'? Thank you!- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Receive Binary SMS on a specific port?
hey there, is it possible to receive a binary SMS on a specific port? i am currently receiving SMS via Action: android.provider.Telephony.SMS_RECEIVED from a BroadcastReceiver. But i have no luck with binary SMS. I only get notified for text messages. any suggestions? cheers timo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Create a List with Overlapping Items
Hello, I'm trying to create a list with items that overlap. It should look something like this: http://docs.google.com/View?id=dk3w58n_18dv34mcs6 Does anyone have suggestions on the best way to achieve this? Things I've tried or considered so far: 1) Using negative margins. The items just end up getting chopped in this case. 2) Using 2 ListViews on top of one another. This works visually, but the second list is not pressable. Both lists need to be pressable for my purposes. 3) Overlaying the smaller items as a separate layout (similar to #2 but not a ListView). The smaller items need to scroll as if they are part of the list, so I don't think this will work either. I appreciate any suggestions! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] GPS without gps signal
On 03/18/2010 08:29 AM, David Toledo wrote: Hi All Is possible that can using the signal GPS without signal the telephony active. I need save the gps location in the sqllite when the telephony is disabled GPS works fine without the cellular network. If there's no network AGPS won't be of any help, but that's just a optimization for finding where you are quicker. But I'm not sure what you mean by telephony disabled are you talking about Airplane mode? If so, Android still allows use of GPS in airplane mode, unlike iPhone. Mike Thanks David -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] GPS without gps signal
I refered , is in the montains without signal telephony Thanks 2010/3/18 mike enervat...@gmail.com On 03/18/2010 08:29 AM, David Toledo wrote: Hi All Is possible that can using the signal GPS without signal the telephony active. I need save the gps location in the sqllite when the telephony is disabled GPS works fine without the cellular network. If there's no network AGPS won't be of any help, but that's just a optimization for finding where you are quicker. But I'm not sure what you mean by telephony disabled are you talking about Airplane mode? If so, Android still allows use of GPS in airplane mode, unlike iPhone. Mike Thanks David -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Receive Binary SMS on a specific port?
Listen to android.intent.action.DATA_SMS_RECEIVED instead of android.provider.Telephony.SMS_RECEIVED. This will give you all data SMS messages. Now you have to parse the destination port out of the raw PDU to determine if the SMS was for the specific port that you are interested in (there's a method for doing that but that's not in the public API for some reason so for now, you have to manually parse the PDU) Tauno On Thu, Mar 18, 2010 at 6:04 PM, timo prill timo.pr...@googlemail.com wrote: hey there, is it possible to receive a binary SMS on a specific port? i am currently receiving SMS via Action: android.provider.Telephony.SMS_RECEIVED from a BroadcastReceiver. But i have no luck with binary SMS. I only get notified for text messages. any suggestions? cheers timo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] BOOT_COMPLETED broadcast sent much later on some devices than others
justinh wrote: I've come to find out that on some devices this intent is not sent for almost 5 minutes after the lock screen appears! Which devices? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.0 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] GPS without gps signal
On 03/18/2010 09:12 AM, David Toledo wrote: I refered , is in the montains without signal telephony Then yes, definitely, from much first hand experience :) Mike Thanks 2010/3/18 mike enervat...@gmail.com mailto:enervat...@gmail.com On 03/18/2010 08:29 AM, David Toledo wrote: Hi All Is possible that can using the signal GPS without signal the telephony active. I need save the gps location in the sqllite when the telephony is disabled GPS works fine without the cellular network. If there's no network AGPS won't be of any help, but that's just a optimization for finding where you are quicker. But I'm not sure what you mean by telephony disabled are you talking about Airplane mode? If so, Android still allows use of GPS in airplane mode, unlike iPhone. Mike Thanks David -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] CAMERA permission features
I have to develop an app which can take a picture and do some work with it. I have read I need to set the permission on the manifest file, for using camera. I would like to use also the autofocus and flash feature, but Android explains to use a lot of permission can limit the number of compatible mobile with my app. For this reason I have preferred to use only this permission features: uses-permission android:name=android.permission.CAMERA / uses-feature android:name=android.hardware.camera / Is there a way to know at runtime if the specified mobile has the autofocus or flash features and to enable the app to use them? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] CAMERA permission features
Paolo wrote: Is there a way to know at runtime if the specified mobile has the autofocus or flash features and to enable the app to use them? There are methods for that on Camera.Parameters, added in Android 2.0. So, for newer phones, yes, you can figure that out at runtime. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Game Developers: Some general questions about high scores, achievements, multi player support and in game ads.
Thank you for the compliment. I was intimidated by the math at first but it keeps getting easier and easier the more I do. I've also met people like Mario Zechner who is very knowledgeable and helpful. Just yesterday I was writing something and it wasn't working right. We talked, he mentioned a different way to do it, I changed my code and it worked perfectly. My point is, just having people to talk to that are doing the same thing as you is a really great thing and helps a lot in keeping moving along. Also there are books that clearly outline just about everything you could ever need to know: Real Time Collision Detection (Christer Ericson) is the most comprehensive suite of code examples I've seen. A must-have for any game dev. Programming Game AI by Example (Mat Buckland) is a really good overview of how to design effective AI Game Physics Engine Development (Ian Millington) has everything you could ever want for writing a 2d or 3d physics game 3D Math Primer for Graphics and Game Development (Feltcher Dunn et al) is great at teaching 3D math concepts (better than math for 3d game programming and computer graphics IMO) OpenGL Superbible (blue book) contains a huge coverage of how to program for GL. There are also different colored books that are basically the authority on any other GL-related topic. The thing is, people think that using an engine means they don't have to learn certain things, like low-level rendering and math. The fact of the matter is that games are math and it is just inherent in them. It's like saying you don't need to know basic geometry as an architect because you can just use Autocad to do your dirty work. Clearly that won't work, you'll need to be able to make calculated designs. No engine does absolutely everything you want out of the box. To add a unique feature to a game, you'll need to know how to write that exact code, and chances are that if it does anything cool at all, there will be some math involved. Fortunately, if you have the right resources (people, books, pen, paper and a calculator) you'll be able to figure it out and get it working correctly :) I say just dive in head first. Learn as you need to. I think that's what lots of us have done. As far as art goes - I've only found one way to deal with that. Find a good artist! I'm working with a guy who was willing to partner up for a percentage of the game's revenue. He's turned out to be a great 3D artist and so it really worked out well. Everyone involved in making a game needs to have passion to do it. It's hard and takes a lot of time and patience. I think it's awesome that you are thinking about doing it. Feel free to email me with questions along the way. Also, check and see if there is an IGDA chapter in your area. That's where I met several very talented people. We have a meeting tonight, in fact! On Mar 18, 9:40 am, Kevin Duffey andjar...@gmail.com wrote: I agree full heartedly Robert. I can't imagine EA spending a few hundred grand on a game for mobile, knowing that they likely won't recoup the costs.. unless it's just a brand recognition thing and an exepected loss. I am well aware of the costs for large scale games, have a few friends in the business working for EA, Blizzard, etc. I've wanted to break into the gaming business for a looong time. I am just not so good with all that extensive math involved in the bigger games. That is why kits like Rokon are really interesting to me, might give me a chance to build some decent games and focus less on the stuff I don't know much about and more on the game itself. I hope anyway. Couple other kits were mentioned in a different thread that sound promising. I am looking to just learn, have some fun, and possibly make a little money, but not holding my breath to do so. My kids are always telling me about this pokemon like fantasy world they've invented, thought it would be really fun to do something like that for them so they could show their friends. I don't know if Android has enough of any one type of game or app to be over that hill where you absolutely must be at the top to succeed.. there is only room for a few there and it would seem to me that the chances your app will make it are so slim, it's not worth the effort. Hence, making games or apps for yourself or in your spare time are a better effort to me than trying to make a living. I can see where contracting out to do apps for specific companies, like banks, warehouses, etc could be profitable tho... although I have no clue how to market myself to get such gigs. lol. It is pretty impressive how one developer can write a game, the aI, collision detection, physics, music/sound fx, and more in a couple months time tho. I commend you and the others that can do that. I am stuck on how to do graphics as well. I can't pay anyone to do art, so I think I am going to have to digitize stick figures. On Wed, Mar 17, 2010 at 11:41 PM, Robert Green
[android-developers] Filter in ExpandableListView
Hi, I have an ExpandableListView with several groups and each group contains several children. I want to make this list searchable, just like a regular list view. I have a SimpleCursorTreeAdapter (mAdapter) for this expandlable list. I tried to use the built in list filter using: mSearchBox.addTextChangedListener(new TextWatcher() { public void beforeTextChanged(CharSequence s, int start, int count, int after) { } public void onTextChanged(CharSequence s, int start, int before, int count) { mAdapter.getFilter().filter(s); } public void afterTextChanged(Editable arg0) { // TODO Auto-generated method stub } }); The above code does not work for filtering. Any idea on how can I implement the search/filter functionality? Thanks Kunal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Filter in ExpandableListView
You can enable filtering using setTextFilterEnabled (see http://min.ie/3cx) tikky wrote: Hi, I have an ExpandableListView with several groups and each group contains several children. I want to make this list searchable, just like a regular list view. I have a SimpleCursorTreeAdapter (mAdapter) for this expandlable list. I tried to use the built in list filter using: mSearchBox.addTextChangedListener(new TextWatcher() { public void beforeTextChanged(CharSequence s, int start, int count, int after) { } public void onTextChanged(CharSequence s, int start, int before, int count) { mAdapter.getFilter().filter(s); } public void afterTextChanged(Editable arg0) { // TODO Auto-generated method stub } }); The above code does not work for filtering. Any idea on how can I implement the search/filter functionality? Thanks Kunal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Netbeans Profiler not working with netbeans android plugin
I'm using netbeans with android and I don't think you can use a conventional java profiler on android because the delvik vm does not implement all the jdk tools for instrumentation. If you need to profile your app, I would use Traceview, http://developer.android.com/ guide/developing/tools/traceview.html shows you how. On Mar 17, 7:20 pm, Berko berkan.gur...@googlemail.com wrote: Hi Guys, I have been having trouble trying to use the Netbeans Profiler with Android. The android plugin itself (for netbeans from kenai) works fine, though when I try and use the Netbeans profiler with it, it fails to work. When I run the profiler a small message window pops up saying connecting to the target VM, it stays at that for about 2-3 mins then the window closes and nothing else happens. Is anyone else here using netbeans and having this problem? I would also like to point out that I am using Netbeans and Eclipse with the android plugin as part of my Honors project at Uni, Im doing a comparison you see. Thanks Berko This is the second time I am making this post since the last time it got denied for reasons I dont know since the email I received was in an asian language which I did not 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
[android-developers] Dismissing Custom Dialog
Hi All, I can't dismiss my custom dialog. I have XML layout with some text, pic and a button for dismissing the dialog. My onCreateDialog starts a DatePicker Dialog and About Dialog @Override protected Dialog onCreateDialog(int id) { switch (id) { case DATE_DIALOG_ID: works nice case ABOUT_DIALOG_ID: Dialog dialog = new Dialog(this); dialog.setContentView(R.layout.custom_dialog); dialog.setTitle(About mySelf); TextView text = (TextView) dialog.findViewById(R.id.lblAbout); text.setText(R.string.cd_about); ImageView image = (ImageView) dialog.findViewById(R.id.imgLomaryn); image.setImageResource(R.drawable.lomaryn); Button cdBack = (Button) findViewById(R.id.cdbtnCancel); some help needed here (?) return dialog; } return null; } To show the Custom Dialog I click on textview as follows // add a click listener to lblTitle label mlblTitle.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { showDialog(ABOUT_DIALOG_ID); } }); I need the click on my cdBack button to dismiss the Custom Dialog There are not many methods available for Custom Dialogs. Even setButton method is missing. It is for AlertDialogs only Can't cast the setOnClickListener for the Custom Dialog Thanks for any valuable help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SearchManager SUGGEST_COLUMN_ICON_1 for local file
Hi there, I'm trying to display a custom icon next to each result in the search box. It's an image file at in the app's data - in this case at: /data/data/uk.ac.nott.cs.rxb06u.Prediction.AndroidUI/files/ __cache_b3e4775cfbd30cd1e8fd7ad379ff9f04.jpg I'm building a URI like this: String uri = new Uri.Builder() .scheme(ContentResolver.SCHEME_FILE) .encodedPath(img) // where image is the path I mentioned before .toString(); But I get this error in the logs: W/SuggestionsAdapter( 74): Icon not found: file:/data/data/ uk.ac.nott.cs.rxb06u.Prediction.AndroidUI/files/ __cache_b3e4775cfbd30cd1e8fd7ad379ff9f04.jpg, /data/data/ uk.ac.nott.cs.rxb06u.Prediction.AndroidUI/files/ __cache_b3e4775cfbd30cd1e8fd7ad379ff9f04.jpg I know this file exists - I can open it elsewhere e.g. by BitmapFactory.decodeFile(img) Any ideas? docs/examples seem to be rare on the ground for doing this - trawled google extensively looking for results! Thanks all, Rik. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ADT Eclipse Plugin won't let me put in a Target
I've been trying to make a new Android project in Eclipse. But whenever I try to do so, it won't let me select a build target. Here's a screenshot: http://twitpic.com/198od6 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Application wake up
Hi Sam, I think you should create a service for that!!! You can use Intent for SMS in following way public class RespToSMS extends IntentReceiver { /* package name for Intent */ static final String ACTION = android.provider.Telephony.SMS_RECEIVED; public void onReceiveIntent(Context context, Intent intent) { if (intent.getAction().equals(ACTION)) { StringBuilder buf = new StringBuilder(); Bundle bundle = intent.getExtras(); if (bundle != null) { SmsMessage[] messages = Telephony.Sms.Intents.getMessagesFromIntent(intent); for (int i = 0; i lt; messages.length; i++) { SmsMessage message = messages[i]; buf.append(message.getDisplayMessageBody()); /* Check your SMS format and respond here... */ } } NotificationManager nm = (NotificationManager) context.getSystemService( Context.NOTIFICATION_SERVICE); nm.notifyWithText(123, buf.toString(), NotificationManager.LENGTH_LONG, null); } } } Thanks, Vaibhav On Thu, Mar 18, 2010 at 10:33 AM, SAM gulati...@gmail.com wrote: Hi, I have a requirement to wake up my application upon receiving a particular formatted SMS or App directed notification from server. My application is in dead state. Whenever the device receives a event may be a SMS in a particular format OR some notification(eg app directed notification from server), android OS will start my application. Its possible in Windows Mobile and BREW. Please let me know if its possible in Android and how. Thanks Sam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Mute Microphone
Hi All, I'm new to the forum, very happy to be here! I'm also relatively new to Android development and have been reading and playing with the development environment. I've been able to have moderate success but have recently come across something that has stumped mehoping someone can help. I'm going to be writing an app that utilizes the muting of the phone's microphone during a call, but I'm unable to get the code to work for muting the microphone. I have the following code: public AudioManager mgr; mgr = (AudioManager) getSystemService(Context.AUDIO_SERVICE); public void MuteMicrophone(){ if (mgr.isMicrophoneMute()){ mgr.setMicrophoneMute(false); txtMessage.setText(UNMUTE!); } else{ mgr.setMicrophoneMute(true); txtMessage.setText(MUTE!); } There are 2 problems with the MuteMicrophone subroutine, probably related to each other: - every time the MuteMicrophone subroutine is called, it is going to the else clause...it seems that mgr.isMicrophoneMute is always returning TRUE. - mgr.setMicrophoneMute(true) is not working Is there something I'm doing wrong? I know that some of the phone's functionalities require the developer to put a permission line in the Manifest file.is that what I'm missing? Thank you very much for any help, and I look very forward to contributing to the forum! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 logcat skips log messages
I've am writing an app that has a major component in C++. In order to aid debugging I tend to write a lot of data to the logs from C++ (and a minimal amount from Java). The logs are written out using NDK logging facilities and also written to files on the device. It seems that, at least under high logging load, when I run adb logcat from the command line that it skips log messages randomly. Has anyone else seen this problem? Is this to be expected? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SD Card File I/O
Also, you will need uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / in your manifest, if you are using Android 1.6 and beyond. On Mar 16, 10:33 pm, sumit asok dont.follow.me@gmail.com wrote: I think openFileOutput() method is used to write to applications private data ( not the SD card ) So your application will be searching for a folder /sdcard/ inside your applications folder /data/...path to your application/ In order to write file you have to use FileOutputStream. On Mar 12, 5:43 am, Pradeep pradeep.aro...@gmail.com wrote: Hi: I have the following code in my application. When loaded into the phone, I get File Open Exception. Any idea what I may be doing wrong? I suspect some issue with permissions or something but I'm not sure. = code snippet FileOutputStream fos; try { fos = this.openFileOutput(/sdcard/demo.txt, MODE_WORLD_WRITEABLE); try { fos.write(Appended.getBytes()); fos.close(); } catch (IOException e) { // TODO Auto-generated catch block Toast.makeText(getBaseContext(), File Write or Close Exception!!, Toast.LENGTH_SHORT).show(); e.printStackTrace(); } } catch (FileNotFoundException e) { // TODO Auto-generated catch block Toast.makeText(getBaseContext(), File Open Exception!!, Toast.LENGTH_SHORT).show(); e.printStackTrace(); } === Regards...Pradeep.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] I am not able to update contact on android 2.1 emulator
Hi, I have written an application and added 2 contacts on emulator, but i am not able to update their names on android 2.1, code is working on android 1.6 platform with the following code. ContentValues contactValues = new ContentValues(); contactValues.put(Contacts.People.NAME, firstName+ +lastName); getContentResolver().update(UpdateContactUri, contactValues, null, null); In android 1.6 i am getting Uri for those two contacts are content:// contacts/people/1 and content://contacts/people/2. but in 2.1 I am getting these values are content://contacts/people/8 and content://contacts/people/9 and while updating its giving java.IllegalArgumentException, Empty values exception. When i tried to put a static Uri like content://contacts/people/1, code was debugged sucessfully but contact was not updated. How can i resolve it, why i am not getting uri like 1.6 platform ? 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] Application taking over Phone app call
Hello all, I have a task at sight but need some expert help: is it possible to place a phone call within an Activity without bringing up the native Phone app? I need to place a call from the app I am developing, so what I would like to do is to pass a phone number through an Activity that may or may not bring the Phone app up to screen. Any ideas? Thanks in advance Fabio -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] attractive a soap
webpage; http//123maza.com/50/latha50 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en