[android-developers] GPS with Map overlay
Hi, I have got the following code but my application crash. Can anyone tell me what is wrong? Thanks! public class GPS extends MapActivity{ private MapController mapController; private MapView mapView; private LocationManager locationManager; GeoPoint p; int lat,lng; class MapOverlay extends com.google.android.maps.Overlay { @Override public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); //---translate the GeoPoint to screen pixels--- Point screenPts = new Point(); mapView.getProjection().toPixels(p, screenPts); //---add the marker--- Bitmap bmp = BitmapFactory.decodeResource( getResources(), R.drawable.pin); canvas.drawBitmap(bmp, screenPts.x, screenPts.y-50, null); return true; } } /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.gps); // create a map view RelativeLayout linearLayout = (RelativeLayout) findViewById(R.id.mainlayout); mapView = (MapView) findViewById(R.id.mapview); mapView.setBuiltInZoomControls(true); mapView.setStreetView(true); mapController = mapView.getController(); mapController.setZoom(14); // Zoon 1 is world view locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, new GeoUpdateHandler()); //---Add a location marker--- MapOverlay mapOverlay = new MapOverlay(); ListOverlay listOfOverlays = mapView.getOverlays(); listOfOverlays.clear(); listOfOverlays.add(mapOverlay); mapView.invalidate(); } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } public class GeoUpdateHandler implements LocationListener { @Override public void onLocationChanged(Location location) { lat = (int) (location.getLatitude() * 1E6); int lng = (int) (location.getLongitude() * 1E6); GeoPoint point = new GeoPoint(lat, lng); mapController.animateTo(point); // mapController.setCenter(point); } @Override public void onProviderDisabled(String provider) { } @Override public void onProviderEnabled(String provider) { } @Override public void onStatusChanged(String provider, int status, Bundle extras) { } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: receiving a vCard via Bluetooth
Any views/inputs on this? Regards, Manjunath On Feb 8, 10:59 am, Manju manjunath@gmail.com wrote: Hi, On froyo when we receive a same VCard multiple times via bluetooth only one VCard was created and same was getting updated with the latest data, but on gingebread we see a different behaviour. When the same VCard is sent multiple times multiple VCards are created, is this the expected behaviour on GingerBread? Regards, Manjunath -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Programmatically Update Flash Setting (or any Camera.Parameters)
I found the solution: /** Note: _flashButton and _poladroidCamera are decleared outside the scope for this method in the same Activity class. **/ /** * Set's the flash icon's drawable and updates the camera instance's settings to reflect the new flash state. * NOTE This method is called on an ImageButton click. * * @param drawableId * @param flashMode */ private void setFlashIcon(int drawableId, String flashMode) { _flashButton.setBackgroundDrawable(getResources().getDrawable(drawableId)); _poladroidCamera.setCurrentFlashMode(flashMode); _poladroidCamera.surfaceChanged(null, 0, 0,0); // this is the magic sauce } Let me know if you have any questions. On Feb 10, 3:00 pm, Joe McCann joseph.is...@gmail.com wrote: Kevin, You are spot on and I'm yet to find the right/most efficient solution. I really don't want to have to do some silly hack as I would think there's a way (maybe with threads?) that is the most efficient approach. joe On Feb 10, 2:15 pm, Kevin Duffey andjar...@gmail.com wrote: He's saying that calling that after the preview has been set up.. doesn't seem to immediately take affect. You either have to recreate the surface to change camera parameters, or use a separate activity to pause the current camera preview activity, then when that activity closes, it causes a onSurfaceChanged() call which then picks up the change. I am guessing the OP wants to do something like the camera app does (at least on my original droid) where you can flip some switches/buttons while the preview is running and they affect how the camera works without having to recreate the preview surfaceview each time a change occurs. If you can turn flash on/off, zoom, auto focus on/off, etc with immediate changes that when the picture is taken, are applied. On Thu, Feb 10, 2011 at 11:42 AM, Stephen Lebed srle...@gmail.com wrote: Unless I dont understand the question correctly, Camera.setParameters() should do what you need. Hope this helps. Stephen Lebed Developer http://apps.mechnology.com On Feb 10, 9:28 am, Joe McCann joseph.is...@gmail.com wrote: I'm trying to avoid having to rewrite the Android source for the native camera app (as it is a cluster***k of code), but am curious as to the proper, most efficient away of being able to update the Camera Parameters AFTER the SurfaceView of the Camera has been created and opened. For example, if you have a button that toggles the setting of On, Off, or Auto for the Flash, this initial parameter value is set when the Camera is initialized (let's say Auto by default, if, of course, the device supports it). If you want to switch it to Off, WHILE the current view is the instance of the Camera/SurfaceView, you press the button and it sets the new parameter to the camera to OFF; however, the CURRENT instance of the camera does not update it's camera settings, meaning if you take the picture the Auto flash setting is still enabled. Now, if you say launch a new Activity, like a Preferences screen, and then go back to the Camera view, the camera now has the OFF setting. This clearly has to do with the surfaceChanged() method as it is grabbing the NEW camera parameters and updating the camera settings to reflect that. In a nutshell, I'm wondering if there is a way inside to update the CURRENT instance of the Camera and what a preferred approach would be. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: javascript graphing
can you giva me a simple project or tutorial about it?? because i want to learnn it.. thx.. On Fri, Feb 11, 2011 at 3:39 PM, Vinay Julme vinayju...@gmail.com wrote: No sorry. It was basic javascripting, like validation and simple AJAX On Fri, Feb 11, 2011 at 11:00 AM, Jags jag...@gmail.com wrote: thanks vinay, did you do java script graphing ? I need graphs drawn by javascript into the page in the browser On Feb 10, 7:58 pm, Vinay Julme vinayju...@gmail.com wrote: I don't know about Android Javscript lib. But I have made php sites and used javascript on it... And it worked fine on android phone web browser. On Thu, Feb 10, 2011 at 7:49 PM, Jags jag...@gmail.com wrote: hi all, i need to render a thin client application in android browser. there, i need to draw a line graph. Is there any java script library sorts which will work for android browsers ? any examples ? jags -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Mobile Developer (Android,iphone,Blackberry,J2ME,brew,symbian) mobile : 085722945257 email : kevin.r.octav...@gmail.com arsenal_a...@yahoo.co.id blog : kevinroctavian.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
[android-developers] Re: Emulator crashing with System Tools rev 9
just out of curiosity, are you on a Mac? I found the tools to be much less stable on OSX than on Linux (don't know about Windows), although that has gotten a little better (e.g. the adb server used to crash all the time on OSX, and while the crashes are not entirely gone, it has gotten a lot better with the last few SDK releases) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ExpandableListViews, SimpleCursorTreeAdapters and my sanity
Hi everyone I've been stuck on this issue for a couple of days now and I think I'm close to murder, so any help would be greatly appreciated. First just a little context. I have a db with a Budget and Category tables. The fields are _id ,CategoryID, Item and Amount. The amount is stored as a double. I've written my own db adapters and they are working no problem. So with lots of reading and searching I finally get my ExpandablListView to populate using my slightly modified SimpleCursorTreeAdapter. My custom adapter just changes the GetChildrenCursor to return the children associated with each category. Now here's the problem: The amount value is shown in the list and I would like to format how the value is displayed into a local currency. The formatting isn't the issue. The issue is that I can use a ViewBinder but only if I use API level 5 and up. But I want to use API level 4 and up. So how do I change the way the data is displayed in my list items, without having to use a viewbinder... or at least, working withing the API 4 framework. ANY advice or ideas would be appreciated! Kind 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
Re: [android-developers] Re: about the market 15 minutes refund window
Hi, On Tue, Dec 21, 2010 at 4:32 PM, Brill Pappin br...@pappin.ca wrote: Actually that kind of fits with the processor industry and banking in general. Typically transactions are batch processed daily. This is similar to a retail setting were the registers are closed out daily. It's a legacy of when we used paper for all this stuff, but the banks still run the same way, so everyone else has to as well. What I'm saying, is that its makes complete sense to me, having worked with this stuff before, that it doesn't look like anything is different... it's because its actually not different on the Checkout side and it's on purpose. Any agreement to automatically refund the user is a Market thing, not a Checkout thing but your viewing your transactions in Checkout. I hope that reduces the confusion :) Sorry I missed your reply. It does make sense when you think of it in the context of batch processing. It's just hard to imagine that Google uses a cronjob that fires every morning at 2 am and goes through a bunch of CSV files downloaded over FTP :) Anyway, they must have changed something, because orders are now processed after about 4 hours. Someone has been playing with cron :) It is better this way, just wish I could figure out the new payment schedule... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Camera preview
Hi dude, I am developing an application using camera preview I have done with the help of below URL http://marakana.com/forums/android/examples/39.html; but the image is not storing in sd card can anyone help please -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get call history
Hi Everyone, Is there any way to display call history in android ? thankyou -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Network I/O in background thread
Thanks a lot for detailed answer! When alarm manager deliver intent to my app, at this time, phone gets wake up and i am thinking to make service call startforeground() and start processing in another thread. Will this behaviour causes phone light on? I am just looking to do some background processing(some network I/O) and only in some scenario i may post notification which user may choose to see by clicking that notification.But it is not really required to make phone light On. -Amit On Feb 7, 1:42 pm, Kostya Vasilyev kmans...@gmail.com wrote: 07.02.2011 9:53, Amit пишет: As Kostya wrote: I should be considering that service may be killed in extreme condition if OS think. And not only under extreme conditions. Recent versions of Android are more proactive about removing unneeded background services, AFAIK that's where you see No longer want service name in the log cat. You can tell the framework that your service is doing something important and should not be killed by calling startForeground (and stopForeground when done). Those are Android 2.0 API methods. This is exalained here: http://android-developers.blogspot.com/2010/02/service-api-changes-st... Another option is to make it so that your service can handle being killed and resume what it was doing when restarted. -- Kostya -- Kostya Vasilyev -- WiFi Manager + pretty widget --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
[android-developers] USING ECRYPTFS IN ANDROID
Hi, We are mounting sdcard via ecryptfs programmitically.But, mount is not successful. We have NOT included eryptfs-utils( utils source is found in internet, but utils are for Desktop Linux). Is there a way to use ecryptfs without ecrypt-utils? If yes, it would be great to know how. Thanks Regards, Anup K. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ExpandableListViews, SimpleCursorTreeAdapters and my sanity
Richard, Adapter view binders are only a convenience feature, and you can always skip to the real stuff. SimpleCursorTreeAdapter has this private method where mViewBinder is used: private void bindView(View view, Context context, Cursor cursor, int[] from, int[] to) { ViewBinder binder = mViewBinder; for (int i = 0; i to.length; i++) { if (binder != null) { bound = binder.setViewValue(v, cursor, from[i]); } ... default case for when there is no binder ... } } This method is called from public, API level 1, override-able SDK methods: @Override protected void bindChildView(View view, Context context, Cursor cursor, boolean isLastChild) { bindView(view, context, cursor, mChildFrom, mChildTo); } @Override protected void bindGroupView(View view, Context context, Cursor cursor, boolean isExpanded) { bindView(view, context, cursor, mGroupFrom, mGroupTo); } So - override bindChildView / bindGroupView to format and set the values any way you like. You can even make your own MyBinder class and follow the general structure as above. Also, if you're not using automatic view binding, your might as well derive your adapter from ResourceCursorTreeAdapter. In general, my impression of Simple*Adapter classes is that they are like bicycles for small children (those with little wheels on the sides) - not a bad way to start, but you outgrow them pretty quickly. -- Kostya 11.02.2011 11:41, Richard Marsh пишет: Hi everyone I've been stuck on this issue for a couple of days now and I think I'm close to murder, so any help would be greatly appreciated. First just a little context. I have a db with a Budget and Category tables. The fields are _id ,CategoryID, Item and Amount. The amount is stored as a double. I've written my own db adapters and they are working no problem. So with lots of reading and searching I finally get my ExpandablListView to populate using my slightly modified SimpleCursorTreeAdapter. My custom adapter just changes the GetChildrenCursor to return the children associated with each category. Now here's the problem: The amount value is shown in the list and I would like to format how the value is displayed into a local currency. The formatting isn't the issue. The issue is that I can use a ViewBinder but only if I use API level 5 and up. But I want to use API level 4 and up. So how do I change the way the data is displayed in my list items, without having to use a viewbinder... or at least, working withing the API 4 framework. ANY advice or ideas would be appreciated! Kind 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 -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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
[android-developers] Re: Checkout transitioning to monthly payouts?
Apparently there was an email around the 3rd of December. However, a lot of devs (including me) don't remember getting it; quite possibly it went into spam, official Google emails seem to fairly often. It was also discussed herehttps://groups.google.com/d/topic/android-discuss/AYsTjA1Vv00/discussion at about the same time. But I agree, it's not been handled well, and better notification would have been really nice. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem in integration of Facebook with android app
I use the Facebook Android Sdk from Github: https://github.com/facebook/facebook-android-sdk Not sure where you found FBConnect? Anyway, a word of warning from me: the SDK is very buggy. At least 13% of your users (probably more) will be unable to login -- see the following thread: https://github.com/facebook/facebook-android-sdk/issues#issue/167/comment/719695 /Michael. On Feb 11, 7:32 am, Laxmi Verma laxmiverma.andr...@gmail.com wrote: Hi All, I want to integrate the facebook api in my android application. Can anyone help me on this? I am not sure whether to use FBConnect or facebook - api provided on github. Which one would be better? Please provide some sample code for login activity for facebook integration. Thanks !! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Network I/O in background thread
Amit, - With an alarm, the phone is only guaranteed to be awake for the duration of your receiver's onReceive callback. Anything past that, you need a WakeLock. - startForegroud has nothing to do with wake/sleep modes, it has to do with how important your service is to the user (and hence, how Android treats it). - The screen light is different from the CPU being awake. If you don't need the screen to light up, use a PARTIAL_WAKE_LOCK: http://developer.android.com/reference/android/os/PowerManager.html -- Kostya 11.02.2011 12:15, Amit пишет: Thanks a lot for detailed answer! When alarm manager deliver intent to my app, at this time, phone gets wake up and i am thinking to make service call startforeground() and start processing in another thread. Will this behaviour causes phone light on? I am just looking to do some background processing(some network I/O) and only in some scenario i may post notification which user may choose to see by clicking that notification.But it is not really required to make phone light On. -Amit On Feb 7, 1:42 pm, Kostya Vasilyevkmans...@gmail.com wrote: 07.02.2011 9:53, Amit пишет: As Kostya wrote: I should be considering that service may be killed in extreme condition if OS think. And not only under extreme conditions. Recent versions of Android are more proactive about removing unneeded background services, AFAIK that's where you see No longer wantservice name in the log cat. You can tell the framework that your service is doing something important and should not be killed by calling startForeground (and stopForeground when done). Those are Android 2.0 API methods. This is exalained here: http://android-developers.blogspot.com/2010/02/service-api-changes-st... Another option is to make it so that your service can handle being killed and resume what it was doing when restarted. -- Kostya -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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] NFC Concerns
at the moment nfc chips on the nexus 1 is only enabled to read a link and display it for you to act upon (much like a qr code). I'm sure this will expand to payments down the line but nobody outside of japan is ready for that and Google knows it a On 9 February 2011 23:00, Leon Moreyn-Android Development lmor...@earthcam.com wrote: I have my reservations about the NFC features on new phones. 1.) Does it read any NFC? Like say my Amex cards RDIF tag? 2.) The writer for the NFC chip in the phone does it write whatever I tell it to write? 3.) What is the security on this technology? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ExpandableListViews, SimpleCursorTreeAdapters and my sanity
Kostya, Thank you SO much for taking the time to reply. I guess the next rookie question would be: Do I get the source code for the SimpleCursorTreeAdapter and modify it to build my own I was playing around with that idea and when I tried to overwrite the method below, my custom adapter didn't recognize the variables mChildFrom and mChildTo. I assumed that with apis after level 4 had changed the parent classes that define and assign those arrays. @Override protected void bindChildView(View view, Context context, Cursor cursor, boolean isLastChild) { bindView(view, context, cursor, mChildFrom, mChildTo); } I'm ok with the idea of building my own adapter from the base adapters. I'm just not sure how to access the source code, what is derived from the parent classes etc. I'm sorry if these questions seems stupid, but I've only been at this for about a month. Alos, if I look at the documentation here http://developer.android.com/reference/android/widget/SimpleCursorTreeAdapter.htmland filter it on API level 4, I don't see a bindView method. Is the method inherited? One last question, to be clear on your suggestion, is that I override the bindChildView and bindGroupView methods? Again, thank you for replying. On Fri, Feb 11, 2011 at 11:26 AM, Kostya Vasilyev kmans...@gmail.comwrote: Richard, Adapter view binders are only a convenience feature, and you can always skip to the real stuff. SimpleCursorTreeAdapter has this private method where mViewBinder is used: private void bindView(View view, Context context, Cursor cursor, int[] from, int[] to) { ViewBinder binder = mViewBinder; for (int i = 0; i to.length; i++) { if (binder != null) { bound = binder.setViewValue(v, cursor, from[i]); } ... default case for when there is no binder ... } } This method is called from public, API level 1, override-able SDK methods: @Override protected void bindChildView(View view, Context context, Cursor cursor, boolean isLastChild) { bindView(view, context, cursor, mChildFrom, mChildTo); } @Override protected void bindGroupView(View view, Context context, Cursor cursor, boolean isExpanded) { bindView(view, context, cursor, mGroupFrom, mGroupTo); } So - override bindChildView / bindGroupView to format and set the values any way you like. You can even make your own MyBinder class and follow the general structure as above. Also, if you're not using automatic view binding, your might as well derive your adapter from ResourceCursorTreeAdapter. In general, my impression of Simple*Adapter classes is that they are like bicycles for small children (those with little wheels on the sides) - not a bad way to start, but you outgrow them pretty quickly. -- Kostya 11.02.2011 11:41, Richard Marsh пишет: Hi everyone I've been stuck on this issue for a couple of days now and I think I'm close to murder, so any help would be greatly appreciated. First just a little context. I have a db with a Budget and Category tables. The fields are _id ,CategoryID, Item and Amount. The amount is stored as a double. I've written my own db adapters and they are working no problem. So with lots of reading and searching I finally get my ExpandablListView to populate using my slightly modified SimpleCursorTreeAdapter. My custom adapter just changes the GetChildrenCursor to return the children associated with each category. Now here's the problem: The amount value is shown in the list and I would like to format how the value is displayed into a local currency. The formatting isn't the issue. The issue is that I can use a ViewBinder but only if I use API level 5 and up. But I want to use API level 4 and up. So how do I change the way the data is displayed in my list items, without having to use a viewbinder... or at least, working withing the API 4 framework. ANY advice or ideas would be appreciated! Kind 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 -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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] Re: Network I/O in background thread
Thanks and Appriciate prompt response! Is there anything similar to start/stopForegroud() in platform 1.6.. I have constarint to move to 2.0. so far help is greatly appriciated! Thanks, -Amit On Feb 11, 2:32 pm, Kostya Vasilyev kmans...@gmail.com wrote: Amit, - With an alarm, the phone is only guaranteed to be awake for the duration of your receiver's onReceive callback. Anything past that, you need a WakeLock. - startForegroud has nothing to do with wake/sleep modes, it has to do with how important your service is to the user (and hence, how Android treats it). - The screen light is different from the CPU being awake. If you don't need the screen to light up, use a PARTIAL_WAKE_LOCK: http://developer.android.com/reference/android/os/PowerManager.html -- Kostya 11.02.2011 12:15, Amit пишет: Thanks a lot for detailed answer! When alarm manager deliver intent to my app, at this time, phone gets wake up and i am thinking to make service call startforeground() and start processing in another thread. Will this behaviour causes phone light on? I am just looking to do some background processing(some network I/O) and only in some scenario i may post notification which user may choose to see by clicking that notification.But it is not really required to make phone light On. -Amit On Feb 7, 1:42 pm, Kostya Vasilyevkmans...@gmail.com wrote: 07.02.2011 9:53, Amit пишет: As Kostya wrote: I should be considering that service may be killed in extreme condition if OS think. And not only under extreme conditions. Recent versions of Android are more proactive about removing unneeded background services, AFAIK that's where you see No longer wantservice name in the log cat. You can tell the framework that your service is doing something important and should not be killed by calling startForeground (and stopForeground when done). Those are Android 2.0 API methods. This is exalained here: http://android-developers.blogspot.com/2010/02/service-api-changes-st... Another option is to make it so that your service can handle being killed and resume what it was doing when restarted. -- Kostya -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Network I/O in background thread
I got answer on documentation! anyhow thanks for your help! -Amit On Feb 11, 2:47 pm, Amit agrawalamit2...@gmail.com wrote: Thanks and Appriciate prompt response! Is there anything similar to start/stopForegroud() in platform 1.6.. I have constarint to move to 2.0. so far help is greatly appriciated! Thanks, -Amit On Feb 11, 2:32 pm, Kostya Vasilyev kmans...@gmail.com wrote: Amit, - With an alarm, the phone is only guaranteed to be awake for the duration of your receiver's onReceive callback. Anything past that, you need a WakeLock. - startForegroud has nothing to do with wake/sleep modes, it has to do with how important your service is to the user (and hence, how Android treats it). - The screen light is different from the CPU being awake. If you don't need the screen to light up, use a PARTIAL_WAKE_LOCK: http://developer.android.com/reference/android/os/PowerManager.html -- Kostya 11.02.2011 12:15, Amit пишет: Thanks a lot for detailed answer! When alarm manager deliver intent to my app, at this time, phone gets wake up and i am thinking to make service call startforeground() and start processing in another thread. Will this behaviour causes phone light on? I am just looking to do some background processing(some network I/O) and only in some scenario i may post notification which user may choose to see by clicking that notification.But it is not really required to make phone light On. -Amit On Feb 7, 1:42 pm, Kostya Vasilyevkmans...@gmail.com wrote: 07.02.2011 9:53, Amit пишет: As Kostya wrote: I should be considering that service may be killed in extreme condition if OS think. And not only under extreme conditions. Recent versions of Android are more proactive about removing unneeded background services, AFAIK that's where you see No longer wantservice name in the log cat. You can tell the framework that your service is doing something important and should not be killed by calling startForeground (and stopForeground when done). Those are Android 2.0 API methods. This is exalained here: http://android-developers.blogspot.com/2010/02/service-api-changes-st... Another option is to make it so that your service can handle being killed and resume what it was doing when restarted. -- Kostya -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com-Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] cookie value is null
Hi friends, to get the cookies ,i have given the below code snippet, CookieSyncManager csm = CookieSyncManager.createInstance(Login.this); csm.startSync(); CookieManager cm= CookieManager.getInstance(); CookieManager cookieManager = CookieManager.getInstance(); cookieManager.setAcceptCookie(true); String cukies=cm.getCookie(http://cms.beemedia.com/;); System.out.println(cookiee +cukies); cm.setAcceptCookie(true); boolean b_cookie=cm.hasCookies(); System.out.println(booolean +b_cookie); wen i run it on emulator it will show the cookie,but wen i run on device,it shows null,and i have given INTERNET PERMISSION,still not working. Any help greatly appreciated. -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Licensing
Hello, I do not understand the licence-situation in Android. I have found that some components of Android have its own licenses: Android itself: Apache SQlite: Public Domain Bionic: BSD Webkit: BSD+LGPL SDL: LGPL Linux-Kernel GPL My 2 questions: Why is it called that Android is complete licenced by Apache? Does the Android Open Source Project contain the Android Linux-Kernel tree or is it a seperate part? Greetz dudero -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: GPS with Map overlay
Whats the stack trace? On 11 Feb., 08:59, Poifull unique.poif...@gmail.com wrote: Hi, I have got the following code but my application crash. Can anyone tell me what is wrong? Thanks! public class GPS extends MapActivity{ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Do you know any open source game or media player on android phone?
Media Player open source project is NPR.It is pretty good for streaming. On Fri, Feb 11, 2011 at 9:44 AM, Kevin Duffey andjar...@gmail.com wrote: Replica Island? That's a pretty decent game that you can view the source of I believe. On Thu, Feb 10, 2011 at 8:07 PM, xlshe dianyuangua...@gmail.com wrote: Hi all, Do you know any open source game or media player applications on android phone? Would you please tell me some if you know? Thank you very much. Best regards, Longsheng Xia -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] youtube videos using google api client library
Hi All, Has anybody successfully used google api client youtube jar file? I am not getting playlist associated with specific user. Can anybody give me sample source as such? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Licensing
On 11 February 2011 11:42, Dudero sinfanh...@googlemail.com wrote: Why is it called that Android is complete licenced by Apache? Because it's released under Apache license: http://www.apache.org/licenses/LICENSE-2.0.html FYI: apache is NOT just a web server. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Added ListView in the CurrentListView
Hello. i wanna talk about customizing ListView. i have one problem about How to added ListView in the Current ListView the detail is : i have ListView and the option inside it. then if i chose one of them, then new ListView (call it with Listview2) came through. sorry for my english.. im really need some help. and Thanks for helping me :) Best Regards, AsnS -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Problem in integration of Facebook with android app
Hi Michael, Can you please provide some example code of this. Thanks !! On Fri, Feb 11, 2011 at 3:00 PM, michael michael.d.peder...@googlemail.comwrote: I use the Facebook Android Sdk from Github: https://github.com/facebook/facebook-android-sdk Not sure where you found FBConnect? Anyway, a word of warning from me: the SDK is very buggy. At least 13% of your users (probably more) will be unable to login -- see the following thread: https://github.com/facebook/facebook-android-sdk/issues#issue/167/comment/719695 /Michael. On Feb 11, 7:32 am, Laxmi Verma laxmiverma.andr...@gmail.com wrote: Hi All, I want to integrate the facebook api in my android application. Can anyone help me on this? I am not sure whether to use FBConnect or facebook - api provided on github. Which one would be better? Please provide some sample code for login activity for facebook integration. Thanks !! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem in integration of Facebook with android app
If you download the SDK, it includes a directory with sample applications (including code for logging in). Cheers, Michael On Feb 11, 12:07 pm, Laxmi Verma laxmiverma.andr...@gmail.com wrote: Hi Michael, Can you please provide some example code of this. Thanks !! On Fri, Feb 11, 2011 at 3:00 PM, michael michael.d.peder...@googlemail.comwrote: I use the Facebook Android Sdk from Github: https://github.com/facebook/facebook-android-sdk Not sure where you found FBConnect? Anyway, a word of warning from me: the SDK is very buggy. At least 13% of your users (probably more) will be unable to login -- see the following thread: https://github.com/facebook/facebook-android-sdk/issues#issue/167/com... /Michael. On Feb 11, 7:32 am, Laxmi Verma laxmiverma.andr...@gmail.com wrote: Hi All, I want to integrate the facebook api in my android application. Can anyone help me on this? I am not sure whether to use FBConnect or facebook - api provided on github. Which one would be better? Please provide some sample code for login activity for facebook integration. Thanks !! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to intercept when the application is brought to foregroud from background
If your intention is to call another activity in order to perform some work -- do you control that activity? Start it for result rather than simply starting it. That way you'll get a callback (with its result) when it finishes. I agree with Mark, you should not care about what activities outside of your control do. You should code as if they don't exist, and if there's some reason to consider the user logged out, it should not be based on what activity is current. Is there some use case you can think of that justifies taking special action just because the user, for example, opened their messaging app to reply to the message they just received? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] call Activity from the BroadcastReceiver.
On Fri, Feb 11, 2011 at 2:10 AM, crajesh crajesh2...@gmail.com wrote: May i know how to call Activity from the BroadcastReceiver. Typically, this is a bad idea, as users generally dislike activities popping up out of nowhere. Why do you want to do this? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SlidingDrawer to go full screen
Let your top level layout be a RelativeLayout or FrameLayout -- these each permit multiple views to be in the same position. Let the SlidingDrawer be a direct child of your top level layout. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Camera preview
That example has a flaw -- it hard-wires in /sdcard as the location of external storage. Use File.getExternalStorageDirectory() for that instead, or some other spot. Here is another sample project: https://github.com/commonsguy/cw-advandroid/tree/master/Camera/Picture This one is more complex, because it uses a front-facing camera on Android 2.3+, but otherwise it does the same basic things as the example you cited. On Fri, Feb 11, 2011 at 4:01 AM, Jayanthi jaia...@gmail.com wrote: Hi dude, I am developing an application using camera preview I have done with the help of below URL http://marakana.com/forums/android/examples/39.html; but the image is not storing in sd card can anyone help please -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to get call history
You can access the data via the CallLog content provider. Probably an ACTION_VIEW Intent on a relevant CallLog CONTENT_URI will bring up an activity for the log, but I haven't tried this. On Fri, Feb 11, 2011 at 4:03 AM, Amit Mangal forum.amit.man...@gmail.com wrote: Hi Everyone, Is there any way to display call history in android ? thankyou -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Wipe external storage not working
Hi, Has anyone tried this flag for wipeData()? I think WIPE_EXTERNAL_STORAGE flag doesn't work because after calling the function, it will reset the phone to factory settings leaving the previous data on the external storage device. I hope someone can confirm about this one. Check the documentation link below. http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#WIPE_EXTERNAL_STORAGE Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to intercept when the application is brought to foregroud from background
My two cents as an imagined user of this application: Do not log me out just because your activity was deactivated. If I'm using your application and want to respond to an incoming phone call, or another event (such as an SMS or a new email notification) - when done with that quick interruption, I want to come back to your application and continue with whatever I was doing. Requiring me to log in again, even though I was away for a short time, would seriously interrupt the flow of interacting with the phone. Rather, implement a scheme where sessions are time limited. This of course assumes that the application does not contain security-sensitive data, then it's different (but I don't see you saying it is). -- Kostya 11.02.2011 15:12, mah пишет: If your intention is to call another activity in order to perform some work -- do you control that activity? Start it for result rather than simply starting it. That way you'll get a callback (with its result) when it finishes. I agree with Mark, you should not care about what activities outside of your control do. You should code as if they don't exist, and if there's some reason to consider the user logged out, it should not be based on what activity is current. Is there some use case you can think of that justifies taking special action just because the user, for example, opened their messaging app to reply to the message they just received? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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
[android-developers] Re: Android Licensing
Hello Marcin, you are funny! I do not mean the web server ;-) - but Apache Software License, version 2.0 My question is, are the other licences replaced/reformed with the apache one - or have all of these their customized own license? Greetz dudero On 11 Feb., 11:42, Dudero sinfanh...@googlemail.com wrote: Hello, I do not understand the licence-situation in Android. I have found that some components of Android have its own licenses: Android itself: Apache SQlite: Public Domain Bionic: BSD Webkit: BSD+LGPL SDL: LGPL Linux-Kernel GPL My 2 questions: Why is it called that Android is complete licenced by Apache? Does the Android Open Source Project contain the Android Linux-Kernel tree or is it a seperate part? Greetz dudero -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ExpandableListViews, SimpleCursorTreeAdapters and my sanity
Richard, To keep it simple, I would recommend: 1. Override bindChildView and set your floating point value manually. You can get the value from the cursor, call findViewById() on the view that's passed it to get the TextView that should show the value, format the value as a string, and then call amountTextTiew.setText(formattedAmountValueString); 2. Call the base class bindChildView from your own to take care of all the other data items / views except the floating point one. 3. Pass from/to arrays to SimpleCursorTreeAdapter that have all data item / view IDs - except the floating point amount data item, which is handled by pt. 1. With this, you won't need to do too much work in your overrides, won't need to copy and modify any code from Android, won't need access to private data members of SimpleCursorTreeAdapter, and won't need to rely on ViewBinder that only appeared in API level 5: http://developer.android.com/reference/android/widget/SimpleCursorTreeAdapter.ViewBinder.html -- Kostya PS - I find it very useful to have Android framework source code in Eclipse. Instead of hunting through the source code repository, it lets me open source code by class name, by pressing Ctrl+Shift+T. 11.02.2011 12:38, Richard Marsh пишет: Kostya, Thank you SO much for taking the time to reply. I guess the next rookie question would be: Do I get the source code for the SimpleCursorTreeAdapter and modify it to build my own I was playing around with that idea and when I tried to overwrite the method below, my custom adapter didn't recognize the variables mChildFrom and mChildTo. I assumed that with apis after level 4 had changed the parent classes that define and assign those arrays. @Override protected void bindChildView(View view, Context context, Cursor cursor, boolean isLastChild) { bindView(view, context, cursor, mChildFrom, mChildTo); } I'm ok with the idea of building my own adapter from the base adapters. I'm just not sure how to access the source code, what is derived from the parent classes etc. I'm sorry if these questions seems stupid, but I've only been at this for about a month. Alos, if I look at the documentation here http://developer.android.com/reference/android/widget/SimpleCursorTreeAdapter.html and filter it on API level 4, I don't see a bindView method. Is the method inherited? One last question, to be clear on your suggestion, is that I override the bindChildView and bindGroupView methods? Again, thank you for replying. On Fri, Feb 11, 2011 at 11:26 AM, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: Richard, Adapter view binders are only a convenience feature, and you can always skip to the real stuff. SimpleCursorTreeAdapter has this private method where mViewBinder is used: private void bindView(View view, Context context, Cursor cursor, int[] from, int[] to) { ViewBinder binder = mViewBinder; for (int i = 0; i to.length; i++) { if (binder != null) { bound = binder.setViewValue(v, cursor, from[i]); } ... default case for when there is no binder ... } } This method is called from public, API level 1, override-able SDK methods: @Override protected void bindChildView(View view, Context context, Cursor cursor, boolean isLastChild) { bindView(view, context, cursor, mChildFrom, mChildTo); } @Override protected void bindGroupView(View view, Context context, Cursor cursor, boolean isExpanded) { bindView(view, context, cursor, mGroupFrom, mGroupTo); } So - override bindChildView / bindGroupView to format and set the values any way you like. You can even make your own MyBinder class and follow the general structure as above. Also, if you're not using automatic view binding, your might as well derive your adapter from ResourceCursorTreeAdapter. In general, my impression of Simple*Adapter classes is that they are like bicycles for small children (those with little wheels on the sides) - not a bad way to start, but you outgrow them pretty quickly. -- Kostya 11.02.2011 11:41, Richard Marsh пишет: Hi everyone I've been stuck on this issue for a couple of days now and I think I'm close to murder, so any help would be greatly appreciated. First just a little context. I have a db with a Budget and Category tables. The fields are _id ,CategoryID, Item and Amount. The amount is stored as a double. I've written my own db adapters and they are working no problem. So with lots of reading and searching I finally get my ExpandablListView to populate using my slightly modified SimpleCursorTreeAdapter. My custom adapter just changes the GetChildrenCursor to return the children associated with each category. Now here's the problem: The amount value is shown in the
Re: [android-developers] Re: Android Licensing
On Fri, Feb 11, 2011 at 7:33 AM, Dudero sinfanh...@googlemail.com wrote: My question is, are the other licences replaced/reformed with the apache one No. or have all of these their customized own license? No. They have the licenses you listed. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Not able to read arabic content coming as a response of post request.
I am trying to display the news in the arabic language, but while reading the data from inputstream it is corrupting. Corrupting in the sense it is not the data which i want. Anyone has solution? Any help will be appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android Licensing
I do not mean the web server ;-) - but Apache Software License, version 2.0 Good. Some people does not see the difference, so it's better to ensure we both talk about the same My question is, are the other licences replaced/reformed with the apache one - or have all of these their customized own license? Each component is licensed as you listed. Would be probably simplier if all of components would be licensed under the same conditions, but since these are from multiple vendors it was up to them to pick the license they thought fits their needs best. Since these licenses does not conflict, there's no problem at all. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ExpandableListViews, SimpleCursorTreeAdapters and my sanity
Kostya Brilliant! I'm going to get stuck in with this, this weekend and hopefully get it right. I did try something similar to what you mentioned, but I wasn't sure if i was on the right track and when it didn't work (most likely something I did wrong) moved on. I have a much better idea of what you mean now and what the gist should be. I honestly can't thank you enough for your advice. Hopefully I won't need to bother you again. Kind regards On Fri, Feb 11, 2011 at 2:40 PM, Kostya Vasilyev kmans...@gmail.com wrote: Richard, To keep it simple, I would recommend: 1. Override bindChildView and set your floating point value manually. You can get the value from the cursor, call findViewById() on the view that's passed it to get the TextView that should show the value, format the value as a string, and then call amountTextTiew.setText(formattedAmountValueString); 2. Call the base class bindChildView from your own to take care of all the other data items / views except the floating point one. 3. Pass from/to arrays to SimpleCursorTreeAdapter that have all data item / view IDs - except the floating point amount data item, which is handled by pt. 1. With this, you won't need to do too much work in your overrides, won't need to copy and modify any code from Android, won't need access to private data members of SimpleCursorTreeAdapter, and won't need to rely on ViewBinder that only appeared in API level 5: http://developer.android.com/reference/android/widget/SimpleCursorTreeAdapter.ViewBinder.html -- Kostya PS - I find it very useful to have Android framework source code in Eclipse. Instead of hunting through the source code repository, it lets me open source code by class name, by pressing Ctrl+Shift+T. 11.02.2011 12:38, Richard Marsh пишет: Kostya, Thank you SO much for taking the time to reply. I guess the next rookie question would be: Do I get the source code for the SimpleCursorTreeAdapter and modify it to build my own I was playing around with that idea and when I tried to overwrite the method below, my custom adapter didn't recognize the variables mChildFrom and mChildTo. I assumed that with apis after level 4 had changed the parent classes that define and assign those arrays. @Override protected void bindChildView(View view, Context context, Cursor cursor, boolean isLastChild) { bindView(view, context, cursor, mChildFrom, mChildTo); } I'm ok with the idea of building my own adapter from the base adapters. I'm just not sure how to access the source code, what is derived from the parent classes etc. I'm sorry if these questions seems stupid, but I've only been at this for about a month. Alos, if I look at the documentation here http://developer.android.com/reference/android/widget/SimpleCursorTreeAdapter.htmland filter it on API level 4, I don't see a bindView method. Is the method inherited? One last question, to be clear on your suggestion, is that I override the bindChildView and bindGroupView methods? Again, thank you for replying. On Fri, Feb 11, 2011 at 11:26 AM, Kostya Vasilyev kmans...@gmail.comwrote: Richard, Adapter view binders are only a convenience feature, and you can always skip to the real stuff. SimpleCursorTreeAdapter has this private method where mViewBinder is used: private void bindView(View view, Context context, Cursor cursor, int[] from, int[] to) { ViewBinder binder = mViewBinder; for (int i = 0; i to.length; i++) { if (binder != null) { bound = binder.setViewValue(v, cursor, from[i]); } ... default case for when there is no binder ... } } This method is called from public, API level 1, override-able SDK methods: @Override protected void bindChildView(View view, Context context, Cursor cursor, boolean isLastChild) { bindView(view, context, cursor, mChildFrom, mChildTo); } @Override protected void bindGroupView(View view, Context context, Cursor cursor, boolean isExpanded) { bindView(view, context, cursor, mGroupFrom, mGroupTo); } So - override bindChildView / bindGroupView to format and set the values any way you like. You can even make your own MyBinder class and follow the general structure as above. Also, if you're not using automatic view binding, your might as well derive your adapter from ResourceCursorTreeAdapter. In general, my impression of Simple*Adapter classes is that they are like bicycles for small children (those with little wheels on the sides) - not a bad way to start, but you outgrow them pretty quickly. -- Kostya 11.02.2011 11:41, Richard Marsh пишет: Hi everyone I've been stuck on this issue for a couple of days now and I think I'm close to murder, so any help would be greatly appreciated. First just a little context. I have a db with a Budget and Category tables. The fields are _id ,CategoryID, Item and Amount. The amount is stored as a double. I've written my own db adapters and they are working no problem. So with lots of reading
[android-developers] Re: Drag and drop in a web application?
Okay I found a solution which maps touch events to mouse events and seems to do the trick. In case anyone is interested, here is the link: http://ross.posterous.com/2008/08/19/iphone-touch-events-in-javascript/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ExpandableListViews, SimpleCursorTreeAdapters and my sanity
11.02.2011 16:28, Richard Marsh пишет: Kostya Brilliant! I'm going to get stuck in with this, this weekend and hopefully get it right. I did try something similar to what you mentioned, but I wasn't sure if i was on the right track and when it didn't work (most likely something I did wrong) moved on. I have a much better idea of what you mean now and what the gist should be. Great, hope it works out. I honestly can't thank you enough for your advice. Hopefully I won't need to bother you again. If you have any more questions, go ahead and ask here - that's what the list is for. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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
[android-developers] Sliding Drawer or Translate Animation?
Ok I have an app requirement that seems to be a little off the beaten path, My app needs to have a button on the bottom of the screen when a user clicks on it the drawer should open to a specified position revealing a horizontal listview, when the user clicks on one of those items it opens another sliding drawer above the previous drawer leaving it in place to allow another item to be selected. Now as far as I can tell this isn't really supported as part of the sliding drawer and I've pretty much worked out how to do it with Translate animation however I have run into the problem with the hitbox not following the animation, is there a straight forward way to refresh the hitbox position or redraw the layout or do I need to create a new layout and call it on completion? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Sliding Drawer or Translate Animation?
On Fri, Feb 11, 2011 at 9:31 AM, Aaron Buckner nagm...@gmail.com wrote: Now as far as I can tell this isn't really supported as part of the sliding drawer and I've pretty much worked out how to do it with Translate animation however I have run into the problem with the hitbox not following the animation, is there a straight forward way to refresh the hitbox position or redraw the layout or do I need to create a new layout and call it on completion? You don't need to create a new layout, but you do need to adjust your existing layout upon completion to make the new positioning rules stick. Here is an example: https://github.com/commonsguy/cw-advandroid/tree/master/Animation/SlidingPanel -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Downloading an .apk update
The following url explains how to install an .apk file from your SD card. My daughter helps me test my projects, so she installs the .apk to her Droid after I send it to her as an e-mail attachment. http://www.ieumart.com/how-to-install-apk-files-through-desktop-using-windows-vista.html On Feb 10, 4:11 pm, dashman erjdri...@gmail.com wrote: ok - i see what marcin was suggesting. i download the .apk to the sd card. now - what intent do i start to install the .apk file. On Feb 10, 12:36 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Feb 10, 2011 at 12:11 PM, dashman erjdri...@gmail.com wrote: i set the mime-type like this i.setType(application/vnd.android.package-archive); and the app crashes. Use setDataAndType(). setType() nulls out your Uri. And, again, this is only needed if you follow Marcin's recommendation and download the APK yourself, then use an Intent to kick off installation. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.4 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: Getting rid of the blink after a TranslateAnimation
Note that the usual matrix-manipulating animations don't change the hit-testing for a view, so you have to actually move the real view if you plan on animating a view that is touchable. My app, Qwiz - Hiragana, uses a LOT of drag and drop of views, and touchable views that move around on their own initiative. I implemented a true Animation class that adjusts the view's position instead of manipulating the drawing transform matrix. Then you don't need to reinvent the wheel of timing and iterating and interpolating things (and you can use all of the other fun iterators to bounce or wiggle the view). I use a FrameLayout to support moving things around by their margin coordinates, instead of an AbsoluteLayout, but the idea is the same. On Feb 10, 10:40 pm, Mark markree...@gmail.com wrote: I'm using TranslateAnimation to actually move a View from one place to another, however from what I can google no one has managed to actually do this without having the View blink out for a second at the end of the animation... If you've managed to do this without the blink please share. Has anyone tried doing the translate themselves with AbsoluteLayout? It looks like I'll have to duplicate the translate functionality by using a Handler to act as a run loop and move the View myself? A handler isn't a separate thread right? I just use it to to call a move function every X ms? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why is onUpdate() called for my widgets even though I have a configuration activity?
As far as I can tell, if I have defined a configuration activity for my widget then onUpdate should not be called when it is first created. It would be the configuration activity's responsibility to perform the initial configuration of the widget. Why is it then that I still get calls to onUpdate in the widget provider, and after that call the configuration activity is started. If I cancel the configuration activity I get no visible widget on the home screen. If I have cancelled a widget configuration (by pressing back in the configuration activity) and reinstall the APK all the widgets, including the cancelled ones, each gets mentioned in calls to onUpdate. Surely this shouldn't be so. And if it is, then how do I get rid of the widgets that was cancelled during configuration. I'm running my code on the emulator with Android 1.6. :.:: mattias P.S. I have also posted this question on stackoverflow.com, http://stackoverflow.com/questions/4966839/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Downloading an .apk update
On 11 February 2011 15:49, Traveler jadkins...@gmail.com wrote: The following url explains how to install an .apk file from your SD card. The link you gave is irrelevant to the former subject. We talk here about installing APK from own code, w/o need of any external tools like adb nor desktop box. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Why is onUpdate() called for my widgets even though I have a configuration activity?
onUpdate being called is a bug, and contradicts what's in the documentation. A widget is created, but won't be shown until after the config activity returns. The widget ID still being there even if you cancel the config activity is also a bug on some versions of Android. I documented my workaround for the second bug here: http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-widgets/ -- Kostya 11.02.2011 17:59, Mattias Svala ?: As far as I can tell, if I have defined a configuration activity for my widget then onUpdate should not be called when it is first created. It would be the configuration activity's responsibility to perform the initial configuration of the widget. Why is it then that I still get calls to onUpdate in the widget provider, and after that call the configuration activity is started. If I cancel the configuration activity I get no visible widget on the home screen. If I have cancelled a widget configuration (by pressing back in the configuration activity) and reinstall the APK all the widgets, including the cancelled ones, each gets mentioned in calls to onUpdate. Surely this shouldn't be so. And if it is, then how do I get rid of the widgets that was cancelled during configuration. I'm running my code on the emulator with Android 1.6. :.:: mattias P.S. I have also posted this question on stackoverflow.com, http://stackoverflow.com/questions/4966839/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- WiFi Manager + pretty widget -- 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
[android-developers] Re: Insrumentation testing in Android
Thanks for your response! But now I have some questions could you please answer? 1) As I understand it should be built at the same time with the platform building. Any specific parameters to build? After build I need to install them? How can I do that? 2) Is there any way to run tests during building? Is it possible to abort building if any tests failed? I made some changes in Adndroid platform and I need to test them. I think the best way to do it like native Android tests. Appreciate any help. Most sincerely, Oleg On Feb 10, 6:32 pm, Diego Torres Milano dtmil...@gmail.com wrote: If $ adb shell pm list instrumentation output is empty, then you don't have any test installed. Install them first. On Feb 9, 8:44 am, Oleg Popenov popenov.o...@gmail.com wrote: Hi, I've tried to run Instrumentation Tests on device from adb shell and I get a strange error, could you please help me? If I run tests for any internal android application (email for example) as it written in AndroidManifest.xml, * !--* * This declares that this app uses the instrumentation test runner targeting * * the package of com.android.email. To run the tests use the command:* * adb shell am instrument -w com.android.email.tests/android.test.InstrumentationTestRunner* * --* then I get an error: *am instrument -w com.android.email.tests/android.test.InstrumentationTestRunner **INSTRUMENTATION_STATUS: id=ActivityManagerService **INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: Component **Info{com.android.email.tests/android.test.InstrumentationTestRunner} **INSTRUMENTATION_STATUS_CODE: -1 **android.util.AndroidException: INSTRUMENTATION_FAILED: com.android.email.tests/a* *ndroid.test.InstrumentationTestRunner* * * The result of the command *'pm list instrumentation' *is empty. How can I run tests? Thanks in advance! Most sincerely, Oleg -- Have you read my blog ?http://dtmilano.blogspot.com android junit tests ui linux cult thin clients -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Checkout transitioning to monthly payouts?
On Fri, Feb 11, 2011 at 12:58 AM, JonFHancock jonfhanc...@gmail.com wrote: Developers should have been notified via multiple avenues Yes, yes they should have. At this point Google really needs to issue a formal apology to developers, Thank you, you made me laugh. =) and either offer developers the option to keep daily payouts, or delay the transition for a month to allow developers who have been living day to day to save up. Yeah, that's not going to happen either. Remember you're dealing with here. These are probably the same people that though switching from a 1 day refund window to 15 minutes with petty much no forewarning to users was a good idea. - 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] GPS with Map overlay
On Fri, Feb 11, 2011 at 1:59 AM, Poifull unique.poif...@gmail.com wrote: Hi, I have got the following code but my application crash. Can anyone tell me what is wrong? Thanks! 2 things: 1 - you apparently did not use your debugger. 2 - you did not post a stack trace. - 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] Checkout transitioning to monthly payouts?
Wow.that does suck. I can't believe they couldn't have put something on the checkout page. I bet a lot of developers are very pissed right now.. not a good way to get developers on board with sudden changes and a mere email that from what many said they didn't get. There own page isn't updated yet to reflect this..heck I just signed up a couple days ago and it said daily payout. On Fri, Feb 11, 2011 at 7:44 AM, TreKing treking...@gmail.com wrote: On Fri, Feb 11, 2011 at 12:58 AM, JonFHancock jonfhanc...@gmail.comwrote: Developers should have been notified via multiple avenues Yes, yes they should have. At this point Google really needs to issue a formal apology to developers, Thank you, you made me laugh. =) and either offer developers the option to keep daily payouts, or delay the transition for a month to allow developers who have been living day to day to save up. Yeah, that's not going to happen either. Remember you're dealing with here. These are probably the same people that though switching from a 1 day refund window to 15 minutes with petty much no forewarning to users was a good idea. - 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
[android-developers] Poor relevancy in Android market since yesterday.
Hi, I am noticing that the Android market search results have become extremely irrelevant since yesterday. This change in search quality(for the worse) is a recent one. Is anyone else noticing this? I haven't seen any official communication from Android market team on their blog regarding any changes in Android market search algorithm. Here are a few examples. 1.) Search for 'english news'. The first result is'NIV Bible', the second result is an app in Asian (non-English) language, the third result is 'China daily'. 2.) Search for 'trail map'. The first app has nothing to do with trail maps. The fourth app onwards are apps in Asian (non-English) languages. Thanks, --MB -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Checkout transitioning to monthly payouts?
Yeah. I'm well aware that Google is horrible at end user support, and that it is unrealistic to expect them to either apologize or actually do something about it. To be clear, I have enough savings anyway that this is not devastating for me, but rather an annoyance. But then, I also have a full-time job, so I'll get a paycheck between now and 3/2 anyway. It is really easy to become dependent on daily pay though, especially if that is your only income. Email or not, this should have been on one or both of the Android and Checkout blogs. On Fri, Feb 11, 2011 at 8:05 AM, Kevin Duffey andjar...@gmail.com wrote: Wow.that does suck. I can't believe they couldn't have put something on the checkout page. I bet a lot of developers are very pissed right now.. not a good way to get developers on board with sudden changes and a mere email that from what many said they didn't get. There own page isn't updated yet to reflect this..heck I just signed up a couple days ago and it said daily payout. On Fri, Feb 11, 2011 at 7:44 AM, TreKing treking...@gmail.com wrote: On Fri, Feb 11, 2011 at 12:58 AM, JonFHancock jonfhanc...@gmail.comwrote: Developers should have been notified via multiple avenues Yes, yes they should have. At this point Google really needs to issue a formal apology to developers, Thank you, you made me laugh. =) and either offer developers the option to keep daily payouts, or delay the transition for a month to allow developers who have been living day to day to save up. Yeah, that's not going to happen either. Remember you're dealing with here. These are probably the same people that though switching from a 1 day refund window to 15 minutes with petty much no forewarning to users was a good idea. - 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
Re: [android-developers] Poor relevancy in Android market since yesterday.
On Fri, Feb 11, 2011 at 10:31 AM, MB manoj.bi...@gmail.com wrote: I am noticing that the Android market search results have become extremely irrelevant since yesterday. This change in search quality(for the worse) is a recent one. The Market search has always been terrible. That it's gotten worse is impressive. I haven't seen any official communication from Android market team on their blog regarding any changes in Android market search algorithm. There never has been, AFAIK, and probably never will be. Communicating with developers is not something the Android Market Team does. After you've been on the Market long enough, you will learn to ignore issues like this. This is usually the bug of the week, and they may eventually fix it - or more likely replace it with another bug. Stressing out over it will lead to nothing but your own premature balding. - 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] Regarding Device ID
Hello All It appears to be there is no generic solution to uniquely identify the device . I am reading lot of discussions here and in stackoverflow. But I did not come across a standard solution and all are based on developer's temporary requirements. (IMEI, MEID, ANDROID_ID, Google account etc nothing are standard). I have done some tests on HTC, DroidX, Droid2, Nexus phones, which are either GSM or CDMA with Sim available on them). Surprisingly some phones returned NULL when I am trying to read IMEI/MEID using method android.telephony.TelephonyManager.getDeviceId(). (Note: all the permissions are given to app to read this info) Because of this I cannot rely on this method for uniquely identifying the device. I thought to rely in using getSimSerialNumber () for uniquely identifying the SIMs atleast. But even this did not work for me. Because of this most of the applications which needs some kind of app security will run into problems. When I am reading through this discussion http://groups.google.com/group/android-developers/browse_thread/thread/53898e508fab44f6/84e54feb28272384?lnk=raotpli=1, I am surprised to see that manufacturers did not take care and consider of this serious thing. As we are seeing lot of android devices in both phone and non phone environments and in addition IT world also looking at providing their solutions on the android space, I believe this must be the high time to standardize the procedure for both software and hardware manufacturers for using/generating unique id in identifying android device. So, how to persuade hardware and software manufacturers in this case? Any thoughts? Thanks Regards Sudhakar Chavali -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] splash image when app is loading
Hello all: I was wondering if there is a way to have a splash image display while my app is loading? As it is right now, it's just a black screen until the main activity launches and it may confuse people into thinking that the app is stuck or not launching properly. Thanks, DM -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Upgrading from SDK 2.1 rev 1 to SDK 2.1 rev 2
Hi Mikey, I did try that but still no luck - I manually shut down the adb process etc. In any case, isn't the upgrade supposed to happen even through the IDE? Or are you confirming what I said that if a release exists it gets locked by the IDE if does not it is ok to install while in the IDE. I think you are. I think something strange is going on with my file system - I will work on a bit more and let the list know of any resolution. Thanks On Feb 10, 7:23 pm, metal mikey coref...@gmail.com wrote: Eclipse is locking the dir. Run 'SDK Manager.exe' standalone, do the update, then open Eclipse and enjoy. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Upgrading from SDK 2.1 rev 1 to SDK 2.1 rev 2
To clarify, I did shut down Eclipse AND ALSO shut down the adb process that was running in the background. On Feb 10, 7:23 pm, metal mikey coref...@gmail.com wrote: Eclipse is locking the dir. Run 'SDK Manager.exe' standalone, do the update, then open Eclipse and enjoy. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Checkout transitioning to monthly payouts?
I have received these emails (there were several of them). If they go to your spam folder, you should change your spam-filters :-) However, the run-up to the new monthly payment schedule seems to have generated strange deposits into my checking account the last week or 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] Live Wallpaper canvas gradient banding
Hey guys First time i'm posting. I was hoping that one of you might have had some experience with this. I am painting to the canvas on every Runnable.run call with a changing colour and i'm hoping to put a gradient over the top but the gradient i'm creating is banding horribly. After Googling around for a day I came up with 2 solutions: set the dither to true set the canvas bitmap to ARGB_ i've tried doing the first one (set dither to true) on the getWallpaper() and the Paint object but it's not helped (I can't see any dithering at all) so I've tried changing the canvas bitmap but i'm not sure how to actually display it // _canvasBmp = Bitmap.createBitmap(metrics.widthPixels, metrics.heightPixels, Bitmap.Config.ARGB_); _shadowPaint.setStyle(Paint.Style.FILL); _shadowPaint.setShader(new RadialGradient(metrics.widthPixels / 2, metrics.heightPixels / 2, metrics.heightPixels / 2, 0x, 0x3300, Shader.TileMode.CLAMP)); _shadowPaint.setDither(true); // this hasn't seemed to have done anything // my main rendering method is this (based on the Google live wallpaper example) void drawFrame() { final SurfaceHolder holder = getSurfaceHolder(); Canvas c = null; try { c = holder.lockCanvas(); // this was my attempt to update the bitmap to one that was ARGB_ but it didn't render at all //c.setBitmap(_canvasBmp); if (c != null) { // draw something drawBackground(c); drawTouchPoint(c); drawShading(c); drawBorder(c); getWallpaper().setDither(true); // yet another attempt to get some kind of dithering going to no avail } } finally { if (c != null) holder.unlockCanvasAndPost(c); } _handler.removeCallbacks(_drawClock); if (_isVisible) { _handler.postDelayed(_drawClock, 1000 / 25); } } private void drawShading(Canvas c) { c.drawRect(_screenBounds, _shadowPaint); } Thanks in advance for your time best alz -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Checkout transitioning to monthly payouts?
Yeah. Since spam is automatically deleted after 30 days, anything they sent before Jan 11 is gone. I always get the emails from android-market-supp...@google.com. Never had one drop into spam. Did they send from that address, or from another one? At any rate, I shouldn't have to change my spam filters. Google should have made this announcement publicly on the blog. That's what the blog is for. On Fri, Feb 11, 2011 at 9:22 AM, Streets Of Boston flyingdutc...@gmail.comwrote: I have received these emails (there were several of them). If they go to your spam folder, you should change your spam-filters :-) However, the run-up to the new monthly payment schedule seems to have generated strange deposits into my checking account the last week or 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: splash image when app is loading
Hello Danny There are lot of examples shared by people in their blogs. This is basically in understanding how you can make use of Handler instance and Thread instance. See below link that could help you. http://www.androidpeople.com/android-loading-welcome-splash-spash-screen-example/ Regards Sudhakar On Feb 11, 10:11 pm, DanielleM dmurkerso...@gmail.com wrote: Hello all: I was wondering if there is a way to have a splash image display while my app is loading? As it is right now, it's just a black screen until the main activity launches and it may confuse people into thinking that the app is stuck or not launching properly. Thanks, DM -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] splash image when app is loading
On 11 February 2011 18:11, DanielleM dmurkerso...@gmail.com wrote: Hello all: I was wondering if there is a way to have a splash image display while my app is loading? As it is right now, it's just a black screen until the main activity launches and it may confuse people into thinking that the app is stuck or not launching properly. No, you can't have any splash screen while app is loading. If your app needs some time to start up *after* being loaded by OS, then you may show up something (splash image, progress bar etc) to notice users you're loaded and yet busy working... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Checkout transitioning to monthly payouts?
Now people notice? They actually came from Google Checkout. If you logged into your Google Checkout account, it would make you accept these terms eventually. The holding payments was in the fine print. I was the one who posted that discussion when I saw the new terms. The response I got was that this is standard in the industry, which is true. But it also seemed like noone was inconvenienced. I was told to volunteer at soup kitchens or something like that. I thought that meant that no one was making more than pennies from Android. I can see now that the announcement was simply a little bit too low key. I don't have a day job. I actually sold stocks from my former day job to cover this gap in income that I knew was coming. Having a savings buffer is a good idea anyway, but I've burned through a lot in the time it takes to develop an app and build up a customer base. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Checkout transitioning to monthly payouts?
Ugh. I'm sorry I didn't see your original post about it, Nathan. That would have at least saved me from the surprise. Actually, we didn't have a buffer savings exactly. What we had was tax savings. We put 18% of every deposit into a savings account not to be touched until tax season. We operate under the assumption that we will have to send all of that to Uncle Sam. As it turned out, we not only got to keep that, but we're actually getting a small refund (3 kids and lots of expense deductions). That money is what what will keep us floating through Feb. It is now our vacation savings, so we'll have to replenish it when 3/2 comes around. (We have restarted tax savings for this year, and we won't have to dip into that.) The comment Anyone who is that dependent on daily deposits should start saving their money now or perhaps find a temp job at their local food bank for the period they won't be seeing those pennies flowing into their account. from John Coryat is more than a little condescending. While I am not extremely dependent on daily deposits, I can certainly attest that I make more than pennies a day. I actually make more on sales from my one paid app than from my full time job. On Fri, Feb 11, 2011 at 10:09 AM, Nathan critter...@crittermap.com wrote: Now people notice? They actually came from Google Checkout. If you logged into your Google Checkout account, it would make you accept these terms eventually. The holding payments was in the fine print. I was the one who posted that discussion when I saw the new terms. The response I got was that this is standard in the industry, which is true. But it also seemed like noone was inconvenienced. I was told to volunteer at soup kitchens or something like that. I thought that meant that no one was making more than pennies from Android. I can see now that the announcement was simply a little bit too low key. I don't have a day job. I actually sold stocks from my former day job to cover this gap in income that I knew was coming. Having a savings buffer is a good idea anyway, but I've burned through a lot in the time it takes to develop an app and build up a customer base. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Question on dalvik dx
Hi All, i want to hide certain classes and include them as a jar file So this is what i have done My files are Foo.java and Bar.java I want to hide Bar.java dx --dex --output=Bar.jar Bar.class now i have Bar.jar ready and it solves my initial requirement But now my question is, Foo.java references Bar class So now my compilation fails for Foo.java I tried including Bar.jar into my project but still it doesnt work Could someone throw some light on this and help me out of this situation. Thanks in Advance LG -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Question on dalvik dx
Hi, what error you are getting. make one build.xml to remove compilation error. On Fri, Feb 11, 2011 at 11:51 PM, LG lgma...@gmail.com wrote: Hi All, i want to hide certain classes and include them as a jar file So this is what i have done My files are Foo.java and Bar.java I want to hide Bar.java dx --dex --output=Bar.jar Bar.class now i have Bar.jar ready and it solves my initial requirement But now my question is, Foo.java references Bar class So now my compilation fails for Foo.java I tried including Bar.jar into my project but still it doesnt work Could someone throw some light on this and help me out of this situation. Thanks in Advance LG -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank Regards Peeyush Varshney -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Market Certificate Error
I'm getting the following error while trying to upload an upgrade for my app on the andriod market. I have foolishly been using a test key from an autocompile, sign and zip align script. Market does not accept apks signed with certificates issued by Android team. Create a new certificate that is valid for at least 50 years. The Solution The apk must be signed with the same certificates as the previous version Go Figure? So thats what I did, but then it said use the same certificate used to sign the application? So which one do you want me to do? Any way I have heard you can sign an apk twice so market would accept the upload and the users could be transferred to the new certificate but I got jarsigner errors trying to do that. If anyone has a step by step guide that would be great. Most of my apps on the market are done using the same key. Could anyone provide any hope or a way out? The Market should provide a way to change the cert. Even if the users have to uninstall the app it would save the users favorite apps on the market instead of publishers having to create a new pack name. Help! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Question on dalvik dx
Oh! how do i do that.. i have never used a build.xml in a android project. Could you please tell me how do i create one Thanks LG On Sat, Feb 12, 2011 at 12:11 AM, peeyush varshney varshney.peey...@gmail.com wrote: Hi, what error you are getting. make one build.xml to remove compilation error. On Fri, Feb 11, 2011 at 11:51 PM, LG lgma...@gmail.com wrote: Hi All, i want to hide certain classes and include them as a jar file So this is what i have done My files are Foo.java and Bar.java I want to hide Bar.java dx --dex --output=Bar.jar Bar.class now i have Bar.jar ready and it solves my initial requirement But now my question is, Foo.java references Bar class So now my compilation fails for Foo.java I tried including Bar.jar into my project but still it doesnt work Could someone throw some light on this and help me out of this situation. Thanks in Advance LG -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank Regards Peeyush Varshney -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] splash image when app is loading
Ok...so I would need to use some kind of listener for the between time of the app loading and starting? I mean I see this all the time on other apps so I was just wondering how they do this? Usually you click the launcher icon and then an image is displayed for a short time and then the app starts. I assumed the image is used as a placeholder while the app finishes loading. Thanks, DM On Fri, Feb 11, 2011 at 1:01 PM, Marcin Orlowski webnet.andr...@gmail.comwrote: On 11 February 2011 18:11, DanielleM dmurkerso...@gmail.com wrote: Hello all: I was wondering if there is a way to have a splash image display while my app is loading? As it is right now, it's just a black screen until the main activity launches and it may confuse people into thinking that the app is stuck or not launching properly. No, you can't have any splash screen while app is loading. If your app needs some time to start up *after* being loaded by OS, then you may show up something (splash image, progress bar etc) to notice users you're loaded and yet busy working... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Question on dalvik dx
It is nothing with android project dear. it is just xml file mention below attribute !-- project env -- !-- Dependencies -- !-- jar -- !-- compilation options -- On Sat, Feb 12, 2011 at 12:19 AM, LG lgma...@gmail.com wrote: Oh! how do i do that.. i have never used a build.xml in a android project. Could you please tell me how do i create one Thanks LG On Sat, Feb 12, 2011 at 12:11 AM, peeyush varshney varshney.peey...@gmail.com wrote: Hi, what error you are getting. make one build.xml to remove compilation error. On Fri, Feb 11, 2011 at 11:51 PM, LG lgma...@gmail.com wrote: Hi All, i want to hide certain classes and include them as a jar file So this is what i have done My files are Foo.java and Bar.java I want to hide Bar.java dx --dex --output=Bar.jar Bar.class now i have Bar.jar ready and it solves my initial requirement But now my question is, Foo.java references Bar class So now my compilation fails for Foo.java I tried including Bar.jar into my project but still it doesnt work Could someone throw some light on this and help me out of this situation. Thanks in Advance LG -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank Regards Peeyush Varshney -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Thank Regards Peeyush Varshney -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] splash image when app is loading
There's several approaches for doing this. Just Google android splash screen. I think one of the first few links contains info that I used to create my own. On Fri, Feb 11, 2011 at 12:53 PM, Danielle Murkerson dmurkerso...@gmail.com wrote: Ok...so I would need to use some kind of listener for the between time of the app loading and starting? I mean I see this all the time on other apps so I was just wondering how they do this? Usually you click the launcher icon and then an image is displayed for a short time and then the app starts. I assumed the image is used as a placeholder while the app finishes loading. Thanks, DM On Fri, Feb 11, 2011 at 1:01 PM, Marcin Orlowski webnet.andr...@gmail.com wrote: On 11 February 2011 18:11, DanielleM dmurkerso...@gmail.com wrote: Hello all: I was wondering if there is a way to have a splash image display while my app is loading? As it is right now, it's just a black screen until the main activity launches and it may confuse people into thinking that the app is stuck or not launching properly. No, you can't have any splash screen while app is loading. If your app needs some time to start up *after* being loaded by OS, then you may show up something (splash image, progress bar etc) to notice users you're loaded and yet busy working... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Checkout transitioning to monthly payouts?
Now that Google is buying the software from us in bulk and selling it to the consumer individually with a 30% markup, it really calls into question Google's presumption that they are *not* the retailer. Google should really be the one collecting and reporting the sales tax now, and we should consider this as royalties or wholesale sales. Getting a lump sum may seem easier for accounting, but it isn't. My accountant still has to sift through the entire list and determine which transactions are in state for sales tax purposes. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] splash image when app is loading
11.02.2011 21:53, Danielle Murkerson пишет: Ok...so I would need to use some kind of listener for the between time of the app loading and starting? I mean I see this all the time on other apps so I was just wondering how they do this? The distinction, if any, between loading and starting, is entirely in your code. Android brings your process into memory, creates the main activity, and starts calling its lifecycle methods: onCreate, onStart, onResume, and off you go. If you have a lengthly operation (to load textures in a game, unpack compressed RSS stream, etc.), then you can: 1. have your main activity set its content to a splash image; 2. schedule lengthy operations on a background thread, AsyncTask (or any other way that doesn't tie up the UI); 3. handshake back to the main activity when those lengthy operations are completed, and present the UI for interacting with your application. Item 2 is a good idea anyway, because if you run a lengthy operation in one of the above lifecycle callbacks (onCreate, etc.), and it exceeds the time limit allowed by Android, then the user will see the ANR popup (Application Not Responding - giving the user a choice to kill it or to give it more time). Usually you click the launcher icon and then an image is displayed for a short time and then the app starts. I assumed the image is used as a placeholder while the app finishes loading. I believe Android just animates a mock-up of the activity, based on what it can gather from the manifest (the color scheme and the title). This happens before onCreate. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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] Re: Checkout transitioning to monthly payouts?
Oh I was talking about income tax. On Fri, Feb 11, 2011 at 11:07 AM, Nathan critter...@crittermap.com wrote: Now that Google is buying the software from us in bulk and selling it to the consumer individually with a 30% markup, it really calls into question Google's presumption that they are *not* the retailer. Google should really be the one collecting and reporting the sales tax now, and we should consider this as royalties or wholesale sales. Getting a lump sum may seem easier for accounting, but it isn't. My accountant still has to sift through the entire list and determine which transactions are in state for sales tax purposes. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Market Certificate Error
On Fri, Feb 11, 2011 at 12:50 PM, Droider jgrnetsoluti...@gmail.com wrote: I'm getting the following error while trying to upload an upgrade for my app on the andriod market. I have foolishly been using a test key from an autocompile, sign and zip align script. Wait ... you were allowed to upload app with the test key in the first place? - 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] splash image when app is loading
Yes this may be the way to go for me. My main activity has to setup and prepare a couple of MediaPlayer objects to play some streaming audio...this may take a while on a slow connection and I've seen some examples that use the onPostExecute method of an AsyncTask to tell the activity when to stop displaying the splash image. Thanks for the tips...I'll look into this more. On Fri, Feb 11, 2011 at 2:10 PM, Kostya Vasilyev kmans...@gmail.com wrote: 11.02.2011 21:53, Danielle Murkerson пишет: Ok...so I would need to use some kind of listener for the between time of the app loading and starting? I mean I see this all the time on other apps so I was just wondering how they do this? The distinction, if any, between loading and starting, is entirely in your code. Android brings your process into memory, creates the main activity, and starts calling its lifecycle methods: onCreate, onStart, onResume, and off you go. If you have a lengthly operation (to load textures in a game, unpack compressed RSS stream, etc.), then you can: 1. have your main activity set its content to a splash image; 2. schedule lengthy operations on a background thread, AsyncTask (or any other way that doesn't tie up the UI); 3. handshake back to the main activity when those lengthy operations are completed, and present the UI for interacting with your application. Item 2 is a good idea anyway, because if you run a lengthy operation in one of the above lifecycle callbacks (onCreate, etc.), and it exceeds the time limit allowed by Android, then the user will see the ANR popup (Application Not Responding - giving the user a choice to kill it or to give it more time). Usually you click the launcher icon and then an image is displayed for a short time and then the app starts. I assumed the image is used as a placeholder while the app finishes loading. I believe Android just animates a mock-up of the activity, based on what it can gather from the manifest (the color scheme and the title). This happens before onCreate. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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
[android-developers] Concurrent database activity
Hi, I have an IntentService which syncs data from a server and takes a few minutes. The operation is database intensive locally (SQLite). I would like the user to be able to continue to use the application while the sync operation is going which involves the odd write to the database. Currently I'm getting database is locked errors. Has anyone come across this issue before and solved it? Regards, Julius. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Insrumentation testing in Android
As far as I can tell, you've built your own version of the Email client, and now you're trying to test it. To do this, you have to build both the client application and the test package. In general, to build a test package for an application you have to be able to build both of them from source. The test package and the application have to be signed with the same key, as a security feature. Once you build them, you need to install them to the device. Afterwards, you can change the application and re-install it without having to re-build or re-install the test package, and vice versa. You still have to use the same key each time. The process of installing applications and test packages is documented in the Dev Guide. Go to the Dev Guide tab under Developing and look at Building and Running and also Testing. You can certainly run tests as the last part of your build process. You can't do this easily in Eclipse, but you can do it by modifying your Ant scripts. You can also run unit tests during a build if you're testing a unit that doesn't depend on Android. To test something that needs to run on Android, such as an Activity, you have to build it into an application and install it on Android before you can test it. When you say the best way to do it like native Android tests, you should look at the /tests subdirectory for the Email project. It should contain unit tests for the client. You can use them as a starting point for doing your own testing. elk. On Feb 11, 7:36 am, Oleg Popenov popenov.o...@gmail.com wrote: Thanks for your response! But now I have some questions could you please answer? 1) As I understand it should be built at the same time with the platform building. Any specific parameters to build? After build I need to install them? How can I do that? 2) Is there any way to run tests during building? Is it possible to abort building if any tests failed? I made some changes in Adndroid platform and I need to test them. I think the best way to do it like native Android tests. Appreciate any help. Most sincerely, Oleg On Feb 10, 6:32 pm, Diego Torres Milano dtmil...@gmail.com wrote: If $ adb shell pm list instrumentation output is empty, then you don't have any test installed. Install them first. On Feb 9, 8:44 am, Oleg Popenov popenov.o...@gmail.com wrote: Hi, I've tried to run Instrumentation Tests on device from adb shell and I get a strange error, could you please help me? If I run tests for any internal android application (email for example) as it written in AndroidManifest.xml, * !--* * This declares that this app uses the instrumentation test runner targeting * * the package of com.android.email. To run the tests use the command:* * adb shell am instrument -w com.android.email.tests/android.test.InstrumentationTestRunner* * --* then I get an error: *am instrument -w com.android.email.tests/android.test.InstrumentationTestRunner **INSTRUMENTATION_STATUS: id=ActivityManagerService **INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: Component **Info{com.android.email.tests/android.test.InstrumentationTestRunner} **INSTRUMENTATION_STATUS_CODE: -1 **android.util.AndroidException: INSTRUMENTATION_FAILED: com.android.email.tests/a* *ndroid.test.InstrumentationTestRunner* * * The result of the command *'pm list instrumentation' *is empty. How can I run tests? Thanks in advance! Most sincerely, Oleg -- Have you read my blog ?http://dtmilano.blogspot.com android junit tests ui linux cult thin clients -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Concurrent database activity
SQLite implements its own locking protocol internally. If you want operations to wait rather than fail, you need to wrap operations from both sources with your own synchronization primitives that wait rather than fail. On Feb 11, 1:34 pm, Julius Spencer jul...@msa.co.nz wrote: Hi, I have an IntentService which syncs data from a server and takes a few minutes. The operation is database intensive locally (SQLite). I would like the user to be able to continue to use the application while the sync operation is going which involves the odd write to the database. Currently I'm getting database is locked errors. Has anyone come across this issue before and solved it? Regards, Julius. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Checkout transitioning to monthly payouts?
On Fri, Feb 11, 2011 at 1:07 PM, Nathan critter...@crittermap.com wrote: Getting a lump sum may seem easier for accounting, but it isn't. My accountant still has to sift through the entire list and determine which transactions are in state for sales tax purposes. This has how it has been from the start. You can still download (via the download to csv link at the bottom of the checkout page) a csv file containing a breakdown of all transactions and whether they were taxed. I know, it's tedious, but it's still there. I too wish they would just collect and distribute the sales tax for us. Would make life a lot easier and one less thing I'd have to worry about. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] cookie value is null
On Fri, Feb 11, 2011 at 4:34 AM, vani reddy vani.redd...@gmail.com wrote: CookieManager cm= CookieManager.getInstance(); CookieManager cookieManager = CookieManager.getInstance(); cookieManager.setAcceptCookie(true); String cukies=cm.getCookie(http://cms.beemedia.com/ ); This makes no sense. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] splash image when app is loading
I was going to suggest something similar to what Kostya suggested. As he said, if you're taking time to load things in an onCreate, first you want to move it to a thread (AsyncTask). What I do is I've found one of the examples out there that sets my launcher to the SplashScreenActivity. In my case, I do it just for showing info about the app, author, etc. So I have a timer counting down for 15 seconds (which is way too long). If the user touches the screen at any point, it then times out immediately. Either way, it starts my main activity at that point. As Kostya said, in your case, once your background loading stuff is done, start the main activity. This way they see your splash screen until all the loading is done. You can even make an animated splash screen to help alleviate the amount of time it seems a person is waiting. On Fri, Feb 11, 2011 at 11:31 AM, Danielle Murkerson dmurkerso...@gmail.com wrote: Yes this may be the way to go for me. My main activity has to setup and prepare a couple of MediaPlayer objects to play some streaming audio...this may take a while on a slow connection and I've seen some examples that use the onPostExecute method of an AsyncTask to tell the activity when to stop displaying the splash image. Thanks for the tips...I'll look into this more. On Fri, Feb 11, 2011 at 2:10 PM, Kostya Vasilyev kmans...@gmail.comwrote: 11.02.2011 21:53, Danielle Murkerson пишет: Ok...so I would need to use some kind of listener for the between time of the app loading and starting? I mean I see this all the time on other apps so I was just wondering how they do this? The distinction, if any, between loading and starting, is entirely in your code. Android brings your process into memory, creates the main activity, and starts calling its lifecycle methods: onCreate, onStart, onResume, and off you go. If you have a lengthly operation (to load textures in a game, unpack compressed RSS stream, etc.), then you can: 1. have your main activity set its content to a splash image; 2. schedule lengthy operations on a background thread, AsyncTask (or any other way that doesn't tie up the UI); 3. handshake back to the main activity when those lengthy operations are completed, and present the UI for interacting with your application. Item 2 is a good idea anyway, because if you run a lengthy operation in one of the above lifecycle callbacks (onCreate, etc.), and it exceeds the time limit allowed by Android, then the user will see the ANR popup (Application Not Responding - giving the user a choice to kill it or to give it more time). Usually you click the launcher icon and then an image is displayed for a short time and then the app starts. I assumed the image is used as a placeholder while the app finishes loading. I believe Android just animates a mock-up of the activity, based on what it can gather from the manifest (the color scheme and the title). This happens before onCreate. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] splash image when app is loading
Yes this makes sense...I have a question regarding how my app is set up though...I'm using a tabbed interface where each tab launches a new activity. So basically the activity that would launch first sets up the tabs and then starts the activity that is in the first tab...So would I put my splash screen code in the activity that sets up the tabs, or put it in the activity that the user actually sees once the tabs are done setting up? I'm new to android programming and I've basically built my app from seeing examples of similar things that I want to accomplish in my app. This came about because I got the app running perfectly in the emulator...but when I tested it on two different real devices, it wouldn't load at all on one and it seemed to work ok on the other. It seemed to install correctly on the device that it wouldn't load on, it just never got past the black screen before the first activity starts. And then it would take forever to even try and go back to the device's home screen. So I'm trying to go back and look at my code and see if there is something I could re-work to make it more efficient or something. On Fri, Feb 11, 2011 at 3:06 PM, Kevin Duffey andjar...@gmail.com wrote: I was going to suggest something similar to what Kostya suggested. As he said, if you're taking time to load things in an onCreate, first you want to move it to a thread (AsyncTask). What I do is I've found one of the examples out there that sets my launcher to the SplashScreenActivity. In my case, I do it just for showing info about the app, author, etc. So I have a timer counting down for 15 seconds (which is way too long). If the user touches the screen at any point, it then times out immediately. Either way, it starts my main activity at that point. As Kostya said, in your case, once your background loading stuff is done, start the main activity. This way they see your splash screen until all the loading is done. You can even make an animated splash screen to help alleviate the amount of time it seems a person is waiting. On Fri, Feb 11, 2011 at 11:31 AM, Danielle Murkerson dmurkerso...@gmail.com wrote: Yes this may be the way to go for me. My main activity has to setup and prepare a couple of MediaPlayer objects to play some streaming audio...this may take a while on a slow connection and I've seen some examples that use the onPostExecute method of an AsyncTask to tell the activity when to stop displaying the splash image. Thanks for the tips...I'll look into this more. On Fri, Feb 11, 2011 at 2:10 PM, Kostya Vasilyev kmans...@gmail.comwrote: 11.02.2011 21:53, Danielle Murkerson пишет: Ok...so I would need to use some kind of listener for the between time of the app loading and starting? I mean I see this all the time on other apps so I was just wondering how they do this? The distinction, if any, between loading and starting, is entirely in your code. Android brings your process into memory, creates the main activity, and starts calling its lifecycle methods: onCreate, onStart, onResume, and off you go. If you have a lengthly operation (to load textures in a game, unpack compressed RSS stream, etc.), then you can: 1. have your main activity set its content to a splash image; 2. schedule lengthy operations on a background thread, AsyncTask (or any other way that doesn't tie up the UI); 3. handshake back to the main activity when those lengthy operations are completed, and present the UI for interacting with your application. Item 2 is a good idea anyway, because if you run a lengthy operation in one of the above lifecycle callbacks (onCreate, etc.), and it exceeds the time limit allowed by Android, then the user will see the ANR popup (Application Not Responding - giving the user a choice to kill it or to give it more time). Usually you click the launcher icon and then an image is displayed for a short time and then the app starts. I assumed the image is used as a placeholder while the app finishes loading. I believe Android just animates a mock-up of the activity, based on what it can gather from the manifest (the color scheme and the title). This happens before onCreate. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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
Re: [android-developers] Added ListView in the CurrentListView
On Fri, Feb 11, 2011 at 5:52 AM, devian yudha asns.dr...@gmail.com wrote: i have ListView and the option inside it. then if i chose one of them, then new ListView (call it with Listview2) came through. Don't add a listview in the current listview. Start a new activity with the second listview based on the data provided by what was clicked in the first one. - 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] Wipe external storage not working
public void wipeData (int flags) Since: API Level 8http://developer.android.com/guide/appendix/api-levels.html#level8 Ask the user date be wiped. This will cause the device to reboot, erasing all user data while next booting up. External storage such as SD cards will not be erased. The calling device admin must have requested USES_POLICY_WIPE_DATAhttp://developer.android.com/reference/android/app/admin/DeviceAdminInfo.html#USES_POLICY_WIPE_DATA to be able to call this method; if it has not, a security exception will be thrown. Parameters flags Bit mask of additional options: *currently must be 0.* - 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] Not able to read arabic content coming as a response of post request.
On Fri, Feb 11, 2011 at 7:12 AM, Ravindra Kamble ravindrakambl...@gmail.com wrote: I am trying to display the news in the arabic language, but while reading the data from inputstream it is corrupting. Corrupting in the sense it is not the data which i want. Not sure, but might be related to the #1 Android Bug: http://code.google.com/p/android/issues/detail?id=5597 - 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] ON BOOT RECEIVER
Hi All, Kindly tell me how my application can be notified of the device boot? My application is stored on the external memory Please Help Jawwad Farooq -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] splash image when app is loading
11.02.2011 23:13, Danielle Murkerson пишет: It seemed to install correctly on the device that it wouldn't load on, it just never got past the black screen before the first activity starts. And then it would take forever to even try and go back to the device's home screen. This seems like an infinite loop somewhere. Since you don't have access to the device, I would recommend you follow the advice given by TreKing: ask the user to install one of the many logcat - collecting applications from Market and send you the logs. To make this more useful, inspect your code and add frequent logging statements, especially around and in places that process data. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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] splash image when app is loading
First, are you using debug mode with your physical device plugged in to the USB slot and deploying that way? It will allow you to watch the LogCat output, you can put Log.i() info throughout your code to try to trace it or use the debugger and break points, whichever your fancy. You may see why one device is taking a long time and the other isnt. As for the tabs and what to do.. I would create a completely new Activity, called SplashActivity or whatever. Separate layout xml for it. Put that as your starting launcher. From there, you would launch your activity that sets up the tabs. I haven't done anything with tabs yet.. is ti required that each tab be a separate activity.. is that the normal way it works (anyone)? I would have thought you could use a single activity and listen for tab changes and set the content view to a new view for that tab, rather than separate activities for each. If you can do that, then you load all your data during the splash screen, then start the tab activity and you are good to go. If it is pretty common or the only way to do tabs is with separate activities, then generally I take the lazy approach. A user may never select any other tab, so why load the data for it up front? That takes up resources. If you have too much data, you could degrade the device performance, and cause android to shut down other running applications (er..running but in pause mode of course). If each tab requires a couple seconds or so to load data, maybe in the tab switching handler, put up a simple alert box with a spinning meter to show something is happening. I'd also look at releasing the previously selected tabs data. From what I've learned, even with 256MB up to 1GB or more ram, you are still very limited in memory because of the potential of other apps running (again, in pause mode while your app is up on top) and consuming resources. You want to try to play nice with the overall idea of multiple apps running as much as possible. Don't forget to release all your resources in the onPause handler for each activity, and handle those events properly. On Fri, Feb 11, 2011 at 12:13 PM, Danielle Murkerson dmurkerso...@gmail.com wrote: Yes this makes sense...I have a question regarding how my app is set up though...I'm using a tabbed interface where each tab launches a new activity. So basically the activity that would launch first sets up the tabs and then starts the activity that is in the first tab...So would I put my splash screen code in the activity that sets up the tabs, or put it in the activity that the user actually sees once the tabs are done setting up? I'm new to android programming and I've basically built my app from seeing examples of similar things that I want to accomplish in my app. This came about because I got the app running perfectly in the emulator...but when I tested it on two different real devices, it wouldn't load at all on one and it seemed to work ok on the other. It seemed to install correctly on the device that it wouldn't load on, it just never got past the black screen before the first activity starts. And then it would take forever to even try and go back to the device's home screen. So I'm trying to go back and look at my code and see if there is something I could re-work to make it more efficient or something. On Fri, Feb 11, 2011 at 3:06 PM, Kevin Duffey andjar...@gmail.com wrote: I was going to suggest something similar to what Kostya suggested. As he said, if you're taking time to load things in an onCreate, first you want to move it to a thread (AsyncTask). What I do is I've found one of the examples out there that sets my launcher to the SplashScreenActivity. In my case, I do it just for showing info about the app, author, etc. So I have a timer counting down for 15 seconds (which is way too long). If the user touches the screen at any point, it then times out immediately. Either way, it starts my main activity at that point. As Kostya said, in your case, once your background loading stuff is done, start the main activity. This way they see your splash screen until all the loading is done. You can even make an animated splash screen to help alleviate the amount of time it seems a person is waiting. On Fri, Feb 11, 2011 at 11:31 AM, Danielle Murkerson dmurkerso...@gmail.com wrote: Yes this may be the way to go for me. My main activity has to setup and prepare a couple of MediaPlayer objects to play some streaming audio...this may take a while on a slow connection and I've seen some examples that use the onPostExecute method of an AsyncTask to tell the activity when to stop displaying the splash image. Thanks for the tips...I'll look into this more. On Fri, Feb 11, 2011 at 2:10 PM, Kostya Vasilyev kmans...@gmail.comwrote: 11.02.2011 21:53, Danielle Murkerson пишет: Ok...so I would need to use some kind of listener for the between time of the app loading and starting? I mean I see this all the time on
Re: [android-developers] ON BOOT RECEIVER
On Fri, Feb 11, 2011 at 3:01 PM, Jawwad Farooq jawwad.far...@gmail.comwrote: My application is stored on the external memory Then you should have read this, which answers your question. http://developer.android.com/guide/appendix/install-location.html#Should - 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] ON BOOT RECEIVER
On Fri, Feb 11, 2011 at 4:01 PM, Jawwad Farooq jawwad.far...@gmail.com wrote: Kindly tell me how my application can be notified of the device boot? My application is stored on the external memory Step #1: Get your application off of external memory, since that will not work: http://developer.android.com/guide/appendix/install-location.html#ShouldNot Step #2: Set up a BroadcastReceiver in the manifest to watch for the BOOT_COMPLETED action -- you will also need the accompany permission. Here is a sample project demonstrating this: https://github.com/commonsguy/cw-advandroid/tree/master/SystemEvents/OnBoot -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ON BOOT RECEIVER
I mentioned this intent ACTION_EXTERNAL_APPLICATIONS_AVAILABLE in the manifest file but it didn't work. Can u kindly explain the reason ? On Feb 12, 2:07 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Feb 11, 2011 at 4:0i1 PM, Jawwad Farooq jawwad.far...@gmail.com wrote: Kindly tell me how my application can be notified of the device boot? My application is stored on the external memory Step #1: Get your application off of external memory, since that will not work: http://developer.android.com/guide/appendix/install-location.html#Sho... Step #2: Set up a BroadcastReceiver in the manifest to watch for the BOOT_COMPLETED action -- you will also need the accompany permission. Here is a sample project demonstrating this: https://github.com/commonsguy/cw-advandroid/tree/master/SystemEvents/... -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] splash image when app is loading
yes someone else suggested an endless loop as well...but I haven't written any loops in my code at all. I am definitely planning on taking TreKing's advice about that...as soon as I can get with my tester we'll work it out...In the mean time I am going back to the code to see if I can make it more efficient. Part of my app has to access some RSS feeds from the website for my company and we've been having server issues so I know that was causing problems. Our streaming servers are separate so the device that was actually running the app had no problems accessing the streams but could not access the feeds due to the above mentioned issues with the website. On Fri, Feb 11, 2011 at 4:06 PM, Kostya Vasilyev kmans...@gmail.com wrote: 11.02.2011 23:13, Danielle Murkerson пишет: It seemed to install correctly on the device that it wouldn't load on, it just never got past the black screen before the first activity starts. And then it would take forever to even try and go back to the device's home screen. This seems like an infinite loop somewhere. Since you don't have access to the device, I would recommend you follow the advice given by TreKing: ask the user to install one of the many logcat - collecting applications from Market and send you the logs. To make this more useful, inspect your code and add frequent logging statements, especially around and in places that process data. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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
Re: [android-developers] Re: ON BOOT RECEIVER
On Fri, Feb 11, 2011 at 4:12 PM, Jawwad Farooq jawwad.far...@gmail.com wrote: I mentioned this intent ACTION_EXTERNAL_APPLICATIONS_AVAILABLE in the manifest file but it didn't work. Can u kindly explain the reason ? No, because I have no idea what you were expecting to happen when you mentioned that Intent action. That broadcast action is documented here: http://developer.android.com/reference/android/content/Intent.html#ACTION_EXTERNAL_APPLICATIONS_AVAILABLE -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] splash image when app is loading
12.02.2011 0:13, Danielle Murkerson пишет: Part of my app has to access some RSS feeds from the website for my company and we've been having server issues so I know that was causing problems. Our streaming servers are separate so the device that was actually running the app had no problems accessing the streams but could not access the feeds due to the above mentioned issues with the website. Are you loading the RSS feeds in the main application thread (same one where onCreate, etc) are called? If so, that would explain the black screen and all. This is an introduction on why this should not be done and how to change it: http://developer.android.com/guide/appendix/faq/commontasks.html#threading -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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
[android-developers] Re: Poor relevancy in Android market since yesterday.
Getting a little cynical these days, huh TreKing? ;-) From market.android.com, the search results are pretty good for both those search phrases. trail map brings up two apparently decent trail map apps first. English news brings up news apps. Most of them cover foreign topics, but they are in English. You can expect an American or British news organization to show up for that though because it is implied that they are in English, so the word English will never be in their descriptions. On Feb 11, 8:44 am, TreKing treking...@gmail.com wrote: On Fri, Feb 11, 2011 at 10:31 AM, MB manoj.bi...@gmail.com wrote: I am noticing that the Android market search results have become extremely irrelevant since yesterday. This change in search quality(for the worse) is a recent one. The Market search has always been terrible. That it's gotten worse is impressive. I haven't seen any official communication from Android market team on their blog regarding any changes in Android market search algorithm. There never has been, AFAIK, and probably never will be. Communicating with developers is not something the Android Market Team does. After you've been on the Market long enough, you will learn to ignore issues like this. This is usually the bug of the week, and they may eventually fix it - or more likely replace it with another bug. Stressing out over it will lead to nothing but your own premature balding. --- -- 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