[android-developers] Re: Android Emulator internet connectivity Problem
Hello manish Just Remove your DNS Server IP from LAN Settings. Internet works Automatically on your Emulator On Oct 21, 11:01 am, manish sandhan sandhan.man...@gmail.com wrote: I m new in android... I m not able to connect my android emulator to internet neither from my app nor from the android browser. I have tried adding uses-permission android:name=android.permission.INTERNET / in xml..but still in did not help.. I have added hardware like GPS and Modem from the android sdk manager... Still it did not work pls help... pls help... -- Thanks Regards Manish Sandhan Cell No.--+91-9421572024begin_of_the_skype_highlighting+91-9421572024 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Check whether media player is playing media or not
Thanks Robert and Mark, the suggestion given by Robert is working fine!! On Oct 25, 10:36 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Oct 25, 2011 at 1:27 AM, Sunil Mishra suniljmis...@gmail.com wrote: I want to check whether inbuilt media player is active and playing media or not. Any sample code for that? First, this is a list for development with the Android SDK. MediaPlayer is a class in the Android SDK. Referring to other things as media player will just confuse those trying to help you. Second, there is no single inbuilt media player, to use your terminology. There are hundreds of Android devices. There will be many inbuilt media player applications as a result. You are welcome to try isMusicActive() on AudioManager, as was suggested previously, though I have no idea if that really works. Beyond that, AFAIK, the expectation is that your applications should be using the audio-focus capabilities of AudioManager to interact smoothly with other apps that may be playing audio. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Suspended Account - Please Help - Red Alert
BTW, shouting out on this list isn't going to help you out very much. The people you mentioned aren't on the market team. The market team is a rare species which has only recently started to make contact with us mere mortals. Thanks On Tue, Oct 25, 2011 at 6:10 AM, Zsolt Vasvari zvasv...@gmail.com wrote: So you are saying you have hundreds of apps that are probably just a WebView displaying the content of somebody else's blog. And you got your account suspended for doing that. I have one word for that: HORAY On Oct 25, 8:18 am, burton miller burton.mil...@gmail.com wrote: My developer account has been suspended. I create apps for blogs and news sites, and Google took down a handful of them for trademark issues last month. I am happy to resolve any conflicts or problems, but I can't get in touch with anyone! I have over half a million customers - and a legitimate business model! Please - someone help us. Dianne, Guy, anybody. We are willing to change apps, remove them, whatever. 6 or 7 apps out of hundreds were removed. There is no number to call - nobody to talk to. We replied to the email - and we haven't heard back. Every hour we are shut down is killing us. We have been building this customer base for six days a week for THREE YEARS. Please 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Problems with new ADT (14) library building
Hi, I had the same problem with a library project. In fact I got a dalvic error 1 so that the toolchain couldnt work so that no R.java was created... My solution was to add thos line to the .classpath of the library project: classpathentry kind=con path=com.android.ide.eclipse.adt.LIBRARIES/ Hope this helps. Greetings, Marco Am 25.10.2011 06:13 schrieb Jeremy Statz jst...@gmail.com: I have a large set of support classes contained in a library that's shared between about 40 projects, and since updating to the newest ADT (14) I'm having major problems with any classes involving UI. In particular these do things like create a color picker when you tap on a preference item, or display a dialog with a slider, etc. The code hasn't changed and continues to compile without errors, but when I actually run it it seems like none of the UI identifiers are valid. I'll get a crash due to a null pointer. I'm hoping and praying the new .jar file approach hasn't ruined this feature, because I have a ton of library work related to this sort of thing that's avoiding a massive amount of code duplication. :( As an example: LinearLayout layout = (LinearLayout)inflator.inflate( R.layout.preferencecolor_layout, null ); TextView main = (TextView)layout.findViewById( R.id.label_main ); main.setText( getTitle() ); // crash here due to main being invalid -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] About Executors and ScheduledThreadPoolExecutor
Hello, The Processes and Threads section of the documentation discusses how to use the Thread and AsyncTask but reading through the documentation I found out about the Executor and related classes* and I was wondering why there's nothing on the documentation about those classes. Executors look like a nice and clean solution for using threads without instantiating a raw Thread when AsyncTask is overkill. Are there any special cases when Executors should and should not be used? Lastly, if anyone could explain the reason why using a ScheduledThreadPoolExecutor is preferable to a Timer? I've read the documentation but I didn't really get it. Thanks in advance *(ScheduledThreadPoolExecutor, ThreadPoolExecutor, ExecutorService, ScheduledExecutorService) -- 株式会社アルゴ ARGO Inc. 〒130-0012 東京都墨田区太平3-11-10 NTKオオノビル8階 ソアレス フランシスコ ( Soares Francisco ) Mail : soa...@argo.bz HP : http://www.argo.bz/ TEL:03-5619-4511 FAX:03-5619-4512 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: onCallStateChanged(int state, String number)
Thank you Sunil, I wasn't looking for a workaround i just want to know if this is intentional or not. Regards Andrei. On Oct 25, 8:32 am, Sunil Mishra suniljmis...@gmail.com wrote: Hi, i think for idle it will not give any phone number, just imagine how can u get phone no on a idle phone? For the off-hook mode you can catch the phone number into a variable when phone call state changes to phone ringing and then try working with the phone no. On Oct 24, 6:52 pm, ch andrei.comand...@gmail.com wrote: Hi Sunil, As far as i know the onCallStateChanged callback is called when a phone call state is changed (ringing,offhook and idle). On the callback is called for ringing, the phone number is provided for offhook and idle, the phone number is empty. Andrei On Oct 24, 4:24 pm, Sunil Mishra suniljmis...@gmail.com wrote: Hi, can you describe about other 2 cases and what you mean by that? On Oct 24, 5:38 pm, ch andrei.comand...@gmail.com wrote: Hi, I observed an undocumented behavior of the method PhoneStateListener.onCallStateChanged(int state, String incomingNumber). When the method is called on a new ringing call the incommingNumber is provided, but in the other 2 cases the number is missing!! My question is: Is this the default behavior (and the issue is in documentation) or is a bug in my platform? Test was made on Nexus One upgrade 2.3.6. Tanks for your time! Regards Andrei. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Data values not populating in the gridview on screen orientation using onConfigurationChanged
Hi Steven, Thanks for the response. I wanted to know, whether is there any approach to handle this situation. I don't want to invoke the HTTP connection every time on the onCreate() method for screen orientation(intentionally or unintentionally by the user)because then that's beats the user response. I am trying out various approach like onConfigurationChanged() etc for handling screen orientation. Though its reflect the xml(landscape) from the res folder but values are not populated in the gridview On Oct 24, 8:58 pm, Studio LFP studio@gmail.com wrote: Are you repopulating the information into the new layout you are switching to? Regardless of if you use configChanges or not, you need to repopulate your view. This is automatically invoked without configChanges since your app interface is removed and remade (calling onCreate again for you). If you are using configChanges, you will need to repopulate your views if you change it on one of the onConfigurationChanged events. Steven Studio LFPhttp://www.studio-lfp.com On Monday, October 24, 2011 7:58:52 AM UTC-5, Shajahan wrote: In the onCreate() method of an activity -- done all the initialization part and also invoked the server using the HTTP connection, to get the images -- am using the onConfigurationChanged() of an activity to get the handle of the Screen Orientation -- but when it is rotated from horizontal to Vertical (vice-versa) new xml for landscape view getting reflected but the not values in the gridview -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 create Google map application and run?
Check the following links. Follow the instructions and you'll be able to integrate Google Maps in your application. And yes, you'll be able to use the emulator. http://developer.android.com/guide/topics/location/index.html http://code.google.com/android/add-ons/google-apis/ http://code.google.com/android/add-ons/google-apis/mapkey.html - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com/ | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ https://marketplace.cisco.com/apphq/store/products/994 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Playing a sound several times
Please implement this interface MediaPlayer.OnCompletionListener. when the playback of the source has completed, you can play it second time. On Oct 21, 9:26 am, Rafael Maas rafaelm...@gmail.com wrote: i have the following problem: when i try to play a sound over and over again, it sometimes (actually most times) is not played. the documentation says that one should use the media player in the following sequence if a sound should be played several times: private MediaPlayer mediaPlayer; onCreate(){ mediaPlayer = MediaPlayer.create(JogoActivity.this, R.raw.new_pop); mediaPlayerPrepare(); } method(){ mediaPlayer.start(); } mySecondMethod(){ method(); method(); method(); method();} is this the wrong approach? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Unit testing with the sdk tools r14?
I have opened this issue: code.google.com/p/android/issues/detail?id=21194thanks=21194 -- BoD On 10/24/2011 09:37 AM, BoD wrote: Can anyone confirm this? Should I file a bug? Thanks! BoD http://groups.google.com/group/android-developers?hl=en -- BoD -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 determine how much texture memory.
Can someone share how they handle determining when they need to reduce VRAM at runtime? Right now I'm getting emails from some people saying they're seeing white objects. So I would have to assume they don't have enough VRAM to fit a frame into memory. I added support for pvrtc and s3tc texture compression and some emails stopped :) Bar adding a check box in the options screen to scale textures or something I'm at a loss. What I have tried is using glTexImage2D to upload an empty array of 256x256x4 in a loop keeping track of how much I have uploaded and checking for an out of memory error. The problem is that on my Milestone (Droid), it seems that the driver will swap out to the heap as I never get an out of memory error. Instead after around 64M or so the whole app dies a horrible out of memory death. I'm not sure if it matters but I'm using Java for this and not the NDK. I have considered writing a small native lib to do this but I can't see how it would be any different. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: No luck with new ICS CalenderContract
Hi Zsolt, Your URI is content://com.android.calendar and it should be content://com.android.calendar/calendar. Can you try CalendarContract.Calendars.CONTENT_URI instead of CalendarContract.CONTENT_URI? Thanks, Mike On Oct 23, 11:57 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I am trying to convert my Calendar code to the new ICS APIs. For starters, I am trying the simplest possible operation -- reading the list of Calendars. I am using the following code: context.getContentResolver().query(CalendarContract.CONTENT_URI, CALENDARS_PROJECTION, CALENDARS_WHERE, null, CalendarContract.Calendars.DEFAULT_SORT_ORDER) but I am getting an unknown URL exception on the ICS emulator, both Standard and Google API images: E/ACRA ( 746): Caused by: java.lang.IllegalArgumentException: Unknown URL content://com.android.calendar E/ACRA ( 746): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java: 165) E/ACRA ( 746): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java: 135) E/ACRA ( 746): at android.content.ContentProviderProxy.query(ContentProviderNative.java: 358) E/ACRA ( 746): at android.content.ContentResolver.query(ContentResolver.java:304) Is this supposed to work on the emulator? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: No luck with new ICS CalenderContract
Hi Zsolt, Can you try CalendarContract.Calendars.CONTENT_URI instead of CalendarContract.CONTENT_URI? Thanks, Mike On Oct 24, 5:39 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I would have expected to work, also. It's kind of frustrating that the first time we are goig to be able put out fires, is when the general public will get hold of the first ICS device. The emulator is all but useless. On Oct 25, 12:25 am, Mark Murphy mmur...@commonsware.com wrote: I haven't had a chance to yet, and probably won't for a few weeks. Since the Calendar app is in the emulator, I would have expected that content provider to work. It's possible that it is an emulator bug -- without hardware as a point of reference, it is difficult to tell. On Mon, Oct 24, 2011 at 10:19 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Nobody tried this new API yet? On Oct 24, 2:57 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I am trying to convert my Calendar code to the new ICS APIs. For starters, I am trying the simplest possible operation -- reading the list of Calendars. I am using the following code: context.getContentResolver().query(CalendarContract.CONTENT_URI, CALENDARS_PROJECTION, CALENDARS_WHERE, null, CalendarContract.Calendars.DEFAULT_SORT_ORDER) but I am getting an unknown URL exception on the ICS emulator, both Standard and Google API images: E/ACRA ( 746): Caused by: java.lang.IllegalArgumentException: Unknown URL content://com.android.calendar E/ACRA ( 746): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java: 165) E/ACRA ( 746): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java: 135) E/ACRA ( 746): at android.content.ContentProviderProxy.query(ContentProviderNative.java: 358) E/ACRA ( 746): at android.content.ContentResolver.query(ContentResolver.java:304) Is this supposed to work on the emulator? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price!- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android SDK r14 on Windows Vista gives bin\resources.app_ does not exist for all of my projects
About 1hr ago everything works with the previous SKD. After I updated to SDK r14, it gives \bin\resources.ap_ does not exit message whenever I try a previous running project, even for a very simple test project. Any body over there can help me out with this one? please. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Bottom 1/4 of screen getting clipped
In every Activity of the app that I am creating, the bottom 1/4 of the screen is clipped, nothing will display in that region. Any idea why that might happen? The parent layout is set to fill parent. A sample of the layout is below. ?xml version=1.0 encoding=utf-8? LinearLayout android:layout_width=fill_parent android:orientation=vertical xmlns:android=http:// schemas.android.com/apk/res/android android:layout_height=fill_parent ImageView android:layout_height=wrap_content android:src=@drawable/simpsonstextblack android:layout_width=fill_parent android:id=@+id/TitleImage android:layout_gravity=center_horizontal android:paddingBottom=5dp/ImageView RelativeLayout android:layout_height=wrap_content android:layout_width=fill_parent android:id=@+id/RelativeLayout1 android:padding=5dp Button android:text=Take the Simpsons Challenge android:gravity=center android:clickable=true android:id=@+id/ ChallengeButton android:layout_width=fill_parent android:layout_height=50dp android:textSize=20dp android:background=@drawable/buttonbackgroundblue/Button TextView android:layout_width=fill_parent android:layout_below=@+id/ChallengeButton android:layout_alignLeft=@ +id/ChallengeButton android:id=@+id/spacer1 android:layout_height=5dp/TextView Button android:layout_width=fill_parent android:text=Free Play android:clickable=true android:id=@+id/FreePlayButton android:layout_height=50dp android:textSize=20dp android:background=@drawable/buttonbackgroundblue android:layout_below=@+id/spacer1/Button TextView android:layout_width=fill_parent android:id=@+id/ spacer2 android:layout_below=@+id/FreePlayButton android:layout_alignLeft=@+id/FreePlayButton android:layout_height=5dp/TextView Button android:layout_height=50dp android:textSize=20dp android:id=@+id/HighScoreButton android:background=@drawable/ buttonbackgroundblue android:layout_width=fill_parent android:text=High Scores android:layout_below=@+id/spacer2/ Button TextView android:layout_width=fill_parent android:id=@+id/ spacer3 android:layout_below=@+id/HighScoreButton android:layout_alignLeft=@+id/HighScoreButton android:layout_height=5dp/TextView Button android:layout_height=50dp android:textSize=20dp android:id=@+id/HelpButton android:background=@drawable/ buttonbackgroundblue android:layout_width=fill_parent android:text=Help android:layout_below=@+id/spacer3/Button /RelativeLayout RelativeLayout android:layout_width=fill_parent android:id=@ +id/RelativeLayout1 android:layout_height=200dp TextView android:id=@+id/textView1 android:layout_width=fill_parent android:layout_height=20dp/ TextView TextView android:layout_below=@+id/textView1 android:layout_height=wrap_content android:layout_width=fill_parent android:textAppearance=? android:attr/textAppearanceMedium android:id=@+id/QuoteText android:text='A woman is a lot like a refrigerator. Six feet tall, 300 pounds…it makes ice.' /RelativeLayout /LinearLayout -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is there a WebDav client for Android
Hello Ashimita, Thanks for your post. Can you please post me the jar and code which is successfully connected to WebDav server from Android. Regards, Satish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Getting Generic Failure error code when sending sms message
Hi, I have developed an app that sends sms messages using Pending Intent and a broadcast receiver to show the result code. Everything is working fine on the emulator and on any device, except for a Samsung Galaxy S II. On the BroadcastReceiver I'm getting the error code : SmsManager.RESULT_ERROR_GENERIC_FAILURE. What does it mean? What can be done to solve it? Basically, this is my code: public void sendSMS(String phoneNumber, String message) { BroadcastReceiver sentReceiver; BroadcastReceiver deliveredReceiver; String SENT = SMS_SENT; String DELIVERED = SMS_DELIVERED; PendingIntent sentPI = PendingIntent.getBroadcast(this, 0, new Intent(SENT), 0); PendingIntent deliveredPI = PendingIntent.getBroadcast(this, 0,new Intent(DELIVERED), 0); registerReceiver(sentReceiver, new IntentFilter(SENT)); registerReceiver(deliveredReceiver, new IntentFilter(DELIVERED)); SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: using multiple advertising networks - is this possible?
You can try with AdWhirl: https://www.adwhirl.com/ it acts as an aggregator of different Ads network Gianluca On 11 Ott, 12:48, KevinC kevinch...@gmail.com wrote: Hi - Is it possible to switch between multiple advertising networks for placing in-app ads? For example, if I want to show an InMobi ad, and then later switch over to AdMob, and then perhaps put in my own affiliate link, is there an easy way to do this? I know this is easy to do on a web page, and even on a mobile web page with Javascript or an iframe, but with apps, I don't really know how you would do this. Are there any standards in API or SDK based ad services, or is each network proprietary, requiring me to write a big complicated ad rotation algorithm? Thanks for any help, Kevin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 manage events on a button
Hello the list, I'm a beginner in Android. I'm looking in the button and I don't find in the documentation ( http://developer.android.com/reference/android/widget/Button.html ) something like onmouseover I found in HTML for the button ( http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.3 ) . Is there an event that can manage when the focus is over and the focus is out ? Sorry for my poor english. Best regards. Jean Tinguely Awais. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: help me
I think you may have wandered into the wrong group. This is for Android development mainly dealing with the Java side of things. There is an NDK group if you are looking for the C/C++ side of things. You may also want to check out other groups that have to do with modifying the Android base if you are looking for something really low level. Steven Studio LFP http://www.studio-lfp.com On Monday, October 24, 2011 9:20:18 AM UTC-5, RAJU wrote: how to run c,c++ program in terminal... ~~RAJU~~ ~~www.itdoall.co.cc~~ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] access component(button/Webveiw) of one activity in another activity
I want to access component(button/Webveiw) of one activity in another. Please help me in coding. 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] not able to run projects after updating my AVD in eclipes
hello, Yesterday i updated my android AVD for android 4. but after updating i m not able to run my older project. when i run them there is error appers in console say Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder! how to fix this problem. plz help me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Missing Fastboot from Windows 32 SDK?
Yes, fastboot seems to be missing from the tools / platform-tools folders on a fresh install of the sdk. Not sure if this is an oversight or fastboot is no longer supported. On Oct 23, 2:08 am, bonochromatic bonochroma...@gmail.com wrote: I'm trying to unlock my HTC Incredible S according to HTC's unlock process. I've downloaded and installed the Android SDK and used the SDK Manager to update / install: - Android SDK Tools (14) - Android SDK Platform-Tools (8) - Android 3.2 (API 13) - Google USB Driver package (4) But no matter what I do, I can't find fastboot.exe anywhere in the SDK folders. I've been told to look under /android-sdk-windows/tools but it doesn't appear in there. Can someone please let me know where I can find fastboot.exe for Windows 32? FYI, the HTC unlocking guide that says where I can find fastboot.exe is here:http://www.htcdev.com/bootloader/unlock-instructions/page-2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Access ImageView from another activity
Hi guys, I am developing an application in which i have 10 buttons in one activity, n in another activity say Activity2, i have an imageview, when i clicked on button in Activity1, i want to display an image in imageview of activity2, on every button click, i want to display differnt images, but i am unable to understand that how can i trace that buttons, which one i clicked n how i set differnt images on differnt button click. Please help me, its too urgent to 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] Fwd: consuming webservice using soap (wsdl file genrated in sap server)
Am 07.09.2011 10:13, schrieb arun kumar: -- Forwarded message -- From: *arun kumar* arun.kata...@gmail.com mailto:arun.kata...@gmail.com Date: Wed, Sep 7, 2011 at 12:27 PM Subject: consuming webservice using soap (wsdl file genrated in sap server) To: android-developers@googlegroups.com mailto:android-developers@googlegroups.com Hi how to consume webservice from sapserver...am having wsdl file created in sapserver...if i give the user id then the monthly salary will be display. public class Webservice extends Activity { private static final String NAMESPACE = urn:sap-com:document:sap:soap:functions:mc-style; private static String URL = myurl; private static final String METHOD_NAME = ZemptrackEarnOview; private static final String SOAP_ACTION = zemptrack_overview; private Edittext lblResult; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); lblResult = (EditText) findViewById(R.id.editText1); SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); Empnfo ei=new EmpInfo(); ei.setValue( 34343) ; i think you forgot to add the Empnfo ei to the request. i don't know what Empnfo is, but generally string properties are added to requests like this: request.addProperty(name, value); for non-string types it is done like this: info = new PropertyInfo(); info.setName(name of property like in XML); info.setValue(Object); info.setType(Object.getClass()); Request.addProperty(info) -- Rainer Klier Research Development xyzmo SIGNificant Group | Austria | USA | Germany A-4052 Ansfelden, Haiderstraße 23 Tel.: +43 7229 88060-0, E-Mail: rainer.kl...@xyzmo.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] how to make the Notification message move/scroll right to left(or vice versa)
Hi All, Can someone tell me if its possible to move/scroll the notification message from one direction to the other(say from right to left). If yes, then how to achieve the same ? Actually as part of my media player, I want to show current song title through notification and as the space is small, I want to make it scroll so that the enduser can see the full text being displayed through notification. Thanks for your time. Regards, KK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 make the Notification message move/scroll right to left(or vice versa)
Create your own Notification layout and set ellipsize to end. On Oct 25, 4:42 pm, KK dioxide.softw...@gmail.com wrote: Hi All, Can someone tell me if its possible to move/scroll the notification message from one direction to the other(say from right to left). If yes, then how to achieve the same ? Actually as part of my media player, I want to show current song title through notification and as the space is small, I want to make it scroll so that the enduser can see the full text being displayed through notification. Thanks for your time. Regards, KK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: No luck with new ICS CalenderContract
Thanks, of course that will work. Duh... How did I miss that? That said, I am just looking in the Javadocs and under Constants, CONTENT_URI is not listed, but it's further down, under Fields. That explains why I didn't see it, even though it's not a real excuse. Since CONENT_URI is a static final, why isn't it listed under Constants? On Oct 25, 2:41 pm, Michael Chan mc...@android.com wrote: Hi Zsolt, Can you try CalendarContract.Calendars.CONTENT_URI instead of CalendarContract.CONTENT_URI? Thanks, Mike On Oct 24, 5:39 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I would have expected to work, also. It's kind of frustrating that the first time we are goig to be able put out fires, is when the general public will get hold of the first ICS device. The emulator is all but useless. On Oct 25, 12:25 am, Mark Murphy mmur...@commonsware.com wrote: I haven't had a chance to yet, and probably won't for a few weeks. Since the Calendar app is in the emulator, I would have expected that content provider to work. It's possible that it is an emulator bug -- without hardware as a point of reference, it is difficult to tell. On Mon, Oct 24, 2011 at 10:19 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Nobody tried this new API yet? On Oct 24, 2:57 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I am trying to convert my Calendar code to the new ICS APIs. For starters, I am trying the simplest possible operation -- reading the list of Calendars. I am using the following code: context.getContentResolver().query(CalendarContract.CONTENT_URI, CALENDARS_PROJECTION, CALENDARS_WHERE, null, CalendarContract.Calendars.DEFAULT_SORT_ORDER) but I am getting an unknown URL exception on the ICS emulator, both Standard and Google API images: E/ACRA ( 746): Caused by: java.lang.IllegalArgumentException: Unknown URL content://com.android.calendar E/ACRA ( 746): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java: 165) E/ACRA ( 746): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java: 135) E/ACRA ( 746): at android.content.ContentProviderProxy.query(ContentProviderNative.java: 358) E/ACRA ( 746): at android.content.ContentResolver.query(ContentResolver.java:304) Is this supposed to work on the emulator? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price!- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Access ImageView from another activity
hi pass the value(image information) to the next activity(activity2) using puextra method. thnks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 make the Notification message move/scroll right to left(or vice versa)
Hi Vasvari, Thanks for your answer. I got the point that we've to use custom layout, but dont know how do I hookup the custom layout to the notification event, would appreciate if you can point me to some sample code. Thanks, KK On Tue, Oct 25, 2011 at 2:15 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Create your own Notification layout and set ellipsize to end. On Oct 25, 4:42 pm, KK dioxide.softw...@gmail.com wrote: Hi All, Can someone tell me if its possible to move/scroll the notification message from one direction to the other(say from right to left). If yes, then how to achieve the same ? Actually as part of my media player, I want to show current song title through notification and as the space is small, I want to make it scroll so that the enduser can see the full text being displayed through notification. Thanks for your time. Regards, KK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to make the Notification message move/scroll right to left(or vice versa)
Just to add one more info, that I'm running this app on API 8/Android 2.2 Thanks, KK On Tue, Oct 25, 2011 at 2:34 PM, KK dioxide.softw...@gmail.com wrote: Hi Vasvari, Thanks for your answer. I got the point that we've to use custom layout, but dont know how do I hookup the custom layout to the notification event, would appreciate if you can point me to some sample code. Thanks, KK On Tue, Oct 25, 2011 at 2:15 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Create your own Notification layout and set ellipsize to end. On Oct 25, 4:42 pm, KK dioxide.softw...@gmail.com wrote: Hi All, Can someone tell me if its possible to move/scroll the notification message from one direction to the other(say from right to left). If yes, then how to achieve the same ? Actually as part of my media player, I want to show current song title through notification and as the space is small, I want to make it scroll so that the enduser can see the full text being displayed through notification. Thanks for your time. Regards, KK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to make the Notification message move/scroll right to left(or vice versa)
I don't have any sample code. That's what the Android Samples are for. I am sure there is one that uses a custom layout. On Oct 25, 5:04 pm, KK dioxide.softw...@gmail.com wrote: Hi Vasvari, Thanks for your answer. I got the point that we've to use custom layout, but dont know how do I hookup the custom layout to the notification event, would appreciate if you can point me to some sample code. Thanks, KK On Tue, Oct 25, 2011 at 2:15 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Create your own Notification layout and set ellipsize to end. On Oct 25, 4:42 pm, KK dioxide.softw...@gmail.com wrote: Hi All, Can someone tell me if its possible to move/scroll the notification message from one direction to the other(say from right to left). If yes, then how to achieve the same ? Actually as part of my media player, I want to show current song title through notification and as the space is small, I want to make it scroll so that the enduser can see the full text being displayed through notification. Thanks for your time. Regards, KK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Showing notification dialog over a incoming call
Hi, I have written a code to display a dialog box when a incoming call arrives, but it crashes. It is working fine when done by only displaying message using Toast. Please Help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Access ImageView from another activity
hye dr, i have tried that, but not working. Do u have any sample code, which i can implement, if yes, plz send me. On Tue, Oct 25, 2011 at 2:30 PM, Ratheesh Valamchuzhy android...@gmail.comwrote: hi pass the value(image information) to the next activity(activity2) using puextra method. thnks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- û Consider the environment. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Access ImageView from another activity
hi give ur project file thnks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 3D Engine
thanks dear On Mon, Oct 24, 2011 at 7:55 AM, bdk mathieu.b...@gmail.com wrote: hi, check out http://unity3d.com/unity/publishing/android.html -- Mathieu On Oct 24, 12:26 pm, muizz syedmu...@gmail.com wrote: Assalam o aliukum. I am a student of BS-Computer Science. I want to make 3D android game on poultry form. I want to discuss that what is the best tool for 3D graphics handling and what is the suitable 3D engine in Android? 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] View Caching
I have an application in which when login I move to various view and after moving through I Logged out and then I use back button of a device.Now I am able to move through view,though I am logged . How to remove cache of an app progrmatically. Thanks, Sourabh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android SDK r14 on Windows Vista gives bin\resources.app_ does not exist for all of my projects
hi i am also getting the same problem . before they were running fine now after updating the ADT to 14 i am getting this problem . On Oct 25, 3:27 am, m.irism2...@yahoo.com m.irism2...@yahoo.com wrote: About 1hr ago everything works with the previous SKD. After I updated to SDK r14, it gives \bin\resources.ap_does not exit message whenever I try a previous running project, even for a very simple test project. Any body over there can help me out with this one? please. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Access ImageView from another activity
Hi, following is my project code import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.ImageButton; import android.widget.ImageView; //this is code for first activity, in which i take 4 buttons public class PpppActivity extends Activity { /** Called when the activity is first created. */ ImageButton btn1=(ImageButton) findViewById(R.id.imageButton1); ImageButton btn2=(ImageButton) findViewById(R.id.imageButton2); ImageButton btn3=(ImageButton) findViewById(R.id.imageButton3); ImageButton btn4=(ImageButton) findViewById(R.id.imageButton4); Activity1 ac1=new Activity1(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); btn1.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Activity1.getInstanceCount(); ac1.getIv(); ac1.iv.setImageResource(R.drawable.apple); } }); } } * * //This is second activity, where i take one imageview, n on that want to display differnt images one for each button click public *class* Activity1 *extends* Activity{ /** Called when the activity is first created. */ *final* ImageView iv=(ImageView) findViewById(R.id.*imageView1*); @Override *public* *void* onCreate(Bundle savedInstanceState) { *super*.onCreate(savedInstanceState); setContentView(R.layout.*main11*); } *public* ImageView getIv() { *return* iv; } } On Tue, Oct 25, 2011 at 2:48 PM, Ratheesh Valamchuzhy android...@gmail.comwrote: hi give ur project file thnks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- û Consider the environment. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 make the Notification message move/scroll right to left(or vice versa)
thanks, got it. let me add the url for others reference http://developer.android.com/guide/topics/ui/notifiers/notifications.html#CustomExpandedView --kk On Tue, Oct 25, 2011 at 2:38 PM, Zsolt Vasvari zvasv...@gmail.com wrote: I don't have any sample code. That's what the Android Samples are for. I am sure there is one that uses a custom layout. On Oct 25, 5:04 pm, KK dioxide.softw...@gmail.com wrote: Hi Vasvari, Thanks for your answer. I got the point that we've to use custom layout, but dont know how do I hookup the custom layout to the notification event, would appreciate if you can point me to some sample code. Thanks, KK On Tue, Oct 25, 2011 at 2:15 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Create your own Notification layout and set ellipsize to end. On Oct 25, 4:42 pm, KK dioxide.softw...@gmail.com wrote: Hi All, Can someone tell me if its possible to move/scroll the notification message from one direction to the other(say from right to left). If yes, then how to achieve the same ? Actually as part of my media player, I want to show current song title through notification and as the space is small, I want to make it scroll so that the enduser can see the full text being displayed through notification. Thanks for your time. Regards, KK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] access component(button/Webveiw) of one activity in another activity
Hi, whats ur requirement exactly, component accessing means id of the widget or anything else you want to access. On Tue, Oct 25, 2011 at 12:35 PM, Pallavi Mahamuni pallavi.mahamun...@gmail.com wrote: I want to access component(button/Webveiw) of one activity in another. Please help me in coding. 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 -- Ravinder Reddy Jonnalagadda -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] access component(button/Webveiw) of one activity in another activity
i have tried accessing id(R.id.button1)in second activity. but my application shutdowns forcefully. do u have any similar code that i can implement. On Tue, Oct 25, 2011 at 3:29 PM, Ravinder Reddy ravinderjre...@gmail.comwrote: Hi, whats ur requirement exactly, component accessing means id of the widget or anything else you want to access. On Tue, Oct 25, 2011 at 12:35 PM, Pallavi Mahamuni pallavi.mahamun...@gmail.com wrote: I want to access component(button/Webveiw) of one activity in another. Please help me in coding. 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 -- Ravinder Reddy Jonnalagadda -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android SDK r14 on Windows Vista gives bin\resources.app_ does not exist for all of my projects
IIRC, this clears up if you clean the project (Project|Clean from Eclipse or ant clean from the command line). On Tue, Oct 25, 2011 at 5:38 AM, kampy narasimha1...@gmail.com wrote: hi i am also getting the same problem . before they were running fine now after updating the ADT to 14 i am getting this problem . On Oct 25, 3:27 am, m.irism2...@yahoo.com m.irism2...@yahoo.com wrote: About 1hr ago everything works with the previous SKD. After I updated to SDK r14, it gives \bin\resources.ap_does not exit message whenever I try a previous running project, even for a very simple test project. Any body over there can help me out with this one? please. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] access component(button/Webveiw) of one activity in another activity
On Tue, Oct 25, 2011 at 3:05 AM, Pallavi Mahamuni pallavi.mahamun...@gmail.com wrote: I want to access component(button/Webveiw) of one activity in another. This is an exceptionally bad idea, as you will introduce memory leaks. Please come up with another solution to your problem. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Storing database of information?
Yes I have. I do however then need to setup a server. I was planning on releasing it as a totally free software but I guess I could set a server up. In case the app actually becomes successful I could at least get money for the upkeep of a good server. On 24 Okt, 17:34, Studio LFP studio@gmail.com wrote: Have you considered just making the application come without data and then pull the data from a server? It would be much easier on you to not have to republish the application every time you wanted to change some of that data. The basic steps would be something like this: 1. Publish app without data 2. App checks for the last time it got data against the last update on the server 3. Download updated data if needed You could have it check in the background each time the user used the application and notify them that they needed an update or use C2DM for push notifications. Steven Studio LFPhttp://www.studio-lfp.com On Monday, October 24, 2011 8:32:48 AM UTC-5, Todilo wrote: Hi, sorry for a bad subject name, just couldn't name it in a good way. I have an application which is basicly like a wiki which presents information and images. This information will change frequently (and images) as well so I was wondering the best way to set it up. It basically is a list of units and their statistics for a game. Since unit information and statistics will change after each patch I need to send that information out with an updated version of the app. What is a good way of storing this information? Can I have a database which I recreate upon every update(user will not change the data himself) or is it better to just have .txt/xml files describing unit information? Ideas? Been away from android programming for some time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Network related
Thanks Steven. On Mon, Oct 24, 2011 at 9:52 PM, Studio LFP studio@gmail.com wrote: Try this out. I don't recommend using this as is. You'll want to register a receiver for this intent while your app is being used and then unregister it when you are done. This is just so you can see how it works. public class TestService extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if( intent.getAction().equals( android.net.conn.CONNECTIVITY_CHANGE ) ) { Log.i( TestService, android.net.conn.CONNECTIVITY_CHANGE ); NetworkInfo niCommon = intent.getParcelableExtra( ConnectivityManager.EXTRA_NETWORK_INFO ); if( niCommon != null ) { Log.i( TestService, Network Type: + niCommon.getTypeName() ); Log.i( TestService, Network Type: + niCommon.getDetailedState().toString() ); } } } } And I believe you need this in your manifest: receiver android:name=.services.TestService intent-filter action android:name=android.net.conn.CONNECTIVITY_CHANGE/ /intent-filter /receiver uses-permission android:name=android.permission.ACCESS_NETWORK_STATE/ See how that works out for you as a test. Steven Studio LFP http://www.studio-lfp.com On Monday, October 24, 2011 1:01:56 AM UTC-5, sourabh wrote: I have a TextView, what I want is whenever my Network comes online/offline.It should get reflected to TextView. How Can I do this. Please suggest. Thanks, Sourabh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: WallpaperService.Engine.onOffsetsChanged() gone in ICS?
I've now reproduced this with a minimal test case, so I've gone ahead and created a bug report for it, http://code.google.com/p/android/issues/detail?id=21202. Romain, did you test the built-in LWPs on the emulator, or a Galaxy Nexus? 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
Re: [android-developers] Re: how to make the Notification message move/scroll right to left(or vice versa)
Using the example code I'm tyring to add a custom layout for notification, but nothing shows up. Can anyone help me out? -code chunk 1--- RemoteViews contentView = new RemoteViews(getPackageName(), R.layout.mynotification); contentView.setImageViewResource(R.id.image, R.drawable.icon); contentView.setTextViewText(R.id.title, Custom notification); contentView.setTextViewText(R.id.text, This is a custom layout); Notification notification = new Notification(); notification.contentView = contentView; Intent notificationIntent = new Intent(this, MusicDroid.class); PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0); notification.contentIntent = contentIntent; mNotificationManager.notify(notificationId, notification); and the mynotificaiton.xml layout is like this: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/layout android:layout_width=fill_parent android:layout_height=fill_parent android:padding=10dp ImageView android:id=@+id/image android:layout_width=wrap_content android:layout_height=fill_parent android:layout_alignParentLeft=true android:layout_marginRight=10dp / TextView android:id=@+id/title android:layout_width=wrap_content android:layout_height=wrap_content android:layout_toRightOf=@id/image / TextView android:id=@+id/text android:layout_width=wrap_content android:layout_height=wrap_content android:layout_toRightOf=@id/image android:layout_below=@id/title / /RelativeLayout Thanks for your time. KK On Tue, Oct 25, 2011 at 3:12 PM, KK dioxide.softw...@gmail.com wrote: thanks, got it. let me add the url for others reference http://developer.android.com/guide/topics/ui/notifiers/notifications.html#CustomExpandedView --kk On Tue, Oct 25, 2011 at 2:38 PM, Zsolt Vasvari zvasv...@gmail.com wrote: I don't have any sample code. That's what the Android Samples are for. I am sure there is one that uses a custom layout. On Oct 25, 5:04 pm, KK dioxide.softw...@gmail.com wrote: Hi Vasvari, Thanks for your answer. I got the point that we've to use custom layout, but dont know how do I hookup the custom layout to the notification event, would appreciate if you can point me to some sample code. Thanks, KK On Tue, Oct 25, 2011 at 2:15 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Create your own Notification layout and set ellipsize to end. On Oct 25, 4:42 pm, KK dioxide.softw...@gmail.com wrote: Hi All, Can someone tell me if its possible to move/scroll the notification message from one direction to the other(say from right to left). If yes, then how to achieve the same ? Actually as part of my media player, I want to show current song title through notification and as the space is small, I want to make it scroll so that the enduser can see the full text being displayed through notification. Thanks for your time. Regards, KK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Invoking Android app from external application
Hi, Responding to the following (direct) email - It would also be possible with other short range wireless networking eg bluetooth, provided bluetooth is available to the java or .net app and is close by to the Android device, within 10 ~ 100 meters. (Other possibilities might include NFC, Ant, Zigbee etc) TCP/IP or HTTP is probably more practical in general. Regards mohan kumar mohan...@gmail.com - i learnt that it can be done thru TCP/IP or HTTP protocol. is there any other way to communicate? On Oct 25, 1:22 pm, gjs garyjamessi...@gmail.com wrote: Hi, Yes it is possible. Regards On Oct 24, 9:16 pm, mohan kumar mohan...@gmail.com wrote: Hi All, Is it possible to communicate android application [running in AVD / Actual Device] from external application like .NET / Java application ? best regards, Mohan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Fwd: consuming webservice using soap (wsdl file genrated in sap server)
THANKS for the REPLAY ..i done that also..but am getting 10-25 17:36:14.373: WARN/System.err(874): org.xmlpull.v1.XmlPullParserException: expected: START_TAG { http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG html@1:6 in java.io.InputStreamReader@43e57768) am postinng my code... * public* *class* Track *extends* Activity { TextView tv; *private* String METHOD_NAME = ZemptrackEarnOview; *private* *static* *final* String *URL* = http://76.10.226.133:8000/sap/bc/srt/wsdl/bndg_E0EE4EE62A0739F19D0400221969C2CB/wsdl11/allinone/ws_policy/document?sap-client=800 ; ** // private static final String URL = http://76.10.226.133:8000/sap/bc/srt/rfc/sap/zemptrack_earn_oview02/800/zemptrack_earn_oview02/zemptrack_earn_oview02 ; *private* String NAMESPACE = urn:sap-com:document:sap:soap:functions:mc-style; *private* String soapAction = ; * //private String soapAction = urn:sap-com:document:sap:soap:functions:mc-style/ZemptrackEarnOview; **//private* AbstractHttpClient httpclient; /** Called when the activity is first created. */ @Override *public* *void* onCreate(Bundle savedInstanceState) { *super*.onCreate(savedInstanceState); setContentView(R.layout.*main*); tv = (TextView) findViewById(R.id.*tv*); *try* { UsernamePasswordCredentials creds = *new* UsernamePasswordCredentials(arun, 12345); ((AbstractHttpClient) httpclient).getCredentialsProvider().setCredentials(* new* AuthScope(76.10.226.133,8000 ),creds); } *catch* (Exception e) { } *try * { SoapObject request = *new* SoapObject(NAMESPACE, METHOD_NAME); request.addProperty(Userid, SRINIVASUS); envelope.setOutputSoapObject(request); envelope.bodyOut=request; HttpTransportSE androidHttpTransport = *new* HttpTransportSE(*URL*); androidHttpTransport.debug =*true*; Log.*i*(five, track); androidHttpTransport.call(soapAction,envelope);SoapPrimitive result = (SoapPrimitive)envelope.getResponse(); Log.*e*(httpResponse,Referral_Request +result); System.*out*.println(Result : + result.toString()); ((TextView) findViewById (R.id.*tv*)).setText(Tracking : +result.toString()); } *catch* (Exception E) { E.printStackTrace(); ((TextView) findViewById (R.id.*tv*)).setText(ERROR: + E.getClass().getName() + : + E.getMessage()); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Invoking Android app from external application
I'd say the best way to do this is to have your app start a service at boot and listen for communication periodically from a web service. Kris On Mon, Oct 24, 2011 at 6:16 AM, mohan kumar mohan...@gmail.com wrote: Hi All, Is it possible to communicate android application [running in AVD / Actual Device] from external application like .NET / Java application ? best regards, Mohan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] extending view class not working but not throwing errors or force close
Hello all I am doing a tutorial through you tube I have my java correct but still my button wont enable the view class, it's like button is not linked. I think my manifest might be lacking something, I have listed that below java stuff. My code is This is the first java class that references java view class package com.cornboyz.thebasics; import android.app.Activity; import android.os.Bundle; public class tutorialFive extends Activity { Cornboyz sweetBK; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); sweetBK = new Cornboyz(tutorialFive.this); setContentView(sweetBK); } } This is the java meant to create rectangle (without using XML if I understand this all correctly) package com.cornboyz.thebasics; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.view.View; public class Cornboyz extends View{ Bitmap cloud; int x = 0; int y = 0; Paint paint = new Paint(); public Cornboyz(Context context) { super(context); // TODO Auto-generated constructor stub cloud = BitmapFactory.decodeResource(getResources(), R.drawable.cloud1); } @Override protected void onDraw(Canvas canvas) { // TODO Auto-generated method stub super.onDraw(canvas); //set background Rect cBK = new Rect(); cBK.set(0, 0, canvas.getWidth(), canvas.getHeight()); Paint pBlue = new Paint(); pBlue.setColor(Color.BLUE); pBlue.setStyle(Paint.Style.FILL); canvas.drawRect(cBK, pBlue); drawCloud(x, y, canvas); if(x canvas.getWidth()){ x = x+10; }else{ y = y+10; x = 0; } invalidate(); } private void drawCloud(int x2, int y2, Canvas canvas) { // TODO Auto-generated method stub canvas.drawBitmap(cloud, x2, y2, paint); } } This is the Manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.cornboyz.thebasics android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=8 / application android:icon=@drawable/icon android:label=@string/app_name activity android:name=.myMain android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.myMenu android:label=@string/app_name intent-filter action android:name=com.cornboyz.thebasics.CLEARSCREEN / category android:name=android.intent.category.DEFAULT / /intent-filter /activity activity android:name=.sweet android:label=@string/app_name android:theme=@android:style/Theme.Dialog intent-filter action android:name=com.cornboyz.thebasics.SWEET / category android:name=android.intent.category.DEFAULT / /intent-filter /activity activity android:name=.tutorialOne android:label=@string/app_name intent-filter action android:name=com.cornboyz.thebasics.TUTORIALONE / category android:name=android.intent.category.DEFAULT / /intent-filter /activity activity android:name=.listV android:label=@string/app_name intent-filter action android:name=com.cornboyz.thebasics.TUTORIALTWO / category android:name=android.intent.category.DEFAULT / /intent-filter /activity activity android:name=.tutorialThree android:label=@string/app_name android:screenOrientation=portrait intent-filter action android:name=com.cornboyz.thebasics.TUTORIALTHREE / category android:name=android.intent.category.DEFAULT / /intent-filter /activity activity android:name=.tutorialFour android:label=@string/app_name android:screenOrientation=portrait intent-filter action android:name=com.cornboyz.thebasics.TUTORIALFOUR / category android:name=android.intent.category.DEFAULT / /intent-filter /activity activity android:name=.tutorialFive android:label=@string/app_name android:screenOrientation=portrait intent-filter action android:name=com.cornboyz.thebasics.TUTORIALFIVE / category android:name=android.intent.category.DEFAULT / /intent-filter /activity
[android-developers] Bluetooth Handler problem
hi all, i am new to the android and i am developing an android application. this application is communicated with micro controller via Bluetooth (spp) for this project i am using Bluetooth chat application . but in this application reading the messages from the device its giving last command value for all commands. can any one help me. please.. :( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: About Executors and ScheduledThreadPoolExecutor
AsyncTasks could indeed be overkill for what you want. Also, the implementation of AsyncTask is at the mercy of Google. Currently, from version 1.6 and up, it uses a thread-pool of more than one thread. However, there is talk of reducing this thread-pool to only one thread. This may cause dead-lock issues in your app if you rely on the pool having more than one thread. If you want to be able to schedule your tasks (or futures) in a different way (e.g. use a PriorityBlockingQueue instead of a standard BlockingQueue) or have your own thread-implementations be part of the thread-pool or want to be sure to have an *x*-number of threads in your thread-pool, you should use the java.util.concurrent.Executors related classes. If you want have different pools for different sets of tasks, you should use Executors related classes (be sure not to create too many threads in your process, though). With version of AsyncTask in api-level 11 and up, you can call executeOnExecutor with your own Executor, which may give you the best of both worlds :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] undefined reference to `android::AudioTrack::set(...)
Hi folks, I ma trying to write a media player for Android 2.2. I am using NDK_rb6 to build my JNI library written i C/C++ (under Ubuntu 11.04)... Actually, I faced a lot of problems of linking and dependencies, I resolved a lot of the and I am stuck with this one: ~/dev/workspace/MyApp/jni/android-out.cpp:95: undefined reference to `android::AudioTrack::set(int, unsigned int, int, int, int, unsigned int, void (*)(int, void*, void*), void*, int, android::spandroid::IMemory const, bool, int)' collect2: ld returned 1 exit status However, I found its definition in $(ANDROID_SRC)/frameworks/base/ media/libmedia/AudioTrack.cpp: status_t AudioTrack::set( int streamType, uint32_t sampleRate, int format, int channels, int frameCount, uint32_t flags, callback_t cbf, void* user, int notificationFrames, const spIMemory sharedBuffer, bool threadCanCallJava, int sessionId) { ... } and in the header that I included (media/audioTrack.h): /* Initialize an uninitialized AudioTrack. * Returned status (from utils/Errors.h) can be: * - NO_ERROR: successful intialization * - INVALID_OPERATION: AudioTrack is already intitialized * - BAD_VALUE: invalid parameter (channels, format, sampleRate...) * - NO_INIT: audio server or audio hardware not initialized * */ status_tset(int streamType =-1, uint32_t sampleRate = 0, int format = 0, int channels= 0, int frameCount = 0, uint32_t flags = 0, callback_t cbf = 0, void* user = 0, int notificationFrames = 0, const spIMemory sharedBuffer = 0, bool threadCanCallJava = false, int sessionId = 0); and I am using it this way: status = track-set(AudioSystem::MUSIC, audec-samplerate, AudioSystem::PCM_16_BIT, (audec-channels == 1) ? AudioSystem::CHANNEL_OUT_MONO : AudioSystem::CHANNEL_OUT_STEREO, 0, // frameCount 0, // flags audioCallback, audec,// user when callback 0, // notificationFrames 0, // shared buffer 0); So I am not able to see where am I 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: undefined reference to `android::AudioTrack::set(...)
By doing this command I have: strings ~/dev/android_libs/libmedia.so | grep AudioTrack | grep set _ZN7android10AudioTrack9setVolumeEff _ZN7android10AudioTrack17setMarkerPositionEj _ZN7android10AudioTrack23setPositionUpdatePeriodEj _ZN7android10AudioTrack11setPositionEj _ZN7android10AudioTrack7setLoopEjji _ZN7android10AudioTrack13setSampleRateEi _ZN7android10AudioTrack3setEijiiijPFviPvS1_ES1_iRKNS_2spINS_7IMemoryEEEb With the last line it seems that the function exist on my lib? 2011/10/25 HamdiHamZ hamdi.zr...@gmail.com Hi folks, I ma trying to write a media player for Android 2.2. I am using NDK_rb6 to build my JNI library written i C/C++ (under Ubuntu 11.04)... Actually, I faced a lot of problems of linking and dependencies, I resolved a lot of the and I am stuck with this one: ~/dev/workspace/MyApp/jni/android-out.cpp:95: undefined reference to `android::AudioTrack::set(int, unsigned int, int, int, int, unsigned int, void (*)(int, void*, void*), void*, int, android::spandroid::IMemory const, bool, int)' collect2: ld returned 1 exit status However, I found its definition in $(ANDROID_SRC)/frameworks/base/ media/libmedia/AudioTrack.cpp: status_t AudioTrack::set( int streamType, uint32_t sampleRate, int format, int channels, int frameCount, uint32_t flags, callback_t cbf, void* user, int notificationFrames, const spIMemory sharedBuffer, bool threadCanCallJava, int sessionId) { ... } and in the header that I included (media/audioTrack.h): /* Initialize an uninitialized AudioTrack. * Returned status (from utils/Errors.h) can be: * - NO_ERROR: successful intialization * - INVALID_OPERATION: AudioTrack is already intitialized * - BAD_VALUE: invalid parameter (channels, format, sampleRate...) * - NO_INIT: audio server or audio hardware not initialized * */ status_tset(int streamType =-1, uint32_t sampleRate = 0, int format = 0, int channels= 0, int frameCount = 0, uint32_t flags = 0, callback_t cbf = 0, void* user = 0, int notificationFrames = 0, const spIMemory sharedBuffer = 0, bool threadCanCallJava = false, int sessionId = 0); and I am using it this way: status = track-set(AudioSystem::MUSIC, audec-samplerate, AudioSystem::PCM_16_BIT, (audec-channels == 1) ? AudioSystem::CHANNEL_OUT_MONO : AudioSystem::CHANNEL_OUT_STEREO, 0, // frameCount 0, // flags audioCallback, audec,// user when callback 0, // notificationFrames 0, // shared buffer 0); So I am not able to see where am I 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
Re: [android-developers] Re: Android SDK r14 on Windows Vista gives bin\resources.app_ does not exist for all of my projects
I have some trouble with this, i just *cut and paste* xml content, and it's working... ;) CMIIW On Tue, Oct 25, 2011 at 5:22 PM, Mark Murphy mmur...@commonsware.comwrote: IIRC, this clears up if you clean the project (Project|Clean from Eclipse or ant clean from the command line). On Tue, Oct 25, 2011 at 5:38 AM, kampy narasimha1...@gmail.com wrote: hi i am also getting the same problem . before they were running fine now after updating the ADT to 14 i am getting this problem . On Oct 25, 3:27 am, m.irism2...@yahoo.com m.irism2...@yahoo.com wrote: About 1hr ago everything works with the previous SKD. After I updated to SDK r14, it gives \bin\resources.ap_does not exit message whenever I try a previous running project, even for a very simple test project. Any body over there can help me out with this one? please. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- M Teguh A Suandi Facebook: http://www.facebook.com/mtasuandi Twitter: http://www.twitter.com/mtasuandi YM: emailguwa_teguh Blog: http://mtasuandi.blogspot.com/ Web: http://www.tajugamal.20x.cc/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Existing layouts no longer showing in graphical layout due to null pointer exception!
I updated the android SDK's, basically installed and updated everything. Now when I open existing applications I've been working on I get an error when trying to view existing layouts java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.onXmlModelLoaded(ConfigurationComposite.java: 689) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.onTargetChange(GraphicalEditorPart.java: 970) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.onDescriptorsChanged(LayoutEditor.java: 568) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.initUiRootNode(LayoutEditor.java: 490) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.xmlModelChanged(LayoutEditor.java: 309) So basically any existing project I can only see the xml. If I start a new project using the same API 2.3.1 as the existing projects it opens the graphical view fine! Any idea's ? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Existing layouts no longer showing in graphical layout due to null pointer exception!
Try right clicking on the project, then choosing Android - Fix project properties, then closing and reopening the workspace. 25.10.2011 18:00, swebb99 пишет: I updated the android SDK's, basically installed and updated everything. Now when I open existing applications I've been working on I get an error when trying to view existing layouts java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.onXmlModelLoaded(ConfigurationComposite.java: 689) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.onTargetChange(GraphicalEditorPart.java: 970) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.onDescriptorsChanged(LayoutEditor.java: 568) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.initUiRootNode(LayoutEditor.java: 490) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.xmlModelChanged(LayoutEditor.java: 309) So basically any existing project I can only see the xml. If I start a new project using the same API 2.3.1 as the existing projects it opens the graphical view fine! Any idea's ? Thanks in advance. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Existing layouts no longer showing in graphical layout due to null pointer exception!
Sounds as if you may be being being hit with the same issue as this: http://code.google.com/p/android/issues/detail?id=21051colspec=ID%20Type%20Status%20Owner%20Summary%20Starsstart=100 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Cache issue
Hello Sir, I am downloading 200 images and saving sdcard form server but now facing time issue taking more time. i want to store permanently image in cache and handle them always please help me. i am not getting perfect solution how to store image in cache for handle . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: speech recording
And what about the error? Logcat? On Oct 24, 6:41 pm, Asım Turgut SOMUNCUOĞLU asimturgut.somuncu...@gmail.com wrote: hi jeremy, my code is ; import java.io.IOException; import android.app.Activity; import android.media.MediaRecorder; import android.os.Bundle; import android.view.View; import android.widget.Button; public class SesdenemeActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final MediaRecorder MRX = new MediaRecorder(); MRX.setAudioSource(MediaRecorder.AudioSource.MIC); MRX.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); MRX.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); MRX.setOutputFile(C:/Users/PC/Desktop/android/sesdeneme); try { MRX.prepare();} catch (IllegalStateException e) { // TODO Auto-generated catch block e.printStackTrace();} catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } Button kaydet= (Button) findViewById(R.id.button1); kaydet.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub MRX.start(); } }); Button dur= (Button) findViewById(R.id.button2); dur.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub MRX.stop(); MRX.release(); } }); } } manifest.xml file; ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=Uygulamalarim.Sesdeneme android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=10 / application android:icon=@drawable/icon android:label=@string/app_name activity android:name=.SesdenemeActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE/uses-permission uses-permission android:name=android.permission.RECORD_AUDIO/uses-permission uses-permission android:name=android.permission.MODIFY_AUDIO_SETTINGS/uses-permission uses-permission android:name=android.permission.WAKE_LOCK/uses-permission uses-permission android:name=android.permission.READ_PHONE_STATE/uses-permission uses-permission android:name=android.permission.INTERNET/uses-permission /manifest thank u for interesting 2011/10/24 Jeremy Dagorn jeremy.dag...@gmail.com Hi, Could you give some code and raised error(s)? Jeremy On Oct 21, 8:36 pm, ktuluceng asimturgut.somuncu...@gmail.com wrote: how to make speech recording application for android please help me my cod is true but ı dont understand application has stopped erorr :S ı folllow this linkhttp:// www.brighthub.com/mobile/google-android/articles/40737.aspx and apply my application but take a error please help me !!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Suspended Account - Please Help - Red Alert
Only a single view is a webview, and we reformat the stories specifically for android to make them look good. We have a lot of native functionality. Our customers love us. We give the little guys a chance to have an app. I swear, we are the good guys. On Oct 24, 5:40 pm, Zsolt Vasvari zvasv...@gmail.com wrote: So you are saying you have hundreds of apps that are probably just a WebView displaying the content of somebody else's blog. And you got your accountsuspendedfor doing that. I have one word for that: HORAY On Oct 25, 8:18 am,burtonmiller burton.mil...@gmail.com wrote: My developer account has beensuspended. I create apps for blogs and news sites, and Google took down a handful of them for trademark issues last month. I am happy to resolve any conflicts or problems, but I can't get in touch with anyone! I have over half a million customers - and a legitimate business model! Please - someone help us. Dianne, Guy, anybody. We are willing to change apps, remove them, whatever. 6 or 7 apps out of hundreds were removed. There is no number to call - nobody to talk to. We replied to the email - and we haven't heard back. Every hour we are shut down is killing us. We have been building this customer base for six days a week for THREE YEARS. Please help! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Suspended Account - Please Help - Red Alert
On Tue, Oct 25, 2011 at 10:59 AM, burton miller burton.mil...@gmail.com wrote: Only a single view is a webview, and we reformat the stories specifically for android to make them look good. We have a lot of native functionality. Our customers love us. We give the little guys a chance to have an app. I swear, we are the good guys. If Google has been the recipient of trademark violation complaints (per your original message), it would appear that perhaps you have some apps where you do not have a relationship with the content provider. Having apps that read third-party content is perfectly fine -- that's what Web browsers do. OTOH, distributing an XYZ Site App with XYZ's content without having XYZ's permission to brand the app that way will get you in trouble. You need to speak with qualified legal counsel, not with the membership of this list. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: JDBC driver connection problem
Hi Sabin, I see the same error as you when following the same steps.. Did you have any luck? Thanks, Javi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cache issue
Please some one give me best idea for this issue. On Tue, Oct 25, 2011 at 8:04 PM, NAVI NEW navi44...@gmail.com wrote: Hello Sir, I am downloading 200 images and saving sdcard form server but now facing time issue taking more time. i want to store permanently image in cache and handle them always please help me. i am not getting perfect solution how to store image in cache for handle . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HoneycombGallery sample and orientation changes
Hi all I have an application similar to the HoneycombGallery, but my list are loaded from the web using a AsyncTask. In the HoneycombGallery sample, the TitlesFragment calls the populateTitles(category) method all the time, even after a orientation change. I my project I would like to use the onSaveInstanceState(bundle) method to save the list of objects. But I have some concerns about how to control de lyfecicle of the ActionBar with Tabs. Because it seems that every time you add a Tab, it executes the onTabSelected right now. You can see this behaviour in HoneycombGallery sample as well. In my case, it´s worst, because it ´ll will start a new http request. I also tested the ActionBar + Tabs lyfecicle and it seems the Fragment Transactions are saved during the orientation changes, so if I don´t add the ActionBar.addTabs at the second time (after the orientation change) the fragment state can survive. Yes, I´m also implementing the onSaveInstanceState stuff on my fragments. The problem is that every time you call ActionBar.addTab it will execute a new fragmentTransaction to replace the Tab, and the fragment state will be lost. So how is the correct way to handle the lyfe cicle of this kind of applicatino with ActionBar+Tabs? thank you Ricardo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Dell ubuntu setup?
We wish to do a development setup on Dell with ubuntu and Android environment. Any link or suggestion. As it is for business purpose, let me know the right way to do it. I can install eclipse on linux and do the setup. Any person who has similar environment, please let me know. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Cache issue
On Oct 25, 5:41 pm, NAVI NEW navi44...@gmail.com wrote: Please some one give me best idea for this issue. On Tue, Oct 25, 2011 at 8:04 PM, NAVI NEW navi44...@gmail.com wrote: Hello Sir, I am downloading 200 images and saving sdcard form server but now facing time issue taking more time. i want to store permanently image in cache and handle them always please help me. i am not getting perfect solution how to store image in cache for handle . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 idea is just to write it to the sdcard and read it again to speed things out. what did you try so far? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Dell ubuntu setup?
On Tue, Oct 25, 2011 at 12:03 PM, Navindian navind...@gmail.com wrote: We wish to do a development setup on Dell with ubuntu and Android environment. Any link or suggestion. http://developer.android.com/sdk/index.html As it is for business purpose, let me know the right way to do it. Follow the instructions on: http://developer.android.com/sdk/index.html and: http://developer.android.com/sdk/installing.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to add custom TTS(text to speech) engines for unsupported Languages
Hi All, Currently, I'm trying to Hindi TTS support in my app, but the immediate problem I ran into is that, there is no direct support for hindi TTS. So, I tried searching in google for various options on to get this thing done and bumped into couple of interesting things like: http://groups.google.com/group/tts-for-android/browse_thread/thread/ff5f891b5e3daaec After going through the link mentioned therein, I could not figure out much. Would appreciated if someone could point me in the right direction or help me out on how to integrate raw TTS files for hindi in Android system. Any other suggestion to achieve the same result is more than welcome. Thanks, KK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Cache issue
I have already implemented this one, that's running but not gatting way for all http://www.flexjockey.com/2011/03/create-a-pretty-simple-cache-for-android/ On Tue, Oct 25, 2011 at 9:29 PM, skink psk...@gmail.com wrote: On Oct 25, 5:41 pm, NAVI NEW navi44...@gmail.com wrote: Please some one give me best idea for this issue. On Tue, Oct 25, 2011 at 8:04 PM, NAVI NEW navi44...@gmail.com wrote: Hello Sir, I am downloading 200 images and saving sdcard form server but now facing time issue taking more time. i want to store permanently image in cache and handle them always please help me. i am not getting perfect solution how to store image in cache for handle . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 idea is just to write it to the sdcard and read it again to speed things out. what did you try so far? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to detect that a MediaPlayer datasource has played its full duration
Hello, I'm using a MediaPlayer instance to stream mp3s over a local proxy server. For the MediaPlayer I've registered info, error, and completion callbacks. This proxy server knows the full file length of the stream that it's downloading and it maintains the number of bytes it transferred. If there's a connection interruption that results in a failed transfer, I want to recover from this by requesting the failed bytes with an HTTP range request. Using a range request, I'm able to recover the actual file download. However, the MediaPlayer itself quickly times out when it stops receiving bytes. This is the logcat output I see when this happens: E/HTTPStream( 68): recv failed, errno = 11 (Try again) E/NuCachedSource2( 68): source returned error -1004 When the MediaPlayer hits the spot in the stream where it timed out— when the above was logged—it stops playing, and calls its onComplete callback. At no time is the info or error callback called. At this point I want to know if the song really did play until completion. I added code in this callback to compare the completed MediaPlayer's current position to its duration, accessed with getCurrentPosition() and getDuration() respectively. If the current position is less than the total duration, I call prepare() again, and once prepared, seek to the position returned by getCurrentPosition(). This works absolutely wonderfully on the Nexus One. There's less than a second of audio interruption, and the song continues playing as normally; you hardly even notice the hiccup. However, on some phones, notably the Droid II Global, the MediaPlayer often misreports a song's duration, sometimes it's incorrect by more than a minute. See this screenshot for comparison: http://s1-04.twitpicproxy.com/photos/large/429522852.png the Nexus One is on the right, and the Droid II Global is on the left. So comparing a song's current position to its duration isn't a reliable way to know if it played to its full duration. I also tried using the song's buffered amount, obtained by registering a buffer update listener. Unfortunately, as soon as the song plays to its buffered amount—to the part of the file where the connection was lost—the buffered amount immediately updates to 100%, so I cannot use this value either. Is there a reliable way to determine if a MediaPlayer datasource played to its full length? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Existing layouts no longer showing in graphical layout due to null pointer exception!
Great thanks Kostya that fixed my problem :) Do you know what it fixed by any chance ? Steve On Oct 25, 3:23 pm, Kostya Vasilyev kmans...@gmail.com wrote: Try right clicking on the project, then choosing Android - Fix project properties, then closing and reopening the workspace. 25.10.2011 18:00, swebb99 пишет: I updated the android SDK's, basically installed and updated everything. Now when I open existing applications I've been working on I get an error when trying to view existing layouts java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configura tionComposite.onXmlModelLoaded(ConfigurationComposite.java: 689) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPar t.onTargetChange(GraphicalEditorPart.java: 970) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.onDescript orsChanged(LayoutEditor.java: 568) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.initUiRoot Node(LayoutEditor.java: 490) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.xmlModelCh anged(LayoutEditor.java: 309) So basically any existing project I can only see the xml. If I start a new project using the same API 2.3.1 as the existing projects it opens the graphical view fine! Any idea's ? Thanks in advance. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Existing layouts no longer showing in graphical layout due to null pointer exception!
When something doesn't work... I kill eclipse and re-start it. Fixes a few things almost all the time. Has been happening lately with the new ADT update. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Oct 25, 2011 at 10:39 PM, swebb99 sweb...@gmail.com wrote: Great thanks Kostya that fixed my problem :) Do you know what it fixed by any chance ? Steve On Oct 25, 3:23 pm, Kostya Vasilyev kmans...@gmail.com wrote: Try right clicking on the project, then choosing Android - Fix project properties, then closing and reopening the workspace. 25.10.2011 18:00, swebb99 пишет: I updated the android SDK's, basically installed and updated everything. Now when I open existing applications I've been working on I get an error when trying to view existing layouts java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configura tionComposite.onXmlModelLoaded(ConfigurationComposite.java: 689) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPar t.onTargetChange(GraphicalEditorPart.java: 970) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.onDescript orsChanged(LayoutEditor.java: 568) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.initUiRoot Node(LayoutEditor.java: 490) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.xmlModelCh anged(LayoutEditor.java: 309) So basically any existing project I can only see the xml. If I start a new project using the same API 2.3.1 as the existing projects it opens the graphical view fine! Any idea's ? Thanks in advance. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: JDBC driver connection problem
In both cases are you connecting to the same db? where is this db located and where are you running the app (emulator or physical device)? have you tried using a different jdbc driver? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Existing layouts no longer showing in graphical layout due to null pointer exception!
Empirically, this adds a new entry to the project's .classpath, but I don't have the slightest idea why it has this effect on the ADT XML editors: https://groups.google.com/forum/#!topic/android-developers/DdE5Ql_OZsY https://groups.google.com/forum/#%21topic/android-developers/DdE5Ql_OZsY -- Kostya 25.10.2011 21:09, swebb99 пишет: Great thanks Kostya that fixed my problem :) Do you know what it fixed by any chance ? Steve On Oct 25, 3:23 pm, Kostya Vasilyevkmans...@gmail.com wrote: Try right clicking on the project, then choosing Android - Fix project properties, then closing and reopening the workspace. 25.10.2011 18:00, swebb99 пишет: I updated the android SDK's, basically installed and updated everything. Now when I open existing applications I've been working on I get an error when trying to view existing layouts java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configura tionComposite.onXmlModelLoaded(ConfigurationComposite.java: 689) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPar t.onTargetChange(GraphicalEditorPart.java: 970) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.onDescript orsChanged(LayoutEditor.java: 568) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.initUiRoot Node(LayoutEditor.java: 490) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.xmlModelCh anged(LayoutEditor.java: 309) So basically any existing project I can only see the xml. If I start a new project using the same API 2.3.1 as the existing projects it opens the graphical view fine! Any idea's ? Thanks in advance. -- Kostya Vasilyev -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 manage events on a button
((ImageButton) findViewById (R.id.MyButton)).setOnFocusChangeListener(new OnFocusChangeListener() { public void onFocusChange(View view, boolean hasFocus) { // Do anything you want here } }); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Floating Honeycomb window
How can I create a floating window in Android Honeycomb like the one of Calculator or notepad application? I've tested with: android:theme=@android:style/Theme.Dialog and I get a centered transparent activity but the problem is that it isn't movable and hasn't close button. I attach an image of what I want to say with floating window: http://i.stack.imgur.com/IiIsu.jpg PD: This question has also asked on Stack Overflowhttp://stackoverflow.com/questions/7881713/floating-honeycomb-window Joan Pujol Espinar www.joanpujol.cat Twitter: @lujop -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] function texture2D not supported on target
Samsung Galaxy S2 When i compile vertex shader code which works on any other phone i have (nexus one, galaxy S, samsung ace, nexus s, dell) does not compile and gives this error function texture2D not supported on target -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: New updates tools with Ant build R14 gives Duplicate files at the same path inside the APK.
Ok nevermind... Looks like you have to clean the library projects individually before doing an ant build. Looks like the jar that is build by ant doesn't match that of eclipse and then it tries to bundle both :( So just make sure to clean and you should be golden On Oct 24, 2:46 pm, Joachim joachim.h...@gmail.com wrote: Since the update to theR14my ant builds have stopped working even after updating the projects. I get the following error -package: [apkbuilder] Creating App1-debug-unaligned.apk and signing it with a debug key... [apkbuilder] Found duplicate file for APK: com/test/spinner/lib/ DS_recipe_email.html [apkbuilder] Origin 1: /Users/usersa/Documents/workspace/MyLibrary/bin/ classes.jar [apkbuilder] Origin 2: /Users/usersa/Documents/workspace/MyLibrary/bin/ classes.jar This seems odd as it seems to be saying that I have a duplicate file in the same file twice. Here's the general setup. App1 as a Library of MyLibrary. MyLibrary does use the FacebookSDK library although in the past I would just have App1 use MyLIbrary and Facebook SDK for the ant build. Any thoughts would be great, 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: How can we control the background data for Individual Apps ?
My question is, what's the user experience? For instance, it would be really nice if an app can get notified when approaching a limit so that data is not just cut off mid stream. Does the OS gives some kind of notification or does the app just stop? On Oct 21, 1:47 pm, Mark Murphy mmur...@commonsware.com wrote: There is no API, AFAIK. This is a feature of the settings application. On Thu, Oct 20, 2011 at 1:39 PM, Vineet Shukla shuklvin...@gmail.com wrote: I did a little study on Android 4.0 (ICS) features and learned that -- Based on theirdataplans, users can optionally set warning levels or hardlimitsondatausage or disable mobiledataaltogether. Users can also manage the backgrounddataused by individual applications as needed I am looking for the API by which we can control the get and control the b/gdatausage by individual apps. Rgds, Vineet -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.0 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: WallpaperService.Engine.onOffsetsChanged() gone in ICS?
Please stop stressing. The stock launcher changes the x offset. It is working fine on our devices. I don't know what the situation is with the emulator; it may just be turned off there for performance reasons. Also the default wallpaper on Galaxy Prime does not scroll when the offset changes. That is just specific to that wallpaper, not a global behavior. On Tue, Oct 25, 2011 at 3:34 AM, String sterling.ud...@googlemail.comwrote: I've now reproduced this with a minimal test case, so I've gone ahead and created a bug report for it, http://code.google.com/p/android/issues/detail?id=21202. Romain, did you test the built-in LWPs on the emulator, or a Galaxy Nexus? 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 -- 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
Re: [android-developers] undefined reference to `android::AudioTrack::set(...)
This is not part of the NDK. *NO* C++ classes are part of the NDK. Even if you manage to get this to work, you are using private implementation details of the platform, and I can guarantee you that your app will break all over the place on different devices. On Tue, Oct 25, 2011 at 1:36 AM, HamdiHamZ hamdi.zr...@gmail.com wrote: Hi folks, I ma trying to write a media player for Android 2.2. I am using NDK_rb6 to build my JNI library written i C/C++ (under Ubuntu 11.04)... Actually, I faced a lot of problems of linking and dependencies, I resolved a lot of the and I am stuck with this one: ~/dev/workspace/MyApp/jni/android-out.cpp:95: undefined reference to `android::AudioTrack::set(int, unsigned int, int, int, int, unsigned int, void (*)(int, void*, void*), void*, int, android::spandroid::IMemory const, bool, int)' collect2: ld returned 1 exit status However, I found its definition in $(ANDROID_SRC)/frameworks/base/ media/libmedia/AudioTrack.cpp: status_t AudioTrack::set( int streamType, uint32_t sampleRate, int format, int channels, int frameCount, uint32_t flags, callback_t cbf, void* user, int notificationFrames, const spIMemory sharedBuffer, bool threadCanCallJava, int sessionId) { ... } and in the header that I included (media/audioTrack.h): /* Initialize an uninitialized AudioTrack. * Returned status (from utils/Errors.h) can be: * - NO_ERROR: successful intialization * - INVALID_OPERATION: AudioTrack is already intitialized * - BAD_VALUE: invalid parameter (channels, format, sampleRate...) * - NO_INIT: audio server or audio hardware not initialized * */ status_tset(int streamType =-1, uint32_t sampleRate = 0, int format = 0, int channels= 0, int frameCount = 0, uint32_t flags = 0, callback_t cbf = 0, void* user = 0, int notificationFrames = 0, const spIMemory sharedBuffer = 0, bool threadCanCallJava = false, int sessionId = 0); and I am using it this way: status = track-set(AudioSystem::MUSIC, audec-samplerate, AudioSystem::PCM_16_BIT, (audec-channels == 1) ? AudioSystem::CHANNEL_OUT_MONO : AudioSystem::CHANNEL_OUT_STEREO, 0, // frameCount 0, // flags audioCallback, audec,// user when callback 0, // notificationFrames 0, // shared buffer 0); So I am not able to see where am I 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 -- 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: Existing layouts no longer showing in graphical layout due to null pointer exception!
Tried restarting Kumar, had no effect but the tip about fix the project did! On Oct 25, 6:11 pm, Kumar Bibek coomar@gmail.com wrote: When something doesn't work... I kill eclipse and re-start it. Fixes a few things almost all the time. Has been happening lately with the new ADT update. *Thanks and Regards, Kumar Bibek* *http://techdroid.kbeanie.comhttp://www.kbeanie.com* On Tue, Oct 25, 2011 at 10:39 PM, swebb99 sweb...@gmail.com wrote: Great thanks Kostya that fixed my problem :) Do you know what it fixed by any chance ? Steve On Oct 25, 3:23 pm, Kostya Vasilyev kmans...@gmail.com wrote: Try right clicking on the project, then choosing Android - Fix project properties, then closing and reopening the workspace. 25.10.2011 18:00, swebb99 пишет: I updated the android SDK's, basically installed and updated everything. Now when I open existing applications I've been working on I get an error when trying to view existing layouts java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configura tionComposite.onXmlModelLoaded(ConfigurationComposite.java: 689) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPar t.onTargetChange(GraphicalEditorPart.java: 970) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.onDescript orsChanged(LayoutEditor.java: 568) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.initUiRoot Node(LayoutEditor.java: 490) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.xmlModelCh anged(LayoutEditor.java: 309) So basically any existing project I can only see the xml. If I start a new project using the same API 2.3.1 as the existing projects it opens the graphical view fine! Any idea's ? Thanks in advance. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Existing layouts no longer showing in graphical layout due to null pointer exception!
Strange, I thought I did a comparison between the working project and the one that didn't and the paths looked the same. Oh well something subtle has obviously changed. I've raised an issue about this: http://code.google.com/p/android/issues/detail?id=21217q=graphical%20viewcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars On Oct 25, 6:20 pm, Kostya Vasilyev kmans...@gmail.com wrote: Empirically, this adds a new entry to the project's .classpath, but I don't have the slightest idea why it has this effect on the ADT XML editors: https://groups.google.com/forum/#!topic/android-developers/DdE5Ql_OZsY https://groups.google.com/forum/#%21topic/android-developers/DdE5Ql_OZsY -- Kostya 25.10.2011 21:09, swebb99 пишет: Great thanks Kostya that fixed my problem :) Do you know what it fixed by any chance ? Steve On Oct 25, 3:23 pm, Kostya Vasilyevkmans...@gmail.com wrote: Try right clicking on the project, then choosing Android - Fix project properties, then closing and reopening the workspace. 25.10.2011 18:00, swebb99 пишет: I updated the android SDK's, basically installed and updated everything. Now when I open existing applications I've been working on I get an error when trying to view existing layouts java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configura tionComposite.onXmlModelLoaded(ConfigurationComposite.java: 689) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPar t.onTargetChange(GraphicalEditorPart.java: 970) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.onDescript orsChanged(LayoutEditor.java: 568) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.initUiRoot Node(LayoutEditor.java: 490) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.xmlModelCh anged(LayoutEditor.java: 309) So basically any existing project I can only see the xml. If I start a new project using the same API 2.3.1 as the existing projects it opens the graphical view fine! Any idea's ? Thanks in advance. -- Kostya Vasilyev -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: WallpaperService.Engine.onOffsetsChanged() gone in ICS?
Thanks very much for that info. It was hard not to stress before, given we have nothing but the emulator to go on out here, but I'll gladly stop now that we know it's an emulator-specific issue. :^) 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: NativeActivity over another Activity?
Yes, the examples are mostly aimed at drawing in OpenGL ES through the native side. I will see if we can get an example created that draws through the java side and allows use of the touchpad events. Danny Zubiate Developer Support Engineer Sony Ericsson Mobile Communications On Oct 20, 6:46 pm, Paul Lamb paulsc...@gmail.com wrote: Internet timed out, sorry if this double-posts. I have that document and code examples already (they are what my project is based on). However they deal almost exclusively with the native code, and do not even talk about graphics, native or otherwise. The one example that even has a Java component merely passes input through JNI, nothing about setting the content view of the NativeActivity, which is what my question here is about. Know of anythe examples somewhere on how to do that? On Oct 20, 7:22 pm, Danny.Zubiate danny.zubi...@gmail.com wrote: Hi Paul, I suggest you visit the following link and take a look at the tutorial and the code examples there. They should help you to do exactly what you are trying to do with the NativeActivity. The tutorial and code examples provide a couple different methods to add on and manage the necessary NativeActivity. http://developer.sonyericsson.com/wportal/devworld/technology/android... The links you want to visit on that page are: Download a tutorial on how to access the Xperia™ PLAY touch pad and Download code examples on how to access the Xperia™ touch pad Danny Zubiate Developer Support Engineer Sony Ericsson Mobile Communications On Oct 17, 5:48 pm, Paul Lamb paulsc...@gmail.com wrote: I am trying to implement an input option for Xperia Play touch controls in one of my projects. The only way to get this input is through a NativeActivity, but I don't want to rewrite my entire project in native code. Instead, I would like to display the NativeActivity on top of the existing Activity (sending through touch and key events). For this to work, the NativeActivity would have to do one of the following: 1) Not grab the display, so the other Activity remains visible; OR 2) Be invisible so the other Activity is visible underneath (not sure if these two are even possible); OR 3) Change the NativeActivity's content view to that of the other Activity It seems like option #3 is the most likely way to do this, but the API is very different in native code than in Java code. Is it possible to set the content view of a native activity to show components that are created in the Java code (such as a FrameLayout or ImageView for example)? Is there another way to achieve what I'm after besides the three that I thought of? Let me know if you need a better explanation or some code to better describe what I'm talking about.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: DisplayMetrics xdpi and ydpi returning incorrect values
The values reported by xdpi and ydpi are still incorrect on some devices. Samsung Galaxy Tab 10.1 (from Google I/O): xdpi: 160.15764 ydpi: 160.0 Lenovo ThinkPad Tablet: xdpi: 160.15764 ydpi: 160.0 HTC Jetstream: xdpi: 150.51852 ydpi: 149.41176 The Galaxy Tab and ThinkPad Tablet report incorrect values, while the Jetstream reports correct values. I don't know why the xdpi and ydpi values are different (unless they *actually* are on they physical display, in which case that makes sense since both values for the Jetstream are close to the correct overall value). Is the value reported by xdpi and ydpi set somewhere by the device manufacturer? Is that why the values are correct on some devices and not on others? Is there going to be any guarantee in the future that these values will always be reported as correct (it would be great if this were a requirement for passing the CTS)? It would be really helpful to be able to reliably query for the actual dpi of a device without having to rely on a database of known device values. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: speech recording
ı dont know :S normally this code runing nonerror but clik the record button this program said that . . . . application has been stopped -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ADT 14 graphical layout editor doesn't work with Relative Layouts
Host OS: Win7 SDK tools version (available in the About section of the 'android' tool UI):14 Eclipse version:Helios ADT plug-in version:ADT 14 Platform targeted by your project: 2.2, 3.0 Version of the platform running in the emulator: STEPS TO REPRODUCE: 1.open the graphical layout editor in Eclipse 2. Insert a new Relative Layout to an empty layout 3.Insert two controls (images / buttons / text) one right to the other EXPECTED RESULTS: one of the controls will be placed to the right of the other OBSERVED RESULTS: they will override each other as it was Frame Layout -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: DisplayMetrics xdpi and ydpi returning incorrect values
Sorry you just can't use them. Nothing in the platform makes use of them. They need to be set by the manufacturer (there is no way for the platform to know what they are), and as of today they are just not consistently set correctly across devices, and because nothing in the platform relies on them it is easy for devices to have them set incorrectly. This information is just not available, sorry to say. Why do you need the actual physical dpi? On Tue, Oct 25, 2011 at 12:44 PM, ashughes ashug...@gmail.com wrote: The values reported by xdpi and ydpi are still incorrect on some devices. Samsung Galaxy Tab 10.1 (from Google I/O): xdpi: 160.15764 ydpi: 160.0 Lenovo ThinkPad Tablet: xdpi: 160.15764 ydpi: 160.0 HTC Jetstream: xdpi: 150.51852 ydpi: 149.41176 The Galaxy Tab and ThinkPad Tablet report incorrect values, while the Jetstream reports correct values. I don't know why the xdpi and ydpi values are different (unless they *actually* are on they physical display, in which case that makes sense since both values for the Jetstream are close to the correct overall value). Is the value reported by xdpi and ydpi set somewhere by the device manufacturer? Is that why the values are correct on some devices and not on others? Is there going to be any guarantee in the future that these values will always be reported as correct (it would be great if this were a requirement for passing the CTS)? It would be really helpful to be able to reliably query for the actual dpi of a device without having to rely on a database of known device values. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@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
Re: [android-developers] Re: DisplayMetrics xdpi and ydpi returning incorrect values
Alright. Thank you. I'm not sure if it's something that could be enforced by the CTS, but it would be nice if it was :) I want to be able to draw things in real world units (such as a measurement ruler or lines of binder paper that are *actually* college or wide ruled, etc). Do you have any suggestions of another way to do this besides keeping a database of known devices and their dpi? On Tue, Oct 25, 2011 at 1:27 PM, Dianne Hackborn hack...@android.comwrote: Sorry you just can't use them. Nothing in the platform makes use of them. They need to be set by the manufacturer (there is no way for the platform to know what they are), and as of today they are just not consistently set correctly across devices, and because nothing in the platform relies on them it is easy for devices to have them set incorrectly. This information is just not available, sorry to say. Why do you need the actual physical dpi? On Tue, Oct 25, 2011 at 12:44 PM, ashughes ashug...@gmail.com wrote: The values reported by xdpi and ydpi are still incorrect on some devices. Samsung Galaxy Tab 10.1 (from Google I/O): xdpi: 160.15764 ydpi: 160.0 Lenovo ThinkPad Tablet: xdpi: 160.15764 ydpi: 160.0 HTC Jetstream: xdpi: 150.51852 ydpi: 149.41176 The Galaxy Tab and ThinkPad Tablet report incorrect values, while the Jetstream reports correct values. I don't know why the xdpi and ydpi values are different (unless they *actually* are on they physical display, in which case that makes sense since both values for the Jetstream are close to the correct overall value). Is the value reported by xdpi and ydpi set somewhere by the device manufacturer? Is that why the values are correct on some devices and not on others? Is there going to be any guarantee in the future that these values will always be reported as correct (it would be great if this were a requirement for passing the CTS)? It would be really helpful to be able to reliably query for the actual dpi of a device without having to rely on a database of known device values. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Selecting picasa photos in gallery
I've entered a bug: http://code.google.com/p/android/issues/detail?id=21234 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] crafting custom pakets via 802.11
Hi, i have a general question related to Wifi-Pakets on android. Actually i want to send 802.11s packets, but since this is not supported by android, i would like to know if it is possible to customize a 802.11 packet to fit a 802.11s packet. Or in general to craft own packets. Is there a chance to perform such an action on android? Thanks in advance. Peter -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Conversion to Dalvik format failed with error 1
Am adding jaxrpc.jar to my android project and i get the following issue [2011-10-25 18:26:25 - loyaltycardapplication] Dx trouble processing javax/xml/messaging/Endpoint.class: Ill-advised or mistaken usage of a core class (java.* or javax.*) when not building a core library. This is often due to inadvertently including a core library file in your application's project, when using an IDE (such as Eclipse). If you are sure you're not intentionally defining a core class, then this is the most likely explanation of what's going on. However, you might actually be trying to define a class in a core namespace, the source of which you may have taken, for example, from a non-Android virtual machine project. This will most assuredly not work. At a minimum, it jeopardizes the compatibility of your app with future versions of the platform. It is also often of questionable legality. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine distribution, as opposed to compiling an application -- then use the --core-library option to suppress this error message. If you go ahead and use --core-library but are in fact building an application, then be forewarned that your application will still fail to build or run, at some point. Please be prepared for angry customers who find, for example, that your application ceases to function once they upgrade their operating system. You will be to blame for this problem. If you are legitimately using some code that happens to be in a core package, then the easiest safe alternative you have is to repackage that code. That is, move the classes in question into your own package namespace. This means that they will never be in conflict with core system classes. JarJar is a tool that may help you in this endeavor. If you find that you cannot do this, then that is an indication that the path you are on will ultimately lead to pain, suffering, grief, and lamentation. [2011-10-25 18:26:25 - loyaltycardapplication] Dx 1 error; aborting [2011-10-25 18:26:25 - loyaltycardapplication] Conversion to Dalvik format failed with error 1 This is specific with that .jar. when i add axis.jar i dont get the same. when i remove the jaxrpc.jar the project builds without any issues. Any help on how to solve this will be highly 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] Driver de Modem
Friends, greetings. I need help. I am here in Brazil and have a relationship and would like a 3G modem from using and enjoying on my Tablet Android. Anyone know where I can find drivers for this modem for Android? If anyone has any tips of where to download these drivers, thank you very much. Some brands. Nokia CS-11 - Huawei E1553 Huawei E156B Huawei E220 Huawei E226 Sony Ericsson MD300 ZTE MF100 ZTE MF622 ZTE MF626 ZTE MF645 SIMM do Brasil Giant D301 Huawei E156C Onda MSA501HS Onda N101E Huawei E156 Huawei E1556 Huawei E1756 Huawei EC325 Nokia CS-10 ZTE Aiko 83D Tks. -- Ray da Costa The best way to predict the future is to invent it. Alan Kay -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ICS Active Stylus/Pen Support
With the addition of active pen support in Android 4.0, is there a way to detect if the current device *supports* a stylus (has an active pen digitizer)? I noticed there is a touchscreen type resource qualifier called stylus included since API level 1, but it's supposed to identify resistive touchscreens. Will this same qualifier work for devices supporting an active pen digitizer? I would like to use different layout resources depending on if a device supports an active stylus as well as query programmatically if the device supports an active stylus. P.S. I'm really happy to see active pen support in ICS! My masters thesis was adding active pen support to Gingerbread ( https://github.com/ashughes/ActivePenInputAndroidInputFramework). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SDK 4, if I select WXGA resolution, emulator doesn't start.
PS C:\Android\android-sdk\tools .\emulator.exe -avd Galaxy_Nexus PS C:\Android\android-sdk\tools Failed to allocate memory: 8 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. --- I'm contacting the application's support team but no one answer. :D -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ICS Active Stylus/Pen Support
Sorry, no there is not. Especially since a lot of these screens can be used with both a finger or a stylus, this kind of fine-grained thing would probably cause more trouble than it would help. This is already becoming an issue with the existing resource qualifiers with the growing ability to plug in and pair with keyboards etc. On Tue, Oct 25, 2011 at 2:16 PM, ashughes ashug...@gmail.com wrote: With the addition of active pen support in Android 4.0, is there a way to detect if the current device *supports* a stylus (has an active pen digitizer)? I noticed there is a touchscreen type resource qualifier called stylus included since API level 1, but it's supposed to identify resistive touchscreens. Will this same qualifier work for devices supporting an active pen digitizer? I would like to use different layout resources depending on if a device supports an active stylus as well as query programmatically if the device supports an active stylus. P.S. I'm really happy to see active pen support in ICS! My masters thesis was adding active pen support to Gingerbread ( https://github.com/ashughes/ActivePenInputAndroidInputFramework). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@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