[android-developers] Unlocked Android Phones
Hi All I am looking for an unlocked Android phone in India on which I can install custom Android builds. My questions is: Are android phones sell by manufacturers like Samsung galaxy and HTC unlocked or not. Thanks Dalvin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Unlocked Android Phones
Depends on the phone. For example, if you go to the Motorola website, they will suggest you go with your carrier. However, you can also buy the phone itself (at a higher price?). (Or at least, that's what I got out of going to there earlier this morning.) If you're looking for a developer phone, however, buying a ``brand new'' phone might be really expensive. Personally I got a g1 and put 2.2 on it. Also look around for so called ``pay as you go'' android phones. Although at the end of the day getting a nice phone with 2.3 on it might be hard to find cheap. (But still, be sure to check ebay / secondhand first!) Kris On Sun, Mar 20, 2011 at 2:20 AM, Dalvin singh.dal...@gmail.com wrote: Hi All I am looking for an unlocked Android phone in India on which I can install custom Android builds. My questions is: Are android phones sell by manufacturers like Samsung galaxy and HTC unlocked or not. Thanks Dalvin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Activity lifecycle... still a mystery to me
No because I don't believe onDestroy would necessarily get called backing out of the activity. Only onPause would be guaranteed to be called. That activity's onDestrw would only get called at some random point in the future when the OS wants more memory. OnPause is the primary. At least that is my understanding. I hope someone corrects me. On Mar 19, 3:37 pm, lbendlin l...@bendlin.us wrote: If one activity calls another, and when you then press Back from that activity, wouldn't the calling of onDestroy() assure you that the called activity is truly gone and the memory is freed? (Or conversely, if it isn't called, the activity may live on due to dangling references?) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bluetooth Chat Sample code combined with SMS receiving
What external piece of hardware? There is a Bluetooth Chat example in the API samples. You have to pair them first, right? I've heard of trouble with non phones (i.e., if you picked up a module on sparkfun), but this could be cool and I'd be interested to hear your mileage. The only thing I don't get is that you want to send a Bluetooth Message with ``the SMS'' This doesn't make sense, they are completely different types of communication? From what I got you want to send a message to a BT module (non phone) when the phone receives a text. So the application would be something like a cheap piece of hardware that does something with received texts when you were near it? We need more information. Kris On Fri, Mar 18, 2011 at 7:23 PM, Alexandru alexs...@gmail.com wrote: Hey guys, I'm working on integrating my Android phone with this external piece of hardware. I have all the direct communication between the two completed. However I would like to add functionality for the phone to send a Bluetooth Message with the SMS when an SMS is received. The way I'm implementing SMS receiving is by having a class (SmsReceiver) that extends BroadcastReceiver, and having the following in my Manifest: receiver android:name=.SmsReceiver intent-filter action android:name=android.provider.Telephony.SMS_RECEIVED / /intent-filter /receiver My question is how exactly would I make it so that when I receive a SMS (i'm guessing in the onReceive of my SmsReceiver) I would also send the message to the external piece of hardware through Bluetooth. Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Canvas frame rate very choppy in Live Wallpaper
I think you are possibly doing this the wrong way. There is a canvas.translate() method which moves the canvas itself. This just sets the hardware to look at a translated location, so should be instantaneous plus or minus 1 nanosecond. The downside is that you will need to draw the image to a larger sized bitmap than the screen, to cater for the movement you allow in your canvas.translate call, 19 pixels all around in your example. On Mar 20, 9:07 am, Jeffrey jeffisagen...@gmail.com wrote: I'm trying to make a simple (or so I thought) live wallpaper that takes an image and moves it slowly in a circular motion, to make the picture seem less static and more like looking out a window. I took the live wallpaper tutorial from the SDK and stripped it down to the bare bones so I could add to it. But the issue is that no matter what size the image I'm moving, or what format (drawable or bitmap), it is only getting about 3 fps. I don't know what to do to make this run faster, I have very limited programming knowledge so I don't know if I'm missing something stupid. Also, this is the code I'm using to calculate the circular movement: int NewX = (int) (OffsetX + Math.sin(Dist)*19); int NewY = (int) (OffsetY + Math.cos(Dist)*19); where Dist is the speed it's moving and 19 is the radius of the circle. Is there an easier way? I looked into Tween animation but I don't know how I would implement my circle code into it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL texture display properly on my phone. But 'white box' on some device?
Hi. Sorry for taking so long to get back to you. It works now. =) The problem here is the alpha. I tried setting the alpha to 1.0 instead of 0.0 and it works. //solution gl.glColor4f(0.0f, 0.0f, 0.0f, 1.0f); Also thank you for the tips about drawable-nodpi/debugging the actual bitmap after decoding. Although it's not the case here(I tried debugging as you advise), it's good to know. =) Thank you everyone. =) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: property settings in Java and native C code
Thanks Frank, I found when setting the property the system will check the calling ID and refused my access. That should be the reason, thanks again. Best Regards, Ray -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of FrankG Sent: 2011年3月18日 22:17 To: Android Developers Subject: [android-developers] Re: property settings in Java and native C code Hello Ray, this is the wrong group to ask this kind of question. ( better android-platform ) But nevertheless: It depends from the name scheme of the system property which rights you need. But I assume that this property can only be set by a system app and theirfore your app must be signed with the platform key. Good luck ! Frank On 18 Mrz., 03:40, Sun Ray-B1 b17...@freescale.com wrote: Hi All, I want to set the property in Java code and get the property in C code. Is this available? What I used is as below: 1. Set the property to 0x2 mPowerControl = getInt(POWER_CONFIG, 0x0);//get the configuration value of power System.setProperty(rw.power.config, String.valueOf(mPowerControl)); 2. Get the property, always to be 1, as I set in the init.rc property_get(rw.power.config, propBuf, 0);) 3. Get the property through adb shell, it's same with the value by property_get getprop rw.power.config Thanks, Ray -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Moto Xoom Android 3.0 - GPS NMEA sentences not being received + nested folders not appearing in Windows - ok in DDMS File Explorer
Anybody ? On Mar 18, 11:41 am, gjs garyjamessi...@gmail.com wrote: Hi there, I have a client who is reporting that app on Moto Xoom Android 3.0 - that GPS NMEA sentences are not being received, but Location Manager is getting GPS data ok. App in question is targeted at Android 2.1 and above and is working ok on Nexus S with Android 2.3.2. Also nested folders on sdcard on Xoom, with more than two levels eg: / dirA/dirB/dirC files folders are not appearing in Windows - but are ok in DDMS File Explorer. I saw another dev report that NMEA sentences not being received by Nexus ONE with Android 2.33, but this is ok on Nexus S with 2.3.2. Anybody else noticing same issues, please confirm ? Thanks Regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Keeping WebView history through orientation change?
On Mar 19, 10:21 pm, Mark Murphy mmur...@commonsware.com wrote: On Sat, Mar 19, 2011 at 5:00 PM, Joseph S joseph.santanie...@gmail.com wrote: I have an Activity that has a WebView and my own WebViewClient. To deal with orientation changes, I have configChanges in the manifest and onConfigurationChanged. During onCreate and onConfigurationChanged I set up the views by calling my own setupViews where I set the WebViewClient. For the onCreate I load a particular URL and the Activity does it's thing. When the user changes the orientation of the device later on after viewing a few pages, the onConfigurationChanged gets called, and I load the URL the user was looking at (I saved it in a variable from my WebViewClient's onPageStarted). This works, except the history is lost because it's a new WebView. What's a better way of doing this? I want my WebViewClient to behave like a normal browser when the user tilts the phone, just reloading the current page and preserving the history. If you are using onConfigurationChanged(), leave the existing WebView alone. Use Java code to adjust your layout parameters and such to reflect the new orientation rather than inflate a new layout. If you leave the WebView alone, it should retain its history. This particular problem is one of the few good reasons to use onConfigurationChanged(). However, pretty much all of those reasons mean you really shouldn't load in a fresh layout file. Loading a fresh layout file might be used in demonstrations in some books (ahem) but isn't really the right production strategy. :: quick makes a note to really cover this scenario better in next update to that book :: Thanks for the tip! Just doing nothing (other than kicking it back upstairs with super) in onConfigurationChanged seems to have solved my problem. The examples dealing with onConfigurationChanged that I'd seen had UI's that needed fiddling after orientation changes so that's why they broke lots of stuff out of onCreate. But in my case that was just extra. Joseph -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] VPN L2TP connected error
Hi All: I am trying to setup an IPsec/L2TP VPN on Ubuntu 10.04 using Openswan version 2.6.31-1xelerance1 and xL2TP v1.2.5. Using Galaxy Tab P1000(Android2.2) can connected it. But it automatically disconnected after 10s. How to resolve the problem? Attached are my android logs: D/mtpd(25189): Timeout - Sending SCCRQ D/mtpd(25189): Timeout - Sending SCCRQ D/mtpd(25189): Timeout - Sending SCCRQ D/mtpd(25189): Timeout - Sending SCCRQ V/AlarmManager( 2487): set: Alarm{47e53720 type 0 android} D/mtpd(25189): Timeout - Sending SCCRQ E/racoon (24969): phase2 negotiation failed due to time up waiting for phase1. ESP 50.18.46.247[0]-192.168.0.106[0] I/racoon (24969): delete phase 2 handler. I/racoon (24969): Bye D/mtpd(25189): Timeout - Sending SCCRQ D/mtpd(25189): Timeout - Sending SCCRQ D/mtpd(25189): Received SCCRP (remote_tunnel = 55808) - Sending SCCCN D/mtpd(25189): Received ACK - Sending ICRQ (local_session = 40460) I/mtpd(25189): Tunnel established D/mtpd(25189): Received ICRP (remote_session = 52400) - Sending ICCN D/mtpd(25189): Received ACK I/mtpd(25189): Session established I/mtpd(25189): Creating PPPoX socket I/mtpd(25189): Starting pppd (pppox = 11) I/mtpd(25189): Pppd started (pid = 25210) I/pppd(25210): Using PPPoX (socket = 11) D/pppd(25210): using channel 11 D/Tethering( 2487): ppp0 is not a tetherable iface, ignoring I/pppd(25210): Using interface ppp0 I/pppd(25210): Connect: ppp0 -- I/pppd(25210): Deflate (15) compression enabled I/pppd(25210): local IP address 10.1.2.2 I/pppd(25210): remote IP address 10.1.2.1 I/pppd(25210): primary DNS address 208.67.222.222 I/pppd(25210): secondary DNS address 208.67.220.220 I/ip-up-vpn(25212): All traffic is now redirected to 10.1.2.1 D/VpnService(21418): onConnected() I/VpnService(21418): save original dns prop: 202.106.196.115, 192.168.0.1 I/VpnService(21418): save original suffices: D/VpnSettings(14386): received connectivity: Eeast: connected? CONNECTED err=0 D/VpnServiceBinder(21418): saving states I/VpnService(21418): set vpn dns prop: 208.67.222.222, 208.67.220.220 I/VpnService(21418): VPN connectivity monitor running W/VpnDaemons(21418): VPN daemon gone: racoon E/VpnService(21418): onError() E/VpnService(21418): java.io.IOException: Connectivity lost E/VpnService(21418):at com.android.server.vpn.VpnService.checkConnectivity(VpnService.java: 374) E/VpnService(21418):at com.android.server.vpn.VpnService.access $400(VpnService.java:40) E/VpnService(21418):at com.android.server.vpn.VpnService $1.run(VpnService.java:341) E/VpnService(21418):at java.lang.Thread.run(Thread.java:1096) I/VpnService(21418): disconnecting VPN... D/VpnSettings(14386): received connectivity: Eeast: connected? DISCONNECTING err=0 I/SProxy_mtpd(21418): Stop VPN daemon: mtpd I/pppd(25210): Terminating on signal 15 I/pppd(25210): Connect time 0.2 minutes. I/pppd(25210): Sent 114 bytes, received 0 bytes. I/mtpd(25189): Received signal 15 I/mtpd(25189): Sending signal to pppd (pid = 25210) I/pppd(25210): Terminating on signal 15 I/pppd(25210): Connection terminated. D/mtpd(25189): Sending STOPCCN I/mtpd(25189): Mtpd is terminated (status = 6) D/SProxy_mtpd(21418): mtpd is stopped after 600 msec D/SProxy_mtpd(21418): stopping mtpd, success? true I/SProxy_racoon(21418): Stop VPN daemon: racoon D/SProxy_racoon(21418): racoon is stopped after 0 msec D/SProxy_racoon(21418): stopping racoon, success? true D/VpnService(21418): onFinalCleanUp() I/VpnService(21418): restore original dns prop: 208.67.222.222 -- 202.106.196.115 I/VpnService(21418): restore original dns prop: 208.67.220.220 -- 192.168.0.1 I/VpnService(21418): restore original suffices -- D/VpnSettings(14386): received connectivity: Eeast: connected? IDLE err=103 I/VpnService(21418): VPN connectivity monitor stopped -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Layout help
Hi all. I'm struggling with a layout... would appreciate any suggestions on how to handle this. Basically, I have a list of objects. Each has attributes (like Name) and an image. I want to display the objects in a gallery style, allowing the user to scroll / fling from one item to the next. The tricky bits I'm facing are: - I want the gallery overall to sit within a static outer frame (i.e. my main.xml), so that the gallery itself is not full screen. - I want each item within the gallery to be controlled via its own xml layout (i.e. the same layout applied to each item). - I want only one item to be displayed at a time. I've been playing around with various Gallery examples, but the items merge into a row rather than being filling the enclosing parent. I've also been trying the FlingGallery which has been posted here before, but can't get that to work within an enclosing layout via xml file. I'm sure this is simpler than I'm making it out to be - any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HELP: Take video captures of your screen
Hey Guys, I am looking for a source code\framework which will allow me to record the device's springboard, in other words to take video captures of your screen. Something like 'Display Recorder' for the iPhone, Link: http://www.ihackintosh.com/2010/05/display-recorder-record-video-of-your-iphone-springboard/. Is it even possible to do on a non-rooted Android device? Kind Regards, M -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Best way to start a frame animation in an adapter
Is this something people don't do? Does everyone use palette animation techniques or some other methodology instead? It has to be a fairly commonly used technique (loading animation for image views in a grid view for example) but all I can find on the web are other un-answered queries? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Make and Imageview go in Fullscreen mode
Hi there, I wonder if you could help me. Is there any piece of code that I can use on an ImageView, so that when the users taps and image it shows a fullscreen preview? What I mean is that, in my application at some point I have small images with limited visibility but I'd like to give the option to maximize them to fullscreen for better user experience. Is there any easy way or can you forward me into an approach to do this? Ideally I'd like it like in the image gallery, to tap a picture and go fullscreen, to tap back or double tap and go back to the previous state. Thank you very much in advance for your time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Make buttons invisible/disable with XML
Hi there, I wonder if there's any quick XML way on making a button invisible and disabled for an user. I have my application ready for user testing, but some of the functionalities won't be used on the testing so I'd like them not to be visible or functional while doing the experience. I know I could just remove all the code or comment everything but I'd like just to disable it since users might listen to you but not hear you and touch them anyway which would interfere with my analysis. 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] org.xmlpull.v1.XmlPullParserException: Map value without name attribute: boolean
I am trying to figure out the cause of this error it occurs on startup when i try to get the shared preferences for the app. the code is just: settings = this.getSharedPreferences(Globals.PREFS_NAME, 0) Seems like a corruption, but the bug is in the app as i have installed it on multiple devices and the same error occurs. I have uninstalled the app and re-installed it to no avail. also did a fully clean build. I googled the error and dont seem to be able to find anything on it. I was previously working fine. so I am a rather stumped. Any leads would be *very* highly appreciated ... regards, rob W/ApplicationContext( 1541): getSharedPreferences W/ApplicationContext( 1541): org.xmlpull.v1.XmlPullParserException: Map value without name attribute: boolean W/ApplicationContext( 1541):at com.android.internal.util.XmlUtils.readThisMapXml(XmlUtils.java:521) W/ApplicationContext( 1541):at com.android.internal.util.XmlUtils.readThisValueXml(XmlUtils.java:733) W/ApplicationContext( 1541):at com.android.internal.util.XmlUtils.readValueXml(XmlUtils.java:667) W/ApplicationContext( 1541):at com.android.internal.util.XmlUtils.readMapXml(XmlUtils.java:470) W/ApplicationContext( 1541):at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:376) W/ApplicationContext( 1541):at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java: 146) W/ApplicationContext( 1541):at net.robmunro.mypod.WelcomeActivity.onEWCreate(WelcomeActivity.java: 160) W/ApplicationContext( 1541):at net.robmunro.mypod.AbstractEWActivity.onCreate(AbstractEWActivity.java: 25) W/ApplicationContext( 1541):at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) W/ApplicationContext( 1541):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 1611) W/ApplicationContext( 1541):at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 1663) W/ApplicationContext( 1541):at android.app.ActivityThread.access $1500(ActivityThread.java:117) W/ApplicationContext( 1541):at android.app.ActivityThread $H.handleMessage(ActivityThread.java:931) W/ApplicationContext( 1541):at android.os.Handler.dispatchMessage(Handler.java:99) W/ApplicationContext( 1541):at android.os.Looper.loop(Looper.java: 123) W/ApplicationContext( 1541):at android.app.ActivityThread.main(ActivityThread.java:3683) W/ApplicationContext( 1541):at java.lang.reflect.Method.invokeNative(Native Method) W/ApplicationContext( 1541):at java.lang.reflect.Method.invoke(Method.java:507) W/ApplicationContext( 1541):at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:839) W/ApplicationContext( 1541):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) W/ApplicationContext( 1541):at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Make buttons invisible/disable with XML
Set android:visibility=invisible or gone. The latter might work better, depending on your UI design, as that will make view not take any screen space. 20.03.2011 15:06 пользователь Pedro Teixeira pedroteixeir...@gmail.com написал: Hi there, I wonder if there's any quick XML way on making a button invisible and disabled for an user. I have my application ready for user testing, but some of the functionalities won't be used on the testing so I'd like them not to be visible or functional while doing the experience. I know I could just remove all the code or comment everything but I'd like just to disable it since users might listen to you but not hear you and touch them anyway which would interfere with my analysis. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Refresh previous activity on Back Button Press
Hi, Thanks for your replies!! I am not sure how to use these flags while calling the intent. How does it helpful in refreshing each activity while calling back button. I am still facing this issue. Please help!! On Sun, Mar 20, 2011 at 1:23 AM, Nick nkulik...@gmail.com wrote: Hi, I'm not sure I understood your problem completely right but I guess every time you send a new intent to start List Item Body Activity System adds it to a history stack. Try to set intent flags like FLAG_ACTIVITY_SINGLE_TOP or FLAG_ACTIVITY_NO_HISTORY On Mar 19, 10:37 am, Laxmi Verma laxmiverma.andr...@gmail.com wrote: Hi, Can you please provide some code example on startActivityForResult for back button refresh problem. Using onResume() method is not solving this problem. The reason is I am having a list item activity. From there I am calling List Item Body Activity. List Item Body Activity contains back and previous button. Now, inside List Item Body Activity if I am calling this activity itself in onResume() method then it never goes back to List Item Activity. Everytime I am pressing back button iin List Item Body Activity, it is making an intent of itself and starting it and never goes back to List Item Activity. Thanks!! On Saturday 19 March 2011 10:00 PM, Streets Of Boston wrote: Yep, and if you only want to refresh when coming back from an activity that was started by your original activity (startActivityForResult), implement onActivityResult callback as well. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Make buttons invisible/disable with XML
Thank you very much Kostya, Works like a charm. On Mar 20, 2011, at 12:24 PM, Kostya Vasilyev wrote: Set android:visibility=invisible or gone. The latter might work better, depending on your UI design, as that will make view not take any screen space. 20.03.2011 15:06 пользователь Pedro Teixeira pedroteixeir...@gmail.com написал: Hi there, I wonder if there's any quick XML way on making a button invisible and disabled for an user. I have my application ready for user testing, but some of the functionalities won't be used on the testing so I'd like them not to be visible or functional while doing the experience. I know I could just remove all the code or comment everything but I'd like just to disable it since users might listen to you but not hear you and touch them anyway which would interfere with my analysis. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en Pedro Teixeira Website/Portefolio: www.pedroteixeira.org Facebook: http://www.facebook.com/JosePedroSousaTeixeira -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: HI
Either the pairing dialog, or the pairing notification, pop up automatically when you try to connect to an unpaired device. It would be nice if I could force the dialog version, though. On Mar 11, 5:28 pm, Michael Elmsly mike.elm...@gmail.com wrote: Technically it is the platforms fault. OK - so the spec requires pairing and for security reasons you always want the user to be responsible for that (no autopairing or hidden pairing of devices). Since this means you can't allow apps to control pairing the logical thing to do is open the bluetooth pairing activity via a public intent so that developers can request pairing with a device while still having the security and UI managed by the android platform to protect the users. Seems fairly obvious to me or am I being unreasonable? Mike On Fri, Mar 11, 2011 at 8:12 PM, Kristopher Micinski krismicin...@gmail.com wrote: (But of course, having to pair isn't the Android platform's fault, it's just 802.15.1 in general :-). Kris On Fri, Mar 11, 2011 at 2:00 AM, Kristopher Micinski krismicin...@gmail.com wrote: P.s., Bluetooth API support seems to be not that amazingly great, and you have to pair the phones first, which is annoying. (People always have to pair before playing your game!). Can you fake it using TCP/IP? Kris On Thu, Mar 10, 2011 at 1:47 AM, Marcin Orlowski webnet.andr...@gmail.com wrote: On 8 March 2011 19:40, bhaskar bommala bhaskar...@gmail.com wrote: Hi I am new to the android development , i need to access 2 android devices as remote devices each other via bluetooth.. for example if i press the 1 as input from device 1 that should appear on device 2 .. See SDK samples. There's Bluetooth chat app there IIRC -- Regards, Marcin Orlowski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: org.xmlpull.v1.XmlPullParserException: Map value without name attribute: boolean
im sure someone knows the answer to this off the top of their head, but I don't. My first suggestion would be to install your app on an Emulator instance then copy the created SharedPreferences XML file for the app to your local computer and inspect it manually to see if it looks like you expect. On Mar 20, 8:17 am, siliconeagle rrmu...@gmail.com wrote: I am trying to figure out the cause of this error it occurs on startup when i try to get the shared preferences for the app. the code is just: settings = this.getSharedPreferences(Globals.PREFS_NAME, 0) Seems like a corruption, but the bug is in the app as i have installed it on multiple devices and the same error occurs. I have uninstalled the app and re-installed it to no avail. also did a fully clean build. I googled the error and dont seem to be able to find anything on it. I was previously working fine. so I am a rather stumped. Any leads would be *very* highly appreciated ... regards, rob W/ApplicationContext( 1541): getSharedPreferences W/ApplicationContext( 1541): org.xmlpull.v1.XmlPullParserException: Map value without name attribute: boolean W/ApplicationContext( 1541): at com.android.internal.util.XmlUtils.readThisMapXml(XmlUtils.java:521) W/ApplicationContext( 1541): at com.android.internal.util.XmlUtils.readThisValueXml(XmlUtils.java:733) W/ApplicationContext( 1541): at com.android.internal.util.XmlUtils.readValueXml(XmlUtils.java:667) W/ApplicationContext( 1541): at com.android.internal.util.XmlUtils.readMapXml(XmlUtils.java:470) W/ApplicationContext( 1541): at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:376) W/ApplicationContext( 1541): at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java: 146) W/ApplicationContext( 1541): at net.robmunro.mypod.WelcomeActivity.onEWCreate(WelcomeActivity.java: 160) W/ApplicationContext( 1541): at net.robmunro.mypod.AbstractEWActivity.onCreate(AbstractEWActivity.java: 25) W/ApplicationContext( 1541): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) W/ApplicationContext( 1541): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 1611) W/ApplicationContext( 1541): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 1663) W/ApplicationContext( 1541): at android.app.ActivityThread.access $1500(ActivityThread.java:117) W/ApplicationContext( 1541): at android.app.ActivityThread $H.handleMessage(ActivityThread.java:931) W/ApplicationContext( 1541): at android.os.Handler.dispatchMessage(Handler.java:99) W/ApplicationContext( 1541): at android.os.Looper.loop(Looper.java: 123) W/ApplicationContext( 1541): at android.app.ActivityThread.main(ActivityThread.java:3683) W/ApplicationContext( 1541): at java.lang.reflect.Method.invokeNative(Native Method) W/ApplicationContext( 1541): at java.lang.reflect.Method.invoke(Method.java:507) W/ApplicationContext( 1541): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:839) W/ApplicationContext( 1541): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) W/ApplicationContext( 1541): at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is anybody using amazon S3 for uploading files from android?
Can you ever get the upload to work? If you run it on the emulator? If you run it on a device but use WiFi instead of the cell network? Are there any differing scenarios where that same code will work or not work? Have you tried downloading the file from S3, renaming it to JPG and seeing if it is valid/corrupted/nonsense? Are the uploaded files (no matter which image you use) always 32 bytes? That might imply an error message is getting streamed to S3 and not the image data itself in which case reading it might help you figure out what is going on (e.g. permission issue). On Feb 23, 11:48 pm, ishwarya cishwa...@gmail.com wrote: Hi there, I am trying to upload image file from my android app to amazon s3.The problem is that the files are not getting properly uploaded to S3. I am using PutObjectRequest as follows to upload file to S3 PutObjectRequest p=new PutObjectRequest(String Bucketname,Stirng key,InputStream in,ObjectMetadata metadata); Upload myUpload = tx.upload(p); //In ObjectMetadata argument I am passing only the content length When viewed through AWS management console to check the properties of the uploaded file, I could see only 32 Bytes of 5.2 KB image file getting uploaded. Also, under the Metadata tab of the file in the AWS console, I am able to see the value of the file as application/octet-stream instead of image/jpeg I tried doing Multipart upload but it seems to be complex. Could somebody help me with this??? 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: Canvas frame rate very choppy in Live Wallpaper
Jeffrey, To what Peter said, mobile devices are very fill-rate-limited (at least these current gen of phones) so depending on how you are repainting that image over and over and over again to the Canvas, that could explain the speed issue. If you tried a tiny little 16x16 icon and it went much faster with the same code, then I think you've found your culprit. Regardless, Peter's approach sounds like the right way; upload image data to the GPU one, then just move your view of it around in a circle, panning across the image. On Mar 19, 3:07 pm, Jeffrey jeffisagen...@gmail.com wrote: I'm trying to make a simple (or so I thought) live wallpaper that takes an image and moves it slowly in a circular motion, to make the picture seem less static and more like looking out a window. I took the live wallpaper tutorial from the SDK and stripped it down to the bare bones so I could add to it. But the issue is that no matter what size the image I'm moving, or what format (drawable or bitmap), it is only getting about 3 fps. I don't know what to do to make this run faster, I have very limited programming knowledge so I don't know if I'm missing something stupid. Also, this is the code I'm using to calculate the circular movement: int NewX = (int) (OffsetX + Math.sin(Dist)*19); int NewY = (int) (OffsetY + Math.cos(Dist)*19); where Dist is the speed it's moving and 19 is the radius of the circle. Is there an easier way? I looked into Tween animation but I don't know how I would implement my circle code into it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How is your sales model changing with the introduction of Android 3.0 and tablets, or is it?
Agree on #1; this is how every iPhone/iPad app does it and so far the iOS ecosystem seems to be doing just fine. I've rebought apps on my iPad to get the HD versions of them and expected to repay; it was a bummer, but I didn't lose sleep over it. I think the analogy to DVD/ Blu-ray was pretty much spot-on; if you want two copies, go for it. Q: What *does* happen to a standard app run on the Xoom? Does it scale like on the iPad or does it actually run the app normally, just on a much bigger screen so you have a lot more whitespace and UI gaps? Or is the issue the added UIs for the new app management/task-switching and all that? On Mar 19, 2:42 pm, Alessio Grumiro a.grum...@gmail.com wrote: Maybe it depends by your application, but i think it is better #1. You have to manage 2 different applications: phone version and tablet version. Consider environments: you can read football news on your mobile phone while your are on bus. Usually you use tablet in office or at home, so your are sitted, no noise, more concentration. No consider if your user has, already, payed for phone version. 2011/3/19 Chris Stewart cstewart...@gmail.com In many ways, using the compat framework makes me a little nervous. The ApiDemo I looked at had an overarching Activity that managed two fragments and while it was a simple example and only had a few is landscape, do two fragments, else, do one, I can imagine a real world app being far more complicated to migrate to that model. I'm curious how many have taken the approach of having both modes in one app. I would love to hear some experiences from having made this migration to the compat framework. On Mar 19, 2011 4:10 PM, TreKing treking...@gmail.com wrote: On Sat, Mar 19, 2011 at 12:48 PM, Chris Stewart cstewart...@gmail.com wrote: Anyone have any comments on this quote from me? I do think it's important to note that if you follow approach #1, users that purchased your app will still have access to it on the tablet, it just won't be tailored to that device's experience. I'm not sure that asking them to pay for the additional work you put into a tablet version is a bad thing. It works that way on the iPad, with no issues. I think having a separate tablet version that costs more, if that's what you want to do, is fine. It's like selling a DVD and BluRay copy of a movie - same product, different platform, where one costs more because it's bigger and better. If you want both, you have to pay for both. And if user is *really* unhappy about this, you can just refund their original phone version purchase and have them keep the tablet version, so they're only paying the difference (as was mentioned earlier) for the upgrade. Do it, go. --- -- 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Menu typeface
Hi, Is there any way to change menu typeface to bold? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] A WebView inside of a fragment
I'm trying to get a hook to a WebView in my layout and it's coming back null each time. Can anyone tell me what I'm doing wrong here? WebViewFragment.java public class WebViewFragment extends Fragment { private View mContentView; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { mContentView = inflater.inflate(R.layout.web_view_fragment, null); return mContentView; } @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); WebView webview = (WebView)mContentView.findViewById(R.id.webview); // use webview to set url... } } web_view_fragment.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=horizontal android:layout_width=match_parent android:layout_height=match_parent WebView android:id=@+id/webview android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=2 / /LinearLayout -- Chris Stewart http://chriswstewart.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How is your sales model changing with the introduction of Android 3.0 and tablets, or is it?
Q: What *does* happen to a standard app run on the Xoom? Does it scale like on the iPad or does it actually run the app normally, just on a much bigger screen so you have a lot more whitespace and UI gaps? Or is the issue the added UIs for the new app management/task-switching and all that? It will scale it up to the full screen size of your device, which leads to a lot of whitespace in most apps including mine. -- Chris Stewart http://chriswstewart.com On Sun, Mar 20, 2011 at 10:18 AM, Riyad Kalla rka...@gmail.com wrote: Agree on #1; this is how every iPhone/iPad app does it and so far the iOS ecosystem seems to be doing just fine. I've rebought apps on my iPad to get the HD versions of them and expected to repay; it was a bummer, but I didn't lose sleep over it. I think the analogy to DVD/ Blu-ray was pretty much spot-on; if you want two copies, go for it. Q: What *does* happen to a standard app run on the Xoom? Does it scale like on the iPad or does it actually run the app normally, just on a much bigger screen so you have a lot more whitespace and UI gaps? Or is the issue the added UIs for the new app management/task-switching and all that? On Mar 19, 2:42 pm, Alessio Grumiro a.grum...@gmail.com wrote: Maybe it depends by your application, but i think it is better #1. You have to manage 2 different applications: phone version and tablet version. Consider environments: you can read football news on your mobile phone while your are on bus. Usually you use tablet in office or at home, so your are sitted, no noise, more concentration. No consider if your user has, already, payed for phone version. 2011/3/19 Chris Stewart cstewart...@gmail.com In many ways, using the compat framework makes me a little nervous. The ApiDemo I looked at had an overarching Activity that managed two fragments and while it was a simple example and only had a few is landscape, do two fragments, else, do one, I can imagine a real world app being far more complicated to migrate to that model. I'm curious how many have taken the approach of having both modes in one app. I would love to hear some experiences from having made this migration to the compat framework. On Mar 19, 2011 4:10 PM, TreKing treking...@gmail.com wrote: On Sat, Mar 19, 2011 at 12:48 PM, Chris Stewart cstewart...@gmail.com wrote: Anyone have any comments on this quote from me? I do think it's important to note that if you follow approach #1, users that purchased your app will still have access to it on the tablet, it just won't be tailored to that device's experience. I'm not sure that asking them to pay for the additional work you put into a tablet version is a bad thing. It works that way on the iPad, with no issues. I think having a separate tablet version that costs more, if that's what you want to do, is fine. It's like selling a DVD and BluRay copy of a movie - same product, different platform, where one costs more because it's bigger and better. If you want both, you have to pay for both. And if user is *really* unhappy about this, you can just refund their original phone version purchase and have them keep the tablet version, so they're only paying the difference (as was mentioned earlier) for the upgrade. Do it, go. --- -- 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
[android-developers] StartActivity and InstantiationException
I have Activity A starting Activity B with an explicit intent. If Activity B has no constructor, I get an InstantiationException. With an empty nullary constructor, it starts up fine. Activity A (started from the debugger) has no constructor but does not give an error. Can someone explain the underlying logic behind these cases? Is the empty constructor for Activity B the right solution? It seems kind of kludgy and arbitrary. Thanks, Jay -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] A WebView inside of a fragment
Well, you can definitely use WebView in fragments: https://github.com/commonsguy/cw-android/tree/master/Fragments/EU4You_6 My best guess is that the fragment is not yet attached to the view hierarchy by then. Since you get the same Bundle in both places, you may just want to move your loadURL() or whatever call to onCreateView(). On Sun, Mar 20, 2011 at 10:25 AM, Chris Stewart cstewart...@gmail.com wrote: I'm trying to get a hook to a WebView in my layout and it's coming back null each time. Can anyone tell me what I'm doing wrong here? WebViewFragment.java public class WebViewFragment extends Fragment { private View mContentView; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { mContentView = inflater.inflate(R.layout.web_view_fragment, null); return mContentView; } @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); WebView webview = (WebView)mContentView.findViewById(R.id.webview); // use webview to set url... } } web_view_fragment.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=horizontal android:layout_width=match_parent android:layout_height=match_parent WebView android:id=@+id/webview android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=2 / /LinearLayout -- 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
Re: [android-developers] StartActivity and InstantiationException
On Sun, Mar 20, 2011 at 10:54 AM, Jay Bloodworth johnabloodwor...@gmail.com wrote: I have Activity A starting Activity B with an explicit intent. If Activity B has no constructor, I get an InstantiationException. With an empty nullary constructor, it starts up fine. Activity A (started from the debugger) has no constructor but does not give an error. Can someone explain the underlying logic behind these cases? Is the empty constructor for Activity B the right solution? It seems kind of kludgy and arbitrary. You never implement a constructor on an activity. -- 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
Re: [android-developers] A WebView inside of a fragment
Thanks for linking your example. I'm getting a reference to the WebView now with: WebView webview = (WebView)(getView().findViewById(R.id.webview)); It's not loading my web page just yet, but that's next. :o -- Chris Stewart http://chriswstewart.com On Sun, Mar 20, 2011 at 10:57 AM, Mark Murphy mmur...@commonsware.comwrote: Well, you can definitely use WebView in fragments: https://github.com/commonsguy/cw-android/tree/master/Fragments/EU4You_6 My best guess is that the fragment is not yet attached to the view hierarchy by then. Since you get the same Bundle in both places, you may just want to move your loadURL() or whatever call to onCreateView(). On Sun, Mar 20, 2011 at 10:25 AM, Chris Stewart cstewart...@gmail.com wrote: I'm trying to get a hook to a WebView in my layout and it's coming back null each time. Can anyone tell me what I'm doing wrong here? WebViewFragment.java public class WebViewFragment extends Fragment { private View mContentView; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { mContentView = inflater.inflate(R.layout.web_view_fragment, null); return mContentView; } @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); WebView webview = (WebView)mContentView.findViewById(R.id.webview); // use webview to set url... } } web_view_fragment.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=horizontal android:layout_width=match_parent android:layout_height=match_parent WebView android:id=@+id/webview android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=2 / /LinearLayout -- 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] A WebView inside of a fragment
So, apparently, having the Internet permission is kind of important for what I'm trying to do. :o It's been quite awhile since I've started an Android project from scratch... -- Chris Stewart http://chriswstewart.com On Sun, Mar 20, 2011 at 11:05 AM, Chris Stewart cstewart...@gmail.comwrote: Thanks for linking your example. I'm getting a reference to the WebView now with: WebView webview = (WebView)(getView().findViewById(R.id.webview)); It's not loading my web page just yet, but that's next. :o -- Chris Stewart http://chriswstewart.com On Sun, Mar 20, 2011 at 10:57 AM, Mark Murphy mmur...@commonsware.comwrote: Well, you can definitely use WebView in fragments: https://github.com/commonsguy/cw-android/tree/master/Fragments/EU4You_6 My best guess is that the fragment is not yet attached to the view hierarchy by then. Since you get the same Bundle in both places, you may just want to move your loadURL() or whatever call to onCreateView(). On Sun, Mar 20, 2011 at 10:25 AM, Chris Stewart cstewart...@gmail.com wrote: I'm trying to get a hook to a WebView in my layout and it's coming back null each time. Can anyone tell me what I'm doing wrong here? WebViewFragment.java public class WebViewFragment extends Fragment { private View mContentView; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { mContentView = inflater.inflate(R.layout.web_view_fragment, null); return mContentView; } @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); WebView webview = (WebView)mContentView.findViewById(R.id.webview); // use webview to set url... } } web_view_fragment.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:orientation=horizontal android:layout_width=match_parent android:layout_height=match_parent WebView android:id=@+id/webview android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=2 / /LinearLayout -- 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
[android-developers] Re: Make and Imageview go in Fullscreen mode
Hi Pedro, I have a gallery with previews and when the user taps one he gets a large image. Depending on portrait/landscape mode of the mobile and the picture, the picture fills all the screen below the gallery (no sense in hiding the gallery). There is a preview here: http://stephanwiesner.de/alpenkalb/beta.htm (2nd picture) My xml looks like this: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:background=#ff00 Gallery android:id=@+id/gallery1 android:layout_width=fill_parent android:layout_height=wrap_content / ImageSwitcher android:id=@+id/switcher1 android:layout_width=fill_parent android:layout_height=fill_parent android:layout_below=@+id/gallery1 /ImageSwitcher TextView android:layout_width=fill_parent android:id=@+id/ album_comment android:gravity=center_horizontal android:text=Klicken Sie ein Bild android:layout_height=wrap_content android:textColor=@color/ album_text android:background=@color/menu_background android:layout_alignParentBottom=true/ /RelativeLayout Sunny greetings from Lucerne, Stephan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] advertise free or paid....
Should I advertise my free or paid version of my application (space bike)... also I put out a stupid update for a second so I got some bad reviews because something did not work. so could you try it and rate it 5 stars and leave a comment lol... also tell me any changes I should make. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Scanner GPRS
2011/3/19 lbendlin l...@bendlin.us It's possible, but it still has nothing to do with GPRS. As you mentioned you will have to keep track of the station IDs, network IDs, and transmit power for each cell you're booked into while moving. Transmit power will vary with time of day, weather, location of your receiver (hand, pocket etc), so you're looking at quite some complex data mining. But yes, it's possible. Thank you, One last question, through the Android OS (Java API) I have access to such information station IDs and network IDs? I just need this information to jump to head in that idea. On Mar 18, 12:53 pm, Leonardo Luís dos Santos mar...@las.ic.unicamp.br wrote: Hi Marcin, 2011/3/18 Marcin Orlowski webnet.andr...@gmail.com On 18 March 2011 14:41, Leus leonardo...@gmail.com wrote: ^^ Good morning guys, Morning at 2pm? hardly possible ;/ Sorry but I wirte from Brazil. Next, s possible to access the phone via modem gprs android? My idea was to make a scanner signal tower, so I could identify which carrier works best in each region or the signal quality of my carrier or identify noise in the signal. Or will that I could do it via wifi module? So you want to measure carrier network with wifi radio?? Sorry, but you completely got no idea on how both things works. Sorry my ignorance on the subject. I work in a company vehicle tracking and would like to build an Android application to measure the GPRS signal in certain parts of the city. The phone shows me the signal quality of my carrier. In this context, take a cell for eachoperator to measure the signal quality is unfeasible. I would like to make a GPRS scanner in the same way that there is WiFi networkscanner. Is that possible? Regards, Marcin Orlowski Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: StartActivity and InstantiationException
On Mar 20, 10:58 am, Mark Murphy mmur...@commonsware.com wrote: You never implement a constructor on an activity. It turned out that I had overlooked that Activity B had a one argument constructor left over from it's former life as a Fragment. Oops. I guess there is a lesson in here for me about horses and zebras. Thanks. Jay -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: StartActivity and InstantiationException
On Sun, Mar 20, 2011 at 12:45 PM, Jay johnabloodwor...@gmail.com wrote: It turned out that I had overlooked that Activity B had a one argument constructor left over from it's former life as a Fragment. Oops. I guess there is a lesson in here for me about horses and zebras. Absolutely. If you walk behind either of them, watch where you step. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: StartActivity and InstantiationException
20.03.2011 19:45, Jay пишет: It turned out that I had overlooked that Activity B had a one argument constructor left over from it's former life as a Fragment. Oops. I guess there is a lesson in here for me about horses and zebras. Yep - having any constructor prevents the Java compiler from generating the default, no arguments constructor, which is used by the framework. -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] advertise free or paid....
I suppose a free-version advertisement shouldn't get you as many frowns. But I'd first see if the rules of this list allow show-and-tell/etc.? :-) On Sun, Mar 20, 2011 at 9:52 PM, brian purgert brianpurge...@gmail.com wrote: Should I advertise my free or paid version of my application (space bike)... also I put out a stupid update for a second so I got some bad reviews because something did not work. so could you try it and rate it 5 stars and leave a comment lol... also tell me any changes I should make. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Harsh J http://harshj.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Menu typeface
Try the following ugly technique to customize your options menu: getLayoutInflater().setFactory(new Factory() { public View onCreateView (String name, final Context context, AttributeSet attrs) { if(name.equalsIgnoreCase(com.android.internal.view.menu.IconMenuItemView)) { final View view = getLayoutInflater().createView(name, null, attrs); // Apply custom style after standard one gets applied new Handler().post(new Runnable() { public void run() { TextView text = (TextView) view; text.setTextAppearance(context, R.style.your_text_style); } }); return view; } return null; } }); On 20 мар, 17:25, Kamil kmichal...@gmail.com wrote: Hi, Is there any way to change menu typeface to bold? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Self contained ProgressDialog in ListFragment?
I have a ListFragment which loads data in a background thread and shows a ProgressDialog while it loads. I'm wondering if I can make that dialog contained to just that fragment so the user can keep doing things in the other fragments. Is this doable? Currently, the dialog blocks all interaction with the UI. -- Chris Stewart http://chriswstewart.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] Does emulator destinguishes the voice of two persons?
Hi all :) I'm trying to implement a Voice recognition application in android 2.2 emulator. I'm getting an error that Recognizer not present. How to implement this. Is my windows 7 operating system requires additional Voice recognition softwares?? How to install Google Voice app into adroid emulator?? Here is the link for the example I'm doing. http://www.jameselsey.co.uk/blogs/techblog/android-how-to-implement-voice-recognition-a-nice-easy-tutorial/ 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: Mandriva aapt: /lib/libz.so.1 using latest SDK update
I was on Mandriva 2010 Spring 32 bits. Tried to install more packages. No results. I've tried Ubuntu 32 and 63 bits: both don't install on my laptop. I'm now on Mandriva 64 bits + JDK 64 bits + Eclipse 64 bits. The Android emulator starts OK... but I still have this error msg when compiling. Even after installing libc libz etc ... Any idea to solve it ? Hopefully, I am doing Android app for 'fun' and little money. It would be a HUGE issue if it was for a real company/work... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Mandriva aapt: /lib/libz.so.1 using latest SDK update
It'd probably help if you included the actual error you're seeing. --PW On Sun, Mar 20, 2011 at 7:26 PM, Nanard bsegon...@free.fr wrote: I was on Mandriva 2010 Spring 32 bits. Tried to install more packages. No results. I've tried Ubuntu 32 and 63 bits: both don't install on my laptop. I'm now on Mandriva 64 bits + JDK 64 bits + Eclipse 64 bits. The Android emulator starts OK... but I still have this error msg when compiling. Even after installing libc libz etc ... Any idea to solve it ? Hopefully, I am doing Android app for 'fun' and little money. It would be a HUGE issue if it was for a real company/work... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] What is the correct way to pause AudioTrack?
I wrote the following code to experiment with the AudioTrack class but whenever I click the pause button it seems to REWIND the track rather than pause it, am I doing something wrong? private class PlayAudio extends AsyncTaskVoid, Void, Void implements OnPlaybackPositionUpdateListener { AudioTrack audioTrack; boolean keepGoing = true; boolean speed = false; @Override protected Void doInBackground(Void... params) { int bufferSize = AudioTrack.getMinBufferSize(frequency, channelConfiguration, audioEncoding); audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, frequency, channelConfiguration, audioEncoding, bufferSize, AudioTrack.MODE_STREAM); audiodata = fillBuff(myAudio); audioTrack.setPlaybackPositionUpdateListener(this); audioTrack.play(); // This while block ensures that a buffer is continuously replenished. while (keepGoing) { audioTrack.write(audiodata, 0, audiodata.length); } return null; } @Override public void onMarkerReached(AudioTrack track) { } @Override public void onPeriodicNotification(AudioTrack track) { } protected void onPostExecute(Void result) { } } public void onClick(View v) { int id = v.getId(); if (id == R.id.PausePlaybackButton) { // playTask.maKorin = false; playTask.audioTrack.pause(); } //... } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Mandriva aapt: /lib/libz.so.1 using latest SDK update
Hi, Thanks for the answer. The error message in Eclipse/Android : [2011-03-20 21:09:37 - DrawIt] /home/bsegonnes/to_burn/DVD_sauvegarde/ download/Google_Android/android-sdk-linux_x86/platform-tools/aapt: / lib/libz.so.1: no version information available (required by /home/ bsegonnes/to_burn/DVD_sauvegarde/download/Google_Android/android-sdk- linux_x86/platform-tools/aapt) [2011-03-20 21:09:37 - DrawIt] ERROR: Unable to open class file /home/ bsegonnes/to_burn/DVD_sauvegarde/bsegonnes/EclipseWorkspace/DrawIt/gen/ bse/drawit/R.java: No such file or directory -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Self contained ProgressDialog in ListFragment?
On Sun, Mar 20, 2011 at 1:01 PM, Chris Stewart cstewart...@gmail.comwrote: Is this doable? Currently, the dialog blocks all interaction with the UI. I don't know, but it should be easy enough to use another UI element to display progress. Like this guy: http://developer.android.com/reference/android/widget/ProgressBar.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Refresh previous activity on Back Button Press
Hi, Here is a simple example of how flags maybe helpful while calling back button (btw by back button i mean a phone back button): public class BodyActivity extends Activity { OnClickListener mNextButtonListener = new OnClickListener() { @Override public void onClick(View v) { restartActivity(); } }; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.body); Button nextButton = (Button)findViewById(R.id.next_button); nextButton.setOnClickListener(mNextButtonListener); } private void restartActivity() { Intent i = new Intent(getBaseContext(), BodyActivity.class); i.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); startActivity(i); } } if you don't use the flag in this particular example it will put the same activity to the history stack and every time you click back button it will go back through the stack. If that doesn't help then pls provide more details or an example of what you are trying to do. On Mar 20, 5:56 am, Laxmi Verma laxmiverma.andr...@gmail.com wrote: Hi, Thanks for your replies!! I am not sure how to use these flags while calling the intent. How does it helpful in refreshing each activity while calling back button. I am still facing this issue. Please help!! On Sun, Mar 20, 2011 at 1:23 AM, Nick nkulik...@gmail.com wrote: Hi, I'm not sure I understood your problem completely right but I guess every time you send a new intent to start List Item Body Activity System adds it to a history stack. Try to set intent flags like FLAG_ACTIVITY_SINGLE_TOP or FLAG_ACTIVITY_NO_HISTORY On Mar 19, 10:37 am, Laxmi Verma laxmiverma.andr...@gmail.com wrote: Hi, Can you please provide some code example on startActivityForResult for back button refresh problem. Using onResume() method is not solving this problem. The reason is I am having a list item activity. From there I am calling List Item Body Activity. List Item Body Activity contains back and previous button. Now, inside List Item Body Activity if I am calling this activity itself in onResume() method then it never goes back to List Item Activity. Everytime I am pressing back button iin List Item Body Activity, it is making an intent of itself and starting it and never goes back to List Item Activity. Thanks!! On Saturday 19 March 2011 10:00 PM, Streets Of Boston wrote: Yep, and if you only want to refresh when coming back from an activity that was started by your original activity (startActivityForResult), implement onActivityResult callback as well. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] framebusting out of WebViews
Is there a way for my website to detect that it is being rendered in a WebView that does not belong to the system browser? If yes, is it possible to frame-bust, i.e., force the browser to open the site as a top-level window rather than remain in the application's WebView? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] JDBC driver support
This isn't a good answer. It's not just a matter of security, but also performance and robustness and flexibility and overly-tight coupling of client and database schema. Such an architecture will lead to a host of problems. For example -- if you make a change, you have to simultaneously update both the database, and all clients that access that database. This is particularly difficult in the case of mobile devices. There are good reasons that's why that's not where client/server architecture has evolved over the past 15 years or so. However, there is good reason to want JDBC for the situation the original poster (Dan) raised -- access to your local SQLite database. The reason is -- if you have an application with local data persistence, why should you need two different versions, one for Android, and one for everywhere else? SQLite is not a standard. SQL and JDBC are. There are tons of libraries built atop of SQL and JDBC, that you cannot use on Android. You can't use those, either. I don't know how common this is -- but I think it's a legitimate answer to Mark's Why?. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Unlocked Android Phones
Thanks a lot... On Sun, Mar 20, 2011 at 12:04 PM, Kristopher Micinski krismicin...@gmail.com wrote: Depends on the phone. For example, if you go to the Motorola website, they will suggest you go with your carrier. However, you can also buy the phone itself (at a higher price?). (Or at least, that's what I got out of going to there earlier this morning.) If you're looking for a developer phone, however, buying a ``brand new'' phone might be really expensive. Personally I got a g1 and put 2.2 on it. Also look around for so called ``pay as you go'' android phones. Although at the end of the day getting a nice phone with 2.3 on it might be hard to find cheap. (But still, be sure to check ebay / secondhand first!) Kris On Sun, Mar 20, 2011 at 2:20 AM, Dalvin singh.dal...@gmail.com wrote: Hi All I am looking for an unlocked Android phone in India on which I can install custom Android builds. My questions is: Are android phones sell by manufacturers like Samsung galaxy and HTC unlocked or not. Thanks Dalvin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Unlocked Android Phones
To add two more cents: If you plan on installing your own Android builds on this device, you should also consider two more issues: the boot loader and the drivers. Some phones come with locked boot loaders that only work with official builds digitally signed by the manufacturer. Some of those phones get hacked, but that is likely a violation of copyright laws. Other phones have bootloaders that don't have this protection. The issue of drivers is that Android (just like any OS) needs hardware drivers to function. The Android open source repository includes some drivers, but does not cover all possible hardware variations that occur in the real world. This is reflected in enthusiast builds of new Android versions where you often see a list of unsupported features (the phone boots, but there is no GPS and no sound, for example). -- Kostya 20.03.2011 23:28, Dalvinder Singh ?: Thanks a lot... On Sun, Mar 20, 2011 at 12:04 PM, Kristopher Micinski krismicin...@gmail.com mailto:krismicin...@gmail.com wrote: Depends on the phone. For example, if you go to the Motorola website, they will suggest you go with your carrier. However, you can also buy the phone itself (at a higher price?). (Or at least, that's what I got out of going to there earlier this morning.) If you're looking for a developer phone, however, buying a ``brand new'' phone might be really expensive. Personally I got a g1 and put 2.2 on it. Also look around for so called ``pay as you go'' android phones. Although at the end of the day getting a nice phone with 2.3 on it might be hard to find cheap. (But still, be sure to check ebay / secondhand first!) Kris On Sun, Mar 20, 2011 at 2:20 AM, Dalvin singh.dal...@gmail.com mailto:singh.dal...@gmail.com wrote: Hi All I am looking for an unlocked Android phone in India on which I can install custom Android builds. My questions is: Are android phones sell by manufacturers like Samsung galaxy and HTC unlocked or not. Thanks Dalvin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] framebusting out of WebViews
On Sun, Mar 20, 2011 at 4:22 PM, APF adriennef...@gmail.com wrote: Is there a way for my website to detect that it is being rendered in a WebView that does not belong to the system browser? You can see if there's a different user agent used. Beyond that, probably not. If yes, is it possible to frame-bust, i.e., force the browser to open the site as a top-level window rather than remain in the application's WebView? That is up to the application developer, not you. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Canvas frame rate very choppy in Live Wallpaper
Is there a way around having to call canvas.drawbitmap() every time? And if I call canvas.translate() after drawing the image doesn't move, it instead moves everything that would draw *after* the call to canvas.translate(). Thank you for your help so far, and I'm hoping you have just a little bit left in you :) On Mar 20, 9:12 am, Riyad Kalla rka...@gmail.com wrote: Jeffrey, To what Peter said, mobile devices are very fill-rate-limited (at least these current gen of phones) so depending on how you are repainting that image over and over and over again to the Canvas, that could explain the speed issue. If you tried a tiny little 16x16 icon and it went much faster with the same code, then I think you've found your culprit. Regardless, Peter's approach sounds like the right way; upload image data to the GPU one, then just move your view of it around in a circle, panning across the image. On Mar 19, 3:07 pm, Jeffrey jeffisagen...@gmail.com wrote: I'm trying to make a simple (or so I thought) live wallpaper that takes an image and moves it slowly in a circular motion, to make the picture seem less static and more like looking out a window. I took the live wallpaper tutorial from the SDK and stripped it down to the bare bones so I could add to it. But the issue is that no matter what size the image I'm moving, or what format (drawable or bitmap), it is only getting about 3 fps. I don't know what to do to make this run faster, I have very limited programming knowledge so I don't know if I'm missing something stupid. Also, this is the code I'm using to calculate the circular movement: int NewX = (int) (OffsetX + Math.sin(Dist)*19); int NewY = (int) (OffsetY + Math.cos(Dist)*19); where Dist is the speed it's moving and 19 is the radius of the circle. Is there an easier way? I looked into Tween animation but I don't know how I would implement my circle code into it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Widgets in SD installed application
Did widgets work in a SD installed application? According Android javadoc it seems that can work: App Widgets Your A file:///C:/java/android/docs/guide/topics/appwidgets/index.htmlpp Widgets will be removed from the home screen. When external storage is remounted, your App Widget will *not* be available for the user to select until the system resets the home application (usually not until a system reboot). But I tried in my application and if it's moved to the SD the widgets disappear from the home screen and also from the list of available widgets and it is not possible to add another time. (I tested with Nexus S with 2.3.2 with reboot included) I read also in StackOverflow an entry saying that widgets didn't work on sd http://stackoverflow.com/questions/4747395/android-widget-from-sd-card They work or not? A lot of 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] Interested in making a killer GTD app?
Hi guys, I'm an Android user who never learnt to code but has UI design as a hobby. I'm also fond of the GTD productivity method, but never found an Android app that could bring all its potential. So, I designed one myself, together with a friend who would then do the coding. The problem is, this person didn't had any free time to code and the app was never finished. I would like to find a developer or group of developers who would like to take on such a project, and make this app real. You can read all about the design, and make your comments and questions, in this Google Docs documenthttps://docs.google.com/document/d/1RlM2aDBxnOfmlV9dPLBuaI26ngVSpJCdIW23_qZyTrs/edit?authkey=CK20l6IChl=es# . I hope you find it inspiring. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: org.xmlpull.v1.XmlPullParserException: Map value without name attribute: boolean
thanks for the tip. the prefs file was ?xml version='1.0' encoding='utf-8' standalone='yes' ? map boolean value=false / boolean name=initialised value=true / boolean name=upd.auto value=true / long name=backup.last value=1300662039054 / string name=msg.read0.995.18Beta/string /map turns out i was writing a null preference name to the prefs - so the error was correct - though I don't think the API should let you do that since the prefs cant be read after that. anyways, a bit of a schoolboy error, but got there ... thanks for the quick reply, rob On Mar 21, 12:34 am, Spiral123 cumis...@gmail.com wrote: im sure someone knows the answer to this off the top of their head, but I don't. My first suggestion would be to install your app on an Emulator instance then copy the created SharedPreferences XML file for the app to your local computer and inspect it manually to see if it looks like you expect. On Mar 20, 8:17 am, siliconeagle rrmu...@gmail.com wrote: I am trying to figure out the cause of this error it occurs on startup when i try to get the shared preferences for the app. the code is just: settings = this.getSharedPreferences(Globals.PREFS_NAME, 0) Seems like a corruption, but the bug is in the app as i have installed it on multiple devices and the same error occurs. I have uninstalled the app and re-installed it to no avail. also did a fully clean build. I googled the error and dont seem to be able to find anything on it. I was previously working fine. so I am a rather stumped. Any leads would be *very* highly appreciated ... regards, rob W/ApplicationContext( 1541): getSharedPreferences W/ApplicationContext( 1541): org.xmlpull.v1.XmlPullParserException: Map value without name attribute: boolean W/ApplicationContext( 1541): at com.android.internal.util.XmlUtils.readThisMapXml(XmlUtils.java:521) W/ApplicationContext( 1541): at com.android.internal.util.XmlUtils.readThisValueXml(XmlUtils.java:733) W/ApplicationContext( 1541): at com.android.internal.util.XmlUtils.readValueXml(XmlUtils.java:667) W/ApplicationContext( 1541): at com.android.internal.util.XmlUtils.readMapXml(XmlUtils.java:470) W/ApplicationContext( 1541): at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:376) W/ApplicationContext( 1541): at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java: 146) W/ApplicationContext( 1541): at net.robmunro.mypod.WelcomeActivity.onEWCreate(WelcomeActivity.java: 160) W/ApplicationContext( 1541): at net.robmunro.mypod.AbstractEWActivity.onCreate(AbstractEWActivity.java: 25) W/ApplicationContext( 1541): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) W/ApplicationContext( 1541): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 1611) W/ApplicationContext( 1541): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 1663) W/ApplicationContext( 1541): at android.app.ActivityThread.access $1500(ActivityThread.java:117) W/ApplicationContext( 1541): at android.app.ActivityThread $H.handleMessage(ActivityThread.java:931) W/ApplicationContext( 1541): at android.os.Handler.dispatchMessage(Handler.java:99) W/ApplicationContext( 1541): at android.os.Looper.loop(Looper.java: 123) W/ApplicationContext( 1541): at android.app.ActivityThread.main(ActivityThread.java:3683) W/ApplicationContext( 1541): at java.lang.reflect.Method.invokeNative(Native Method) W/ApplicationContext( 1541): at java.lang.reflect.Method.invoke(Method.java:507) W/ApplicationContext( 1541): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:839) W/ApplicationContext( 1541): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) W/ApplicationContext( 1541): at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: org.xmlpull.v1.XmlPullParserException: Map value without name attribute: boolean
thanks for the update - that could save me some time sometime if I see that kind of weirdness On Sun, Mar 20, 2011 at 7:16 PM, siliconeagle rrmu...@gmail.com wrote: thanks for the tip. the prefs file was ?xml version='1.0' encoding='utf-8' standalone='yes' ? map boolean value=false / boolean name=initialised value=true / boolean name=upd.auto value=true / long name=backup.last value=1300662039054 / string name=msg.read0.995.18Beta/string /map turns out i was writing a null preference name to the prefs - so the error was correct - though I don't think the API should let you do that since the prefs cant be read after that. anyways, a bit of a schoolboy error, but got there ... thanks for the quick reply, rob On Mar 21, 12:34 am, Spiral123 cumis...@gmail.com wrote: im sure someone knows the answer to this off the top of their head, but I don't. My first suggestion would be to install your app on an Emulator instance then copy the created SharedPreferences XML file for the app to your local computer and inspect it manually to see if it looks like you expect. On Mar 20, 8:17 am, siliconeagle rrmu...@gmail.com wrote: I am trying to figure out the cause of this error it occurs on startup when i try to get the shared preferences for the app. the code is just: settings = this.getSharedPreferences(Globals.PREFS_NAME, 0) Seems like a corruption, but the bug is in the app as i have installed it on multiple devices and the same error occurs. I have uninstalled the app and re-installed it to no avail. also did a fully clean build. I googled the error and dont seem to be able to find anything on it. I was previously working fine. so I am a rather stumped. Any leads would be *very* highly appreciated ... regards, rob W/ApplicationContext( 1541): getSharedPreferences W/ApplicationContext( 1541): org.xmlpull.v1.XmlPullParserException: Map value without name attribute: boolean W/ApplicationContext( 1541): at com.android.internal.util.XmlUtils.readThisMapXml(XmlUtils.java:521) W/ApplicationContext( 1541): at com.android.internal.util.XmlUtils.readThisValueXml(XmlUtils.java:733) W/ApplicationContext( 1541): at com.android.internal.util.XmlUtils.readValueXml(XmlUtils.java:667) W/ApplicationContext( 1541): at com.android.internal.util.XmlUtils.readMapXml(XmlUtils.java:470) W/ApplicationContext( 1541): at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:376) W/ApplicationContext( 1541): at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java: 146) W/ApplicationContext( 1541): at net.robmunro.mypod.WelcomeActivity.onEWCreate(WelcomeActivity.java: 160) W/ApplicationContext( 1541): at net.robmunro.mypod.AbstractEWActivity.onCreate(AbstractEWActivity.java: 25) W/ApplicationContext( 1541): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) W/ApplicationContext( 1541): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 1611) W/ApplicationContext( 1541): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 1663) W/ApplicationContext( 1541): at android.app.ActivityThread.access $1500(ActivityThread.java:117) W/ApplicationContext( 1541): at android.app.ActivityThread $H.handleMessage(ActivityThread.java:931) W/ApplicationContext( 1541): at android.os.Handler.dispatchMessage(Handler.java:99) W/ApplicationContext( 1541): at android.os.Looper.loop(Looper.java: 123) W/ApplicationContext( 1541): at android.app.ActivityThread.main(ActivityThread.java:3683) W/ApplicationContext( 1541): at java.lang.reflect.Method.invokeNative(Native Method) W/ApplicationContext( 1541): at java.lang.reflect.Method.invoke(Method.java:507) W/ApplicationContext( 1541): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:839) W/ApplicationContext( 1541): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) W/ApplicationContext( 1541): at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Mandriva aapt: /lib/libz.so.1 using latest SDK update
When I see that aapt/libz.so.1 error, it usually means I have a syntax error in my xml files. I've no idea why it gripes about a missing lib file, but that's never been the actual problem for me. If all of your source files are without error, you could try going to the menu bar and selecting Project - Clean, then select the project and click 'OK'. Then try to rebuild. That seems to fix some of these sorts of errors for others. --PW On Sun, Mar 20, 2011 at 8:10 PM, Nanard bsegon...@free.fr wrote: Hi, Thanks for the answer. The error message in Eclipse/Android : [2011-03-20 21:09:37 - DrawIt] /home/bsegonnes/to_burn/DVD_sauvegarde/ download/Google_Android/android-sdk-linux_x86/platform-tools/aapt: / lib/libz.so.1: no version information available (required by /home/ bsegonnes/to_burn/DVD_sauvegarde/download/Google_Android/android-sdk- linux_x86/platform-tools/aapt) [2011-03-20 21:09:37 - DrawIt] ERROR: Unable to open class file /home/ bsegonnes/to_burn/DVD_sauvegarde/bsegonnes/EclipseWorkspace/DrawIt/gen/ bse/drawit/R.java: No such file or directory -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Menu typeface
My eyes are hurting... Please don't do that unless you want problems down the road. On Mar 21, 1:29 am, emymrin emym...@gmail.com wrote: Try the following ugly technique to customize your options menu: getLayoutInflater().setFactory(new Factory() { public View onCreateView (String name, final Context context, AttributeSet attrs) { if(name.equalsIgnoreCase(com.android.internal.view.menu.IconMenuItemView)-) { final View view = getLayoutInflater().createView(name, null, attrs); // Apply custom style after standard one gets applied new Handler().post(new Runnable() { public void run() { TextView text = (TextView) view; text.setTextAppearance(context, R.style.your_text_style); } }); return view; } return null; } }); On 20 мар, 17:25, Kamil kmichal...@gmail.com wrote: Hi, Is there any way to change menu typeface to bold?- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Application Sold to 100,000 Users
Hi Guys, I'd like to know if any one of you (Individual Developer) have crossed this limit to sell android application to 100,000 users? If so how long it took to cross this limit . I plan to put my application in the market soon for all countries. Kind regards, varinag -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] using the keytool for getting google-maps-API-key returns unrecognized option error
Sigh. Everybody here is confused, including Mark and the documentation. The -list argument to keytool *does not take the -keypass argument.* * * It makes absolutely no sense whatsoever for it to take it. It does not provide you with any information about the private key, and thus has no need whatsoever for the key password. If you type 'keytool', with no arguments, it explains what arguments it takes. Here's what it says for -list: -list[-v | -rfc] [-protected] [-alias alias] [-keystore keystore] [-storepass storepass] [-storetype storetype] [-providername name] [-providerclass provider_class_name [-providerarg arg]] ... [-providerpath pathlist] Note -- no -storepass parameter. It is not legal. It happens that the Sun implementation does not reject it if you give it this unwanted, unneeded argument. But that does *not* make it correct to supply it. I would report the documentation bug, if I knew where to do so. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Application Sold to 100,000 Users
I've had over 1.5 million sold so far... of course the price is an unbeatable free. -John Coryat Radar Now! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Application Sold to 100,000 Users
On Sun, Mar 20, 2011 at 10:18 PM, varinag gold varinagg...@gmail.comwrote: I'd like to know if any one of you (Individual Developer) have crossed this limit to sell android application to 100,000 users? If so how long it took to cross this limit . What difference does it make? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] using the keytool for getting google-maps-API-key returns unrecognized option error
As a side comment: I am not the slightest bit surprised that everyone is confused. I don't know why cryptography tools and APIs and documentation have to be so incredibly cryptic. Clearly the fact that *everyone *is confused should suggest that the problem does not lie with the confused users. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: AppWidget Stopped !!!
Dear Nguyen, Sorry for my bad english but as i understand you mean onRecieve() not receive broadcast message from system ? Normally, onRecieve() can receive broadcast message from system. It's no problem. But what I'm saying is that system kill my widget when system is special condition (for example, memory-leak problem). In other words, when system has memory-leak problem, system will kill my widget. If my widget has died from system, it can NOT receive broadcast message any more. My digital clock sometomes freeze for this reason. - [ more Informations ] http://developer.android.com/reference/android/content/BroadcastReceiver.html * Receiver Lifecycle Process Lifecycle A BroadcastReceiver object is only valid for the duration of the call to onReceive(Context, Intent). Once your code returns from this function, the system considers the object to be finished and no longer active. A process that is currently executing a BroadcastReceiver (that is, currently running the code in its onReceive(Context, Intent) method) is considered to be a foreground process and will be kept running by the system except under cases of extreme memory pressure. Best Regards, hardrock -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Application Sold to 100,000 Users
How long it took you to reach 1.5 million users? I am looking data for applications with some price tag such as 1.00 USD or 0.99 USD. with a market access all over the world (provided selling/purchasing is permitted in those countries). On Mar 21, 11:26 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I've had over 1.5 million sold so far... of course the price is an unbeatable free. -John Coryat Radar Now! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android Application Sold to 100,000 Users
On Sun, Mar 20, 2011 at 10:43 PM, varinag gold varinagg...@gmail.comwrote: I am looking data for applications with some price tag such as 1.00 USD or 0.99 USD. with a market access all over the world (provided selling/purchasing is permitted in those countries). You realize this is going to vary wildly between different apps and will give you absolutely no indication how your own app will perform ... right? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Application Sold to 100,000 Users
What difference does it make? Individual Developer may not have that much resources as a company have. not only for marketing but also a work done by individual and a Team might result in a concrete application. I guess...so On Mar 21, 11:37 am, TreKing treking...@gmail.com wrote: On Sun, Mar 20, 2011 at 10:18 PM, varinag gold varinagg...@gmail.comwrote: I'd like to know if any one of you (Individual Developer) have crossed this limit to sell android application to 100,000 users? If so how long it took to cross this limit . What difference does it make? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Application Sold to 100,000 Users
You realize this is going to vary wildly between different apps and will give you absolutely no indication how your own app will perform ... right? I agree with it but I want to see general trend of Android Market and users for priced applications. On Mar 21, 11:48 am, TreKing treking...@gmail.com wrote: On Sun, Mar 20, 2011 at 10:43 PM, varinag gold varinagg...@gmail.comwrote: I am looking data for applications with some price tag such as 1.00 USD or 0.99 USD. with a market access all over the world (provided selling/purchasing is permitted in those countries). You realize this is going to vary wildly between different apps and will give you absolutely no indication how your own app will perform ... right? - 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] json data to array list
Hi, I have looked everywhere and feel like I am going in circles at this point what I am trying to do seems simple enough.. I a, trying to take json data parsed from my mysql server and send the info to an array list in android. I can return the json strings with no problem, eg. json_data.getString(username) gives me a username in string format, but how do I put them into the a simple arraylist for example how can I plug this into.. setListAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_1, mStrings)); getListView().setTextFilterEnabled(true); } private String[] mStrings = { Abbaye de Belloc, Abbaye du Mont des Cats}; please help.. thanks, Albert -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help using custom Preference types - for pity or money
My new wallpaper is 99.9% finished. One thing I can't get to work, is using a third party color selector widget. This last 0.1% has taken over a week. I need help, and am prepared to pay for it if neccesary. It is that or go crazy. I have modified the standard cube demo to call an additional ColorPreference for testing. So all I am trying to do for testing is shoehorn a color selection preference into the standard cube demo. I have tried with two different color selector preferences downloaded from GitHub. My cube2settings.xml looks as follows: PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/ android android:title=@string/cube2_settings android:key=cube2wallpaper_settings ListPreference android:key=cube2_shape android:title=@string/cube2_settings_title android:summary=@string/cube2_settings_summary android:entries=@array/cube2_shapenames android:entryValues=@array/cube2_shapeprefix / ListPreference android:key=mechanism_type android:title=@string/mechanism_title android:summary=@string/mechanism_summary android:entries=@array/mechanism_names android:entryValues=@array/mechanism_types / !-- com.example.android.livecubes.cube2.ColorPreference -- !-- android:key=favoriteColor -- !-- android:defaultValue=0xFFA4C639 -- !-- android:title=Your Favorite Color -- !-- android:summary=Blue. No yel- Agh! -- !-- / -- com.example.android.livecubes.cube2.ColorPickerPreference android:key=rotorcolour android:title=some title android:summary=@string/color1_summary android:defaultValue=#FF alphaSlider=false / /PreferenceScreen The first listpreference is from the cube demo; the second is a test one I put in. The third ColorPreference is commented out. It calls the first color picker I tried. If that is included, the system throws an error when I press settings. The fourth preference uses a different ColorPickerPreference class which I tried instead. This one allows the main preference screen to be shown, but I get a Thread [3 main] (Suspended (exception InflateException)) when I select this preference to modify. Without either of these preferences, it works as expected. Apart from copy and pasting the new color selector classes into my project and changing the package names, and the change to cube2settings.xml above, it is the standard cube demo, with the standard Manifest, cube2settings.java etc. This is almost the last thing I have to do to get this out the door. Its driving me crazy. I am missing something very simple. If somebody can suggest what this is, I would be extremely grateful. If not, I am making some obvious, simple mistake - I didn't write any of the code, I just tried to glue two simple demo programs together for testing. For somebody who knows Preferences, it is probably one minute to one hour to find and fix my mistake, and I am desperate enough to pay for this assistance. I can email you the cube test project and you fix my simple mistake. If you have a profile on this group, I am willing to pay some or all upfront. Please email privately. Peter Webb -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: AppWidget Stopped !!!
Dear Mark, I appreciate your advice. Anyway, as you mentioned, I fell into the trap of trying to have an endless service though it's bad design. I agree it's better using AlarmManager than receiver w/ ACTION_TIME_TICK. However, another problem is ACTION_TIME_CHANGED or ACTION_TIMEZONE_CHANGED. If receiver has died from system, we also can NOT receive above broadcast messages. Best Regards, hardrock -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Canvas frame rate very choppy in Live Wallpaper
Call canvas.translate(-x), draw, then call canvas.translate(x) You are moving the location on the canvas underneath where you draw, after you have drawn whatever you need to move the canvas back. On Mar 21, 8:47 am, Jeffrey jeffisagen...@gmail.com wrote: Is there a way around having to call canvas.drawbitmap() every time? And if I call canvas.translate() after drawing the image doesn't move, it instead moves everything that would draw *after* the call to canvas.translate(). Thank you for your help so far, and I'm hoping you have just a little bit left in you :) On Mar 20, 9:12 am, Riyad Kalla rka...@gmail.com wrote: Jeffrey, To what Peter said, mobile devices are very fill-rate-limited (at least these current gen of phones) so depending on how you are repainting that image over and over and over again to the Canvas, that could explain the speed issue. If you tried a tiny little 16x16 icon and it went much faster with the same code, then I think you've found your culprit. Regardless, Peter's approach sounds like the right way; upload image data to the GPU one, then just move your view of it around in a circle, panning across the image. On Mar 19, 3:07 pm, Jeffrey jeffisagen...@gmail.com wrote: I'm trying to make a simple (or so I thought) live wallpaper that takes an image and moves it slowly in a circular motion, to make the picture seem less static and more like looking out a window. I took the live wallpaper tutorial from the SDK and stripped it down to the bare bones so I could add to it. But the issue is that no matter what size the image I'm moving, or what format (drawable or bitmap), it is only getting about 3 fps. I don't know what to do to make this run faster, I have very limited programming knowledge so I don't know if I'm missing something stupid. Also, this is the code I'm using to calculate the circular movement: int NewX = (int) (OffsetX + Math.sin(Dist)*19); int NewY = (int) (OffsetY + Math.cos(Dist)*19); where Dist is the speed it's moving and 19 is the radius of the circle. Is there an easier way? I looked into Tween animation but I don't know how I would implement my circle code into it.- 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] Unlocked Android Phones
Thanks a lot... On Mon, Mar 21, 2011 at 2:08 AM, Kostya Vasilyev kmans...@gmail.com wrote: To add two more cents: If you plan on installing your own Android builds on this device, you should also consider two more issues: the boot loader and the drivers. Some phones come with locked boot loaders that only work with official builds digitally signed by the manufacturer. Some of those phones get hacked, but that is likely a violation of copyright laws. Other phones have bootloaders that don't have this protection. The issue of drivers is that Android (just like any OS) needs hardware drivers to function. The Android open source repository includes some drivers, but does not cover all possible hardware variations that occur in the real world. This is reflected in enthusiast builds of new Android versions where you often see a list of unsupported features (the phone boots, but there is no GPS and no sound, for example). -- Kostya 20.03.2011 23:28, Dalvinder Singh пишет: Thanks a lot... On Sun, Mar 20, 2011 at 12:04 PM, Kristopher Micinski krismicin...@gmail.com wrote: Depends on the phone. For example, if you go to the Motorola website, they will suggest you go with your carrier. However, you can also buy the phone itself (at a higher price?). (Or at least, that's what I got out of going to there earlier this morning.) If you're looking for a developer phone, however, buying a ``brand new'' phone might be really expensive. Personally I got a g1 and put 2.2 on it. Also look around for so called ``pay as you go'' android phones. Although at the end of the day getting a nice phone with 2.3 on it might be hard to find cheap. (But still, be sure to check ebay / secondhand first!) Kris On Sun, Mar 20, 2011 at 2:20 AM, Dalvin singh.dal...@gmail.com wrote: Hi All I am looking for an unlocked Android phone in India on which I can install custom Android builds. My questions is: Are android phones sell by manufacturers like Samsung galaxy and HTC unlocked or not. Thanks Dalvin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en