Re: [android-developers] Re: Getting Discovered Bluetooth Devices List Returns Too Late
You should have 2 broadcast receivers. one for getting the discovered bluetooth devices in your list using ACTION_FOUND intent filter. second one is for Knowing when the discovery is completed using ACTION_DISCOVERY_FINISHED. In this broadcast receiver, you should take the devices list when you the the event for discovery finished. On Tue, Jul 12, 2011 at 9:07 AM, gjs garyjamessi...@gmail.com wrote: Hi, Have a look at http://developer.android.com/resources/samples/BluetoothChat/index.html In particular http://developer.android.com/resources/samples/BluetoothChat/src/com/example/android/BluetoothChat/DeviceListActivity.html And read this carefully http://developer.android.com/guide/topics/wireless/bluetooth.html Regards On Jul 9, 9:26 am, Bassel Yahia basselya...@gmail.com wrote: Hi, I am having a real problem here with discovering bluetooth devices. I am making a method that returns a List with all devices that were discovered. This method triggers other methods that executes the discovery and establish the BroadcastReceivers. THE PROBLEM is that the method returns before the BroadcastReceivers finds the devices. This results in returning an empty list every time by the getDiscoveredList() because the List hasn't been filled yet by the Receivers. List made global where all methods and Receivers share the same List. The List is filled with devices after the method returns. Here is my code: ArrayListDevice discoveredDevices = new ArrayListDevice(); public ArrayListDevice getDiscoveredList() { isDiscovering = true; monitorDiscovery(); discoverDevices(); Log.d(Save, Before - btAdapter.isDiscovering() +btAdapter.isDiscovering()); while (btAdapter.isDiscovering()) { // Waiting for discovery to end. Assuming that during discovery devices have already been added // in discoveredDevices because they are added when BluetoothDevice.ACTION_FOUND // When discovery ends, no nearby devices is expected to be found by the // discoveryResult BroadcastReceiver because I am not discovering outside this loop } Log.d(Save, After - btAdapter.isDiscovering() +btAdapter.isDiscovering()); Log.d(Save, Returning from getDiscoveredList()); return discoveredDevices; } private void monitorDiscovery() { registerReceiver(discoveryMonitor, new IntentFilter( BluetoothAdapter.ACTION_DISCOVERY_STARTED)); registerReceiver(discoveryMonitor, new IntentFilter( BluetoothAdapter.ACTION_DISCOVERY_FINISHED)); } private void discoverDevices() { while (!btAdapter.isEnabled()) { // If Bluetooth is still opening, then wait till opened } discoveredDevices.clear(); //Clear the List btAdapter.startDiscovery(); while (!btAdapter.isDiscovering()) { //Wait till discovery starts } BroadcastReceiver discoveryResult = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { BluetoothDevice remoteDevice; remoteDevice = intent .getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); short rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI, Short.MIN_VALUE); Toast.makeText( getApplicationContext(), Discovered: + remoteDevice.getName() + RSSI: + rssi, Toast.LENGTH_SHORT).show(); if (!discoveredDevices.contains(remoteDevice)) { discoveredDevices.add(new Device(remoteDevice, rssi)); Log.d(Save, Name: + remoteDevice.getName()); Log.d(Save, Address: + remoteDevice.getAddress()); Log.d(Save, RSSI: + rssi); Log.d(Save, Size Now: + discoveredDevices.size()); } } }; registerReceiver(discoveryResult, new IntentFilter(BluetoothDevice.ACTION_FOUND)); return; } BroadcastReceiver discoveryMonitor = new BroadcastReceiver() { String dStarted =
[android-developers] R: Re: Relying on other apps using intents - user perspective
Il giorno martedì 12 luglio 2011 01:16:46 UTC+2, Streets Of Boston ha scritto: You can just embed the core library of ZXing in your own app. Then you can take a look at the code ZXing's android-client app and copy what you need. This embeds the scanner right into your app. Pro: no need for your users to download the ZXing app. Especially handy if you ever want to distribute your app on phones without Android Market app. Con: You need to do some coding yourself, although minimal. You can do this, because ZXing is licensed under Apache License 2.0. Just put the appropriate notices and attributions in your app. I know that I can do that but: - in this phase I wanted to focus on the app, so using an external app was faster (and now I am wondering is it's ok to leave it this way) - it's the approach suggested by zxyng, otherwise I think they would have released a library - I don't really like to copy / paste pieces of code around On the other hand, as a user I wouldn't really like to be asked to install something more than the app I chose, so I think I'll move to that other approach (maybe after some iteration). Intents are extremely powerful but, if G wants to promote this cross app collaboration, they should offer a list of options directly in the download phase from the market, maybe relying on what openintents are doing. I think a user (or at least me) would trust the market more than a random app Thanks for the reply, Federico -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to perfrom long press on screen, and how to get text on screen in monkeyrunner
Hi , Thanks for the reply. Actually the scenario of my script is to scroll screen, touch on specific menu item, long touch on an item. The script should haveonly touch operations as I am working with only touch enabled device(NO keypad, Full touch device). I came across one utility called androidlib.py which provides methods to perform many actions on device. In that there is a scroll() method, which is not performing successfully. path: https://github.com/eing/moet/blob/master/common/androidlib.py After first scroll(horizontally in home screen) , the focus went to contacts shortcut at the bottom of screen and it can't proceed with the second scroll. (Note: is it possible to embed touchevent constants like ACTION_SCROLL in that method?) I also tried with MonkeyDevice.drag() api, which requires hardcoded values of x, y screen coordinates which may not perform operation when the script runs on emulator or other device. Can you please help me with solution or any alternative for the same. Thanks in advance. frank On Jul 12, 3:31 am, Bill Napier nap...@android.com wrote: Oh, and there currently is no way to get text from the screen. It's something we are working on, but it's not yet ready. On Mon, Jul 11, 2011 at 3:31 PM, Bill Napier nap...@android.com wrote: device.press('KEY_MENU', MonkeyDevice.DOWN_AND_UP) is what I think you want. I think the docs are currently incorrect. DOWN_AND_UP means to send both the down event and the up event, which should simulate a press of the button. On Mon, Jul 11, 2011 at 12:58 AM, frank franklin.f2...@gmail.com wrote: Hi All I am writing scripts on monkeyrunner to test screen verification. I want to get screen text and verifiy the same to perform touch and press action on the screen items. The below command takes only key presses, device.press('KEY_MENU', 'DOWN') Can you anyone help me with some option to perform touch and press on screen. Also to get and verify screen contents like text. regards, Frank -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: WebView - How can I block/deactivate all the links in a WebView after the content is loaded?
There are a few options. You can set a custom webview client and override onShouldOverride and make it so that the webview never navigates away from the page. If you control the server side, have the page load without the links being clickable. Or insert a piece of javascript that disables the links, or apply some css or something. On Mon, Jul 11, 2011 at 2:43 PM, Nicolas Copernico nicolascopern...@gmail.com wrote: I also set several properties on main.XML WebView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/webview android:layout_width=fill_parent android:layout_height=fill_parent android:layout_gravity=top android:focusable=false android:focusableInTouchMode=false android:longClickable=false android:clickable=false / -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: implementation of kakao talk
Thanks for the information On Fri, Jul 8, 2011 at 4:21 PM, bash bashiratta...@googlemail.com wrote: Use the smack API for Android its very easy to use and implement an XMPP client with it. You can find it here http://code.google.com/p/asmack And documentation here http://www.igniterealtime.org/index.jsp A basic IM client is simple and straight forward , good luck -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Merge Path instances (graphics)?
Hi, Looks like your code only need 1 path anyway. Regards On Jul 12, 12:41 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Tue, Jul 12, 2011 at 7:28 AM, roplacebo r.praeho...@googlemail.com wrote: Sorry, if can't read this simple example, you probably won't be able to help here anyway. OK... Here's another thought: if you post unreadable code an don't explain what your problem is clearly, you are unlikely to get any help. Telling people that they can't read *your* messy code doesn't help either. Anyone tried the code above? Why should anyone bother trying your code, when you don't explain what your problem is? Good luck. And sorry for wasting *my* time trying to 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: NFC card emulation, NXP PN544 and S2C (NFC-WI)
Dear Martin, Still few questions:) Not to NXP's S2C but to NFC-WI, which is standardized in ECMA-373 (you'll find that on Google). I was thinking S2C is an NXP implementation (e.g. the commercial name) of the NFC-WI. Both,S2C and NFC-WI, looks pretty similar. So in fact, even they using similar approach, we are talking about two different technologies? So having the NFC controller, e.g. Samsung S3FHRN2 (http://www.samsung.com/global/business/semiconductor/support/ brochures/downloads/systemlsi/S3FHRN2.pdf), which declared the NFC-WI support we are talking about 2 different, probably not compatible solutions? So theoretical SD card supporting S2C might not be compatible with ECMA NFC-WI standard and vice verse? The longer answer: At least the PN532 could be put into a software card emulation mode, where the PN532 acted like a passive card and the software stack could handle the APDU commands on top of ISO14443-4 When talking about PN532 and its card emulation capabilities, are you sure the controller emulates the smart card even without having attached the SmartMX secure element? I checked the dat asheet abstract (http://www.nxp.com/documents/leaflet/75016623.pdf) and it says Card emulation functionality compatible to ISO/IEC 14443 A when connected to secure controller (SmartMX P5CN072)? NXP delivers to Samsung, SonyEricssion, Nokia, etc. the S2C might be pretty widespread, right? But since S2C is NXP proprietary do you know if other NFC IC manufacturers are going to support NFC-WI? Any clues? I tried to look on the Inside Secure portfolio also. I think this company is 2nd biggest NFC IC manufacturer. They are dealing I think with RIM and lately also with the ZTE. I was looking on what I suppose is their NFC controller flag ship - the MicroRead NFC controller (http://www.insidesecure.com/eng/Products/NFC-Products/MicroRead) and it does not mention NFC-WI in the data sheet abstract, but it says: It can, for example, act as a router and its powerful command set allows all elements of the chosen architecture to interact in a controlled manner (SIM, SE, SD card, Application Processor and NFC interfaces).This allows for implementation of various business models by mobile operators and third parties.. Do you know anything about that? Thanks a lot, STeN -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: HttpClient only working on WiFi?
On Tue, Jul 12, 2011 at 11:56 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Mon, Jul 11, 2011 at 9:15 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Wild guess... and i could be totally wrong: It could be a proxy returning an empty result for some reason. Try to set the HTTP caching headers in the request to no-cache: Cache-Control: no-cache and Pragma: no-cache Thanks for idea. It's mostly GET's to a cgi, so you might well be right. Will try it out. Seems that was exactly the problem. Setting the no cache headers fixed it. 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: How to know what internal process runs an application
Why not query the pid of each process and keep track of them? That shouldn't be so hard. Doug On Jul 10, 11:46 pm, elDoudou the.edouard.merc...@gmail.com wrote: Mark, your answer does not answer to my problem. I am an Android advanced developer and I have a good reason to spawn a new process. Anyone by Google? Do I really need to dig more in the Android source code? Thank you for your time. Regards, Édouard -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 to stop handler in widget
How i can solve this or bypass? On 11 Lug, 19:29, Mark Murphy mmur...@commonsware.com wrote: Sbarazzarsi del gestore dal widget app.BroadcastReceivers non è possibileutilizzare in modo affidabile le cose che continuerà dopo OnReceive () (o, nelcaso di un, AppWidgetProvider onUpdate ()). On Mon, 11 luglio, 2011 alle 11:40,guizg.camerli...@ gmail.com ha scritto: Ciao a tutti, ho un problema di fermare e gestore (provo anche un timer che ho l' stesso problema) che io chiamo in un widget.Cerco di rimuovere richiamate, ma la curva non si ferma. Crea gestore Handler Handler privato = Handler new (); Privato Runnable eseguibile = new Runnable () { @ Override public void run () { RunEdt (); handler.postDelayed (questo, 1); }}; Aggiorna inizio Handler.postDelayed (eseguibile, 100); Io cerco di fermarlo OnDeleted Public void OnDeleted (contesto Context, int [] appWidgetIds) { handler.removeCallbacks (eseguibili);} Qualche idea? - Hai ricevuto questo messaggio in quanto sei iscritto a Google Gruppi gruppo Gli sviluppatori Android. Per postare in questo gruppo, invia un'email a android-developers@googlegroups.com Per annullare l'iscrizione a questo gruppo, invia un'email a androide-sviluppatori + unsubscr...@googlegroups.com Per maggiori opzioni, visita questo gruppo all'indirizzohttp://groups.google.com/group/android-developers?hl=en -Mark Murphy (a Commons _Android Versione Programmazione Tutorials_ Disponibile 3.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] Re: How to know what internal process runs an application
Hello Doug and thank you. The process id does not indicate the Android declared process in the AndroidManifest.xml file, unfortunately. What I need to know is the android:process which causes the process to start. If I declare a service in the manifest with a specific process name (tag android:process), how do I know at runtime when this specific service process causes the Application::onCreate() method to be invoked, please? Thank you for your time and support. Regards, Édouard -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: A large number of messages are being sent -- How to get around it?
I've used both the physical device and the emulator. I'm using samsung galaxy spica on Android OS 2.1 On Jul 12, 11:01 am, rich friedel rich.frie...@gmail.com wrote: Are you using a physical device or the emulator when you are testing? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] MMS on Network
Hi All, I have an issue. I want to send MMS. if i use Intent then it is starting application which can send MMS. I need to sent it by default. I have gone through the code of MMS native app there is a Class called MMSMessageSender which is responsible for sending mms(I think). but dont know how to use that class or which code should i use to do the task. -- Thanks Regards, Ankit Awasthi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 size supported
Dear All : Is there anyone know the maximum screen size supported by Android? Is it possible to display on 1366 X 738 density? Thanks. BR,Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Screen size supported
HI , Refer Below Link. http://developer.android.com/guide/practices/screens_support.html On Tue, Jul 12, 2011 at 2:54 PM, mark2011 androidmark2...@gmail.com wrote: Dear All : Is there anyone know the maximum screen size supported by Android? Is it possible to display on 1366 X 738 density? Thanks. BR,Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- With Regards, SHANMUGANATHAN. A Software Engineer Trainee, Citrisys Solution, Phone: +91.44.22311173 Mail To: sayyadu...@citrisys.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Aw: List with checkboxes problem
try to use android.R.layout.checkable list item or something like that. have a look to the source code... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] read image as text
how to read image as text -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Aw: List with checkboxes problem
what r u trying to do exactly?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] APK Size
Another option would be uploading different APKs for each resolution supported (i.e: high, medium and low) and publish them with three different names (i.e: name H, name M, name L) and use the filters so each package only shows when browsing the market from the targeted device. It's a ton of configuration but maybe you can automate the builds using ant/maven ;) Good luck! El 12/07/2011 00:04, TreKing treking...@gmail.com escribió: On Mon, Jul 11, 2011 at 4:47 PM, Ronoli javat...@gmail.com wrote: Here's my question: Since the Android system obviously detects screen size and density when it loads the apk file, does it or can it or will it ever install only the images needed for the particular device that it is being installed on? Are there ways to do this that I am not aware of? That's not supported. There will supposedly be a way to submit multiple APKs as one single product, such that the correct APK is available on any given device with only the resources you deem necessary for that version, but that's likely a long ways away. Consider hosting your resources online and downloading them on an as-need basis or on startup. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: A large number of messages are being sent -- How to get around it?
On Mon, Jul 11, 2011 at 9:17 PM, inxis smeb...@gmail.com wrote: I have tried sending fewer than 100 messages at a time but the pop-up still opens whenever I reach the limit, which is 100 messages. I set the application to send 1 message at a time and loop until all the messages are sent. There presumably is a time-based counter; find the time, and only deliver 99 messages during each time window. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Problem to stop handler in widget
Don't try to update an app widget every 10 seconds. Do something more coarse-grained (e.g., every minute or more) and use AlarmManager. 2011/7/12 GuiZ g.camerli...@gmail.com: How i can solve this or bypass? On 11 Lug, 19:29, Mark Murphy mmur...@commonsware.com wrote: Sbarazzarsi del gestore dal widget app.BroadcastReceivers non è possibileutilizzare in modo affidabile le cose che continuerà dopo OnReceive () (o, nelcaso di un, AppWidgetProvider onUpdate ()). On Mon, 11 luglio, 2011 alle 11:40,guizg.camerli...@ gmail.com ha scritto: Ciao a tutti, ho un problema di fermare e gestore (provo anche un timer che ho l' stesso problema) che io chiamo in un widget.Cerco di rimuovere richiamate, ma la curva non si ferma. Crea gestore Handler Handler privato = Handler new (); Privato Runnable eseguibile = new Runnable () { @ Override public void run () { RunEdt (); handler.postDelayed (questo, 1); }}; Aggiorna inizio Handler.postDelayed (eseguibile, 100); Io cerco di fermarlo OnDeleted Public void OnDeleted (contesto Context, int [] appWidgetIds) { handler.removeCallbacks (eseguibili);} Qualche idea? - Hai ricevuto questo messaggio in quanto sei iscritto a Google Gruppi gruppo Gli sviluppatori Android. Per postare in questo gruppo, invia un'email a android-developers@googlegroups.com Per annullare l'iscrizione a questo gruppo, invia un'email a androide-sviluppatori + unsubscr...@googlegroups.com Per maggiori opzioni, visita questo gruppo all'indirizzohttp://groups.google.com/group/android-developers?hl=en -Mark Murphy (a Commons _Android Versione Programmazione Tutorials_ Disponibile 3.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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SMS Broadcastreceiver not received when GO SMS Pro installed
On Mon, Jul 11, 2011 at 11:08 PM, rich friedel rich.frie...@gmail.com wrote: Yeah... Go SMS Pro really screws with things... the only thing I can figure is they are absorbing the incoming broadcast and somehow not letting it through so that other receivers can do what they need to do. The OP had originally posted on StackOverflow -- here's the analysis: http://stackoverflow.com/questions/6600266/suppress-block-broastreceiver-in-another-app/6600312 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: A large number of messages are being sent -- How to get around it?
The limit is 100 messages per hour. http://www.xda-developers.com/android/increase-the-sms-limit-on-android/ On Tue, Jul 12, 2011 at 3:53 PM, Mark Murphy mmur...@commonsware.comwrote: On Mon, Jul 11, 2011 at 9:17 PM, inxis smeb...@gmail.com wrote: I have tried sending fewer than 100 messages at a time but the pop-up still opens whenever I reach the limit, which is 100 messages. I set the application to send 1 message at a time and loop until all the messages are sent. There presumably is a time-based counter; find the time, and only deliver 99 messages during each time window. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://wiki.androidappcheck.com/ http://www.telstop.tel/ https://market.android.com/developer?pub=Raghav+Sood -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Relative layout java
imParams.addRule(CENTER_VERTICAL,true); imParams.addRule(ALIGN_PARENT_RIGHT, true); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: OMX_GetExtensionIndex failed Message
Hi, Thanks for replying: Can you suggest me what I may be doig wrong below? After onCreate() I call playVideo() when surface is created and then start the playback when onPrepared is called. After finishing playback I release the player. Can you suggest if we need to explicitly release surfaceHolder? This play back does not have audio @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mPreview = (VideoView) findViewById(R.id.teaserVideoStage); surfaceHolder = mPreview.getHolder(); surfaceHolder.addCallback(this); surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); } public void surfaceCreated(SurfaceHolder holder) { Log.d(MediaPlayerDemo, surfaceCreated called); playVideo(); } private void playVideo() { doCleanUp(); try { AssetFileDescriptor afd = getResources().openRawResourceFd(R.raw.video); Log.v(MediaPlayerDemo, startVideoPlayback); // Create a new media player and set the listeners videoPlayer = new MediaPlayer(); videoPlayer.setDisplay(surfaceHolder); Log.v(MediaPlayerDemo, Setting datasource via filedescriptor); videoPlayer.setDataSource(afd.getFileDescriptor(),afd.getStartOffset(), afd.getLength()); Log.v(MediaPlayerDemo, closing filedescriptor); afd.close(); videoPlayer.setOnPreparedListener(this); videoPlayer.setOnBufferingUpdateListener(this); videoPlayer.setOnCompletionListener(this); videoPlayer.setOnVideoSizeChangedListener(this); videoPlayer.setOnErrorListener(this); //videoPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); videoPlayer.prepare(); }catch(RuntimeException re) { finish(); } catch (Exception e) { finish(); } } onDestroy() I do this. if (videoPlayer != null) { videoPlayer.release(); videoPlayer = null; } if(mPreview != null) { mPreview.setAlpha(1); mPreview = null; } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 to stop handler in widget
Yes my problem it that i try to implement a textswitcher and every 10 second it's the time to switch the news on the widget but i think it's to expensive for battery. On 12 Lug, 12:24, Mark Murphy mmur...@commonsware.com wrote: Don't try to update an app widget every 10 seconds. Do something more coarse-grained (e.g., every minute or more) and use AlarmManager. 2011/7/12GuiZg.camerli...@gmail.com: How i can solve this or bypass? On 11 Lug, 19:29, Mark Murphy mmur...@commonsware.com wrote: Sbarazzarsi del gestore dal widget app.BroadcastReceivers non è possibileutilizzare in modo affidabile le cose che continuerà dopo OnReceive () (o, nelcaso di un, AppWidgetProvider onUpdate ()). On Mon, 11 luglio, 2011 alle 11:40,guizg.camerli...@ gmail.com ha scritto: Ciao a tutti, ho un problema di fermare e gestore (provo anche un timer che ho l' stesso problema) che io chiamo in un widget.Cerco di rimuovere richiamate, ma la curva non si ferma. Crea gestore Handler Handler privato = Handler new (); Privato Runnable eseguibile = new Runnable () { @ Override public void run () { RunEdt (); handler.postDelayed (questo, 1); }}; Aggiorna inizio Handler.postDelayed (eseguibile, 100); Io cerco di fermarlo OnDeleted Public void OnDeleted (contesto Context, int [] appWidgetIds) { handler.removeCallbacks (eseguibili);} Qualche idea? - Hai ricevuto questo messaggio in quanto sei iscritto a Google Gruppi gruppo Gli sviluppatori Android. Per postare in questo gruppo, invia un'email a android-developers@googlegroups.com Per annullare l'iscrizione a questo gruppo, invia un'email a androide-sviluppatori + unsubscr...@googlegroups.com Per maggiori opzioni, visita questo gruppo all'indirizzohttp://groups.google.com/group/android-developers?hl=en -Mark Murphy (a Commons _Android Versione Programmazione Tutorials_ Disponibile 3.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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: WebView - How can I block/deactivate all the links in a WebView after the content is loaded?
It sounds good, could you just point me out the classes or methods involved on this? -I'm already using a webview client in order to load all the next pages under the application. - As a side note, what would be that piece of javascript ? I do have access to server side, maybe it would be easier to block those links from the website. Gracias Miguel Dave -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 as sattelite phone?
Can andriod phone be designed in a such a way so that it can work as a sattelite phone. If possible can we implement and how ? Thanks Sourabh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] imageview
Hi am having a task..in which i have to place the 4 images in rectangle shape(each image i have to place at the corner) 1)when i click on the particular images a new image should appear inside the rectangle shape (particular to that image)((if i click on first image then related to that image has to apper..if i click on second image related to particular image should apper and so on.)) i done in the form of rectangle shape but how to get an image inside the rectangular box when i click the particular image plz if any one kow on this give me guidance ..if u have any code also send me... Thankyou arun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 calendar api on android
Hi, I'm started to use the Google Calendar Api and now I'm ok with the authetication, get the calendar list, rename the calendars, and add event with specified time and title to a selected calendar. I'm started to use the model from the calendar-v2-atom-android-sample (http://code.google.com/p/google-api-java-client/source/browse/ calendar-v2-atom-android-sample/src/com/google/api/client/sample/? repo=samples#sample%2Fcalendar%2Fandroid%2Fmodel) and i figured out what I have to add to the model for the events because I read this: http://www.google.com/support/forum/p/apps-apis/thread?tid=3b948784a9502531hl=en But now I have to add a recurrention for my events, and I alredy read this: http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html#CreatingRecurring, but not really clear what is the content of the public class Recurrence {}, and where and how should I define the setRecurrence(Recurrence recurr)() function. Please help, Leslie. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Please Help Me
Hi i am trying to develop calendar based apps .. i want highlight particular different different date.. how can i achieve this one?.. pleasee help me... -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ Mob.No:09048382536(Kerala) Mob.No:09751076707(TN) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] google calendar api on android
This is a list for Android SDK development. Questions about the Google Calendar GData APIs belong on a list for Google Calendar GData SDK development. On Tue, Jul 12, 2011 at 7:49 AM, leslie.karpati leslie.karp...@gmail.com wrote: Hi, I'm started to use the Google Calendar Api and now I'm ok with the authetication, get the calendar list, rename the calendars, and add event with specified time and title to a selected calendar. I'm started to use the model from the calendar-v2-atom-android-sample (http://code.google.com/p/google-api-java-client/source/browse/ calendar-v2-atom-android-sample/src/com/google/api/client/sample/? repo=samples#sample%2Fcalendar%2Fandroid%2Fmodel) and i figured out what I have to add to the model for the events because I read this: http://www.google.com/support/forum/p/apps-apis/thread?tid=3b948784a9502531hl=en But now I have to add a recurrention for my events, and I alredy read this: http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html#CreatingRecurring, but not really clear what is the content of the public class Recurrence {}, and where and how should I define the setRecurrence(Recurrence recurr)() function. Please help, Leslie. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Android as sattelite phone?
On Tue, Jul 12, 2011 at 7:44 AM, sourabh sahu souruit...@gmail.com wrote: Can andriod phone be designed in a such a way so that it can work as a sattelite phone. Not via the Android SDK. If possible can we implement and how ? Step #1: Find a relevant discussion group and ask there, perhaps one on http://source.android.com -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 implement UniqueFieldValueConstraint in db4o on Android ?
Just another hint: Have you added a index for the 'id'-field? Otherwise the unique constrain doesn't work. On Jul 7, 5:03 pm, Gamlor gamlerh...@gmail.com wrote: Hi. I've answered this also on the db4o forum. This is a copy of my answer: Which version of db4o are you using? To me that looks like some kind of regression / accidental API breakage. Instead of the UniqueFieldValueConstraintViolationException the EventException is thrown. The unique-field detection is just another event handler. So it looks like the original UniqueFieldValueConstraintViolationException is hidden by the event- exception Try to catch the EventException an check if the .getCause() is a UniqueFieldValueConstraintViolationException. In general the UniqueFieldValueConstraintViolationException should be the last 'barrier' before violating the constrain. If you know that you probably will insert a doublicate then I recommend to first check if that id isn't used yet. On Jun 22, 3:29 pm, imran ali imran...@gmail.com wrote: Hi All, in one of my application i have been downloading lots of data from server and then saving in to db4o. in my case i am saving 200 objects of Recipe class in loops, and on every 200 store, i am using commit(). in Recipe Class i have define id as unique as follows configuration.common().add(new UniqueFieldValueConstraint(Recipe.class, id)); when i have been commiting after 200 stor,e it has been throwing exception,code at comit is as follows public void commitdb() { try { oc.commit(); // oc is object of objectContainer } catch(UniqueFieldValueConstraintViolationException exp) { oc.rollback(); } } Still i am getting exception as follows, (i am using db4o on Android) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): com.db4o.events.EventException 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.internal.events.EventRegistryImpl.withExceptionHandlingInCallback(EventRegistryImpl.java: 283) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.internal.events.EventRegistryImpl.commitOnStarted(EventRegistryImpl.java: 121) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.internal.LocalTransaction.dispatchCommittingCallback(LocalTransaction.java: 90) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.internal.LocalTransaction.commit(LocalTransaction.java:65) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.internal.LocalTransaction.commit(LocalTransaction.java:59) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.internal.LocalObjectContainer.commit1(LocalObjectContainer.java: 104) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.internal.IoAdaptedObjectContainer.commit1(IoAdaptedObjectContainer.java: 171) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.internal.ObjectContainerBase$3.apply(ObjectContainerBase.java: 403) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.internal.ObjectContainerBase$3.apply(ObjectContainerBase.java: 401) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.internal.ObjectContainerBase.asTopLevelCall(ObjectContainerBase.java: 427) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.internal.ObjectContainerBase.commit(ObjectContainerBase.java: 401) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.internal.ExternalObjectContainer.commit(ExternalObjectContainer.java: 39) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.altaworks.kokaihop.db4o.RecipeProvider.commitdb(RecipeProvider.java: 42) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.altaworks.kokaihop.ui.TakeoffActivity$4.run(TakeoffActivity.java: 707) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at java.lang.Thread.run(Thread.java:1096) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): Caused by: java.lang.NullPointerException 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.constraints.UniqueFieldValueConstraint $1.ensureSingleOccurence(UniqueFieldValueConstraint.java:59) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.constraints.UniqueFieldValueConstraint $1.onEvent(UniqueFieldValueConstraint.java:96) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.internal.events.Event4Impl.trigger(Event4Impl.java:78) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.internal.events.EventRegistryImpl $4.run(EventRegistryImpl.java:123) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): at com.db4o.foundation.DynamicVariable.with(DynamicVariable.java:54) 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):
[android-developers] android draw circle
how to draw circle based on percentages. Here i am taking 4 different values all are 100% . a is 20% b is 30% like 4 things should occupy the circle. with different colors. pls send how to draw the circle -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Please Help Me
On Tue, Jul 12, 2011 at 7:10 AM, vijayakumar M iamvijayaku...@gmail.comwrote: i am trying to develop calendar based apps .. i want highlight particular different different date.. how can i achieve this one?.. pleasee help me... http://www.catb.org/~esr/faqs/smart-questions.html And please give you posts a relevant title. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is there a way to read the 'Discoverable' timer countdown
Hi I want to be able to display the seconds left before 'Discoverable Mode' ends. Is there a way to get the counter used by disoverable mode or do you have to perform the count manually? Steve -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] android receiver permission
On Mon, Jul 11, 2011 at 11:42 PM, yanamala siddaiah siddaiahforj...@gmail.com wrote: android on istall permission is required for receiver . I want to display the notification when i install the app in our device. for that receiver which permissions and intent filters are required . What receiver are you talking about? Your question does not make a ton of sense. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with RemoteService (binder) and Notifications (SoundVibration)
Hello, I have a simple background service that provides a remote interface (AIDL) to other applications. This remote interfaces has a method to show a notification. When I call from another application this method, the notification appears, but with no sound or vibration. But if a test the method locally (in onCreate), the sound and vibration works. Anyone know why this is happening? Thanks Ricardo Silva -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 help dialog
how to show help dialog . there is a icon when ever we focus on that icon it wants to show transparent dialog and when we loose focus dismiss dialog. thanks siddaiah -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Merge Path instances (graphics)?
Looks like your code only need 1 path anyway. Here's what I'm trying to accomplish: I've created a SVG-File with some text converted to paths which I parse in Android. I animate the drawing of the paths so to get the impression of handwriting. In order to do that, I use the (growing) first and the last part of the respective path using pathMeasure.getSegment(); This works well except that each segment is closed, meaning an unwanted additional lineTo is added to the end of the segment. My guess: A path added to another path with path.addPath(otherPath) will always be closed automatically, meaning, addPath adds a lineTo() to the end of the segment. This is bad, if you try to assemble a path from pieces of other parts. Is there a way to avoid this behaviour? Thanks, R. Am 12.07.2011 09:26, schrieb gjs: Hi, Looks like your code only need 1 path anyway. 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] android monkey runner
pls tell me step by step , how to use this. how to write scripts for monkey runner .. thanks siddaiah -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Starting other apps - finding the activity name
Thanks much, I'll look at this when I'm back in town this weekend. My app is a turnkey app in kiosk mode, so the user doesn't have access to anything but my app. But they threw me a curve the other day and said that they'd want a page with buttons for several games that they could launch from within my app. In addition, I'll need them to pull up the wireless settings page from within the app. Thanks again, Jon On Jul 11, 10:36 am, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jul 9, 2011 at 1:11 PM, JonnyG jongre...@gmail.com wrote: I see a lot of posts about starting other apps, and I've got code to do that for my apps. How do I find out the activity name of another app? Ideally, you don't. For example, I've got a request to add buttons to my app to start angry birds, or some other app. You can get a list of launchable activities via PackageManager and queryIntentActivities(), supplying an Intent that specifies ACTION_MAIN and CATEGORY_LAUNCHER. Here is a sample project demonstrating this: https://github.com/commonsguy/cw-advandroid/tree/master/Introspection... You can use this to display a list of activities for the user to choose from, which you can then launch, or save to associate with some button. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.5 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Starting other apps - finding the activity name
On Tue, Jul 12, 2011 at 9:25 AM, JonnyG jongre...@gmail.com wrote: Thanks much, I'll look at this when I'm back in town this weekend. My app is a turnkey app in kiosk mode, so the user doesn't have access to anything but my app. But they threw me a curve the other day and said that they'd want a page with buttons for several games that they could launch from within my app. In addition, I'll need them to pull up the wireless settings page from within the app. The latter should have a custom action in android.provider.Settings. If your app is being installed as part of custom firmware, so you know precisely what apps (and what versions of those apps) will be on the device, then hard-coding packages and classes for your buttons is less risky than usual. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Debbugging USB peripheral with Emulator
Does anyone know if there is a way to debug a usb peripheral with the Android emulator. I am currently testing the microchip android development kit and trying to find a way of setting up a development environment without having to install each iteration of code on a physical device. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Simple Automated Testing with Monkeyrunner and Ant?
Hi all, I'd like to write a monkeyrunner script to poke through some of my activities in an emulator started during a Jenkins run as a way to do simple automated testing, but I can't see a built-in way to execute monkeyrunner tests with Ant. Am I missing something? I would prefer to not wander down the path of setting up a complete test project with Robotium yet as we don't really have the schedule for it yet. Thanks, Ian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Dynamic Arrays?
Hi All, I have to parse the xml pasted below and store all the images under preview_images tag under magazine tag in one Array. If there was only one magazine tag, It would be a simple job, to create an array and store all the images in it. But there can be 1 or more than 1 magazines. I have to create separate arrays for each magazine's images. So, I don't know how to create arrays at run time depending on the number of magazines. Please help. Regards, Shruthi. ?xml version=1.0 encoding=UTF-8? new_arrivals http://magazine.ateemo.com/magazines/new_arrivals#magazine http://magazine.ateemo.com/magazines/new_arrivals#mid3/mida xmlns= http://www.w3.org/1999/xhtml; style=color: blue; margin-left: -2em;span style=color: rgb(153, 0, 0);title/span/aCarpenter Test Magspan xmlns=http://www.w3.org/1999/xhtml; style=color: blue;/span style=color: rgb(153, 0, 0);title/span/spandescriptionCarpenter Test Mag/descriptionno_of_pages5/no_of_pagesauthorTest/author publisher_nameN/A/publisher_namepublished_date2011-06-29 00:00:00 UTC/ published_datepayed_yntrue/payed_ynno_of_images5/no_of_images preview_images http://magazine.ateemo.com/magazines/new_arrivals#imagehttp://magazine.ateemo.com/magazines/new_arrivals# iid118/iidimage_url http://magazine.ateemo.com/uploads/issue_images/11/10.png?1309344384/ image_url/imageimagehttp://magazine.ateemo.com/magazines/new_arrivals# iid118/iidimage_url http://magazine.ateemo.com/uploads/issue_images/12/11.png?1309344422/ image_url/imageimagehttp://magazine.ateemo.com/magazines/new_arrivals# iid118/iidimage_url http://magazine.ateemo.com/uploads/issue_images/13/12.png?1309344507/ image_url/imageimagehttp://magazine.ateemo.com/magazines/new_arrivals# iid118/iidimage_url http://magazine.ateemo.com/uploads/issue_images/14/13.png?1309344544/ image_url/imageimagehttp://magazine.ateemo.com/magazines/new_arrivals# iid118/iidimage_url http://magazine.ateemo.com/uploads/issue_images/15/14.png?1309344728/ image_url/image/preview_images/magazinemagazinehttp://magazine.ateemo.com/magazines/new_arrivals# mid2/mida xmlns=http://www.w3.org/1999/xhtml; style=color: blue; margin-left: -2em;span style=color: rgb(153, 0, 0);title/span/aBlue Print Test Magspan xmlns= http://www.w3.org/1999/xhtml; style=color: blue;/span style=color: rgb(153, 0, 0);title/span/spandescriptionBlue Print Test Mag/ descriptionno_of_pages5/no_of_pagesauthorTest/authorpublisher_name N/A/publisher_namepublished_date2011-06-29 00:00:00 UTC/published_date payed_yntrue/payed_ynno_of_images5/no_of_imagespreview_imageshttp://magazine.ateemo.com/magazines/new_arrivals# image http://magazine.ateemo.com/magazines/new_arrivals#iid118/iid image_url http://magazine.ateemo.com/uploads/issue_images/6/10.png?1309344030/ image_url/imageimagehttp://magazine.ateemo.com/magazines/new_arrivals# iid118/iidimage_url http://magazine.ateemo.com/uploads/issue_images/7/11.png?1309344062/ image_url/imageimagehttp://magazine.ateemo.com/magazines/new_arrivals# iid118/iidimage_url http://magazine.ateemo.com/uploads/issue_images/9/13.png?1309344157/ image_url/imageimagehttp://magazine.ateemo.com/magazines/new_arrivals# iid118/iidimage_url http://magazine.ateemo.com/uploads/issue_images/10/14.png?1309344193/ image_url/image/preview_images/magazine/new_arrivals -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 can I change my google account email address?
Ridiculous. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Intent.ACTION_USER_PRESENT is not triggered before screen lock
ACTION_SCREEN_ON seems good for this, what's your problem with it? On Jul 7, 11:27 pm, Federico Pelloni federico.pell...@gmail.com wrote: I have a service running in background that checks the orientation sensor, I'd like it to stop checking when screen is locked as my service does nothing useful then. I've done this with a BroadcastReceiver which listens for ACTION_SCREEN_OFF and ACTION_USER_PRESENT. While the first works well, I noticed that ACTION_USER_PRESENT is not triggered if the user presses a physical button during the short time after the screens switches off but before it gets locked. Is this a bug or is it intended to work this way? In any case, I thought I could workaround this listening also for ACTION_SCREEN_ON and then checking whether the screen is locked or not, but I couldn't find a way to get this information. What can I do? Thank you very much, Federico -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to create Dynamic Arrays?
new ArrayList(). If you mean array resources, you cannot create array resources at runtime. You will need to come up with another approach. On Tue, Jul 12, 2011 at 10:25 AM, Shruthi Varma shruthi.tlis...@gmail.comwrote: Hi All, I have to parse the xml pasted below and store all the images under preview_images tag under magazine tag in one Array. If there was only one magazine tag, It would be a simple job, to create an array and store all the images in it. But there can be 1 or more than 1 magazines. I have to create separate arrays for each magazine's images. So, I don't know how to create arrays at run time depending on the number of magazines. Please help. Regards, Shruthi. ?xml version=1.0 encoding=UTF-8? new_arrivals http://magazine.ateemo.com/magazines/new_arrivals# magazine http://magazine.ateemo.com/magazines/new_arrivals#mid3/mid descriptionCarpenter Test Mag/descriptionno_of_pages5/no_of_pages authorTest/authorpublisher_nameN/A/publisher_namepublished_date2011-06-29 00:00:00 UTC/published_datepayed_yntrue/payed_ynno_of_images5/ no_of_imagespreview_imageshttp://magazine.ateemo.com/magazines/new_arrivals# image http://magazine.ateemo.com/magazines/new_arrivals#iid118/iid image_url http://magazine.ateemo.com/uploads/issue_images/11/10.png?1309344384/ image_url/imageimagehttp://magazine.ateemo.com/magazines/new_arrivals# iid118/iidimage_url http://magazine.ateemo.com/uploads/issue_images/12/11.png?1309344422/ image_url/imageimagehttp://magazine.ateemo.com/magazines/new_arrivals# iid118/iidimage_url http://magazine.ateemo.com/uploads/issue_images/13/12.png?1309344507/ image_url/imageimagehttp://magazine.ateemo.com/magazines/new_arrivals# iid118/iidimage_url http://magazine.ateemo.com/uploads/issue_images/14/13.png?1309344544/ image_url/imageimagehttp://magazine.ateemo.com/magazines/new_arrivals# iid118/iidimage_url http://magazine.ateemo.com/uploads/issue_images/15/14.png?1309344728/ image_url/image/preview_images/magazinemagazinehttp://magazine.ateemo.com/magazines/new_arrivals# mid2/mid descriptionBlue Print Test Mag/descriptionno_of_pages5 /no_of_pagesauthorTest/authorpublisher_nameN/A/publisher_name published_date2011-06-29 00:00:00 UTC/published_datepayed_yntrue/ payed_ynno_of_images5/no_of_imagespreview_imageshttp://magazine.ateemo.com/magazines/new_arrivals# image http://magazine.ateemo.com/magazines/new_arrivals#iid118/iid image_url http://magazine.ateemo.com/uploads/issue_images/6/10.png?1309344030/ image_url/imageimagehttp://magazine.ateemo.com/magazines/new_arrivals# iid118/iidimage_url http://magazine.ateemo.com/uploads/issue_images/7/11.png?1309344062/ image_url/imageimagehttp://magazine.ateemo.com/magazines/new_arrivals# iid118/iidimage_url http://magazine.ateemo.com/uploads/issue_images/9/13.png?1309344157/ image_url/imageimagehttp://magazine.ateemo.com/magazines/new_arrivals# iid118/iidimage_url http://magazine.ateemo.com/uploads/issue_images/10/14.png?1309344193/ image_url/image/preview_images/magazine/new_arrivals -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can I change my google account email address?
On the G1 at least (not sure about other phones) you can change the gmail account without doing a factory reset by clearing all data from all Google apps installed on the device... I have had to do that on multiple occasions. That is on Android 1.6, but it might be worth a try on other versions of Android as well... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jul 12, 2011 at 8:25 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: Ridiculous. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] android help dialog
http://tinyurl.com/6gkrla5 Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jul 12, 2011 at 7:09 AM, yanamala siddaiah siddaiahforj...@gmail.com wrote: how to show help dialog . there is a icon when ever we focus on that icon it wants to show transparent dialog and when we loose focus dismiss dialog. thanks siddaiah -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] android help dialog
Please, write your question in understandable English. Best regards, Filip Havlicek 2011/7/12 yanamala siddaiah siddaiahforj...@gmail.com how to show help dialog . there is a icon when ever we focus on that icon it wants to show transparent dialog and when we loose focus dismiss dialog. thanks siddaiah -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] imageview
* if u have any code also send me.* Sorry, we aren't going to write your app for you * plz if any one kow on this give me guidance* Guidance: Start working on your app (that will require you actually do something!) and then when you have a specific problem ask for help with the specific problem you are having. Post some code that is relevant to your problem. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jul 12, 2011 at 5:47 AM, arun kumar arun.kata...@gmail.com wrote: Hi am having a task..in which i have to place the 4 images in rectangle shape(each image i have to place at the corner) 1)when i click on the particular images a new image should appear inside the rectangle shape (particular to that image)((if i click on first image then related to that image has to apper..if i click on second image related to particular image should apper and so on.)) i done in the form of rectangle shape but how to get an image inside the rectangular box when i click the particular image plz if any one kow on this give me guidance ..if u have any code also send me... Thankyou arun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] read image as text
how to read image as text What? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jul 12, 2011 at 3:48 AM, Lwe luaisul...@gmail.com wrote: how to read image as 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Draw image at desired angle
Exactly what was needed (didn't know of the rotate()). Thanks! On Jul 12, 8:26 am, Adam Ratana adam.rat...@gmail.com wrote: You can try: canvas.save(); canvas.rotate(angle, x, y); // x,y is the point around which to rotate // draw your image here... canvas.restore(); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Listview listener
* I have implemented OnClick method but its nt working.not getting data which was clicked* Now working how? What does your code look like? * Can anybody tell me what should I do?* Clarify and refine your question to a single problem. Post some code in the problem area. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Jul 11, 2011 at 9:53 PM, saurabh kulkarni funwit.saur...@gmail.comwrote: I have implemented OnClick method but its nt working.not getting data which was clicked -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] correct use of Loaders with ExpandableListView (honeycomb)
Hello. For honeycomb I'm refectoring my app to use the new Loader classes introduced here: http://developer.android.com/guide/topics/fundamentals/loaders.html This example uses a simple ListView with *SimpleCursorAdapter*. But my app uses a *ExpandableListView* with *SimpleCursorTreeAdapter*. Now the problem is, that I need to call the *swapCursor* method on the adapter but the *SimpleCursorTreeAdapter* does not implement this method. So the example does not work for *ExpandableListView*: public void onLoadFinished(LoaderCursor loader, Cursor data) { // Swap the new cursor in. (The framework will take care of closing the // old cursor once we return.) mAdapter.swapCursor(data); } There is only the method *changeCursor* but this closes the cursor but is wrong! Can anybody help me? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Debbugging USB peripheral with Emulator
Hi, On Tuesday, July 12, 2011 4:05:43 PM UTC+2, avrono wrote: Does anyone know if there is a way to debug a usb peripheral with the Android emulator. I am currently testing the microchip android development kit and trying to find a way of setting up a development environment without having to install each iteration of code on a physical device. Why do you feel developing on the real hardware is any slower? I think it will be hard to attach the ADK to an emulator. -In the ADK it is the device you attach that fulfils the usb-host role so your PC would need to act like a usb device and this is usually not possible -The emulator is based on qemu and qemu itself and has support for usb host see:emulator -qemu -h but the shipped kernel is not compiled with usb support. If the device also does serial or hid is might be easy but I think you need to at least recompile the emulator kernel I did not check on recent releases (e.g. after the ADK release) What do you want to debug by the way? Greetings -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Zoom on VideoView
Currently I'm using a VideoView to play a movie I would like to have the ability to pause the video then zoom in to a portion and be able to watch that portion zoomed in (or out) I have created my on videoVideo class which extends VideoView and implements OnTouchListener Currently I'm using an onTouch EventAction.ACTION_MOVE float newD = distance(event); scale = newD / oldDist; -- oldDist is set on ACTION_POINTER_DOWN super.setScaleX(scale); super.setScaleY(scale); super.invalidate(); Currently this will shrink the screen size to a smaller size, or back to normal full screen. But this is not zooming the image size making it bigger or smaller. Any ideas how I can enlarge the videoView to zoom in or scale down the whole video view to zoom out ? 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: MMS on Network
I have seen many posts.. nothing working/helpful On Tue, Jul 12, 2011 at 2:50 PM, A N K ! T ankit.awasth...@gmail.comwrote: Hi All, I have an issue. I want to send MMS. if i use Intent then it is starting application which can send MMS. I need to sent it by default. I have gone through the code of MMS native app there is a Class called MMSMessageSender which is responsible for sending mms(I think). but dont know how to use that class or which code should i use to do the task. -- Thanks Regards, Ankit Awasthi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cursor oddity, only observed on 1.6 emulator
This is beacuse you probably forgot to close some Cursor object in your project. After you use a cursor, just write: cursor.close(); Uri uri = ContactsContract.Contacts.CONTENT_URI; String[] projection = new String[] {ContactsContract.Contacts._ID,ContactsContract.Contacts.DISPLAY_NAME,ContactsContract.Contacts.HAS_PHONE_NUMBER}; String selection = ContactsContract.Contacts._ID+ = ?; String[] selectionArgs = {Integer.toString(contactId)}; String sortOrder = ContactsContract.Contacts.DISPLAY_NAME + COLLATE LOCALIZED ASC; Cursor cursor = act.managedQuery(uri, projection, selection, selectionArgs, sortOrder); while (cursor.moveToNext()) { String name = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME)); String hasPhone = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER)); if (Integer.parseInt(hasPhone)!=0) { //do something.. } } *cursor.close();* cursor = null; 2011/7/8 slipp3ry slipp3ry_whip...@yahoo.co.uk Please could anyone help before I grind what's left of my teeth away and pull what's left of my hair out. 07-08 14:54:58.623: INFO/dalvikvm(404): Uncaught exception thrown by finalizer (will be discarded): 07-08 14:54:58.623: INFO/dalvikvm(404): Ljava/lang/ IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor@4379a7d8 on activities that has not been deactivated or closed 07-08 14:54:58.623: INFO/dalvikvm(404): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596) 07-08 14:54:58.623: INFO/dalvikvm(404): at dalvik.system.NativeStart.run(Native Method) I ran into problems with my cursor handling on Honeycomb (fixed with stopManagingCursor always called at first point possible after startManagingCursor). I don't get any warnings or exceptions on Wildfire or any other emulators, just the 1.6 emulator. At some random point (even after closing the app) it chucks this up which makes it very difficult to pinpoint where the problem 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is there a way to access a service(constucted in the AIDL technique) through native code?
Hi On Monday, July 11, 2011 8:53:05 AM UTC+2, fei wang wrote: Is there a way to access a service(constucted in the AIDL technique) through native code?Now I think it is impossible,but still expecting an exception! Are you talking about a normal service or a system service? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: WebView - How can I block/deactivate all the links in a WebView after the content is loaded?
For overriding the url loading methods, see: http://developer.android.com/reference/android/webkit/WebViewClient.html#shouldOverrideUrlLoading(android.webkit.WebView, java.lang.String) For the javascript, it would be something like getElementsByTagName('a'). Then iterate over the object array and set an empty href, or override the onclick method. It's up to you. On Tue, Jul 12, 2011 at 4:03 AM, Nicolas Copernico nicolascopern...@gmail.com wrote: It sounds good, could you just point me out the classes or methods involved on this? -I'm already using a webview client in order to load all the next pages under the application. - As a side note, what would be that piece of javascript ? I do have access to server side, maybe it would be easier to block those links from the website. Gracias Miguel Dave -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: HttpClient only working on WiFi?
You're welcome! :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Listview listener
db = (new HomeActivitySqlOpenHelper(this)).getWritableDatabase(); HomeActivity = (ListView) findViewById(R.id.list); cursor= db.rawQuery(SELECT _id, name, date FROM table1, null); adapter = new SimpleCursorAdapter(HomeActivity.this,R.layout.list_item,cursor,new String[] {name, date},new int[] {R.id.name, R.id.date}); HomeActivity.setAdapter(adapter); HomeActivity.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? a, View v,int position, long id) { Intent intent = new Intent(HomeActivity.this, PersonDetails.class); Cursor cursor = (Cursor) adapter.getItem(position); intent.putExtra(table1_ID, cursor.getInt(cursor.getColumnIndex(_id))); startActivity(intent); } }); here new activity is not getting id XML file list_item: RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=horizontal android:layout_width=fill_parent android:layout_height=fill_parent android:padding=8px TextView android:id=@+id/name android:layout_width=wrap_content android:layout_height=wrap_content/ TextView android:id=@+id/date android:layout_marginLeft=6px android:layout_width=wrap_content android:layout_height=wrap_content android:layout_toRightOf=@id/name android:layout_below=@id/name/ /RelativeLayout -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Listview listener
Thanks for clarifying and refining your question down to a single problem... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jul 12, 2011 at 10:44 AM, saurabh kulkarni funwit.saur...@gmail.com wrote: db = (new HomeActivitySqlOpenHelper(this)).getWritableDatabase(); HomeActivity = (ListView) findViewById(R.id.list); cursor= db.rawQuery(SELECT _id, name, date FROM table1, null); adapter = new SimpleCursorAdapter(HomeActivity.this,R.layout.list_item,cursor,new String[] {name, date},new int[] {R.id.name, R.id.date}); HomeActivity.setAdapter(adapter); HomeActivity.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? a, View v,int position, long id) { Intent intent = new Intent(HomeActivity.this, PersonDetails.class); Cursor cursor = (Cursor) adapter.getItem(position); intent.putExtra(table1_ID, cursor.getInt(cursor.getColumnIndex(_id))); startActivity(intent); } }); here new activity is not getting id XML file list_item: RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=horizontal android:layout_width=fill_parent android:layout_height=fill_parent android:padding=8px TextView android:id=@+id/name android:layout_width=wrap_content android:layout_height=wrap_content/ TextView android:id=@+id/date android:layout_marginLeft=6px android:layout_width=wrap_content android:layout_height=wrap_content android:layout_toRightOf=@id/name android:layout_below=@id/name/ /RelativeLayout -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] prob while using the android application horizontally
http://developer.android.com/resources/articles/on-screen-inputs.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Jul 11, 2011 at 2:40 AM, muthumani ct.muthum...@gmail.com wrote: Hi i am developing a project for android galaxy tab i have 3 textviews in the activity when i click on the first textview the keypad slides into the screen and block my view of the entire screen. I find it odd, it ll be tough for the user if he doesn't see the screen for every entry he is forced to use back button to exit out of the keypad screen. But this prob doesn't come up when i use the tablet vertically. Only the lower end of the screen is hiden while using vertically. Can anyone suggest me a way to solve this problem. thank you 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 calendar api
Sziasztok, van valakinek tapasztalata a google calendar api használatára androidon? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: google calendar api
sorry, I want to send it somewhere else... 2011/7/12 leslie.karpati leslie.karp...@gmail.com Sziasztok, van valakinek tapasztalata a google calendar api használatára androidon? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] textview auto scroll
http://tinyurl.com/68hsx68 * * Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Jul 10, 2011 at 9:52 PM, bob b...@coolgroups.com wrote: How do you make a TextView always auto-scroll to the bottom? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: NFC card emulation, NXP PN544 and S2C (NFC-WI)
Hallo, I was thinking S2C is an NXP implementation (e.g. the commercial name) of the NFC-WI. Both,S2C and NFC-WI, looks pretty similar. So in fact, even they using similar approach, we are talking about two different technologies? No, same technology. S2C was there *before* NFC-WI was standardized. So NFC-WI is inspired by S2C. I didn't find any difference between the two so far. So having the NFC controller, e.g. Samsung S3FHRN2 (http://www.samsung.com/global/business/semiconductor/support/ brochures/downloads/systemlsi/S3FHRN2.pdf), which declared the NFC-WI support we are talking about 2 different, probably not compatible solutions? So theoretical SD card supporting S2C might not be compatible with ECMA NFC-WI standard and vice verse? See above. Should be compatible. When talking about PN532 and its card emulation capabilities, are you sure the controller emulates the smart card even without having attached the SmartMX secure element? I'm very sure that this NFC controller has card emulation capabilities even without a dedicate SE chip. Emulation of the low-level protocol (up to ISO 14443-4) is handled by the PN532 and the high-level APDU protocol (ISO 7816-4) is handled by the application processor. NXP delivers to Samsung, SonyEricssion, Nokia, etc. the S2C might be pretty widespread, right? At least everything that uses a SmartMX as secure element uses the S2C/NFC-WI. But since S2C is NXP proprietary do you know if other NFC IC manufacturers are going to support NFC-WI? No, I don't. It can, for example, act as a router and its powerful command set allows all elements of the chosen architecture to interact in a controlled manner (SIM, SE, SD card, Application Processor and NFC interfaces).This allows for implementation of various business models by mobile operators and third parties.. Do you know anything about that? No. br, Michael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] IDs used in layout in library project not showing up in R of main project
Hi, I'm having a problem where IDs that I assign to Buttons in a layout file in a library project weren't showing up in the R files of my main project. This was leading to compiler errors. Oddly enough, when I renamed the layout file, the IDs magically appeared. I had cleaned/rebuilt the project several times, and even deleted, and re-synced from our source depot, and nothing worked until I renamed the layout file. I tried building from eclipse, and using Ant to compile from the command line. Both approaches failed until I renamed the layout file. When I rename the layout file back to the original name, the IDs disappear again. Is there some sort of resource cache somewhere that's not getting updated? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] IDs used in layout in library project not showing up in R of main project
Do you have a layout file in your main project with the same name as of the library's? *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Jul 12, 2011 at 11:14 PM, jsera gall.blad...@gmail.com wrote: Hi, I'm having a problem where IDs that I assign to Buttons in a layout file in a library project weren't showing up in the R files of my main project. This was leading to compiler errors. Oddly enough, when I renamed the layout file, the IDs magically appeared. I had cleaned/rebuilt the project several times, and even deleted, and re-synced from our source depot, and nothing worked until I renamed the layout file. I tried building from eclipse, and using Ant to compile from the command line. Both approaches failed until I renamed the layout file. When I rename the layout file back to the original name, the IDs disappear again. Is there some sort of resource cache somewhere that's not getting updated? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: IDs used in layout in library project not showing up in R of main project
DERP. I'm editing a project started by someone else, and they used a stupid name for something. Time to find them and strangle them. On Jul 12, 10:49 am, Kumar Bibek coomar@gmail.com wrote: Do you have a layout file in your main project with the same name as of the library's? *Thanks and Regards, Kumar Bibek* *http://techdroid.kbeanie.comhttp://www.kbeanie.com* On Tue, Jul 12, 2011 at 11:14 PM, jsera gall.blad...@gmail.com wrote: Hi, I'm having a problem where IDs that I assign to Buttons in a layout file in a library project weren't showing up in the R files of my main project. This was leading to compiler errors. Oddly enough, when I renamed the layout file, the IDs magically appeared. I had cleaned/rebuilt the project several times, and even deleted, and re-synced from our source depot, and nothing worked until I renamed the layout file. I tried building from eclipse, and using Ant to compile from the command line. Both approaches failed until I renamed the layout file. When I rename the layout file back to the original name, the IDs disappear again. Is there some sort of resource cache somewhere that's not getting updated? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Minimize activity on back key press
Android doesn't really have the notion of a Minimized application, anyway... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Jul 8, 2011 at 4:10 AM, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jul 7, 2011 at 8:58 AM, sandeep kumar pksandeepku...@gmail.com wrote: On Back Key press i want to minimize the application, How can i do this??? public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { //Here i want to put minimize code.. pls give me this statement return true; } return super.onKeyDown(keyCode, event); } Please don't. Whatever problem you are trying to solve can be solved better some other way. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to differ reject call and miss call
* its urgent* I highly doubt that... Plus, we don't really care how urgent it is for you. We look at these forums on our own time... and we'll answer them if we feel the question was well thought out. And in this case, I would suggest looking over this link and trying again: http://www.catb.org/~esr/faqs/smart-questions.html * * Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Jul 8, 2011 at 2:01 AM, prabhat shishodia prabhatshisho...@gmail.com wrote: .its urgent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Live Streaming in Android
http://www.catb.org/~esr/faqs/smart-questions.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Jul 7, 2011 at 12:34 AM, deepak emailmedee...@gmail.com wrote: Hi, I am developing an application where i need to live stream from my Ip camera to the android phone. Any help on how i can accomplish this??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] FinishActivity problem
I have an application where user have few activities and transition is like this A - B - C - and on D there is menu option Cancel(On Activity D) and at that momemnt i want to go back to Activity A, but if user just click Back button he should go back to C From C I called D like this Class C extends ListActivity { public void onItemClick(AdapterView? parent, View view, int position, long id) { ... * startActivityForResult(intent,D_REQUEST); //D_REQUEST= 4 defined as int* } //I expect this function of class C will be called when i exit from Activity D @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { * if (resultCode == Activity.RESULT_CANCELED requestCode == D_REQUEST) { this.finishActivity(Activity.C_REQUEST);// C_REQUEST= 4 defined as int } super.onActivityResult(requestCode, resultCode, data);* } } From D I exit like this Class D extends ListActivity { @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle item selection Order order = Order.getInstance(); int itemId = item.getItemId(); switch (itemId) { case R.id.summary: . return true; case R.id.help: . return true; * case R.id.cancelFullOrder: . this.finishActivity(D_REQUEST); return true;* default: return super.onOptionsItemSelected(item); } } } *Problem :*Now my onActivityResult is never beign called when i execute code of case R.id.cancelFullOrder, and also Activity D doesnt get closed. Could you please suggest something. Thanks, Ravi. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] FinishActivity problem
On Tue, Jul 12, 2011 at 1:10 PM, Ravi Sharma ping2r...@gmail.com wrote: *Problem :*Now my onActivityResult is never beign called when i execute code of case R.id.cancelFullOrder, and also Activity D doesnt get closed. Could you please suggest something. Read the docs for finishActivity() and then this: http://developer.android.com/reference/android/app/Activity.html#setResult(int, android.content.Intent) - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sectioned Table View
Hi All Exist some way for implemente Sectioned Table View (Table section header) as iphone in android 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
[android-developers] Sent SMS doesn't show up in the messaging app?
When using the conventional means to programatically send an SMS TXT message, does anyone understand why there is no history of the outbound message in the MESSAGING App? thanks, tob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Sent SMS doesn't show up in the messaging app?
On Tue, Jul 12, 2011 at 3:12 PM, tony obrien tobsourcecode...@gmail.com wrote: When using the conventional means to programatically send an SMS TXT message, does anyone understand why there is no history of the outbound message in the MESSAGING App? First, there is no single MESSAGING App. Second, since the MESSAGING App did not send the SMS, it should not show up as an outbound message, any more than sending email through a Yahoo Mail account should show up as an outbound message in Gmail. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Sent SMS doesn't show up in the messaging app?
I agree. Thanks. *but* (you saw that coming right? ;) It seems that for such an overbearing application such as a MESSAGING app that (a) you can't delete and (b) you can even disable (you know the green square boxy looking thing?) it seems that it would have grabbed the outbound intent as well as any inbound. {And please excuse me if there is some mysterious way to delete the thing...} On Jul 12, 3:15 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jul 12, 2011 at 3:12 PM, tony obrien tobsourcecode...@gmail.com wrote: When using the conventional means to programatically send an SMS TXT message, does anyone understand why there is no history of the outbound message in the MESSAGING App? First, there is no single MESSAGING App. Second, since the MESSAGING App did not send the SMS, it should not show up as an outbound message, any more than sending email through a Yahoo Mail account should show up as an outbound message in Gmail. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Sent SMS doesn't show up in the messaging app?
On Tue, Jul 12, 2011 at 3:40 PM, tony obrien tobsourcecode...@gmail.com wrote: I agree. Thanks. *but* (you saw that coming right? ;) It seems that for such an overbearing application such as a MESSAGING app that (a) you can't delete and (b) you can even disable (you know the green square boxy looking thing?) it seems that it would have grabbed the outbound intent as well as any inbound. First, there is no outbound intent for sending an SMS, any more than there is an outbound intent for sending an email. Second, I repeat: there is no single MESSAGING App. You are probably thinking of the Messaging application from the Android Open Source Project. This is not part of the OS. It is an app. It is an app that can be replaced by device manufacturers and ROM modders. Not to mention the umpteen MESSAGING Apps on the Market. The outbox is a feature of an app, not the OS, just as the inbox is a feature of an app, not the OS. {And please excuse me if there is some mysterious way to delete the thing...} Well, short of installing a modded ROM, you probably can't. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] android facebook SDK disable password remember me popup functionality
wtf? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Jul 6, 2011 at 3:30 AM, naveen kumar kumarnaveen.si...@gmail.comwrote: android facebook SDK disable password remember me popup functionality -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] i donot want facebook remember password dialog android sdk-webview
* when i am login on facebook by using android facebook sdk then popup alert dialog appear for save password history for browser* I have no idea what you are asking but I would suggest you get help from a forum dedicated to the Facebook SDK... * i want diaper that one,* I highly doubt you want to diaper anything... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Jul 6, 2011 at 1:00 AM, naveen kumar kumarnaveen.si...@gmail.comwrote: Hello sir, when i am login on facebook by using android facebook sdk then popup alert dialog appear for save password history for browser, i want diaper that one, Thanks, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Relative layout java
The method addRule(int, int) in the type RelativeLayout.LayoutParams is not applicable for the arguments (int, boolean) so cant put true... On 12 jul, 05:37, Mike j.m.roya...@gmail.com wrote: imParams.addRule(CENTER_VERTICAL,true); imParams.addRule(ALIGN_PARENT_RIGHT, true); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: null pointer exception
* connectivity.getActiveNetworkInfo() returns null if there is no connection. Hence when you call .isConnected() on that, it throws null pointer exception.* No, that is not it... He checks to make sure that connectivity.getActiveNetworkInfo() is not null before he calls the other methods... What does logcat say exactly regarding the null pointer exception? Specifically look for a caused by line... Also, I would probably do something like this, but that is just coding preferences (though, it might help you get better info from logcat on the cause of the error): NetworkInfo netInfo = connectivity.getActiveNetworkInfo(); boolean valid = netInfo != null netInfo.isAvailable() netInfo.isConnected(); Have you made sure that your connectivity variable is not null? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jul 5, 2011 at 10:33 PM, Sourav Howlader sourav.howla...@gmail.comwrote: Hi vani, connectivity.getActiveNetworkInfo() returns null if there is no connection. Hence when you call .isConnected() on that, it throws null pointer exception. Regards, Sourav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Min SDK is 4 but it is OK with 3.1
My Min SDK is 4 in the manifest but it is OK with 3.1, should I build with the highest SDK? I mean what if a phone running SDK 2.2 but built with an app built with SDK 3.1? (I should know the answer, but I don't) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Min SDK is 4 but it is OK with 3.1
IMHO, it is Generally better to build with the highest SDK that you can. But you have to be careful not to use any methods in the newer SDK versions without first checking the current Android version otherwise you will get a force close... For my apps, I am currently building against the Android 2.3.4 SDK (I haven't gotten around to switching to build against the newest SDK yet), but my min SDK is set to Android 1.6 Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jul 12, 2011 at 3:18 PM, Droid rod...@gmail.com wrote: My Min SDK is 4 in the manifest but it is OK with 3.1, should I build with the highest SDK? I mean what if a phone running SDK 2.2 but built with an app built with SDK 3.1? (I should know the answer, but I don't) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] android widget
What does logcat say? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jul 5, 2011 at 4:11 AM, yanamala siddaiah siddaiahforj...@gmail.com wrote: onclick in emulator button is working. but in device it shows null pointer exception . ontuch event and it shows some line number textview 2332 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] outlined text
http://tinyurl.com/6chleq9 Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Jul 4, 2011 at 7:35 PM, bob b...@coolgroups.com wrote: Is there an easy way to create outlined text on Android? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to determine which tab is selected by the radiobutton
So what exactly is the problem? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Jul 4, 2011 at 12:02 PM, Muchamad Jeffri jevrieasa...@gmail.comwrote: hi i'm from Indonesia. sorry for my bad english language. i have problem like this. http://a7.sphotos.ak.fbcdn.net/hphotos-ak-ash4/261955_1871129290585_1011704401_31662629_977717_n.jpg from the picture above if we select the radiobutton Pria and click Save, then his name appears on the tab Pria. and we select the radiobutton Wanita and click Save, then his name appears on the tab Wanita. thanks before .. my code database2.java public class database2 extends TabActivity { Cursor model=null; AlmagAdapter adapter=null; EditText nama=null; EditText alamat=null; EditText hp=null; RadioGroup jekel=null; AlmagHelper helper=null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); helper=new AlmagHelper(this); nama=(EditText)findViewById(R.id.nama); alamat=(EditText)findViewById(R.id.alamat); hp=(EditText)findViewById(R.id.hp); jekel=(RadioGroup)findViewById(R.id.jekel); Button save=(Button)findViewById(R.id.save); save.setOnClickListener(onSave); ListView list=(ListView)findViewById(R.id.almag); model=helper.getAll(); startManagingCursor(model); adapter=new AlmagAdapter(model); list.setAdapter(adapter); TabHost.TabSpec spec=getTabHost().newTabSpec(tag1); spec.setContent(R.id.almag); spec.setIndicator(Pria, getResources().getDrawable(R.drawable.pria)); getTabHost().addTab(spec); spec=getTabHost().newTabSpec(tag2); spec.setContent(R.id.lwanita); spec.setIndicator(Wanita, getResources().getDrawable(R.drawable.perempuan)); getTabHost().addTab(spec); spec=getTabHost().newTabSpec(tag3); spec.setContent(R.id.details); spec.setIndicator(Details, getResources().getDrawable(R.drawable.alamat)); getTabHost().addTab(spec); getTabHost().setCurrentTab(0); list.setOnItemClickListener(onListClick); } @Override public void onDestroy() { super.onDestroy(); helper.close(); } private View.OnClickListener onSave=new View.OnClickListener() { public void onClick(View v) { String type=null; switch (jekel.getCheckedRadioButtonId()) { case R.id.pria: type=Pria; break; case R.id.perempuan: type=Perempuan; break; } helper.insert(nama.getText().toString(),alamat.getText().toString(),type,hp.getText().toString()); model.requery(); } }; private AdapterView.OnItemClickListener onListClick=new AdapterView.OnItemClickListener() { public void onItemClick(AdapterView? parent, View view, int position, long id) { model.moveToPosition(position); nama.setText(helper.getNama(model)); alamat.setText(helper.getAlamat(model)); hp.setText(helper.getHp(model)); if (helper.getJekel(model).equals(Pria)) { jekel.check(R.id.pria); } else if (helper.getJekel(model).equals(Perempuan)) { jekel.check(R.id.perempuan); } getTabHost().setCurrentTab(1); } }; class AlmagAdapter extends CursorAdapter { AlmagAdapter(Cursor c) { super(database2.this, c); } @Override public void bindView(View row, Context ctxt, Cursor c) { AlmagHolder holder=(AlmagHolder)row.getTag(); holder.populateFrom(c, helper); } @Override public View newView(Context ctxt, Cursor c, ViewGroup parent) { LayoutInflater inflater=getLayoutInflater(); View row=inflater.inflate(R.layout.row, parent, false); AlmagHolder holder=new AlmagHolder(row); row.setTag(holder); return(row); } } static class AlmagHolder { private TextView nama=null; private TextView alamat=null; private ImageView icon=null; private View row=null; AlmagHolder(View row) { this.row=row; nama=(TextView)row.findViewById(R.id.title); alamat=(TextView)row.findViewById(R.id.alamat); icon=(ImageView)row.findViewById(R.id.icon); } void populateFrom(Cursor c, AlmagHelper helper) {
[android-developers] Lights Out mode
I am trying (unsuccessfully thus far) to dim the system bar on Honeycomb devices. My current layout contains a single WebView. The following is called in my bundle's onCreate routine. setContentView(R.layout.main); mWebView = (WebView) findViewById(R.id.webview); if (android.os.Build.VERSION.SDK_INT = android.os.Build.VERSION_CODES.HONEYCOMB){ mWebView.setSystemUiVisibility(View.STATUS_BAR_HIDDEN); } The function is getting called, but the system bar is never dimmed. What am I missing here? 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
Re: [android-developers] Lights Out mode
Nothing leaps to mind as being a problem. This sample project successfully goes into lights-out mode via an options menu item: https://github.com/commonsguy/cw-advandroid/tree/master/Honeycomb/FeedFragments (see lightsOut() method in AbstractFeedsFragment) Make sure your targetSdkVersion is 11 (or higher). On Tue, Jul 12, 2011 at 5:54 PM, Mark mbus...@bitwisecontrols.com wrote: I am trying (unsuccessfully thus far) to dim the system bar on Honeycomb devices. My current layout contains a single WebView. The following is called in my bundle's onCreate routine. setContentView(R.layout.main); mWebView = (WebView) findViewById(R.id.webview); if (android.os.Build.VERSION.SDK_INT = android.os.Build.VERSION_CODES.HONEYCOMB){ mWebView.setSystemUiVisibility(View.STATUS_BAR_HIDDEN); } The function is getting called, but the system bar is never dimmed. What am I missing here? 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] edittext cursor
Um what? This example is at runtime... You edit text cursor can be anywhere from 0 to the length of the current text. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Jul 1, 2011 at 4:48 AM, vani reddy vani.reddy.bl...@gmail.comwrote: Hi, How to set edittext cursor to a particular position in android. I referred http://thedevelopersinfo.com/2009/11/15/put-cursor-at-specific-position-in-edittext-component-in-android/ but this is when d text is already defined. i want at runtime?? -- Regards, Vani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Fragment Inside Fragment
Hi everyone I need help regarding working on fragment inside fragment, actually i am facing a problem on pressing back button. Application Main screen has nuttons and pressing on each button view replace with new fragment(and that fragment contain inside another fragment) , dynamically adding/replacing fragment is working fine, by pressing button1 fragment replaced , same happens when pressing button, but if i press button agian , got exception Duplicate id 0x7f05000a, tag null, or parent id 0x7f050009 with another fragment for com fragmentname mean fragment or its inside fragments already added and i am trying to add them again, anybody has idea how to work with fragment inside fragment and moving back and forth without any problem, thanks for the support. code of the MainActiviy , where fragments are dynamical add and replaced. public class FragmentInsideFragmentTestActivity extends Activity { private Button button1; private Button button2; private Button button3; private Button button4; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); button1 =(Button) this.findViewById(R.id.button1); button1.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { onButtonClick(view); } }); button2 =(Button) this.findViewById(R.id.button2); button2.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { onButtonClick(view); } }); button3 =(Button) this.findViewById(R.id.button3); button3.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { onButtonClick(view); } }); button4 =(Button) this.findViewById(R.id.button4); button4.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { onButtonClick(view); } }); } public void onButtonClick(View v) { Fragment fg; switch (v.getId()) { case R.id.button1: fg=FirstFragment.newInstance(); replaceFragment(fg); break; case R.id.button2: fg=SecondFragment.newInstance(); replaceFragment(fg); break; case R.id.button3: fg=FirstFragment.newInstance(); replaceFragment(fg); break; case R.id.button4: fg=SecondFragment.newInstance(); replaceFragment(fg); break; } } private void replaceFragment(Fragment newFragment) { // TODO Auto-generated method stub // creating instance of the HelloWorldFragment. FragmentTransaction trasection = getFragmentManager().beginTransaction(); if(!newFragment.isAdded()){ try{ //FragmentTransaction trasection = getFragmentManager().beginTransaction(); trasection.replace(R.id.linearLayout2, newFragment); trasection.addToBackStack(null); trasection.commit(); }catch (Exception e) { // TODO: handle exception //AppConstants.printLog(e.getMessage()); } }else trasection.show(newFragment); } } Layout: main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout android:id=@+id/linearLayout1 android:layout_width=match_parent android:layout_height=wrap_content android:orientation=horizontal Button android:layout_width=wrap_content android:id=@+id/button1 android:layout_height=wrap_content android:text=Button1/Button Button android:text=Button2 android:id=@+id/button2 android:layout_width=wrap_content android:layout_height=wrap_content/Button Button android:text=Button3 android:id=@+id/button3 android:layout_width=wrap_content android:layout_height=wrap_content/Button Button android:text=Button4
[android-developers] Accessing local data in a bound service
I am binding to a service to access GPS data. However I can't access the data directly because it is local to the LocationListener class. I have attempted to create a shared preference and access it that way: SharedPreferences prefs = getSharedPreferences(USER_SHARED_PREFERENCES, MODE_WORLD_READABLE); Editor editor = prefs.edit(); long latitude = Math.round(loc.getLatitude()); long longitude = Math.round(loc.getLongitude()); editor.putLong(USER_LATITUDE, latitude).commit(); editor.putLong(USER_LONGITUDE, longitude).commit(); but the activity seems not to be able to access it and the documentation seems to indicate that shared preferences can only be used with activities. Is there a way for me to access this data once the service is bound? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Need help with custom view object
Take a look at this: http://developer.android.com/resources/tutorials/views/hello-gallery.html This uses ImageViews, but you should be able to replace those with your custom view... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Jun 29, 2011 at 6:07 PM, raazgul nixa...@gmail.com wrote: I am trying to create a custom view object that I can display on the screen. I have been able to display the object but and I now trying to add this view to a gallery type thing so that I can horizontally scroll through a few of them. I am wondering if I can just add them directly to the gallery somehow or do I have to construct a new class that would extend a gallery view. I am unsure on how to do either one of these and would like any assistance you are willing to give. The custom view that I created is below. I have not done much on the visual aspect of this project because I am unsure about custom views. class Domino extends View { public Domino(Context context) { super(context); } @Override public void onDraw(Canvas canvas) { Bitmap _dom = BitmapFactory.decodeResource(getResources(), R.drawable.domino_image); canvas.drawColor(Color.BLACK); canvas.drawBitmap(_dom, 20, 20, null); } } I know by using the drawBitmap() method I am just drawing all images on top of each other. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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