[android-developers] MediaRecorder / MediaPlayer simultaneous use?
Hi dave, With reference to this discussion, does this mean that simultaneous Record and Playback with Mediarecorder and Mediaplayer is not possible at this point? Please reply, Thanks in advance. Regards Anu -- Forwarded message -- From: Dave Sparks davidspa...@android.com Date: May 20 2009, 7:59 pm Subject: MediaRecorder / MediaPlayer simultaneous use? To: android-framework I believe you will need to reset theMediaPlayerobject to get it to clear it's reference to the ISurface. In any case, you don't want to be hanging on to aMediaPlayerthat could be potentially keep the DSP holding on to wakelocks while the activity is in background. This is a sure-fire way to kill the battery. Some of these restrictions will be lifted in a future release, but you'll still have to be careful about how much you try to do at once and how it will affect battery life. On May 20, 4:17 am, Andy Quan androidr...@gmail.com wrote: Dave,As for the restriction you mentioned, would I run into this violation if I first minimize my video player (push it to the background like what it is for music player), then open camcorder? On Tue, May 19, 2009 at 11:03 PM, Dave Sparks davidspa...@android.comwrote: The media framework should be able to support it if you don't overtax the DSP, but I believe there's a restriction in SurfaceFlinger that prevents you from having two push-buffer SurfaceViews at the same time. On May 18, 5:34 pm, John Bresnik jbres...@gmail.com wrote: Anyone have experience doingsimultaneousplayback / recording, i.e. full duplex - couldn't find a definitive answer on whether it was support or not. Thanks -- Thanks, Andy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] switchTimezone
Hi, I am using the switchTimezone() method of the Time class. I am not sure what string should be passed to convert the time to a different time zone. For example: My current time zone is +5:30 GMT and current time is 11:30 AM (+5:30 GMT) and I call the switchTimeZone() by passing a string America/California. I was expecting the result to be 11:00 PM (-7 PDT), but I got the result as 6:00 AM, which I guess is the UTC time. Any idea what could be the issue here? Thanks, AJ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to use the lib(.jar) which android sdk didn't contain
Hi, Android has Dalvik Virtual Machine and not Java Virtual Machine. So, I don't think you will be able to use this class in Android. In case, you want to try adding external jar to Android project you can definitely do that. For that, keep the jar in the assets folder and then add that jar to the build path. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Related Task
Suppose one application is there named Display. It holds many activities.Lets take Root activity is (a). I start activity (b) (which is also a part of Application Display) from a provider class ( which is not activity ).Activity (b) is started in new task.I close activity (b).I press home and start display again.It shows activity (b) , but i want activity (a) to be displayed. Basically I want to shut down the new task that has been started for hosting (b). I already used the following attributes but still not working as I want. android:clearTaskOnLaunch=true android:finishOnTaskLaunch=true 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
[android-developers] Re: Map app with GPS is not working in Nexus One
Hi, Avoid using getLastKnownLocation and try to use requestLocationUpdates instead. I think it is not finding any last known location and so its returning null. This method will behave differently in different methods. So, its better to use requestLocationUpdates. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Cant login into android market. Market down?
Hi, Next day it was working, it seem google market had some temporary problems... On Apr 15, 10:43 pm, powder jonas.hey...@gmail.com wrote: Cant login into android market get the following error: Oops! This link appears to be broken. Suggestions: Access a cached copy of market. android. com/ publish Go to android. com Go to market. android. com Search on Google: After login in to gmail and then using the link: http://market.android.com/publish I get the above error. What is going on Google? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: include tag and text
On Apr 15, 6:22 am, Romain Guy romain...@android.com wrote: include / does not let you override random attributes at the moment. Only android:id is supported. Uh, Romain? The documentation at http://developer.android.com/resources/articles/layout-tricks-reuse.html - which is based on a blog post you wrote last February - says otherwise: This tag also lets you override a few attributes of the included layout ... you can override all the layout parameters. My testing seems to indicate that your comment here is correct and the docs are wrong; only the id attribute can be overridden. Mind updating the docs? Thanks, 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: onRestart() method not called on restart
On 15 apr, 21:32, ~ TreKing treking...@gmail.com wrote: On Thu, Apr 15, 2010 at 11:05 AM, nickon nickvanbae...@gmail.com wrote: What is the reason that this method is never called? Am I understanding the activity lifecycle wrong? Not sure, but I've never used onStop or onRestart. I would use onPause and onResume. --- -- TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking Those were the methods I used before, but those did not work either, I believe the problem was that onResume() was never called. But will try this again. Maybe it has something to do with the structure of my program? Normally when I switch back to my app I would say that the onResume or onRestart etc HAVE to be called, but maybe they don't get focus or I don't know (else I would not be posting here xD) My app actually contains the following (important) classes: tetris.java (the activity where I override on...() methods and where I set my contentview to gamescreen which is a tetrisview) tetrisview.java (the tetrisview class which extends SurfaceView) tetristhread.java (the thread that draws onto the canvas of the tetrisview) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Game develop like Air Attack touching screen event
Anyone have download and played the Air Attach? In this game, 1.The man can go right when you touch and move finger to the right and can go left when touch and move finger to the left, 2.Touch and release, it is launching a missile I'm also want's to develop a game and have this function, Would you tell me how to implement it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Selling outside the Android Market-- Use Google Checkout to sell direct from website??? SlideMe.Org??
I would not trust SlideMe. For my best selling app, I had 10,000 sales through Google Market, 900 sales via PayPal and 20 sales via SlideMe. So I stopped my sales on SlideMe and asked for a payout. They told me they only do payouts $100. I asked if this was a scam since the vast majority of developers don't even reach that figure with them. So one guy from SlideMe sent me an email that he was shocked I suggested fraud and that he would of course give me my payout. I apologized and gave him by banking information and invoice. Never heard from him again. Emails to customer service have been unanswered. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: wlan.ko and tiwlan.ini ?
hhmm, isn't this kinda of topic-hijacking ? It's somewhat off-topic and even the subject of discussion has been changed completely... On 16 apr, 00:23, Emre A. Yavuz eayl...@hotmail.com wrote: Does anybody know where to find a good tutorial on wlan.ko module and tiwlan.ini configuration file ? What do they do ? How do they do it etc. ? They are associated with the Tethering process. I've searched the net, but I haven't noticed anything solid yet. Cheers, Emre _ Hotmail Messenger are available on your phone. Try now.http://go.microsoft.com/?linkid=9724461 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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] How to provide animation when calling another activity in Android?
Hi, I have two Activities A and B. I want to have the shrink Animation when Activity A calls B and maximize animation when Activity B calls A. I don't need the animation xml files for this. When we call another Activity in Android it gives its default animation and then it calls shrink animation. What I want is that the default animation should not occur and the animation that I want should occur. Can we actually give the animation when calling another Activity? Hope to get a quick response. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 switch between views following a finger ?
I will see. Thanks. On 15 avr, 19:49, Marc gobl...@gmail.com wrote: I used this tutorialhttp://whyandroid.com/android/174-flipping-your-views.html On Apr 15, 1:19 am, Julien Del Rio julien.del...@gmail.com wrote: Hi, I can't find a tutorial on Google for my problem. I'm french and i don't find the best google keywords for to describe my goal. I decided to ask the question here. I want to do an animation between views like on the Home or on the Calendar in week mode. I want the switch between the views follows the finger. As I have not released the pressure, I see a part of the current view an a part of the next view. Currently, I use a AnimatorView and 2 gestures. But the change happens when the pressure is released, and it's not good. Can someone explain to me how to do or where to find a tutorial that explain? Thank you, ps : please, don't laugh about my english, it's worst when I speak with my very french accent :P -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Clear defaults programmatically
Does anyone know how to clear defaults of my own app by code. I know that a user can always go to Manage Applications, find my app and click the button there to clear previously assigned default actions. But for most users this isn't intuitive at all. I would like to offer my customers a solution to clear defaults within my own app if they don't like to use my app as a replacement for a specific action anymore. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Cancel Alarms / Filtering
Code below creates an Alarm, so far everything is working fine. But i am a bit lost in the Documentaion how to cancel an Alarm. I need to cancel only special Alarm(s) depending on Intent#putExtra(IntentConstants.SELECTED_PRIMARY_KEY,_selectedID); How can i archive this ? public static void createRetryAlarm(final int _selectedID, final Context _context) { if (Logging.isLoggingEnabled()) { Log.d(LOG_TAG, Creating retry alarm for selected with id : + _selectedID); } final long now = System.currentTimeMillis(); // final Intent intent = new Intent(_context, AlarmBroadcastReciever.class); intent.putExtra(IntentConstants.SELECTED_PRIMARY_KEY, _selectedID); final int requestID = alarmCounter.incrementAndGet(); final PendingIntent pendingIntent = PendingIntent.getBroadcast(_context, requestID, intent, PendingIntent.FLAG_ONE_SHOT); final AlarmManager alarmManager = (AlarmManager) _context.getSystemService(Context.ALARM_SERVICE); alarmManager.set(AlarmManager.RTC_WAKEUP, now + (AlarmManager.INTERVAL_HALF_HOUR), pendingIntent); } Many Thanks, Jens -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Current consensus on whether to use Copy Protect mode when publishing in Market?
Without wishing to start a firestorm, what is the current consensus on whether or not it is useful to use the Copy Protect setting when publishing on the Market? What are the pros and cons of doing so? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Game develop like Air Attack touching screen event
Dear all, i tested below, but it don't work 1. I wrote my GodsendView public class GodsendView extends View implements OnTouchListener { @Override public boolean onTouch(View v, MotionEvent event) { Log.d(harvey, onTouch); return false; } } 2.wrote a xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.android.godsend.GodsendView android:id=@+id/godsend android:layout_width=fill_parent android:layout_height=fill_parent tileSize=24 / /LinearLayout 3. Activity public class GodSendActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } but after i touch the screen, can't print my test log Log.d(harvey, onTouch); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] sdcard and music player app
Hi, I have some doubt with respect to the Music player application. When I insert the SDcard , MediaScannerService scans the SDcard for any media content. When I start the Music player application I can the Aritst/album/songs list etc. When I remove the SDcard and start the Music player again the artist/album/songs list is destroyed. Could anyone tell me about how the artist/album/songs list is destroyed. Which file/service takes care of this? Any help will be appreciated. Thanks Regards, Channa -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google IO Tickets?
I am looking for one or two tickets I dorked around for WAY too long, and missed out by a week on buying tickets! I really would love to go, being a small, poor developer, who needs to go interface at these things I have money to pay for the ticket(s) (HOW MUCH DO YOU WANT?!) Do you have a ticket or two that you cant use? Help a fellow developer out! Think about it this way. At least you got a free phone out of the deal! Let me know what I can do to go this year! rogerl.andr...@gmail.com creator of NotCallLog and some new secret Android stuff. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Related Task
use android:launchMode=singleTask On Apr 16, 11:25 am, sunita agrawal.suni...@gmail.com wrote: Suppose one application is there named Display. It holds many activities.Lets take Root activity is (a). I start activity (b) (which is also a part of Application Display) from a provider class ( which is not activity ).Activity (b) is started in new task.I close activity (b).I press home and start display again.It shows activity (b) , but i want activity (a) to be displayed. Basically I want to shut down the new task that has been started for hosting (b). I already used the following attributes but still not working as I want. android:clearTaskOnLaunch=true android:finishOnTaskLaunch=true 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 athttp://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: Current consensus on whether to use Copy Protect mode when publishing in Market?
Good question, would love to hear the answer myself. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL and the use of ByteBuffers
If glTexImage2D is more than 100ms, glTexSubImage2D doesn't make any sense. I found that this will only happen on phones with snapDragon chips, like Nexus one, Liquid and so on. I tried a lot, can't solve it yet. On 2月24日, 下午5时19分, Ralf Schneider li...@gestaltgeber.com wrote: 2010/2/24 Jonathan jon.aposto...@gmail.com It's a 2D application, and the contents of the screen (as represented by this internal array I'm passing around) can change at any given time. I'm think I may have to use some combination of sub texture updates in order to get what want and have it be smooth. Uploading a 512x256 texture each frame may be too much. Any other ideas how I can speed this up? You can try: glTexSubImage2D http://www.khronos.org/opengles/documentation/opengles1_0/html/glTexS...instead of glTexImage2D. Usually this function is the right choice to update textures frequently. glTexSubImage2D may have the advantage to not require the OpenGL Es memory management system, because an existing texture (memory area) gets updated. Furthermore some OpenGL ES implementation implicit convert textures to one of its internal formats. For example the implementation may convert all textures to 565 or regardless of the format you provide. Thus, if you provide textures in an native format the implementation could do a plain copy of the data, instead of a more expensive conversion. ... But i have no real data available. These are just general advices floating in the intertubes. Regards, Ralf -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Cancel Alarms / Filtering
I made some Test to terminate the pending Alarms. I figured out that the API Doc seems to be wrong for Method: PendingIntent.getBroadcast(...) WRONG: requestCode Private request code for the sender (currently not used). --- If you're using another requestCode the Alarm will not be killed! For testing i just used '0' and out of a sudden it worked for me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Selling outside the Android Market-- Use Google Checkout to sell direct from website??? SlideMe.Org??
Martin, Your ticket reference is still open but as stated you need to conform to issuing a proper invoice based on the report we will issue you and not just a copy and paste in some document of some transactions as you choose to do so. There is a formal format you need to follow so such an invoice can be acceptable and a minimum - and you have not received this minimum. If the developer community prefers for us to remit payout below the $100 minimum, we could come up with a plan to accommodate. Maybe we could remit pre-payments as deposits, and then await for invoices from developers. Will need to confirm this first. The reason, we are requiring invoices from developers, is since SlideME is invoicing end users and applying sales taxes where applicable, such as VAT etc, we also need to receive invoices of such expense costs. Otherwise we will be taxed on the whole amount of the sale as being profit. Thus, we wont be able to provide such a high payout to developers. Hope this normal business practice is understood by most developers here. Similarly, you are expected to invoice your end users from the other stores you use to obey regulations and apply sales taxes and remit such collected sales taxes to each local authority. This is where SlideME handles all these complexities for developers. In terns of other issues posted in this thread, one needs to keep in mind when these problems occurred and why. It's very easy for one to post some negative comments especially when they were in fault and using them against us today. Will make sure we consult and update you all to what extent we can reveal such information without breaching any agreements we have in place, that will be valuable to developers overall. Additionally, will come up with some variant models to initiate for discussions to satisfy any developers concerns. The SlideME discussion forums will be the place for this. George | SlideME On Fri, Apr 16, 2010 at 10:36 AM, mot12 martin.hu...@gmail.com wrote: I would not trust SlideMe. For my best selling app, I had 10,000 sales through Google Market, 900 sales via PayPal and 20 sales via SlideMe. So I stopped my sales on SlideMe and asked for a payout. They told me they only do payouts $100. I asked if this was a scam since the vast majority of developers don't even reach that figure with them. So one guy from SlideMe sent me an email that he was shocked I suggested fraud and that he would of course give me my payout. I apologized and gave him by banking information and invoice. Never heard from him again. Emails to customer service have been unanswered. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] need a callback on clicking a link obtained after using linkify
I am using linkify on a textview to make the links out of phone numbers and email addresses.When i click on the phone number it opens a window of android where it uses the utility of android to make a call.What i want is that when i click on the link the control should be returned to me so that i can do what i want.That is i want a kind of callback on clicking the link -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 overwrite the default background of List Item in A ListView when the List Item has focus
Hi All, I am trying to overwrite the default backgroud color of List item which is holding the focus in the ListView. As you can see, in Android Setting Menu, when you scroll through the ListView, the focused ListItem has a red backgroud to highlight its focus. Does any way to change the default behavior by highlighting it with other color or just a bottom red line under this Item. Any comments are welcome. BRs Guoyin Chen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Cancel Alarms / Filtering
Created an Issue for that: http://code.google.com/p/android/issues/detail?id=7780 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL and the use of ByteBuffers
From my experience this also happens with the PowerVR chips in the Droid/Milestone On 16 Apr., 13:07, Eong eong.c...@gmail.com wrote: If glTexImage2D is more than 100ms, glTexSubImage2D doesn't make any sense. I found that this will only happen on phones with snapDragon chips, like Nexus one, Liquid and so on. I tried a lot, can't solve it yet. On 2月24日, 下午5时19分, Ralf Schneider li...@gestaltgeber.com wrote: 2010/2/24 Jonathan jon.aposto...@gmail.com It's a 2D application, and the contents of the screen (as represented by this internal array I'm passing around) can change at any given time. I'm think I may have to use some combination of sub texture updates in order to get what want and have it be smooth. Uploading a 512x256 texture each frame may be too much. Any other ideas how I can speed this up? You can try: glTexSubImage2D http://www.khronos.org/opengles/documentation/opengles1_0/html/glTexS...instead of glTexImage2D. Usually this function is the right choice to update textures frequently. glTexSubImage2D may have the advantage to not require the OpenGL Es memory management system, because an existing texture (memory area) gets updated. Furthermore some OpenGL ES implementation implicit convert textures to one of its internal formats. For example the implementation may convert all textures to 565 or regardless of the format you provide. Thus, if you provide textures in an native format the implementation could do a plain copy of the data, instead of a more expensive conversion. ... But i have no real data available. These are just general advices floating in the intertubes. Regards, Ralf -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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] glTexImage2D very slow on phones like Nexus one
Hi, We are developing 2D games. And we found our game works fine except the snapdragon chips, like Nexus one and Liquid A1. It even runs fine on G1. We use GLSurfaceView, and we use glTexImage2D and glTexIsubmage2D to put on the text and then draw. The glTexImage2D class take more than 100ms on Nexus one (1024x512 pix tex). It's very strange, G1 is even faster than this. If anyone know something about this? -Code snip--- gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); gl.glTexSubImage2D(GL10.GL_TEXTURE_2D, 0, 0, 0, m_width, m_height, GL10.GL_RGB, GL_UNSIGNED_SHORT_5_6_5, m_byteCanvas); ((GL11Ext)gl).glDrawTexiOES(0, 0, 0, m_width, m_height); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] listen for changes made in ContactMethod table
Hi. i am trying to listen out for for changes made in ContactMethod table using the code below: mPeopleObserver = new ContactContentObserver(mHandler); this.getContentResolver().registerContentObserver(Contacts.ContactMethods.CONTENT_URI, true, mPeopleObserver); It doesnt seem to work whenever i change a contacts email address or instant messanger details. i have a conentObserver method below that should catch and notify me of any changes made to the table but it doesnt. /** * ContentObserver to get the call backs for changes in the onChange method */ private class ContactContentObserver extends ContentObserver { public ContactContentObserver(Handler handler) { super(handler); } public void onChange(boolean selfChange) { // Excute Aggregation process try { Log.d(AggregationService, onChange fired by content observer); AggregateContacts(); } catch (Exception e) { e.printStackTrace(); } } } Cheers in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Application wake up
Thanks Guys. Its working now. So the process goes like this: 1. In your manifest file, make a activity and a receiver. Mention your receiver class name here. 2. Make a entry for uses-permission android:name = android.permission.RECEIVE_SMS 3. To test on emulator, test by DDMS perspective view. 4. You application will receive SMS while its dead too. in Onreceive(), read the SMS and do whatever you want. you can also start your activity from here. Thanks sam On Mar 19, 7:56 am, Andreas andreas.bex...@gmail.com wrote: Hi, Please note that there is no longer any class called IntentReceiver. It is now called BroadcastReceiver. Also, to get this to work, you need to register the receiver in the AndroidManifest.xml like this: receiver android:name=.RespToSMS intent-filter action android:name=android.provider.Telephony.SMS_RECEIVED / /intent-filter /receiver Regards, Andreas On Mar 18, 2:50 pm, Vaibhav Kulkarni vaibhavkul...@gmail.com wrote: Hi Sam, I think you should create a service for that!!! You can use Intent for SMS in following way public class RespToSMS extends IntentReceiver { /* package name for Intent */ static final String ACTION = android.provider.Telephony.SMS_RECEIVED; public void onReceiveIntent(Context context, Intent intent) { if (intent.getAction().equals(ACTION)) { StringBuilder buf = new StringBuilder(); Bundle bundle = intent.getExtras(); if (bundle != null) { SmsMessage[] messages = Telephony.Sms.Intents.getMessagesFromIntent(intent); for (int i = 0; i lt; messages.length; i++) { SmsMessage message = messages[i]; buf.append(message.getDisplayMessageBody()); /* Check your SMS format and respond here... */ } } NotificationManager nm = (NotificationManager) context.getSystemService( Context.NOTIFICATION_SERVICE); nm.notifyWithText(123, buf.toString(), NotificationManager.LENGTH_LONG, null); } } } Thanks, Vaibhav On Thu, Mar 18, 2010 at 10:33 AM, SAM gulati...@gmail.com wrote: Hi, I have a requirement to wake up my application upon receiving a particular formatted SMS or App directed notification from server. My application is in dead state. Whenever the device receives a event may be a SMS in a particular format OR some notification(eg app directed notification from server), android OS will start my application. Its possible in Windows Mobile and BREW. Please let me know if its possible in Android and how. Thanks Sam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- 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] Why am i getting same values of different JSON date values?
I do not know the reason why am i getting same values of different JSON date values. Here is my code for parsing date values in JSON date format: package com.jsondate.parsing; import java.text.SimpleDateFormat; import java.util.Date; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class JSONDateParsing extends Activity { /** Called when the activity is first created. */ String myString; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); TextView tv = new TextView(this); //Date d = (new Date(1266029455L)); //Date d = (new Date(1266312467L)); Date d = (new Date(1266036226L)); //String s = d.getDate() + - + d.getMonth() + - + d.getYear() + d.getHours() + d.getMinutes() + d.getSeconds(); // SimpleDateFormat sdf=new SimpleDateFormat( MMM dd @ hh:mm aa); //Toast.makeText(this, d.toString(), Toast.LENGTH_SHORT); Log.e(Value:, d.toString()); myString = d.toString(); String []words = myString.split( ); for(int i = 0;i words.length; i++) Log.e(Value:, words[i]); myString = words[2] + - + words[1] + - + words[5] + + words[3]; tv.setText(myString); setContentView(tv); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Current consensus on whether to use Copy Protect mode when publishing in Market?
There were reports, albeit old reports (November/December 2009 timeframe) that having copy protection turned on could cause your app to not be visible in the market on all devices. I know of some developers that turned off copy protection and their apps returned to the market visible to all. I'm not sure how things currently are or what peoples experiences have recently been. Just a little FYI... On Fri, Apr 16, 2010 at 6:01 AM, Paul idi...@gmail.com wrote: Good question, would love to hear the answer myself. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Get file path from asset
On 04/15/10 11:17, Ne0 wrote: Thanks, I hadn't, but i have now and it did not work. pdg was a typo i meant. .. Uri path = Uri.fromFile(new File(assets/UserGuide.pdf); .. Any other suggestions? I don't think other apps can access assets that are part of your .apk directly--you might have to copy it to the sdcard and have the PDF viewer access it from there -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] UncaughtExceptionHandler not called ?
Hello, i use a ScheduledThreadPoolExecutor combined with a ThreadFactory, their all combined should cause an unchaught Exception to be logged so that i can see what happening if any thread is dying in the ThreadPool: threadPool = new ScheduledThreadPoolExecutor(poolSize, new ThreadFactory()); My ThreadFactory, also sets a UncaughtExceptionHandler : public Thread newThread(final Runnable r) { final Thread thread = new Thread(r); thread.setUncaughtExceptionHandler(new ThreadLogger()); final int counter = count.getAndIncrement(); final String name = threadName + counter; thread.setName(threadName + counter); if (Logging.isLoggingEnabled()) { Log.d(LOG_TAG, Thread created : + name); } return thread; } The ThreadLogger : public final class ThreadLogger implements Thread.UncaughtExceptionHandler { private final static String LOG_TAG = ThreadLogger.class.getSimpleName(); /* * (non-Javadoc) * * @see * java.lang.Thread.UncaughtExceptionHandler#uncaughtException(java.lang * .Thread, java.lang.Throwable) */ @Override public void uncaughtException(final Thread _thread, final Throwable _ex) { Log.e(LOG_TAG, uncaughtException, Name + _thread.getName() + prio + _thread.getPriority(), _ex); } But when a RuntimeException is thrown the Handler never get called. Is this a Bug ? Best regards, Jens -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Motorola Droid / Milestone projector
Thanks a lot! On 15 abr, 19:47, Mark Murphy mmur...@commonsware.com wrote: ftovalle wrote: Hi everybody, i want to show my interaction from my cell phone in projector (or into PC monitor), is there way? anybody know? My cell phone is a motorola droid (actual name is milestone). Oh, and i don´t want to show my apps into a emulator. You can use dr...@screen: https://gems.codaset.com/jens-riboe/droidatscreen or the earlier DroidEx: http://github.com/commonsguy/droidex -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to overwrite the default background of List Item in A ListView when the List Item has focus
android:listSelector On Fri, Apr 16, 2010 at 6:23 AM, waterblood guoyin.c...@gmail.com wrote: Hi All, I am trying to overwrite the default backgroud color of List item which is holding the focus in the ListView. As you can see, in Android Setting Menu, when you scroll through the ListView, the focused ListItem has a red backgroud to highlight its focus. Does any way to change the default behavior by highlighting it with other color or just a bottom red line under this Item. Any comments are welcome. BRs Guoyin Chen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Get file path from asset
Good point, but i still need to know the path to my assets to be able to copy it don't i? I don't really want to open a Reader and copy it that way. As a workaround i am now just downloading the file from the web, but i would much prefer to have it embedded in my package. Ne0 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: UncaughtExceptionHandler not called ?
Just to make this Complete, there some J2SE Code which shows whats expected: public final class ThreadLogger implements Thread.UncaughtExceptionHandler { private final static String LOG_TAG = ThreadLogger.class.getSimpleName(); /* * (non-Javadoc) * * @see * java.lang.Thread.UncaughtExceptionHandler#uncaughtException(java.lang * .Thread, java.lang.Throwable) */ @Override public void uncaughtException(final Thread _thread, final Throwable _ex) { System.out.println(uncaughtException, Name + _thread.getName() + prio + _thread.getPriority()); _ex.printStackTrace(); } public static void main(String[] args) { Thread.currentThread().setUncaughtExceptionHandler(new ThreadLogger()); throw new RuntimeException(You just caught me..); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] glTexImage2D very slow on phones like Nexus one
Just a guess: It can be the same error reported here: http://code.google.com/p/android/issues/detail?id=7520 Take a look... Felipe Silveira http://www.felipesilveira.com.br On Fri, Apr 16, 2010 at 8:40 AM, Eong eong.c...@gmail.com wrote: Hi, We are developing 2D games. And we found our game works fine except the snapdragon chips, like Nexus one and Liquid A1. It even runs fine on G1. We use GLSurfaceView, and we use glTexImage2D and glTexIsubmage2D to put on the text and then draw. The glTexImage2D class take more than 100ms on Nexus one (1024x512 pix tex). It's very strange, G1 is even faster than this. If anyone know something about this? -Code snip--- gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); gl.glTexSubImage2D(GL10.GL_TEXTURE_2D, 0, 0, 0, m_width, m_height, GL10.GL_RGB, GL_UNSIGNED_SHORT_5_6_5, m_byteCanvas); ((GL11Ext)gl).glDrawTexiOES(0, 0, 0, m_width, m_height); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Felipe Silveira Engenharia da Computação Universidade Federal de Itajubá http://www.felipesilveira.com.br MSN: felipeuni...@hotmail.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] Wifi - Unable to scan for networks
Hi, in Wifi module, postAttemptScan is used to retry for the scanning. Below is the section of code. Here SCAN_MAX_RETRY is 5, if it retry it for 4 times ( as he is doing below ), then it will display Unable to scan Network and immediately displays the Scan AP. if it retry it for 5 times, then it will not display the message and displays the Scan AP. Whey is this behavior? mScanRetryCoun = 0; private void postAttemptScan() { //onScanningStarted(); if (++mScanRetryCount SCAN_MAX_RETRY) { // Just in case, remove previous ones first removeFutureScans(); mHandler.sendEmptyMessageDelayed(MESSAGE_ATTEMPT_SCAN, SCAN_RETRY_DELAY_MS); } else { // Show an error once we run out of attempts error(R.string.error_scanning); onScanningEnded(); } } Attached log 1 With 5 retry V/SettingsWifiLayer( 1483): ---postAttemptScan IN V/SettingsWifiLayer( 1483): ---mScanRetryCount 4 D/wpa_supplicant( 1578): WPA_SUPP: enter into wpa_supplicant_scan I/wpa_supplicant( 1578): [WPA_SPCNT] wpa_supplicant_scan = enabled=0 wpa_s-scan_req=0 D/wpa_supplicant( 1578): No enabled networks - do not scan D/wpa_supplicant( 1578): WPA_SUPP: enter into wpa_supplicant_set_state D/wpa_supplicant( 1578): WPA_SUPP: enter into wpa_supplicant_state_txt D/wpa_supplicant( 1578): WPA_SUPP: enter into wpa_supplicant_state_txt D/wpa_supplicant( 1578): State: SCANNING - INACTIVE I/wpa_supplicant( 1578): CTRL-EVENT-STATE-CHANGE id=-1 state=1 D/wpa_supplicant( 1578): WPA_SUPP: enter into wpa_supplicant_ctrl_iface_msg_cb D/wpa_supplicant( 1578): WPA_SUPP: enter into wpa_supplicant_ctrl_iface_send D/wpa_supplicant( 1578): WPA_SUPP: leave from wpa_supplicant_ctrl_iface_msg_cb D/wpa_supplicant( 1578): WPA_SUPP: leave from wpa_supplicant_set_state W/WifiHW ( 1238): [HAL] wifi_command=AP_SCAN 1 E/WifiHW ( 1238): [HAL] Not connected to wpa_supplicant - AP_SCAN 1 command dropped. W/WifiHW ( 1238): [HAL] wifi_command=SCAN E/WifiHW ( 1238): [HAL] Not connected to wpa_supplicant - SCAN command dropped. V/SettingsWifiLayer( 1483): ---postAttemptScan IN V/SettingsWifiLayer( 1483): ---mScanRetryCount 5 I/WifiMonitor( 1238): WifiMoniotr will launch WifiNative.conectToSupplicant() /WifiMonitor( 1232): WifiMoniotr will launch WifiNative.conectToSupplicant() E/WifiHW ( 1232): wifi_connect_to_supplicant 2. with 4 retry V/SettingsWifiLayer( 1483): ---postAttemptScan IN /SettingsWifiLayer( 1411): ---mScanRetryCount 4 D/wpa_supplicant( 1507): WPA_SUPP: enter into wpa_supplicant_scan I/wpa_supplicant( 1507): [WPA_SPCNT] wpa_supplicant_scan = enabled=0 wpa_s-scan_req=0 D/wpa_supplicant( 1507): No enabled networks - do not scan D/wpa_supplicant( 1507): WPA_SUPP: enter into wpa_supplicant_set_state D/wpa_supplicant( 1507): WPA_SUPP: enter into wpa_supplicant_state_txt D/wpa_supplicant( 1507): WPA_SUPP: enter into wpa_supplicant_state_txt D/wpa_supplicant( 1507): State: SCANNING - INACTIVE I/wpa_supplicant( 1507): CTRL-EVENT-STATE-CHANGE id=-1 state=1 D/wpa_supplicant( 1507): WPA_SUPP: enter into wpa_supplicant_ctrl_iface_msg_cb D/wpa_supplicant( 1507): WPA_SUPP: enter into wpa_supplicant_ctrl_iface_send D/wpa_supplicant( 1507): WPA_SUPP: leave from wpa_supplicant_ctrl_iface_msg_cb D/wpa_supplicant( 1507): WPA_SUPP: leave from wpa_supplicant_set_state W/WifiHW ( 1232): [HAL] wifi_command=AP_SCAN 1 E/WifiHW ( 1232): [HAL] Not connected to wpa_supplicant - AP_SCAN 1 command dropped. W/WifiHW ( 1232): [HAL] wifi_command=SCAN E/WifiHW ( 1232): [HAL] Not connected to wpa_supplicant - SCAN command dropped. V/SettingsWifiLayer( 1411): ---run out of attempts: error E/SettingsWifiLayer( 1411): Unable to scan for networks Behavior of both is same, but only thing is displaying of Unable to scan for networks extra message. Please let me know why is this difference when scanned for 4 or 5 times. Regards Gururaja B O -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 overwrite the default background of List Item in A ListView when the List Item has focus
Or in the code, use setSelector method of listview. Something like: myListView.setSelector(R.drawable.listdrawable) http://developer.android.com/intl/zh-CN/reference/android/widget/AbsListView.html#setSelector%28int%29 public void setSelector (int resID) Since: API Level 1http://developer.android.com/guide/appendix/api-levels.html#level1 Set a Drawable that should be used to highlight the currently selected item. Related XML Attributes - android:listSelectorhttp://developer.android.com/reference/android/widget/AbsListView.html#attr_android:listSelector Parameters resID A Drawable resource to use as the selection highlight. -- Carmen http://www.twitter.com/CarmenDelessio http://www.talkingandroid.com http://www.facebook.com/BFFPhoto http://www.twitter.com/DroidDrop On Fri, Apr 16, 2010 at 9:02 AM, social hub shubem...@gmail.com wrote: android:listSelector On Fri, Apr 16, 2010 at 6:23 AM, waterblood guoyin.c...@gmail.com wrote: Hi All, I am trying to overwrite the default backgroud color of List item which is holding the focus in the ListView. As you can see, in Android Setting Menu, when you scroll through the ListView, the focused ListItem has a red backgroud to highlight its focus. Does any way to change the default behavior by highlighting it with other color or just a bottom red line under this Item. Any comments are welcome. BRs Guoyin Chen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to overwrite the default background of List Item in A ListView when the List Item has focus
android:listSelector=@android:color/transparent I have used this to set color and it works. On Fri, Apr 16, 2010 at 8:20 AM, Carmen Delessio carmendeles...@gmail.comwrote: Or in the code, use setSelector method of listview. Something like: myListView.setSelector(R.drawable.listdrawable) http://developer.android.com/intl/zh-CN/reference/android/widget/AbsListView.html#setSelector%28int%29 public void setSelector (int resID) Since: API Level 1http://developer.android.com/guide/appendix/api-levels.html#level1 Set a Drawable that should be used to highlight the currently selected item. Related XML Attributes - android:listSelectorhttp://developer.android.com/reference/android/widget/AbsListView.html#attr_android:listSelector Parameters resID A Drawable resource to use as the selection highlight. -- Carmen http://www.twitter.com/CarmenDelessio http://www.talkingandroid.com http://www.facebook.com/BFFPhoto http://www.twitter.com/DroidDrop On Fri, Apr 16, 2010 at 9:02 AM, social hub shubem...@gmail.com wrote: android:listSelector On Fri, Apr 16, 2010 at 6:23 AM, waterblood guoyin.c...@gmail.comwrote: Hi All, I am trying to overwrite the default backgroud color of List item which is holding the focus in the ListView. As you can see, in Android Setting Menu, when you scroll through the ListView, the focused ListItem has a red backgroud to highlight its focus. Does any way to change the default behavior by highlighting it with other color or just a bottom red line under this Item. Any comments are welcome. BRs Guoyin Chen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to overwrite the default background of List Item in A ListView when the List Item has focus
you can also use setSelector as mentioned by Carmen On Fri, Apr 16, 2010 at 8:28 AM, social hub shubem...@gmail.com wrote: android:listSelector=@android:color/transparent I have used this to set color and it works. On Fri, Apr 16, 2010 at 8:20 AM, Carmen Delessio carmendeles...@gmail.com wrote: Or in the code, use setSelector method of listview. Something like: myListView.setSelector(R.drawable.listdrawable) http://developer.android.com/intl/zh-CN/reference/android/widget/AbsListView.html#setSelector%28int%29 public void setSelector (int resID) Since: API Level 1http://developer.android.com/guide/appendix/api-levels.html#level1 Set a Drawable that should be used to highlight the currently selected item. Related XML Attributes - android:listSelectorhttp://developer.android.com/reference/android/widget/AbsListView.html#attr_android:listSelector Parameters resID A Drawable resource to use as the selection highlight. -- Carmen http://www.twitter.com/CarmenDelessio http://www.talkingandroid.com http://www.facebook.com/BFFPhoto http://www.twitter.com/DroidDrop On Fri, Apr 16, 2010 at 9:02 AM, social hub shubem...@gmail.com wrote: android:listSelector On Fri, Apr 16, 2010 at 6:23 AM, waterblood guoyin.c...@gmail.comwrote: Hi All, I am trying to overwrite the default backgroud color of List item which is holding the focus in the ListView. As you can see, in Android Setting Menu, when you scroll through the ListView, the focused ListItem has a red backgroud to highlight its focus. Does any way to change the default behavior by highlighting it with other color or just a bottom red line under this Item. Any comments are welcome. BRs Guoyin Chen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Current consensus on whether to use Copy Protect mode when publishing in Market?
On Apr 16, 1:42 pm, Justin Giles jtgi...@gmail.com wrote: There were reports, albeit old reports (November/December 2009 timeframe) that having copy protection turned on could cause your app to not be visible in the market on all devices. This does continue to be the case, apparently due to Google being lax about adding new devices' fingerprints to the Market database. If the Market doesn't know about a given device, it won't show copy- protected apps. Currently, this seems to be the case for the HTC Desire, and possibly other handsets: http://www.google.com/support/forum/p/Android+Market/thread?tid=72687bc93eba9a1bhl=en IOW, if you turn on copy protection, users of some new devices won't see your app until Google gets around to updating the database. On the other side of the coin, copy protection does provide SOME defense against users pirating your app. It's far from perfect - for users in the know, it's pretty easy to circumvent. Real app pirates do this all the time; copy protection is essentially NO protection as far as they're concerned. But IMO it is sufficient to keep average, non-technical users from passing out copies to all their friends. For free apps, I don't see any advantage to copy protection. For paid apps, it's a judgement call: Enable it and lose some sales to people who can't see it on the Market, or disable it and lose some sales to people sharing your app rather than paying for it. It's a lose/lose situation, but I have no idea which is the lesser of the two evils. It's your call. 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: Morphing TextView background images?
If you stack the two drawables as ImageViews on top of each other (possibly using a FrameLayout or RelativeLayout) a Tween Animation [http://developer.android.com/intl/fr/guide/topics/graphics/2d- graphics.html#tween-animation] using an alpha transformation should create the appearance of a cross-fade. One of the caveats is that I believe this trick will only work if your images are separate ImageViews and not a background attribute of the TextView. Juan On Apr 15, 9:09 pm, HippoMan hippo.mail...@gmail.com wrote: I'd like to change the background image of a TextView by morphing it into the new image. What I mean by this is that I want the old image to fade out at the same time the new image is fading in, so that it looks like the old image is transforming itself into the new image. I know how to cause the old image to fade out and then immediately afterwards have the new image fade in. However, I'm looking for a way to cause the fade-out and the fade-in to occur simultaneously. I'm sure that this can be done by fiddling with the images outside of Android, but what I'm looking for is a way to use nothing more than Android's standard animation facilities to implement this morphing behavior with any two, standard, PNG background images. Is this possible? I haven't been able to find any docs that describe how to do this, and so I'm not optimistic that this can be accomplished solely via Android animation. But hope springs eternal, and so if anyone knows of a way to implement this in Android, I'd very much appreciate a pointer to some instructions or examples. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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: Current consensus on whether to use Copy Protect mode when publishing in Market?
Let me share a nightmare with you that I'm still going through now. I have two apps on the market (screebl lite/pro) that have seen moderate success in Android Market terms, approaching 80k downloads. For the pro version, I had never enabled copy protection because of the problems that had been reported w.r.t. visibility. Also, I'd heard reports that the copy protection was fairly easy to break as well. As my apps have gained traction, piracy has picked up. I mean REALLY picked up. Over 40% of the installs of my pro version are pirated. I've heard all of B.S. args about how I shouldn't care because those people wouldn't have paid anyway, it's free adveretising, they're from markets that can't pay. Whatever. So in a recent release I decided to flip the copy protection switch on. I've heard that the visibility issues have been corrected lately. What a shit storm that released! Almost immediately my app's active installs dropped by 4 points, which is the most significant factor in market ranking. Then the emails and market comments started to pour in. F/c, your app has ruined my phone, I hate you and hope you die. Of course it took me a while to even track down the problem. Devs can't download their own paid apps. So far here's what I can tell happened: 1. Most installed users got F/Cs when trying to start the app after install. New installs seemed to work fine. 2. Problems occured across models and platform versions. 2. Uninstall/reinstall fixed the problem for some. 3. Some users had to do multiple reboots of the phone to get Screebl working. After these reboots, the application registry appeared to get out of whack, for some showing nothing but my app. 4. My app icon disappeared from many app drawers. 5. Doing an update and turning copy protection off seemed to fix the problems. My conclusion is this: make your mind up before you release. Google didn't used to let you change this setting on market, and now I can see why. I think they should move back in that direction until they have time to test this and iron out the defects. At least give a warning. I will just let the whole Google needs to figure the piracy thing out rant be implied here. Dave On Apr 16, 5:41 am, Geefer paul.gee...@googlemail.com wrote: Without wishing to start a firestorm, what is the current consensus on whether or not it is useful to use the Copy Protect setting when publishing on the Market? What are the pros and cons of doing 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 athttp://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] Avoid cache name collisions with webkit
I'd like to use my app's cache directory for storing small image files (80x80 thumbnails) downloaded from the internet, but at the same time I'm using WebViews which also want to use that area for images. What I want to avoid are file name collisions with webkit, so that cached content between the two uses don't clobber each other. I could put my cache files on the SD card exclusively, but I don't want to create a dependence on hardware that might not be there in all cases. I would use CacheManager, but I've heard that it can't be used outside of WebView. Is there a general naming structure to webkit-generated cache files? That would certainly help in avoiding name collisions. If not, is there another technique that has proven solid for avoiding this problem? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: A problem about -rpath-link
You may want to post your question to the Android-NDK list. On Apr 15, 9:45 pm, Ke Wu kerl@gmail.com wrote: Hi all, I got a new clue, in the rpath-link option, could be several paths, and use colon to separate these paths. So, if I want to use windows driver path, I must find out a way to transfer colon, But HOW COULD I ?? Any suggestion would be greatly appreciated! Thanks in advance GOD SAVE ME! T_T 2010/4/15 KerlW kerl@gmail.com I am learning Anroid development, trying to write native C program. I am using code sourcery g++ lite to compile and link my program, When I tried to link my program dynamically, I met a problem. I've pulled /system/lib from android emulator to my PC c:\androidlib when link , I need to pass this path to -L and -rpath-link option. -L c:\androidlib works. but -rpath-link c:\androidlib didn't work!! I've tried in many forms such as: -rpath-link c:/androidlib -rpath-link \c\androidlib -rpath-link \driver\c\androidlib None of above makes the linker know the correct path. How could I solve this problem?? Any suggestion would be greatly appreciated(aside using -static to avoid dynamic link). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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: A problem about -rpath-link
You should read this first: http://developer.android.com/sdk/ndk/index.html On Apr 15, 9:45 pm, Ke Wu kerl@gmail.com wrote: Hi all, I got a new clue, in the rpath-link option, could be several paths, and use colon to separate these paths. So, if I want to use windows driver path, I must find out a way to transfer colon, But HOW COULD I ?? Any suggestion would be greatly appreciated! Thanks in advance GOD SAVE ME! T_T 2010/4/15 KerlW kerl@gmail.com I am learning Anroid development, trying to write native C program. I am using code sourcery g++ lite to compile and link my program, When I tried to link my program dynamically, I met a problem. I've pulled /system/lib from android emulator to my PC c:\androidlib when link , I need to pass this path to -L and -rpath-link option. -L c:\androidlib works. but -rpath-link c:\androidlib didn't work!! I've tried in many forms such as: -rpath-link c:/androidlib -rpath-link \c\androidlib -rpath-link \driver\c\androidlib None of above makes the linker know the correct path. How could I solve this problem?? Any suggestion would be greatly appreciated(aside using -static to avoid dynamic link). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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: OutOfMemory calling MediaStore.Images.Media.getBitmap
The 750,000 bytes are the size of the *compressed* JPEG. A Bitmap instance holds the *raw* color data, not the compressed data. E.g. if the raw color data has format ARGB_, then each pixel uses 4 bytes: 5MPixel images will use 20MBytes of memory. If the raw color data has the format RGB_565, then each pixes uses 2 bytes: 5MPixel images will use 10MBytes of memory. This is what you see. To load the image for viewing, you don't need more than the screen- resolution. Use the inSampleSize of the BitmapFractory.Options; set it to a number larger than 1 (preferably a power of 2). On Apr 15, 5:53 pm, John studyst...@gmail.com wrote: After I've used a MediaStore.ACTION_IMAGE_CAPTURE intent to take a photo, when I try to retrieve the captured image, I sometimes get an out of memory error as shown below. The odd thing is the huge size of the memory trying to be allocated is always reported as 10,077,696 (x99c600). However, the image file is much smaller, typically around 750,000 bytes. Any suggestions on how to get around this problem? I'm testing this on a Nexus One with firmware version: 2.1-update1 and Build number: ERE27. - logcat output D/photo ( 5562): photoUri=content://media/external/images/media/32 E/dalvikvm-heap( 5562): 10077696-byte external allocation too large for this process. E/ ( 5562): VM won't let us allocate 10077696 bytes D/skia ( 5562): --- decoder-decode returned false W/System.err( 5562): java.lang.OutOfMemoryError: bitmap size exceeds VM budget W/System.err( 5562): at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) W/System.err( 5562): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:459) W/System.err( 5562): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:515) W/System.err( 5562): at android.provider.MediaStore$Images $Media.getBitmap(MediaStore.java:475) code used to start the camera --- Intent photoPickerIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE ); Uri photoUri = getNewTempPhotoUri(); photoPickerIntent.putExtra( MediaStore.EXTRA_OUTPUT, photoUri ); photoPickerIntent.putExtra( MediaStore.EXTRA_VIDEO_QUALITY, 0) ; // 0= low quality suitable for MMS photoPickerIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); activity.startActivityForResult(photoPickerIntent, WimgoApplication.ADD_PHOTO ); private Uri getNewTempPhotoUri() { ContentValues values = new ContentValues(); values.put(Media.TITLE, a title); values.put(Media.DESCRIPTION, a description); tempPhotoUri = null; try { tempPhotoUri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values); } catch(UnsupportedOperationException e){ try{ tempPhotoUri = getContentResolver().insert(Media.INTERNAL_CONTENT_URI, values); }catch(UnsupportedOperationException e2){ e2.printStackTrace(); } } return tempPhotoUri ; } - code called from my onActivityResult method used to retrieve the image Bitmap bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), tempPhotoUri ); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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: Map app with GPS is not working in Nexus One
On Fri, Apr 16, 2010 at 12:54 AM, SREEHARI sreehari.madhusooda...@wipro.com wrote: Hi TreKing, Sorry I dint get u My point is this: you have a null pointer exception. You showed exactly which line the exception happens on. In that line there is exactly one object you are using that could be null - locationMgr. Therefore, your problem is that locationMgr is null so your task is to step through your code, using your debugger, and find out why. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] java.nio IntBuffer.get perfomance problem
Hello. I have an direct buffer ByteBuffer mScreenBuffer = ByteBuffer.allocateDirect(width*height*4); I can read him trought byte[] bytebuf = new byte[width*height*4]; mScreenBuffer.get(bytefuf); and it will be lightingly fast Well, now i need array of ints so lets make some changes: int[] intbuf = new int[width*height]; mScreenBuffer.asIntBuffer().get(intbuf); oops, here we have a 3-second delay while data will be copied. Holy shit. Well, lets see what happens: (lets see in android\dalvik\libcore\nio\src\main\java\java\nio) 1) ByteBuffer.allocateDirect generate DirectByteBuffer 2) asIntBuffer() generate IntToByteBufferAdapter 3) IntToByteBufferAdapter extends IntBuffer implements DirectBuffer. DirectBuffer interface doesnt contain anything useful, lets see to IntBuffer class and what we see? IntByffer: -- public abstract int get(); --- so it will use DirectByteBuffer's get() method since they share only one get() method public IntBuffer get(int[] dest) { return get(dest, 0, dest.length); } public IntBuffer get(int[] dest, int off, int len) { int length = dest.length; if (off 0 || len 0 || (long)len + (long)off length) { throw new IndexOutOfBoundsException(); } if (len remaining()) { throw new BufferUnderflowException(); } for (int i = off; i off + len; i++) { dest[i] = get(); } return this; } It mean my 400x400 int array will produce 160k of DirectByteBuffer's get() calls DirectByteBuffer.java - public final byte get() { if (position == limit) { throw new BufferUnderflowException(); } return getBaseAddress().getByte(offset + position++); } Seems like there we use a jni call So it mean 160k of jni calls for one array copy. Am i somewhere wrong? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: java.nio IntBuffer.get perfomance problem
-- public abstract int get(); --- so it will use DirectByteBuffer's get() method since they share only one get() method It uses IntToByteBufferAdapter's .get(), but it uses DirectByteBuffer.getInt() so nothing important changes. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Social Gaming Platforms
Nice to know that at least one of the companies is actually interested in the developers :) On Apr 14, 4:02 am, Junde jun...@gmail.com wrote: Hi Michael, Rob and Mauricio, I'm Junde from Scoreloop and I'm here to help :) Yes, our Android platform is currently only available to a few developers we are talking to. We're building up our features set to match our iPhone social gaming capabilities, so we're currently only able to work closely with a few developers, who have ready games, and give us feedback at a rate which we can handle. We'll definitely be able to support on a much larger scale very soon. In the mean time, you can reach out to me at ju...@scoreloop.com Cheers, Junde On Apr 14, 12:07 am, Michael A. michael.aki...@gmail.com wrote: My first reply seems to have been misdirected. Apologies. As I mentioned in that post: Tapjoy seems to be an ad platform; not quite what the original poster requested. Geocade (http://www.geocade.com);isan alternative solution to the two you mention, Mauricio. It does not seem very full-featured though; it seems to be primarily just an on-line highscore system with regional sub-boards, though I haven't tried it out. They make their money through ads. I have no opinion onCasmulother than being a bit unclear on how they are planning to make money. Are there really that many (real) mobile game developers who are willing and able to pay a third-party to develop their games for them? I doubt it. Scoreloop seems to be the most fully featured service for Android; they are also big on iPhone. However, they are not being very responsive at the moment, as you note. OpenFeint - the biggestsocialgamingservice on iPhone - claims that they will be moving to Android soon as well, but it's anyone's guess when that will be. Regards, Michael A. On Apr 11, 4:54 pm, Rob Mazur r...@droiddojo.com wrote: Tapjoy (http://www.tapjoy.com) now supports Android. They look pretty solid. Rob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Sending email with attachment
Sorry for not responding earlier. This worked for me: public static void sendFile(Context context) { String emailPreference = PreferenceManager.getDefaultSharedPreferences(context).getString(emailPreference, ); String subjectPreference = PreferenceManager.getDefaultSharedPreferences(context).getString(subjectPreference, ); String bodyPreference = PreferenceManager.getDefaultSharedPreferences(context).getString(bodyPreference, ); if(subjectPreference.length() == 0) { subjectPreference = (String) context.getText(R.string.csv_subject); } String csvFile = getFilename(); File file = new File(csvFile); if(file.exists()) { Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_EMAIL, new String[] {emailPreference}); sendIntent.putExtra(Intent.EXTRA_SUBJECT, subjectPreference); sendIntent.putExtra(Intent.EXTRA_TEXT, bodyPreference); sendIntent.setType(text/csv); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File(csvFile))); context.startActivity(Intent.createChooser(sendIntent, context.getText(R.string.csv_send))); } else { Util.displayToast(context, R.string.no_csv_file); } } On Apr 14, 10:18 am, Scout Ma scoutma2...@gmail.com wrote: Thanks for your help. I want to write an application which will send email with an attachment through GMail on Android. But I don't have much time to study the basic of JavaMail. So, I wonder is there any sample for me to get in quickly. 2010/4/14 Kumar Bibek coomar@gmail.com So, you want to learn how to create an email app? It depends actually on the protocol that you want to work with. For POP and IMAP, there are libraries which you have to use. Check out Java Mail API for this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] onSharedPreferenceChanged() Not Called in Live Wallpaper (WallpaperService) Engine
I am experiencing something strange with a Live Wallpaper. I very closely followed several examples out there on Live Wallpapers in regards to shared preference settings (e.g. Android sample app Cube Live Wallpaper). The Engine implements SharedPreferences.OnSharedPreferenceChangeListener and the pertienent code in Engine looks like this: public static final String PREFS_NAME = some-name; Engine() { prefs = LiveWallpaperService.this.getSharedPreferences(PREFS_NAME, 0); prefs.registerOnSharedPreferenceChangeListener(this); } public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Log.e(getClass().getSimpleName(), on shared preference changed); } NOTE: I never unregister the Engine instance as a shared prefs listener. Although, I did move some things around to onCreate and onDestroy (added the unregister there) and had no impact as far as I could tell. The Settings class extends PreferenceActivity and implements SharedPreferences.OnSharedPreferenceChangeListener as well. And since that class has little code here is the body: @Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); getPreferenceManager().setSharedPreferencesName(Engine.PREFS_NAME); addPreferencesFromResource(R.xml.settings); getPreferenceManager().getSharedPreferences().registerOnSharedPreferenceChangeListener(this); } @Override protected void onDestroy() { getPreferenceManager().getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this); super.onDestroy(); } public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Log.e(getClass().getSimpleName(), on shared preference changed); } The only thing coming out in the log is from the Settings class for on shared pref change. Anyone have any idea why? In the implementations I've found for Live Wallpaper shared prefs settings, the Engine constructor either uses the shared preferences or calls to onSharedPreferenceChanged() directly. It seems like those other examples may be experiencing the same thing I described above, and they worked around it!?!? I do admit I have not taken the example code from others and tried it out to see if the Engine onSharedPreferenceChanged() gets called. I will do that tonight or this weekend. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] accessing and changing Sync setting for android 1.5, 1.6 and more
hi, i'm not able to find any example or documentation or tutorial about how to enable or disable sync (background data and auto sync) programmaticaly, even if i can found many widget that can do that without root access or such. is it something secret? :-) can any one may be good enough to help me and explain how this work and how to implement that into my code? i found some trick with URI and content://sync/setting but it seems to be not possible with android 1.6 at least :-( any idea why? and what replaced this? thanks a thousand time for all people that will answer to me. best regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Highlight part of the text in a textview object
Hi toghether i habe some text displayed in a textview and would like to highlight (e.g. a specific background or font color) part of it. But how can i do that? didn't found a solution in the api or google. thanks for any hint -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: glTexImage2D very slow on phones like Nexus one
I'm afraid it's not a same problem. My problem only happenes on Snapdragon phones. It's fine on Milestone or Droid. I found a few threads about this but no solution. On 4月16日, 下午9时15分, Felipe Silveira webfel...@gmail.com wrote: Just a guess: It can be the same error reported here:http://code.google.com/p/android/issues/detail?id=7520 Take a look... Felipe Silveirahttp://www.felipesilveira.com.br On Fri, Apr 16, 2010 at 8:40 AM, Eong eong.c...@gmail.com wrote: Hi, We are developing 2D games. And we found our game works fine except the snapdragon chips, like Nexus one and Liquid A1. It even runs fine on G1. We use GLSurfaceView, and we use glTexImage2D and glTexIsubmage2D to put on the text and then draw. The glTexImage2D class take more than 100ms on Nexus one (1024x512 pix tex). It's very strange, G1 is even faster than this. If anyone know something about this? -Code snip--- gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); gl.glTexSubImage2D(GL10.GL_TEXTURE_2D, 0, 0, 0, m_width, m_height, GL10.GL_RGB, GL_UNSIGNED_SHORT_5_6_5, m_byteCanvas); ((GL11Ext)gl).glDrawTexiOES(0, 0, 0, m_width, m_height); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Felipe Silveira Engenharia da Computação Universidade Federal de Itajubáhttp://www.felipesilveira.com.br MSN: felipeuni...@hotmail.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 athttp://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: What does targetSdkVersion do?
The camera doesn't use memory (for the most part) that would be accounted against the app and thus cause you to run out of memory. It is, however, a higher megapixel camera, and the resulting bitmaps you are making due to that in combination with the additional memory needed for higher density resources could easily account for you using too much memory. On Fri, Jan 8, 2010 at 2:38 PM, Matt Kanninen mathias...@gmail.com wrote: Diane, I try hard not test on the emulator, and have access to the Android phones users are using. This bug happened only on the Droid, and our application depends on the Camera and Mic to function. More details on the bug here: http://groups.google.com/group/android-developers/browse_frm/thread/100ce8c4e5cade6a/df64df59143b8e98?lnk=gstq=mathiastck#df64df59143b8e98 and other threads related to: java.lang.OutOfMemoryError: bitmap size exceeds VM budget Sometimes out of memory errors, especially DEVICE SPECIFIC MEMORY ERRORS, are best fixed in the framework, or the specific devices code. I can't help debug this issue too much longer either, I'll be off the project, and on to other Android applications soon. -MK On Jan 6, 4:27 pm, Dianne Hackborn hack...@android.com wrote: On Wed, Jan 6, 2010 at 3:10 PM, Matt Kanninen mathias...@gmail.com wrote: supports-screens android:smallScreens=false android:normalScreens=true android:largeScreens=true / If you don't specify anyDensity, then the system will run your app in density compatibility mode on high and low density devices. You really want to avoid this, since it can result in some artifacts in the UI such as some text being clipped. If you are designing your app to support different screens/densities, I highly recommend that you make the target SDk version at least 4, since this will allow the system to do the correct default configuration to make it work correctly. It also allows various other compatibility features to be turned off, which we try to document under each API version here: http://developer.android.com/reference/android/os/Build.VERSION_CODES... As for running out of memory -- it is probably because outside of compatibility mode the system is being allowed to pre-scale some of your loaded bitmaps to allow them to be drawn faster. I would guess this is just a matter of you being close to the memory limit, and this pushing you over (the high density or large screen devices should always have a higher memory limit to account for this... though I don't think the emulator changes this, come to think of it, so it could just be an emulator issue). -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Waiting for Debugger
I still have the same problem.. any help on this please? On Mar 29, 11:45 am, dillipk codersnet2...@gmail.com wrote: Hello, I am trying to debug my application on Emulator, but it just stucks off on one message Waiting for Debugger - Application XXX is waiting for the debugger to Attach. Its really annoying ..probably I am missing something. Any guidlines for this is highly appreciated. I use Android API 2.0. Regards, DK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Spurious calls to onPause?
Nobody's seen anything like this? I'm to the point where I'm just disabling big chunks of my app to see if I can get the behavior to go away, but while it's there it's preventing me from implementing onPause in any useful way. Incidentally, I tracked down the ParseCommandEcho line and it's not relevant. Aaron On Apr 12, 3:27 pm, asher as...@vanteon.com wrote: One other bit of information: the activity is not actually paused. If I disable my onPause method, the activity stays frontmost and appears interactive (though I don't have much going on at the moment, so it's a bit hard to tell). Aaron On Apr 12, 3:24 pm, asher as...@vanteon.com wrote: I have a relatively simple application with only one activity (in use, anyway). When I launch it, my activity gets the following sequence of calls: onCreate, onResume, onPause. This happens with no user input whatsoever. What's going on with that onPause? The only clue that I have is a line in the log immediately prior to the call to onPause: 01-03 23:43:43.499: WARN/System.err(1534): ParseCommandEcho: Setting state to COMMAND_END Does that mean something to somebody? Thanks, Aaron -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] moveTaskToBack returning false.
Hi, I am trying to send all my activities to background by calling this.moveTaskToBack(true); on a menu button click, but the call returns me a boolean value false. Please can anyone let me know if my way to invoke this is wrong or if I am doing anything wrong. Thanks, Prajakta -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: glTexImage2D very slow on phones like Nexus one
Eong, You said you are uploading every frame just to draw text? There are much more efficient ways to do that. On Apr 16, 11:14 am, Eong eong.c...@gmail.com wrote: I'm afraid it's not a same problem. My problem only happenes on Snapdragon phones. It's fine on Milestone or Droid. I found a few threads about this but no solution. On 4月16日, 下午9时15分, Felipe Silveira webfel...@gmail.com wrote: Just a guess: It can be the same error reported here:http://code.google.com/p/android/issues/detail?id=7520 Take a look... Felipe Silveirahttp://www.felipesilveira.com.br On Fri, Apr 16, 2010 at 8:40 AM, Eong eong.c...@gmail.com wrote: Hi, We are developing 2D games. And we found our game works fine except the snapdragon chips, like Nexus one and Liquid A1. It even runs fine on G1. We use GLSurfaceView, and we use glTexImage2D and glTexIsubmage2D to put on the text and then draw. The glTexImage2D class take more than 100ms on Nexus one (1024x512 pix tex). It's very strange, G1 is even faster than this. If anyone know something about this? -Code snip--- gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); gl.glTexSubImage2D(GL10.GL_TEXTURE_2D, 0, 0, 0, m_width, m_height, GL10.GL_RGB, GL_UNSIGNED_SHORT_5_6_5, m_byteCanvas); ((GL11Ext)gl).glDrawTexiOES(0, 0, 0, m_width, m_height); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Felipe Silveira Engenharia da Computação Universidade Federal de Itajubáhttp://www.felipesilveira.com.br MSN: felipeuni...@hotmail.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 athttp://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 athttp://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: Game develop like Air Attack touching screen event
Make sure your view calls setFocusableOnTouchEvents(true) On Apr 16, 4:44 am, a a harvey.a...@gmail.com wrote: Dear all, i tested below, but it don't work 1. I wrote my GodsendView public class GodsendView extends View implements OnTouchListener { @Override public boolean onTouch(View v, MotionEvent event) { Log.d(harvey, onTouch); return false; } } 2.wrote a xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.android.godsend.GodsendView android:id=@+id/godsend android:layout_width=fill_parent android:layout_height=fill_parent tileSize=24 / /LinearLayout 3. Activity public class GodSendActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } but after i touch the screen, can't print my test log Log.d(harvey, onTouch); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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: OpenGL and the use of ByteBuffers
I use glTexImage2D and glTexSubImage2D, it's okay on Droid/Milestone. 20ms for 854*480. But on Nexus one, it takes 150ms to draw a full screen.(800*480) On 4月16日, 下午7时39分, Mario Zechner badlogicga...@gmail.com wrote: From my experience this also happens with the PowerVR chips in the Droid/Milestone On 16 Apr., 13:07, Eong eong.c...@gmail.com wrote: IfglTexImage2Dis more than 100ms, glTexSubImage2D doesn't make any sense. I found that this will only happen on phones with snapDragon chips, like Nexus one, Liquid and so on. I tried a lot, can't solve it yet. On 2月24日, 下午5时19分, Ralf Schneider li...@gestaltgeber.com wrote: 2010/2/24 Jonathan jon.aposto...@gmail.com It's a 2D application, and the contents of the screen (as represented by this internal array I'm passing around) can change at any given time. I'm think I may have to use some combination of sub texture updates in order to get what want and have it be smooth. Uploading a 512x256 texture each frame may be too much. Any other ideas how I can speed this up? You can try: glTexSubImage2D http://www.khronos.org/opengles/documentation/opengles1_0/html/glTexS...instead ofglTexImage2D. Usually this function is the right choice to update textures frequently. glTexSubImage2D may have the advantage to not require the OpenGL Es memory management system, because an existing texture (memory area) gets updated. Furthermore some OpenGL ES implementation implicit convert textures to one of its internal formats. For example the implementation may convert all textures to 565 or regardless of the format you provide. Thus, if you provide textures in an native format the implementation could do a plain copy of the data, instead of a more expensive conversion. ... But i have no real data available. These are just general advices floating in the intertubes. Regards, Ralf -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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 athttp://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: Spurious calls to onPause?
OK, I should have done this earlier. I created a new Android app in Eclipse, added an onPause override in the activity containing nothing but a single log message (and the super call), and ran it, and got exactly the same behavior. This seems to be either a bug in Android (I'm running 1.5), or I'm seriously misunderstanding something about the activity lifecycle. Can anyone help? If anyone's actually reading this, would you at least respond so I know I'm not shouting in the dark here? Aaron On Apr 16, 2:00 pm, asher as...@vanteon.com wrote: Nobody's seen anything like this? I'm to the point where I'm just disabling big chunks of my app to see if I can get the behavior to go away, but while it's there it's preventing me from implementing onPause in any useful way. Incidentally, I tracked down the ParseCommandEcho line and it's not relevant. Aaron On Apr 12, 3:27 pm, asher as...@vanteon.com wrote: One other bit of information: the activity is not actually paused. If I disable my onPause method, the activity stays frontmost and appears interactive (though I don't have much going on at the moment, so it's a bit hard to tell). Aaron On Apr 12, 3:24 pm, asher as...@vanteon.com wrote: I have a relatively simple application with only one activity (in use, anyway). When I launch it, my activity gets the following sequence of calls: onCreate, onResume, onPause. This happens with no user input whatsoever. What's going on with that onPause? The only clue that I have is a line in the log immediately prior to the call to onPause: 01-03 23:43:43.499: WARN/System.err(1534): ParseCommandEcho: Setting state to COMMAND_END Does that mean something to somebody? Thanks, Aaron -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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: Spurious calls to onPause?
asher wrote: OK, I should have done this earlier. I created a new Android app in Eclipse, added an onPause override in the activity containing nothing but a single log message (and the super call), and ran it, and got exactly the same behavior. This seems to be either a bug in Android (I'm running 1.5), or I'm seriously misunderstanding something about the activity lifecycle. Can anyone help? If anyone's actually reading this, would you at least respond so I know I'm not shouting in the dark here? I cannot reproduce your problem on Android 1.5, Android 1.6, Android 2.0.1, or Android 2.1 (emulator) or on the DROID (2.1). -- Mark Murphy (a Commons Guy) http://commonsware.com | 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] Re: Spurious calls to onPause?
On Fri, Apr 16, 2010 at 1:16 PM, asher as...@vanteon.com wrote: Can anyone help? If anyone's actually reading this, would you at least respond so I know I'm not shouting in the dark here? Sorry, no idea what to tell you besides maybe override every other lifecycle function (onStop, onStart, etc) and see what order they're called in, if at all. Did you put a breakpoint in onPause when that happens to see what the callstack is like at that point? I assume you're not doing anything special in onCreate that would cause this right (like starting another activity?) - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers]
http://PaceyMolesworth3231.co.cc -- Шукай в телефонi мiй слiд... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Spurious calls to onPause?
Want to get the phone for free click here http://bizoppoffer.com/x/0/1319/6428/ dont wait till supplys fly. On Fri, Apr 16, 2010 at 11:38 AM, Mark Murphy mmur...@commonsware.comwrote: asher wrote: OK, I should have done this earlier. I created a new Android app in Eclipse, added an onPause override in the activity containing nothing but a single log message (and the super call), and ran it, and got exactly the same behavior. This seems to be either a bug in Android (I'm running 1.5), or I'm seriously misunderstanding something about the activity lifecycle. Can anyone help? If anyone's actually reading this, would you at least respond so I know I'm not shouting in the dark here? I cannot reproduce your problem on Android 1.5, Android 1.6, Android 2.0.1, or Android 2.1 (emulator) or on the DROID (2.1). -- Mark Murphy (a Commons Guy) http://commonsware.com | 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: onSharedPreferenceChanged() Not Called in Live Wallpaper (WallpaperService) Engine
Well, I tested one of the sample applications (http://code.google.com/ p/androgames-sample/) and both the Engine's and Settings' onSharedPreferenceChanged() methods are called and with the same instance of SharedPreferences object. So, apparently something is different in my Live Wallpaper. I went through everything top to bottom and made some small (I'd say very minor) tweaks to my code/config to further match the example and still the same results - the Engine's onSharedPreferenceChanged() method is not called while the Settings' is. I also noticed that SharedPreferences instance returned in the Engine constructor (via prefs = LiveWallpaperService.this.getSharedPreferences(PREFS_NAME, 0)) is a different object instance than that passed in to onSharedPreferenceChanged() of the Settings class. Nowhere do I create a new instance of SharedPreferences nor do I have any other code related to shared preferences outside of what is being discussed here. So, Android is serving up 2 separate instances of SharedPreferences for some reason Why? I am boggled. Please help me think. On Apr 16, 11:45 am, shaun shashepp...@gmail.com wrote: I am experiencing something strange with a Live Wallpaper. I very closely followed several examples out there on Live Wallpapers in regards to shared preference settings (e.g. Android sample app Cube Live Wallpaper). The Engine implements SharedPreferences.OnSharedPreferenceChangeListener and the pertienent code in Engine looks like this: public static final String PREFS_NAME = some-name; Engine() { prefs = LiveWallpaperService.this.getSharedPreferences(PREFS_NAME, 0); prefs.registerOnSharedPreferenceChangeListener(this); } public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Log.e(getClass().getSimpleName(), on shared preference changed); } NOTE: I never unregister the Engine instance as a shared prefs listener. Although, I did move some things around to onCreate and onDestroy (added the unregister there) and had no impact as far as I could tell. The Settings class extends PreferenceActivity and implements SharedPreferences.OnSharedPreferenceChangeListener as well. And since that class has little code here is the body: @Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); getPreferenceManager().setSharedPreferencesName(Engine.PREFS_NAME); addPreferencesFromResource(R.xml.settings); getPreferenceManager().getSharedPreferences().registerOnSharedPreferenceChangeListener(this); } �...@override protected void onDestroy() { getPreferenceManager().getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this); super.onDestroy(); } public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Log.e(getClass().getSimpleName(), on shared preference changed); } The only thing coming out in the log is from the Settings class for on shared pref change. Anyone have any idea why? In the implementations I've found for Live Wallpaper shared prefs settings, the Engine constructor either uses the shared preferences or calls to onSharedPreferenceChanged() directly. It seems like those other examples may be experiencing the same thing I described above, and they worked around it!?!? I do admit I have not taken the example code from others and tried it out to see if the Engine onSharedPreferenceChanged() gets called. I will do that tonight or this weekend. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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] Return value for a PendingIntent launched via a Notification
Hello, Is is possible to get back a result intent when launching an Intent from a Notification? Similar to the way startActivityForResult() works ? Thanks, Serge -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Return value for a PendingIntent launched via a Notification
ssozonoff wrote: Hello, Is is possible to get back a result intent when launching an Intent from a Notification? Similar to the way startActivityForResult() works ? Not directly -- there is nothing to receive the result intent. Whatever the user launches from the Notification, though, can arrange to broadcast Intents or something to achieve a similar effect. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 2.x Programming 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] moveTaskToBack returning false.
On Fri, Apr 16, 2010 at 1:08 PM, praj prajakt...@gmail.com wrote: I am trying to send all my activities to background by calling this.moveTaskToBack(true); Did you try passing false? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] moveTaskToBack returning false.
no i dint because the documentation says that for any activity other than main activity u need to pass true.. will try anyways.. n let u knw.. On Fri, Apr 16, 2010 at 1:49 PM, ~ TreKing treking...@gmail.com wrote: On Fri, Apr 16, 2010 at 1:08 PM, praj prajakt...@gmail.com wrote: I am trying to send all my activities to background by calling this.moveTaskToBack(true); Did you try passing false? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] moveTaskToBack returning false.
it still returns false - after passing false in moveTaskToBack On Fri, Apr 16, 2010 at 1:53 PM, Prajakta Shitole prajakt...@gmail.comwrote: no i dint because the documentation says that for any activity other than main activity u need to pass true.. will try anyways.. n let u knw.. On Fri, Apr 16, 2010 at 1:49 PM, ~ TreKing treking...@gmail.com wrote: On Fri, Apr 16, 2010 at 1:08 PM, praj prajakt...@gmail.com wrote: I am trying to send all my activities to background by calling this.moveTaskToBack(true); Did you try passing false? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to stay backwards and forwards compatible - targetSDKVersion, hdpi, minSDKVersion?
Here's my situation: I have an app that's been compiled using 1.5 SDK and minSdkVersion=3. Now I want to add 2 icons: one for high density screens like Droid and another one for low density screens like G1. For this, I added the high density icon to new directory drawable-hdpi- v4/. I then compiled using 1.6 sdk and added targetSdkVersion=4 to the manifest. minSdkVersion is still 3. This is working in limited testing, but I'm not sure if I have done everything correctly. I have many questions: 1. By specifying v4 in drawable-hdpi-v4, the icon will not be displayed to 1.5 or below OS's. But what about users with 2.0 or higher SDK's? Will they get the non-hdpi icon, since they will have v6 or v7 ? 2. The documentation for targetSdkVersion states, Specifying this target version allows the platform to disable compatibility settings that are not required for the target version (which may otherwise be turned on in order to maintain forward-compatibility). Does this mean that my app will not be forward compatible as soon as I specify a targetSdkVersion? What exactly is being turned off? 3. Even if I leave out the targetSdkVersion=4, the app runs ok. So do I really need it? 4. Should I be using the latest SDK (2.1) and setting that as the targetsdkversion and compiling against that? Or some other combination of targetsdkversion and compiling sdk? I'm not using any API's that are not in 1.5.. 5. Is any of this related to why some of my HTC Eris users have complained that they can no longer find my app in Market after upgrading to 2.1? Thanks a lot for your input! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] moveTaskToBack returning false.
On Fri, Apr 16, 2010 at 3:53 PM, Prajakta Shitole prajakt...@gmail.comwrote: no i dint because the documentation says that for any activity other than main activity u need to pass true Oh yeah, I read that wrong ... oh well, there goes that ... good luck. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Browser Back Button
Hello, I see that there is no provision for navigating back on Android Browser. I see that it does have a forward button. To go back, I am forced to use the back button on the device but the problem with that it does not retain the state of the page. I am curious if this is a feature or a bug ? If feature, what is the rationale to do so? I have seen this behvaiour on Nexus One and Motorola Devour. -- Thanks, Jaikishan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL and the use of ByteBuffers
That's why you're supposed to load them all in one batch at the beginning and then not do it during runtime. glTexImage2D is one of the slowest things there is on any chip. If you're targeting ES2.0, you have things like framebufferobjects that you can use to handle dynamic texturing using the GPU and those are blazing fast. What's your application? Why do you need a texture update every draw? Perhaps there is a totally different way you can go about it. On Apr 16, 1:11 pm, Eong eong.c...@gmail.com wrote: I use glTexImage2D and glTexSubImage2D, it's okay on Droid/Milestone. 20ms for 854*480. But on Nexus one, it takes 150ms to draw a full screen.(800*480) On 4月16日, 下午7时39分, Mario Zechner badlogicga...@gmail.com wrote: From my experience this also happens with the PowerVR chips in the Droid/Milestone On 16 Apr., 13:07, Eong eong.c...@gmail.com wrote: IfglTexImage2Dis more than 100ms, glTexSubImage2D doesn't make any sense. I found that this will only happen on phones with snapDragon chips, like Nexus one, Liquid and so on. I tried a lot, can't solve it yet. On 2月24日, 下午5时19分, Ralf Schneider li...@gestaltgeber.com wrote: 2010/2/24 Jonathan jon.aposto...@gmail.com It's a 2D application, and the contents of the screen (as represented by this internal array I'm passing around) can change at any given time. I'm think I may have to use some combination of sub texture updates in order to get what want and have it be smooth. Uploading a 512x256 texture each frame may be too much. Any other ideas how I can speed this up? You can try: glTexSubImage2D http://www.khronos.org/opengles/documentation/opengles1_0/html/glTexS...instead ofglTexImage2D. Usually this function is the right choice to update textures frequently. glTexSubImage2D may have the advantage to not require the OpenGL Es memory management system, because an existing texture (memory area) gets updated. Furthermore some OpenGL ES implementation implicit convert textures to one of its internal formats. For example the implementation may convert all textures to 565 or regardless of the format you provide. Thus, if you provide textures in an native format the implementation could do a plain copy of the data, instead of a more expensive conversion. ... But i have no real data available. These are just general advices floating in the intertubes. Regards, Ralf -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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 athttp://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 athttp://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: Waiting for Debugger
It happens to me fairly frequently, and I find that I need to restart Eclipse to clear it. I think ADB is, well, buggy. String On Apr 16, 6:03 pm, dillipk codersnet2...@gmail.com wrote: I still have the same problem.. any help on this please? On Mar 29, 11:45 am, dillipk codersnet2...@gmail.com wrote: Hello, I am trying to debug my application on Emulator, but it just stucks off on one message Waiting for Debugger - Application XXX is waiting for the debugger to Attach. Its really annoying ..probably I am missing something. Any guidlines for this is highly appreciated. I use Android API 2.0. Regards, DK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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] NDK / glsl / Es 2.0 advice please?
Working with NDK here. How are perspective correct projection supposed to occur in es 2.0. I can currently draw my geometry to the screen, but it is not getting transformed to 2d. Is there some sort of way of getting meaningful compiler errors out of the shader compiler? Is there a android specific reference to glsl support on it? Am I even supposed to be doing projections in my glsl? I was using hello-gl2 as a baseline, and then modified it to load additional geometry, which is rendering correctly although flat, without any translation or projection. Any advice on translation/ projection is appreciated too, since it seems that all of that has disappeared from es2.0. I've got a opengl 1.1 live screensaver that I've developed that I want to work on porting critical sections to NDK and es2.0, so any advice on porting gl11 to gl20 is appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Error while consuming Axis2 based WEB SERVICE...
Hello , I am new to axis ,I have created a web servcie with couple of methods using axis2 and deployed it on tomcat.And am calling that web service from my android program with the help of ksoap.But wen i call a method which doesn't take any parameter am gettin fine reply from web service which i can able to see on my screen,But wen i call anothr method which takes a string argument am getting namespace exception on server WEB SERVICE CODE IS . == package Guru; public class DarshanSays { public String getMsg(String h) { return h+ ..the power of change is eVolution...; } public String getEmpty(String d)throws Exception { return empty string from tomcattt; } } //AND program is String soap_action=http://Guru/getEmpty;; String method_nm=getEmpty; String nmspc=http://Guru/;; String url7=http://192.168.10.182:8080/axis2/services/Friday;; SoapObject request = new SoapObject(url7,method_nm); /*sending method parameters with SoapObject */ request.newInstance(); request.addProperty(h,darshan.); // sending a parameter to a method SoapSerializationEnvelope envelope = newSoapSerializationEnvelope(SoapEnvelope.VER11); envelope.bodyOut=request; envelope.dotNet = true; envelope.encodingStyle = SoapSerializationEnvelope.XSD; envelope.dotNet=true; /*setting outputsoap object sending request */ envelope.setOutputSoapObject(request); /*HttpTransportSE object creating sending it url */ androidHttpTransport = new HttpTransportSE(url7); try { androidHttpTransport.debug=true; androidHttpTransport.call(nmspc,envelope); } catch(Exception e) { } //exception is throw. try { SoapPrimitive sp=(SoapPrimitive)envelope.getResponse(); String hh=sp.toString(); Log.d(reply from web ser,..+hh.toString()); //and erorr msg is **SoapFault - faultcode:'soapenv:Server' faultstring: 'namespace mismatch require http://Guru found 192.168.10.182:8080/axis2/services/ Friday' faultactor: 'null' detail: org.kxml2.kdom.n...@43d31390** ERROR IS coming only when am calling parameterized method. Please Help.. thanks Darshan V -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Cant login into android market. Market down?
When I go to http://market.android.com/publish/Home I get a HTTP 404 error. Hope this is resolved soon... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is there a concept like DLL in Androids?
Hello, 1. We know that we can use a concept Java Package but I just wanted to know that whether Android has provided a DLL concept where I can write my most of the functionality for reuse purpose. 2. Also there is doubt in mind: Can we use Activity for the purposes that DLL provides? Is there any concept like DLL on Android? Can we develop a DLL for better modularization and other benefits on Android? Thanks and Regards, Prashant. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Preferences
Hi What is the difference between Preference.OnPreferenceChangeListener and Preference.OnPreferenceClickListener? Abhinav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 use the lib(.jar) which android sdk didn't contain
yes you can add the jar file to android project. If you are using Eclipse then right click on the project properties---java build path---library--add library thank you. On Fri, Apr 16, 2010 at 11:54 AM, javame_android su...@softwebsolutions.com wrote: Hi, Android has Dalvik Virtual Machine and not Java Virtual Machine. So, I don't think you will be able to use this class in Android. In case, you want to try adding external jar to Android project you can definitely do that. For that, keep the jar in the assets folder and then add that jar to the build path. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] install .apk file OTA
Hi, I have an android's .apk signed file , how can I install it OTA on my Android 2.1 device. Thanks Rishabh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 provide animation when calling another activity in Android?
Hi sunil: I will try my best to answer in English... I don't know whether or not you have got Android source code. If you got them, you could find file named themes.xml under the path src_main_directory\frameworks\base\core\res\res\values. Can see code like this: resources ... style name=Theme ... item name=android:windowAnimationStyle@android:style/Animation.Activity/item ... then open file named styles.xml under the same path, find style name=Animation.Activity You will see: style name=Animation.Activity item name=activityOpenEnterAnimation@anim/task_open_enter/item item name=activityOpenExitAnimation@anim/task_open_exit/item item name=activityCloseEnterAnimation@anim/task_close_enter/item item name=activityCloseExitAnimation@anim/task_close_exit/item item name=taskOpenEnterAnimation@anim/task_open_enter/item item name=taskOpenExitAnimation@anim/task_open_exit/item item name=taskCloseEnterAnimation@anim/task_close_enter/item item name=taskCloseExitAnimation@anim/task_close_exit/item item name=taskToFrontEnterAnimation@anim/task_open_enter/item item name=taskToFrontExitAnimation@anim/task_open_exit/item item name=taskToBackEnterAnimation@anim/task_close_enter/item item name=taskToBackExitAnimation@anim/task_close_exit/item /style You can change animation what you like in your project using theme... or change them to @null so that no animation will occur when Activity push or pop~ Good luck! 2010/4/16 javame_android su...@softwebsolutions.com: Hi, I have two Activities A and B. I want to have the shrink Animation when Activity A calls B and maximize animation when Activity B calls A. I don't need the animation xml files for this. When we call another Activity in Android it gives its default animation and then it calls shrink animation. What I want is that the default animation should not occur and the animation that I want should occur. Can we actually give the animation when calling another Activity? Hope to get a quick response. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Best Wishes Clark Guan = Android Platform Software Engineer Country:China Language:Chinese City:Beijing Mobile: +86 13439630106 MSN: wds...@gmail.com Email: wds...@gmail.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] Can not visualize correctly the written text of an EditText after animation
At the end of a TranslateAnimation, when I write into my EditText that started that animation, it looks like I'm trying to write into the initial EditText. So It happens that I see a part of my text, sometimes I can see nothing. The EditText was well translated but not the rectangle where the text should appears. Here is my simple code: TranslateAnimation tr = new TranslateAnimation(0, 0, 0,100); tr.setStartOffset(0); tr.setDuration(1000); tr.setFillAfter(true); myEditText.startAnimation(tr); EditText android:id=@+id/message android:layout_width=170dp android:layout_height=60dp android:layout_marginTop=70dp android:layout_marginLeft=10dp android:background=#B6AFB2 android:hint=write message here android:inputType=textMultiLine android:nextFocusDown=@+id/test android:imeOptions=actionNext android:maxLength=300 android:gravity=top android:duplicateParentState=true/ What is the problem when moving an EditText? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Auto-correction issues in Android 2.0 or higher?
Hi, Been really confused with the auto-correction / auto-capitalization feature of the Android built-in keyboard. I can't seem to get my app to activate them. It used to work in 1.5/1.6 but not in 2.x anymore. Is there something I am missing? I would appreciate any quick help so I can resolve the issue. Much appreciated. Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Dev with barcode reading expertise
Hi Guys, I need to develop an app that reads barcode code 39. There are some out there, but I need one optimized to read VIN (vehicle identification numbers.) This might simply involve finding the right lib, or tweaking a current one to work right. If you're interested, please let me know. Thanks. -Nash -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Immediate Opening for or client in Hyderabad for Android SDK Developers
Dear Professionals Greetings for the day!! We have a pretty urgent opening for our client(MNC) in Hyderabad for Android developers with Java AND Android with Linux. Location : Hyderabad. Experience : 2 to 8 years(Android with Linux) : 2 to 4 years(Android with Java). Relevant in Android : Minimum one year experience Interested people can forward there update resume ASAP to swathiredd...@gmail.com Regards, Swathi 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] Looped ListView
Hi, I want to implement ListView widget that will scroll its elements in loop. Like if we have 10 element in list we need to show 1, 2,.. after 10th element. |1 2 3 4 5| |8 9 10 1 2| |10 1 2 3 4| I suppose I need to extend ListView and probably override some methods. But I dont know exactly which ones. I'm affraid that ListView can not be extented for this functionality and I will need to write this control from scratch. Please, advice if you have any ideas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Rendering scaled bitmap with high fps
I'm in the following situation: I have a large bitmap (~1280x1024) that I'd like to display on screen, scaled down in a view that fits the phone's screen (~480x320). This bitmap is frequently updated (couple of tiles per frame at 15 FPS). I first wanted to implement the rendering with a SurfaceView but figured out that all the scaling would be done in software due to limitations in the Android SDK. The second solution would be to load and render textures in an OpenGL context. Would that accelerate the resizing? If yes, isn't the cost of loading textures going to offset what I'll win on the scaling side? Any toughts? Thanks a lot, Frederic -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is it possible to make changes in Remote Views.java
Is it possible to make changes in RemoteViews.java in android source code and successfully generate a build? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 use the lib(.jar) which android sdk didn't contain
Hi, I have the same problem using dom4j in Android project. It can be compiled but output some warning... On 4月16日, 下午2时24分, javame_android su...@softwebsolutions.com wrote: Hi, Android has Dalvik Virtual Machine and not Java Virtual Machine. So, I don't think you will be able to use this class in Android. In case, you want to try adding external jar to Android project you can definitely do that. For that, keep the jar in the assets folder and then add that jar to the build path. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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] Javassist on Android
Hi Guys, I'm wondering if its possible to use tools like Javassist on Android? I'm guessing no because it builds JVM specific bytecode at runtime but I'd love to know. I'm also attempting to use JBoss Rule (Drools) in an Android app. Thanks for any 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