[android-developers] Dual Pane Layout with ViewPager
I'm making an app that uses a dual pane layout when in landscape orientation, much like the example in the fragment api blog. I also have two different lists, each would have their own details pane. I want to use a ViewPager to switch between the lists, but I'm unsure how best to approach it. I can make the list pane have the ViewPager and the details pane never moves, just gets reused. I think this looks a little funny though, and might be confusing. I would much prefer to swap the whole dual pane layout when switching lists, but I can't figure out how to do that. It seems like it would involve fragments within fragments, which isn't possible as far as I know. Anybody have any suggestions? 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] About Contacts sorting problem
Hello All: My company's tester report a bug that the user create a new contact item whose 1st name is in Chinese , last name is in English, for example: First Name: 元璋 Last Name: Zhu. Then this item is sorted outside the A-Z order, after the Z group( in the case of sorting by first name). This item should be in Y group. (元璋--yuanzhang). After my investigation of source code, I find that I can't do nothing in java code, including ContactProvider.apk and framework. I guess the real sorting procedure is in SQLite native code. But I am confusing in so many source code. Some people could tell me how can I fix this bug? Please give me a hint! Thanks very much! Sincerely -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Regarding android browser webkit layouttest automated test document
Hi, Can someone help me to get the documentation to run the webkit automated layout tests within android browser. Thanks in advance. Sagar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] OpenGL ES 2.0 for Android
What is the best way to learn OpenGL ES 2.0 for 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: Google Earth for android apps
Yep, I'm not aware of Google Eart API either. Try integrating Google Maps instead. You can start from here: http://developer.android.com/resources/tutorials/views/hello-mapview.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/products/994 On Dec 25, 1:51 pm, Kristopher Micinski krismicin...@gmail.com wrote: I do not believe that Google Earth has an Android API. kris On Sun, Dec 25, 2011 at 6:34 AM, Raju Gaddam gaddam967...@gmail.com wrote: Hi please tell me how to integrate Google Earth with android application -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Button lick problem
Hi, I have a problem with button click. This is what I have written in a sample Activity: button1 = (Button) findViewById (R.id.button1); button2 = (Button) findViewById (R.id.button2); button1.setOnClickListener(new OnClickListener(){ @Override public void onClick(View v) { // TODO Auto-generated method stub try { android.util.Log.e(Button1, clicked); Thread.sleep(15000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }); button2.setOnClickListener(new OnClickListener(){ @Override public void onClick(View v) { // TODO Auto-generated method stub try { android.util.Log.e(Button2, clicked); Thread.sleep(15000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }); This is what happens (We tested the application on Samsung Galaxy). When we click on Button1 and then Button2 and button1 again, we see that both button1 and button2 have changed theiir color to blue simultaneously. Why is that the color of both the buttons change simultaneously? As per this link: http://android-developers.blogspot.com/2009/05/painless-threading.html the button click event happens on the same main UI thread. In that sense, both the buttons should not have changed their colors simultaneously. Thank you, B.Arunkumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem in getting Android source code from Google repo
Hi, When i was getting android source code by executing the following commands: $ curl http://android.git.kernel.org/repo ./repo $ chmod a+x ./repo $ ./repo init -u git://android.git.kernel.org/platform/manifest.git -b gingerbread I was facing the below errors could any body kindly do the needful in reolving the below errors: Get git://android.git.kernel.org/platform/manifest.git android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused fatal: unable to connect a socket (Connection refused) android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused fatal: unable to connect a socket (Connection refused) fatal: cannot obtain manifest git://android.git.kernel.org/platform/manifest.git lucid@ubuntu:~/myandroid$ repo init -u git://android.git.kernel.org/platform/manifest.git -b gingerbread Get git://android.git.kernel.org/platform/manifest.git android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused fatal: unable to connect a socket (Connection refused) android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused fatal: unable to connect a socket (Connection refused) fatal: cannot obtain manifest git://android.git.kernel.org/platform/manifest.git Kindly do the needful as soon as possible, Thanks, Srinivasan S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Button lick problem
Arun, I am not sure what is the purpose of going to sleep mode, and secondly you put a logs on the other abstract methods of your activity class. I would suggest read the Android life cycle as well. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Dec 26, 2011 at 4:04 PM, B.Arunkumar awsnetworkrecor...@gmail.comwrote: Hi, I have a problem with button click. This is what I have written in a sample Activity: button1 = (Button) findViewById (R.id.button1); button2 = (Button) findViewById (R.id.button2); button1.setOnClickListener(new OnClickListener(){ @Override public void onClick(View v) { // TODO Auto-generated method stub try { android.util.Log.e(Button1, clicked); Thread.sleep(15000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }); button2.setOnClickListener(new OnClickListener(){ @Override public void onClick(View v) { // TODO Auto-generated method stub try { android.util.Log.e(Button2, clicked); Thread.sleep(15000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }); This is what happens (We tested the application on Samsung Galaxy). When we click on Button1 and then Button2 and button1 again, we see that both button1 and button2 have changed theiir color to blue simultaneously. Why is that the color of both the buttons change simultaneously? As per this link: http://android-developers.blogspot.com/2009/05/painless-threading.html the button click event happens on the same main UI thread. In that sense, both the buttons should not have changed their colors simultaneously. Thank you, B.Arunkumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Problem in getting Android source code from Google repo
Try android.googlesource.com. 在 2011-12-26 下午6:48,srinivasan shanmugam srinivasan@gmail.com写道: Hi, When i was getting android source code by executing the following commands: $ curl http://android.git.kernel.org/repo ./repo $ chmod a+x ./repo $ ./repo init -u git://android.git.kernel.org/platform/manifest.git -b gingerbread I was facing the below errors could any body kindly do the needful in reolving the below errors: Get git://android.git.kernel.org/platform/manifest.git android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused fatal: unable to connect a socket (Connection refused) android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused fatal: unable to connect a socket (Connection refused) fatal: cannot obtain manifest git:// android.git.kernel.org/platform/manifest.git lucid@ubuntu:~/myandroid$ repo init -u git:// android.git.kernel.org/platform/manifest.git -b gingerbread Get git://android.git.kernel.org/platform/manifest.git android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused fatal: unable to connect a socket (Connection refused) android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused fatal: unable to connect a socket (Connection refused) fatal: cannot obtain manifest git:// android.git.kernel.org/platform/manifest.git Kindly do the needful as soon as possible, Thanks, Srinivasan S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Adding AVRCP Plugin in Android GB
Hi, This mail is for all who are trying to use AVRCP profile in GB. GB has A2DP and AVRCP tightly coupled under audio. With this only AVRCP cant be used. control.c in external/bluetooth/bluez/control.c has the avrcp implementation part. Therez no support in the framework to call these functionalities directly. We have created a AVRCP plugin which acts as a standalone AVRCP remote control and does not depend on setting up of Audio/video streams. The plugin is created such that it can be removed if not required. This plugin has been created in the lines of audio and input. we have done the framework changes to call the functionalities in control.c. Follow the link below to know how to add a new BT profile. http://processors.wiki.ti.com/index.php/Android-Adding_Bluetooth_Profile Also changes are required in control.c to call the connect/disconnect methods through DBus. Apart from this, changes are required in the following files wrt avrcp plugin addition: external/Bluetooth/bluez/Makefile external/Bluetooth/bluez/acinclude.m4 In Main.c avrcp plugin has been defined with entry and exit functions as:BLUETOOTH_PLUGIN_DEFINE(avrcp, VER- SION,BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, avrcp_init, avrcp_exit) At external/Bluetooth/bluez/avrcp/Android.mk do LOCAL_MODULE_TAGS : DEBUG This will generate avcrcp.so at : out/target/product/ crespo/system/lib/bluez-plugin/ (where the avrcp.so would be fetched.) Bluetooth plugin can be disabled by defining the plugin in main.conf out/target/product/crespo/system/etc/Bluetooth/ as: DisablePlugins = avrcp Expose the required APIs to the application from the framework so that anybody can build application using these APIs. Hope this would help anybody who wants to add a new plugin in Bluez in Android GB. 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: problem parsing the package
Hello, I am in a problem related with ListView. I attach my List of users to the ListView and i also have a button. On click of which i need to pass the whole user object of that user to next file. userFriendInfoVO = mainFriendList.get(position); see here i get whole object but no matter whichever object i click upon, i only get details of user having last position. can anyone help me into it?? On Dec 23, 10:54 pm, Kumar Bibek coomar@gmail.com wrote: Post your manifest file. It's probably that causing the problem. *Thanks and Regards, Kumar Bibek* *http://techdroid.kbeanie.comhttp://www.kbeanie.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] runtime error: com.android.internal.os.LoggingPrintStream.println
Hello, I have run across the following strange error message. From within an button's on click listener I call System.out.println(Foo.bar) so as to debug my program and get the following error message: D/AndroidRuntime( 2313): Shutting down VM W/dalvikvm( 2313): threadid=1: thread exiting with uncaught exception (group=0x40015560) E/AndroidRuntime( 2313): FATAL EXCEPTION: main E/AndroidRuntime( 2313): java.lang.NullPointerException E/AndroidRuntime( 2313): at com.android.internal.os.LoggingPrintStream.println(LoggingPrintStream.java:298) Anyone know what this is all about? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] runtime error: com.android.internal.os.LoggingPrintStream.println
It could be due to println not exististing in the packages included with android. I would suggest using Log.w(), Log.e() or Log.n() for logging and viewing points. Not entirely sure why the println doesn't work. Sent via Mobile device... mind the spelling errors I might have rushed! On Dec 26, 2011 8:25 AM, John Goche johngoch...@googlemail.com wrote: Hello, I have run across the following strange error message. From within an button's on click listener I call System.out.println(Foo.bar) so as to debug my program and get the following error message: D/AndroidRuntime( 2313): Shutting down VM W/dalvikvm( 2313): threadid=1: thread exiting with uncaught exception (group=0x40015560) E/AndroidRuntime( 2313): FATAL EXCEPTION: main E/AndroidRuntime( 2313): java.lang.NullPointerException E/AndroidRuntime( 2313): at com.android.internal.os.LoggingPrintStream.println(LoggingPrintStream.java:298) Anyone know what this is all about? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Handling system events: LunarLander vs Jetboy vs Snake
Both LunarLander and JetBoy in the SDK demos have the bug that they don't handle you pressing the home button in the app - when you restart the application, it says application stopped unexpectedly. These both run render/update in a separate thread, which appears to not be terminated. Snake handles home and back buttons quite well. It has a different structure, it is single threaded. I can simply change the thread.sleep() to be zero, and use it to implement my game engine in a single thread. But it actually draws the screen using a View.invalidate() call, which I have heard is slow, and my app is real time. So: 1. Is View.Invalidate() as used by Snake slower than the approach of locking the surface used by LunarLander and JetBoy, slower enough for me to care? 2. Can anybody suggest any game samples which correctly implement system events like the user hitting the home or back button? Many on the web are obviously derived from LunarLander or JetBoy and have the same problem. Peter Webb -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] no audio from bluetooth sco earpiece
Hello, I want to play a sample file to test the bluetooth sco connection on Android 2.2. The device is an earpiece (Nokia BH-701). The problem is that I can hear and see that the SCO connection is Ok but I can not hear the sample audio (mono,8kHz, 16 bits). The connection seems to be established twice and AudioFlinger shows a blocking write msg. Did I miss something ? -- extract of logs: 12-26 16:45:35.821: I/ActivityManager(1964): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x1000 cmp=com.rider/.RiderBlueToothActivity } 12-26 16:45:36.261: D/ScoSocket(2038): connect() android.bluetooth.ScoSocket@43ef8eb0 12-26 16:45:36.261: I/bluetooth_ScoSocket.cpp(2038): getScoType Nokia BH-701 - 0x0 12-26 16:45:36.266: I/bluetooth_ScoSocket.cpp(2038): Connecting to socket 12-26 16:45:36.311: D/brd(12018): Audio SCO state: 1 12-26 16:45:36.311: I/brd(12018): SCO_AUDIO_STATE_CONNECTED 12-26 16:45:36.321: I/StagefrightPlayer(1895): setDataSource('/mnt/ sdcard/Sounds/tmpAmr/lathe.mp3') 12-26 16:45:36.336: D/AudioHardware(1895): AudioStreamOutALSA::write: AudioHardware pcm playback is exiting standby. 12-26 16:45:36.336: D/AudioHardware(1895): openPcmOut_l() mPcmOpenCnt: 0 12-26 16:45:36.421: W/AudioFlinger(1895): write blocked for 86 msecs, 32 delayed writes, thread 0xc820 12-26 16:45:36.486: I/bluetooth_ScoSocket.cpp(2038): SCO socket connected (outgoing) 12-26 16:45:36.586: D/brd(12018): Audio SCO state: 1 12-26 16:45:36.591: I/brd(12018): SCO_AUDIO_STATE_CONNECTED 12-26 16:45:36.596: I/StagefrightPlayer(1895): setDataSource('/mnt/ sdcard/Sounds/tmpAmr/lathe.mp3') 12-26 16:45:41.986: D/dalvikvm(2296): GC_EXPLICIT freed 1469 objects / 70512 bytes in 355ms 12-26 16:45:43.841: D/AudioHardware(1895): AudioHardware pcm playback is going to standby. 12-26 16:45:43.881: D/AudioHardware(1895): closePcmOut_l() mPcmOpenCnt: 1 12-26 16:45:49.051: D/dalvikvm(12018): Calling exit(1) -- The sample code is: in an Activity: IntentFilter l_intentFilter = new IntentFilter(AudioManager.ACTION_SCO_AUDIO_STATE_CHANGED); rbmBroadcastReceiver=new MyBroadcastReceiver(); this.getApplicationContext().registerReceiver(rbmBroadcastReceiver,l_intentFilter,null,null); rbmAudioManager = (AudioManager) getApplicationContext().getSystemService(Context.AUDIO_SERVICE); rbmAudioManager.startBluetoothSco(); and in MyBroadcastReceiver: public void onReceive(Context arg0, Intent arg1) { if (action.equalsIgnoreCase(AudioManager.ACTION_SCO_AUDIO_STATE_CHANGED)) { int l_state = arg1.getIntExtra(AudioManager.EXTRA_SCO_AUDIO_STATE, -1); if (AudioManager.SCO_AUDIO_STATE_CONNECTED == l_state) { Log.i(brd, SCO_AUDIO_STATE_CONNECTED); File l_tstFile = new File(/mnt/sdcard/Sounds/tmpAmr/lathe.mp3); Uri myUri = Uri.fromFile(l_tstFile); // initialize Uri here MediaPlayer mediaPlayer = new MediaPlayer(); mediaPlayer.setAudioStreamType(AudioManager.STREAM_VOICE_CALL); try { mediaPlayer.setDataSource(arg0, myUri); mediaPlayer.prepare(); mediaPlayer.start(); } catch (IllegalArgumentException e) { // TODO Auto-generated catch block Log.i(brd, IllegalArgumentException); e.printStackTrace(); } catch (SecurityException e) { // TODO Auto-generated catch block Log.i(brd, SecurityException); e.printStackTrace(); } catch (IllegalStateException e) { // TODO Auto-generated catch block Log.i(brd, IllegalStateException); e.printStackTrace(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL ES 2.0 for Android
On Dec 26, 11:05 am, bob b...@coolfone.comze.com wrote: What is the best way to learn OpenGL ES 2.0 for Android? What kind of tutorial are you looking for ? are you a beginner ? What did you already find ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] OpenGL ES Question
Is there a google group like this for OpenGL ES? I'm trying to figure out if I can take any OpenGL Fragment shader and use it with OpenGL ES? Or are there differences in the shading language between regular and ES? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OpenGL ES 2.0 for Android
On Mon, Dec 26, 2011 at 4:05 AM, bob b...@coolfone.comze.com wrote: What is the best way to learn OpenGL ES 2.0 for Android? Best way to learn is subjective. So figure what is the best way for *you* to learn, then do that with OpenGL ES 2.0. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] OpenGL ES Question
On Mon, Dec 26, 2011 at 11:12 AM, bob b...@coolfone.comze.com wrote: Is there a google group like this for OpenGL ES? Probably. Did you try looking? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: problem parsing the package
On Mon, Dec 26, 2011 at 05:19:17AM -0800, rachana govilkar wrote: Hello, I am in a problem related with ListView. I attach my List of users to the ListView and i also have a button. On click of which i need to pass the whole user object of that user to next file. First of all, what package are you having trouble with? Your subject doesn't seem to match your problem here. Did you hijack someone else's thread? If so, don't do that...it's extremely rude, at the very least. userFriendInfoVO = mainFriendList.get(position); see here i get whole object but no matter whichever object i click upon, i only get details of user having last position. can anyone help me into it?? If you post a bit more of the relevant code, probably...almost certainly, in fact. From what you describe, position is not getting set, or its value is being overwritten before you read the results. If you'd posted the relevant code, I could tell you for sure. And fill in the missing info on this package you're stuck onYou completely left that questio out. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W No, I'm not going to explain it. If you can't figure it out, you didn't want to know anyway... --Larry Wall Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] NFC Secure element in SIM vs internal!
I work at RENFE,the national railways company.We have developping NFC projects.Here,in Spain,the main NFC model is SIM-centric.There are only a few NFC models available.Our project is developed with Vodafone and all our mobiles are with a NFC SIM.The main argument who mobile operators say is that you change more the mobile that the SIM and that the reason for adopting the SIM centric model.The question that the mobile operators say in Spain is : if you have your credentials in the SE in the phone and you want to change the phone ,for example fro Google Nexus to Blackberry,how can you do it? Can you give me arguments for knowing more about this subject? 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] No rule to make target make error on Froyo 2.2.1 (korg/froyo)
Hello to all,I'm source-building CyanogenMod 6 for a device called LG- P500 (ARMv6/MDPI). CyanogenMod or not,this doesn't really matter,because I'm getting this on AOSP Froyo too. Well,when starting it builds for 10-15 seconds (on a Core i7 featuring 6GB of RAM BTW) then stops at: make: *** No rule to make target out/host/linux-x86/framework/ddmlib- prebuilt.jar, needed by out/host/common/obj/JAVA_LIBRARIES/ hosttestlib_intermediates/javalib.jar. Stop. Anyone got an idea? If posting CyanogenMod-related stuff here is prohibited I apologize in advance. Regards, Giorgio. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] problem while getting md5 key
I' m tring to get md5 code but the cms show me sha1. the following output generate when I run command c:\Program Files\Java\jre7\binkeytool.exe -list -alias androiddebugkey -keystor e C:\debug.keystore -storepass android -keypass android androiddebugkey, 16.Eki.2011, PrivateKeyEntry, Certificate fingerprint (SHA1): 02:24:F2:01:90:8D:CF:E5:5B:FD: 53:09:F2:24:45:B8: F0:D1:2C:D3 how to get MD5 key? help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] About adding the custom headers...
Hi friend, i am working on one application. i want to add some custom headers with each request. so can any body guide me how to add custom headers. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Setting windowIsFloating programmatically
Hi, I am trying to use the same activity, but use it as a dialog under some conditions and as a regular activity under others. I tried calling setTheme to setting it to Theme.Dialog style, but the previous activity is blocked by black background. So I think I figured out so far that it's isFloating property that decides this. So my question is if there is any way to set this from a code in my Activity class. Calling setTheme inside onCreate() seems to be too late, and doing it on the constructor gives me a NullPointerException. I know the easiest way to do this would be, to subclass my activity and use different theme in my Manifest file, but unfortunately I am getting some crash reports from my users when I do that: http://stackoverflow.com/questions/8620118/stackoverflowerror-on-activity-oncreate Any help or suggestion would be very appreciated. 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] Writing to the phone outgoing audio stream
Does not seem possible from I've been able to gather. Seems like I can only stream out to the speaker, headphone, or bluetooth. Or am I overlooking something obvious? Thanks in advance Vadim -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] When should I have more than one fragment implement LoaderManager.LoaderCallbacksCursor?
I am having a difficult time figuring out which fragments in my application should and should not be implementing LoaderManager.LoaderCallbacksCursor. Under what circumstances should I have a fragment implement these callback methods, as opposed to, for example, simply fetching data with a ContentProvider? For example, say I wanted to write an app for Android Tablets that consists of two Fragments: 1) a ListFragment that displays a list of people (left side of screen), and 2) a Fragment that displays the selected person's information (right side of screen). Assume that the first ListFragment implements all of the callback methods correctly and that all of the data is stored in the same database. Should the second Fragment implement the callback methods as well, or is it sufficient to perform a query within the ListFragment class and pass it along to the second Fragment when a list item is selected? What's the difference? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 bar gets pushed upwards for second level childactivity.
I have a borrowed code of TabGroupActivity through which i call child activities within Tabactivity. My problem arises when i have a Edittext which when clicked shows softkeyboard pushing the bottom bar upward. This happens only for activities called from childactivity itself. It means, once the second level childactivity is launched that behaviour comes up and when tabs are switched this behavior disappears. I need to know what is causing the problem? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SyncAdapter - error SettingNotFoundException: roaming_auto_sync_enabled
Hi, Thank you very much for your reply. i will search on this. if in future if you got solution please let me know. it would be a great help from you... Have nice Christmas and happy new year With Regards, pravin. On Fri, Dec 23, 2011 at 3:32 PM, Fugee hannes.wij...@bps-software.dewrote: Hello, i have written my own syncadapter. This is working without any problems on a motorola defy (Android 2.1) and a zte blade (Android 2.3.5). But on a Samsung Galaxy S (GT I9000 - Android 2.3.3) the syncoperation breaks with this error: android.provider.Settings$SettingNotFoundException: roaming_auto_sync_enabled at android.provider.Settings$Secure.getInt(Settings.java:2257) at com.android.server.enterprise.RoamingPolicy.isRoamingSyncEnabled(RoamingPolicy.java: 121) at android.app.admin.DevicePolicyManager $RoamingPolicy.isRoamingSyncEnabled(DevicePolicyManager.java:**) at com.android.settings.ManageAccountsSettings.onSyncStateUpdated(ManageAccountsSettings.java: 177) at com.android.settings.ManageAccountsSettings.onAccountsUpdated(ManageAccountsSettings.java: 269) at android.accounts.AccountManager$11.run(AccountManager.java:1153) at android.os.Handler.handleCallback(Handler.java:587) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:123) at com.android.server.ServerThread.run(SystemServer.java:641) i searched for info about this, but i got no results. Maybe someone has some infos about this error ?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Doubt
Hi.. In my project ,i need to get the previous activity name,, in present activity 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] android.hardware.sensor.pressure required -- No compatible devices
Hello, I created an application that uses the pressure sensor. My manifest contains the following feature requirement: uses-feature android:name=android.hardware.sensor.pressure android:required=true/ My developer console listing shows the following requirements: Features: android.hardware.sensor.pressure, android.hardware.touchscreen However, the developer console says that this application is compatible with 0 devices. I cannot install this application on my Galaxy Nexus from the Android Market, even though it has the required sensor and the application functioned properly on it. Does anyone have any information on this issue? 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] Cannot use monkeyrunner while taking screenshots using ddmslib
I use ddmslib to take screenshots of my android device every some seconds. While the program is running I tried to randomly click my device using MonkeyRunners but it is not working. Error: java.net.SocketException: Broken pipe Is it because I use ddmslib at the same time and it is listening at the same port that I am trying to run MonkeyRunner? Any suggestions? Thanks PS. If I run the MonkeyRunner alone its working perfectly. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] WebView with setSupportZoom(false) still loses quality on touch event
I've a WebView with zoom disabled, however when taping or touching it, it still loses quality: images are dithered, texts become aliased, etc. even though a touch/drap/swype no longer does anything. Is there a way to turn off that behavior *without* losing touch events in JavaScript? Or is there some way to control the rendering quality? (even if that means forcing low quality all the time). By specifying an OnTouchListener that returns always true, the behavior goes away, but so do the touch events in JavaScript... If the OnTouchListener returns true always, except for a few select events (I'm only after taps), I can get the WebView to stay in low- quality, but on multi-touch events, the WebView will just freeze. Dismissing the events with preventDefaults in JavaScript results in WebView freezes for some swypes or multi-touch combinations with the infamous Miss a drag as we are waiting for WebCore's response for touch down. Happens for 2.2 and 2.3.3. Eric -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Call Conference with application
Hi guys, I'm a young Android developer and I started to build an application which is ought to be able to manage Calls, like recognizing incoming calls and accepting them and even create a conference with another incoming call. I've been searching all day for an open source solution for this, but i always find comments about packages like com.android.phone or classes that access com.android.internal.* and even something like iTelephony API. I'd really be pleasured if someone could help me out with this in form of a useful tutorial or a good self-explaining source code. with kind regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Web app on home screen (iphone style)?
Just wondering when I had an iphone I was able to create a web app then place some code in it so that when the user pressed add to homescreen an icon would be placed on the home screen and when the user clicked it the web app would run full screen (no web navigation bar) so it just looked like a normal app (although it would only run with the web on) Is there anyway I can do this with android or do I have to code a whole app to do it? Sorry if this is a bit unclear. Thanks, Adam. What I used for the iphone: meta name=viewport content=user-scalable=no, width=device-width / meta name=apple-mobile-web-app-capable content=yes / meta name=apple-mobile-web-app-status-bar-style content=black / link rel=apple-touch-startup-image href=images/ myCustomStartupGraphic.png / -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: The accelerometer reading looks odd
好像没有人可以帮你啊 2011-12-23 underalight 发件人:Yang Bo 发送时间:2011-12-23 11:28 主题:[android-developers] Re: The accelerometer reading looks odd 收件人:android-developers@googlegroups.com 抄送: Could anyone help on this ? Thanks 在 2011-12-22 下午5:02,Yang Bo yangbo@gmail.com写道: Hi, I am trying to read the device accelerometer when the phone is placed on a desk with screen up,I expect 0 on the x-axis and y-axis,-9.8 at z-axis. But I get x:11,y:-37,z:-24(decimal part ignore) What is this? I read the doc of accelerometer, does not make it clear. Could you please help : 1. Why x and y are non-zero? 2. Why the value is so large? Thanks ! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How can apps sending and receiving SMSs be visible on the market for the new Galaxy Tablets?
Hi, Kostya. Thanks for your response, and for info on your strange experience with WiFi on the Galaxy Tablet. My problem is not to make SMS-functions work on the Galaxy Tab (which they do), but to make SMS apps visisble to devices which support SMS (including the Galaxy Tabs) - and only those. One could obviously try something like what you suggest, but in that case you need to make the app visible to all sorts of devices, also those which do not support SMS. Starting/running an app on deviced on which it will not run properly, would probably result in lots of angry users and bad/low ratings. Which we do not want. At some stange it seemed that the Market would try to solve this general problem - once and for all: Read about The 5 steps to future harware happiness: http://android-developers.blogspot.com/2010/10/five-steps-to-future-hardware-happiness.html The Market may have thought that they had solved this issue, but it seems not. Or could there be other ways ? Terry On 22 Des, 13:55, Kostya Vasilyev kmans...@gmail.com wrote: While I don't have a workaround - sorry - but this particular device is quite weird... FWIW, this is what I recently ran into, it has to do with WiFi: http://wp.me/pSrdQ-lg Have you tried calling SmsManager.getDefault() and checking for null? -- Kostya 22 ÄÅËÁÂÒÑ 2011šÇ. 16:48 ÐÏÌØÚÏ×ÁÔÅÌØ Terry terb...@gmail.com ÎÁÐÉÓÁÌ: As no one has responed to this issue yet, I shall try to explain it in more detail. In order to DO make an app visible for e.g. the Galaxy Tab 10.1 model GT-P7500, one could put the following in the Manifest file: uses-feature android:name=android.hardware.telephony android:required=false/ In the app code, one could e.g. use the following too check what features are available: PackageManager pm = getPackageManager(); boolean hasTelephony = pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY); However, the Galaxy Tab 10.1 model GT-P7500 returns a false on that method. The problem would be solved if there existed a constant like PackageManager.FEATURE_SMS or similar, but there is no such thing. I think that the Market is still not prepared for the type of products like the Galaxy Tab 10.1 model GT-P7500. Any ideas as to how I can solve this? Terry On 21 Des, 12:38, Terry terb...@gmail.com wrote: I have tried to ask this question elsewhere, but without getting any answer I can use. So I try it here also. I have some apps which send and receive SMSs. They are invisible for the new Galaxy Tablets on the Market, and they cannot be dowloaded to them. WHY? As e.g. the Galaxy Tablet 10.1, model GT-P7500 does NOT support audio phone calls - but it DOES support sending and receiving SMSs, there should be no problem. In fact, when I download these apps to the GT- P7500 šlocally, they work as expected. The Market however, sees the permissions to SEND_ and RECEIVE_SMS in the Manifest file of the apps, and interprets this so as to require hardware.telephony from the Galaxy Tabs. Which is does not seem to support. Any idea how to make a work-around for this problem? Terry -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OpenGL ES 2.0 for Android
On Dec 26, 8:52 am, the_edge123 theedge...@gmail.com wrote: On Dec 26, 11:05 am, bob b...@coolfone.comze.com wrote: What is the best way to learn OpenGL ES 2.0 for Android? What kind of tutorial are you looking for ? A book hopefully. are you a beginner ? Yes. What did you already find ? http://www.khronos.org/registry/gles/specs/2.0/GLSL_ES_Specification_1.0.17.pdf -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OpenGL ES Question
No, you can't. You can only use OpenGL ES shaders with OpenGL ES. It's not that hard to port a shader between versions..but there are many versions of the Desktop OpenGL, so it'll take a bit of Googling to do it. On 12/27/2011 1:12 AM, bob wrote: Is there a google group like this for OpenGL ES? I'm trying to figure out if I can take any OpenGL Fragment shader and use it with OpenGL ES? Or are there differences in the shading language between regular and ES? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android onLayout() and AsyncTask() does not work together
onPostExecute() is called on the UI thread. On Mon, Dec 26, 2011 at 1:20 AM, Binh Nguyen nguyenthanhbinh1...@gmail.com wrote: Hi experts, I need a scrollable table with fixed header, so I followed this great blog (http://blog.stylingandroid.com/archives/432) and everything is fine. The idea is using one table for header, one table for content added in scrollview, both of them are in a customized LinearLayout. In customized LinearLayout, we will overwrite the onLayout() to get the max width of each row and set width for each row of both header and content table. Here is the activity and its layout: package com.stylingandroid.ScrollingTable; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.LinearLayout; import android.widget.TableLayout; import android.widget.TableRow; public class ScrollingTable extends LinearLayout { public ScrollingTable( Context context ) { super( context ); } public ScrollingTable( Context context, AttributeSet attrs ) { super( context, attrs ); } @Override protected void onLayout( boolean changed, int l, int t, int r, int b ) { super.onLayout( changed, l, t, r, b ); TableLayout header = (TableLayout) findViewById( R.id.HeaderTable ); TableLayout body = (TableLayout) findViewById( R.id.BodyTable ); if (body.getChildCount() 0 ) { TableRow bodyRow = (TableRow) body.getChildAt(0); TableRow headerRow = (TableRow) header.getChildAt(0); for ( int cellnum = 0; cellnum bodyRow.getChildCount(); cellnum++ ){ View bodyCell = bodyRow.getChildAt(cellnum); View headerCell = headerRow.getChildAt(cellnum); int bodyWidth = bodyCell.getWidth(); int headerWidth = headerCell.getWidth(); int max = Math.max(bodyWidth, headerWidth); TableRow.LayoutParams bodyParams = (TableRow.LayoutParams)bodyCell.getLayoutParams(); bodyParams.width = max; TableRow.LayoutParams headerParams = (TableRow.LayoutParams)headerCell.getLayoutParams(); headerParams.width = max; } } } } main.xml === ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.stylingandroid.ScrollingTable.ScrollingTable android:layout_width=match_parent android:orientation=vertical android:layout_height=match_parent TableLayout android:layout_height=wrap_content android:layout_width=match_parent android:id=@+id/HeaderTable /TableLayout ScrollView android:layout_width=match_parent android:layout_height=wrap_content TableLayout android:layout_height=wrap_content android:layout_width=match_parent android:id=@+id/BodyTable /TableLayout /ScrollView /com.stylingandroid.ScrollingTable.ScrollingTable /LinearLayout Main activity == package com.stylingandroid.ScrollingTable; import android.app.Activity; import android.app.ProgressDialog; import android.graphics.Color; import android.os.AsyncTask; import android.os.Bundle; import android.widget.TableLayout; import android.widget.TableRow; import android.widget.TextView; public class ScrollingTableActivity extends Activity { private String[][] tableData = { {header111, header2,header3,header4}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1, column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1} }; /** Called when the activity is first created. */ @Override public void onCreate( Bundle savedInstanceState ) { super.onCreate( savedInstanceState ); setContentView( R.layout.main ); TableLayout tableHeader = (TableLayout)findViewById(R.id.HeaderTable); TableLayout tableBody = (TableLayout)findViewById(R.id.BodyTable); appendRows(tableHeader, tableBody, tableData); } private void appendRows(TableLayout tableHeader ,TableLayout tableContent, String[][] amortization) { int rowSize=amortization.length; int colSize=(amortization.length 0)?amortization[0].length:0; for(int i=0; irowSize;
Re: [android-developers] NFC Secure element in SIM vs internal!
Well, if you work with a SE embedded in a SIM card, if you change your phone you just have to change the SIM that is all. When working with NFC using the SIM approach you have basically two options. On one hand you can create applications that communicate directly with SIM to carry out operations with the embedded SE, i.e. recharging the balance of a transportation ticket or just finding out the current balance. From my experience this approach works well for Blackberry or any other J2ME phone supporting SATSA-APDU API. Android is just another different world, since such low level access to SIM is not allowed from user applications. In this case main processor and baseband firmware must be changed to support a similar functionality already found on several-year-old J2ME phones. This technique has not acquired much market adotion. On the other hand we have the TSM operation. In this case the carriers, who control de SIM and have other means to access remotely to the SIM (OTA), set up TSM services a provide third parties (transportation companies such as RENFE, etc.) a access to SIM (well, actually to a part inside the SE that holds that third party's own applications). In this case the user applications inside the mobile phone do not have direct access to SIM, but they operate with it through a business service that usually proxies to carrier's TSM server. On Fri, Dec 23, 2011 at 1:14 PM, jesquinas jesqui...@renfe.es wrote: I work at RENFE,the national railways company.We have developping NFC projects.Here,in Spain,the main NFC model is SIM-centric.There are only a few NFC models available.Our project is developed with Vodafone and all our mobiles are with a NFC SIM.The main argument who mobile operators say is that you change more the mobile that the SIM and that the reason for adopting the SIM centric model.The question that the mobile operators say in Spain is : if you have your credentials in the SE in the phone and you want to change the phone ,for example fro Google Nexus to Blackberry,how can you do it? Can you give me arguments for knowing more about this subject? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android 4.0 sensor emulation setup questions
I believe I have the sensor emulation support working properly (I can connect to port 1968 locally and it appears to be connecting to the phone) but it is unclear to me how to determine if the emulator has also connected on this port, or how to trigger this connection manually? The instructions indicate that it seems to make the connection at boot (being that the set up is done before starting the emulator) but this seems counter intuitive to me for the emulator to automatically search for such a listening service only on boot. Can someone please shed some light on how this is supposed to work? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android 4.0 sensor emulation setup questions
I answered my own question a bit. It does appear that the emulator only connects on startup at present, not sure why it didn't work the first time I booted the ics AVD instance. Still, it would be nice to see a controlling application in the emulator that would allow us to view the status (successful connection or not) and control it in some way. Regardless of the rough edges, this is a huge blessing for developers working with advanced sensor applications. I'm mostly interested in the SdkControllerLib to create custom sensor playback and recording tools that will help me refine my application logic. Thanks a ton guys :) On Dec 26, 3:03 pm, Josh Guilfoyle jast...@gmail.com wrote: I believe I have the sensor emulation support working properly (I can connect to port 1968 locally and it appears to be connecting to the phone) but it is unclear to me how to determine if the emulator has also connected on this port, or how to trigger this connection manually? The instructions indicate that it seems to make the connection at boot (being that the set up is done before starting the emulator) but this seems counter intuitive to me for the emulator to automatically search for such a listening service only on boot. Can someone please shed some light on how this is supposed to work? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android onLayout() and AsyncTask() does not work together
Yeah, I got it from AsyncTask usage, so the onLayout() should work, right. btw, I attach some screenshots on Stack Overflow site, so you can see the problem clearly: http://stackoverflow.com/questions/8613465/android-onlayout-and-asynctask-does-not-work-together Binh Nguyen On Dec 27, 5:35 am, Romain Guy romain...@android.com wrote: onPostExecute() is called on the UI thread. On Mon, Dec 26, 2011 at 1:20 AM, Binh Nguyen nguyenthanhbinh1...@gmail.com wrote: Hi experts, I need a scrollable table with fixed header, so I followed this great blog (http://blog.stylingandroid.com/archives/432) and everything is fine. The idea is using one table for header, one table for content added in scrollview, both of them are in a customized LinearLayout. In customized LinearLayout, we will overwrite the onLayout() to get the max width of each row and set width for each row of both header and content table. Here is the activity and its layout: package com.stylingandroid.ScrollingTable; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.LinearLayout; import android.widget.TableLayout; import android.widget.TableRow; public class ScrollingTable extends LinearLayout { public ScrollingTable( Context context ) { super( context ); } public ScrollingTable( Context context, AttributeSet attrs ) { super( context, attrs ); } @Override protected void onLayout( boolean changed, int l, int t, int r, int b ) { super.onLayout( changed, l, t, r, b ); TableLayout header = (TableLayout) findViewById( R.id.HeaderTable ); TableLayout body = (TableLayout) findViewById( R.id.BodyTable ); if (body.getChildCount() 0 ) { TableRow bodyRow = (TableRow) body.getChildAt(0); TableRow headerRow = (TableRow) header.getChildAt(0); for ( int cellnum = 0; cellnum bodyRow.getChildCount(); cellnum++ ){ View bodyCell = bodyRow.getChildAt(cellnum); View headerCell = headerRow.getChildAt(cellnum); int bodyWidth = bodyCell.getWidth(); int headerWidth = headerCell.getWidth(); int max = Math.max(bodyWidth, headerWidth); TableRow.LayoutParams bodyParams = (TableRow.LayoutParams)bodyCell.getLayoutParams(); bodyParams.width = max; TableRow.LayoutParams headerParams = (TableRow.LayoutParams)headerCell.getLayoutParams(); headerParams.width = max; } } } } main.xml === ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.stylingandroid.ScrollingTable.ScrollingTable android:layout_width=match_parent android:orientation=vertical android:layout_height=match_parent TableLayout android:layout_height=wrap_content android:layout_width=match_parent android:id=@+id/HeaderTable /TableLayout ScrollView android:layout_width=match_parent android:layout_height=wrap_content TableLayout android:layout_height=wrap_content android:layout_width=match_parent android:id=@+id/BodyTable /TableLayout /ScrollView /com.stylingandroid.ScrollingTable.ScrollingTable /LinearLayout Main activity == package com.stylingandroid.ScrollingTable; import android.app.Activity; import android.app.ProgressDialog; import android.graphics.Color; import android.os.AsyncTask; import android.os.Bundle; import android.widget.TableLayout; import android.widget.TableRow; import android.widget.TextView; public class ScrollingTableActivity extends Activity { private String[][] tableData = { {header111, header2,header3,header4}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1, column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1} }; /** Called when the activity is first created. */ @Override public void onCreate( Bundle savedInstanceState ) { super.onCreate( savedInstanceState ); setContentView(
Re: [android-developers] Web app on home screen (iphone style)?
On Fri, Dec 23, 2011 at 3:43 PM, burgergetsbored adam.burgoyn...@gmail.comwrote: Is there anyway I can do this with android or do I have to code a whole app to do it? I don't know, but there is an entire section in the documentation for web apps. I'd start there. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Web app on home screen (iphone style)?
What you are looking at is a special option for Safari. I haven't tried it but you can try the suggestion here: http://stackoverflow.com/questions/4382925/scroll-the-browser-to-make-my-webapp-fullscreen Another option is to require the use of Firefox, and see if this will help you: https://developer.mozilla.org/en/Mobile/Viewport_meta_tag On Fri, Dec 23, 2011 at 4:43 PM, burgergetsbored adam.burgoyn...@gmail.comwrote: Just wondering when I had an iphone I was able to create a web app then place some code in it so that when the user pressed add to homescreen an icon would be placed on the home screen and when the user clicked it the web app would run full screen (no web navigation bar) so it just looked like a normal app (although it would only run with the web on) Is there anyway I can do this with android or do I have to code a whole app to do it? Sorry if this is a bit unclear. Thanks, Adam. What I used for the iphone: meta name=viewport content=user-scalable=no, width=device-width / meta name=apple-mobile-web-app-capable content=yes / meta name=apple-mobile-web-app-status-bar-style content=black / link rel=apple-touch-startup-image href=images/ myCustomStartupGraphic.png / -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant. - Robert McCloskey -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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@Home status
I got excited about this supposedly 6LowPAN-powered Android@Home project shown at Google IO and also here http://www.youtube.com/watch?v=AL2AJanKrqg but no new info has come out. The guy presenting it at IO said it would be out by the end of the year but I have looked hard and have yet to find any of these products or frameworks from Google or Lighting Science. Does anyone know what is going on with this? It seems like it has a lot of potential. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Doubt
On Fri, Dec 23, 2011 at 5:18 AM, chari veera.dodetipa...@gmail.com wrote: i need to get the previous activity name,, in present activity Pass the name in the intents when you start the second one. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] HelloWorld ..stopped unexpectedly
register your activity in manifest file.. On Mon, Dec 26, 2011 at 6:24 AM, Nathan Harness 7600on...@gmail.com wrote: I followed the instructions on the Android Dev site for Hello World, using the XML version about half way down. Please see attached screen shot. The fatal exception is MAIN(.xml), with the code shown in the window. This is the contents of HelloAndroid.java: package com.example.helloandroid; import android.app.Activity; import android.os.Bundle; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } I'm not new to programming, but new to Eclipse and Java. I'm sure it is a simple bug... I would really appreciate your help! Thanks, Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Narendra . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] File encryption using AES
hi all, i am trying the File encryption using AES on android but there is a weird exception occured everytime,i am not able to find out the solution for this exception. my code for encryption is: public void encrypt(File file,String aesKey) throws Exception { try { byte[] byteKey = aesKey.getBytes(UTF8); KeySpec ks = new SecretKeySpec(byteKey,AES); SecretKeyFactory skf = SecretKeyFactory.getInstance(AES); SecretKey sk = skf.generateSecret(ks); aspec = new IvParameterSpec(ivector); encCipher = Cipher.getInstance(AES/CBC/PKCS7Padding); encCipher.init(Cipher.ENCRYPT_MODE, sk); in = new FileInputStream(file); AlertDialog.Builder builder = new AlertDialog.Builder(null); builder.setMessage(you are in middle of encrypt function); AlertDialog alert = builder.create(); FileOutputStream fout = new FileOutputStream(/mnt/sdcard/b.txt); out = new CipherOutputStream(fout,encCipher); int num = 0; while((num = in.read(buffer)) =0) { out.write(buffer, 0, num); } out.close(); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] File encryption using AES
On Tue, Dec 27, 2011 at 3:03 PM, chander mohan.c...@gmail.com wrote: hi all, i am trying the File encryption using AES on android but there is a weird exception occured everytime,i am not able to find out the solution for this exception. my code for encryption is: What is the exception (stacktrace) and why is it weird? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] File encryption using AES
Hi all, I am trying the AES file encryption on android, but at the runtime it is giving one Exception,i am not able to find out any solution for this. My code for encryption is : i have already initialized the file as File file = new File(/mnt/sdcard/a.txt); public void encrypt(File file,String aesKey) throws Exception { try { byte[] byteKey = aesKey.getBytes(UTF8); KeySpec ks = new SecretKeySpec(byteKey,AES); SecretKeyFactory skf = SecretKeyFactory.getInstance(AES); // Giving Exception at this line SecretKey sk = skf.generateSecret(ks); aspec = new IvParameterSpec(ivector); encCipher = Cipher.getInstance(AES/CBC/PKCS7Padding); encCipher.init(Cipher.ENCRYPT_MODE, sk); in = new FileInputStream(file); AlertDialog.Builder builder = new AlertDialog.Builder(null); builder.setMessage(you are in middle of encrypt function); AlertDialog alert = builder.create(); FileOutputStream fout = new FileOutputStream(/mnt/sdcard/a.txt); out = new CipherOutputStream(fout,encCipher); int num = 0; while((num = in.read(buffer)) =0) { out.write(buffer, 0, num); } out.close(); } Exception is :java.security.NoSuchAlgorithmException : SecretKeyFactory AES implementation not found. Please help and rectify the code or if possible give a working code for File encryption using AES. i don't know why this implementation is not there. any help is appreciated. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] File encryption using AES
No that is not weird i edited my message.will i give you the Logcat messages.? On 12/27/11, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Tue, Dec 27, 2011 at 3:03 PM, chander mohan.c...@gmail.com wrote: hi all, i am trying the File encryption using AES on android but there is a weird exception occured everytime,i am not able to find out the solution for this exception. my code for encryption is: What is the exception (stacktrace) and why is it weird? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Chandra Mohan Mourya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] File encryption using AES
On Tue, Dec 27, 2011 at 3:11 PM, chander mohan.c...@gmail.com wrote: Exception is : java.security.NoSuchAlgorithmException : SecretKeyFactory AES implementation not found. Please help and rectify the code or if possible give a working code for File encryption using AES. i don't know why this implementation is not there. Posting the same question twice in different threads is rarely useful. Assuming that byteKey is the raw key, you can construct a secret key like this (SecretKey is just a marker interface): SecretKey secretKey = new SecretKeySpec(byteKey, AES); You don't need a SecretKeyFactory. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL ES 2.0 for Android
On Dec 26, 8:52 am, the_edge123 theedge...@gmail.com wrote: On Dec 26, 11:05 am, bob b...@coolfone.comze.com wrote: What is the best way to learn OpenGL ES 2.0 for Android? What kind of tutorial are you looking for ? are you a beginner ? What did you already find ? This is really good too: http://en.wikibooks.org/wiki/GLSL_Programming/Vector_and_Matrix_Operations Plus, I wrote my own shader: private final String mFragmentShader = precision mediump float;\n + varying vec2 vTextureCoord;\n + uniform sampler2D sTexture;\n + void main() {\n + vec2 center = vec2(0.5,0.5);\n + float intensity = 1.0 - distance(vTextureCoord,center);\n + gl_FragColor = texture2D(sTexture, vTextureCoord) * vec4(0.0, 1.0, 0.0, 1.0) * intensity;\n + }\n; Here's a pic of it: http://i1190.photobucket.com/albums/z449/m75214/122711002015.jpg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] File encryption using AES
Thanks nikoley, i implemented DES algorithm to encrypt a String it worked fine in that but while encrypting a file i have to ask user an Encryption key so at that time i am asking for a key and then i am converting it to byte array. but this SecretFactory not working this time can you explain and if possible can you edit this text by using a raw key? Thanks a lot. On 12/27/11, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Tue, Dec 27, 2011 at 3:11 PM, chander mohan.c...@gmail.com wrote: Exception is : java.security.NoSuchAlgorithmException : SecretKeyFactory AES implementation not found. Please help and rectify the code or if possible give a working code for File encryption using AES. i don't know why this implementation is not there. Posting the same question twice in different threads is rarely useful. Assuming that byteKey is the raw key, you can construct a secret key like this (SecretKey is just a marker interface): SecretKey secretKey = new SecretKeySpec(byteKey, AES); You don't need a SecretKeyFactory. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Chandra Mohan Mourya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] File encryption using AES
On Tue, Dec 27, 2011 at 3:31 PM, Chander mourya mohan.c...@gmail.com wrote: i implemented DES algorithm to encrypt a String it worked fine in that but while encrypting a file i have to ask user an Encryption key so at that time i am asking for a key and then i am converting it to byte array. but this SecretFactory not working this time can you explain and if possible can you edit this text by using a raw key? You need to clarify what you are doing, but generally, you shouldn't be asking the user for a key. You might ask them for a *passphrase* and derive a key from that. On Android something like this will generate a 256-bit AES key from the user supplied passphrase. 'Pass' is the pasphrase and 'salt' are randomly generated bytes: String pass = ...; byte[] salt = ...; int iterations = 1024; int keylen = 256; SecretKeyFactory.getInstance kf = SecretKeyFactory.getInstance(PBEWITHSHAAND256BITAES-CBC-BC); KeySpec keySpec = new PBEKeySpec(pass.toCharArray(), salt, iterations, keylen); SecretKey sk = kf.generateSecret(keySpec); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL ES 2.0 for Android
On Dec 26, 8:52 am, the_edge123 theedge...@gmail.com wrote: On Dec 26, 11:05 am, bob b...@coolfone.comze.com wrote: What is the best way to learn OpenGL ES 2.0 for Android? What kind of tutorial are you looking for ? are you a beginner ? What did you already find ? Also, I like this shader: private final String mFragmentShader = precision mediump float;\n + varying vec2 vTextureCoord;\n + uniform sampler2D sTexture;\n + void main() {\n + vec2 center = vec2(0.5,0.5);\n + float intensity = 1.0 - distance(vTextureCoord,center);\n + gl_FragColor = texture2D(sTexture, vTextureCoord) * vec4(1.0, 1.0, 1.0, intensity);\n + }\n; Be sure to have blending on: GLES20.glEnable(GL10.GL_BLEND); GLES20.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA); Here's what it looks like: http://i1190.photobucket.com/albums/z449/m75214/myshade.png -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] File encryption using AES
Thanks a lot nikolay, it worked when i used rawkey... Thanks again. On 12/27/11, Chander mourya mohan.c...@gmail.com wrote: Thanks nikoley, i implemented DES algorithm to encrypt a String it worked fine in that but while encrypting a file i have to ask user an Encryption key so at that time i am asking for a key and then i am converting it to byte array. but this SecretFactory not working this time can you explain and if possible can you edit this text by using a raw key? Thanks a lot. On 12/27/11, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Tue, Dec 27, 2011 at 3:11 PM, chander mohan.c...@gmail.com wrote: Exception is : java.security.NoSuchAlgorithmException : SecretKeyFactory AES implementation not found. Please help and rectify the code or if possible give a working code for File encryption using AES. i don't know why this implementation is not there. Posting the same question twice in different threads is rarely useful. Assuming that byteKey is the raw key, you can construct a secret key like this (SecretKey is just a marker interface): SecretKey secretKey = new SecretKeySpec(byteKey, AES); You don't need a SecretKeyFactory. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Chandra Mohan Mourya -- Chandra Mohan Mourya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 onLayout() and AsyncTask() does not work together
I'd pepper a bunch of Log.v() calls throught the code and see where it goes wrong. On Dec 27, 9:59 am, Binh Nguyen nguyenthanhbinh1...@gmail.com wrote: Yeah, I got it from AsyncTask usage, so the onLayout() should work, right. btw, I attach some screenshots on Stack Overflow site, so you can see the problem clearly:http://stackoverflow.com/questions/8613465/android-onlayout-and-async... Binh Nguyen On Dec 27, 5:35 am, Romain Guy romain...@android.com wrote: onPostExecute() is called on the UI thread. On Mon, Dec 26, 2011 at 1:20 AM, Binh Nguyen nguyenthanhbinh1...@gmail.com wrote: Hi experts, I need a scrollable table with fixed header, so I followed this great blog (http://blog.stylingandroid.com/archives/432) and everything is fine. The idea is using one table for header, one table for content added in scrollview, both of them are in a customized LinearLayout. In customized LinearLayout, we will overwrite the onLayout() to get the max width of each row and set width for each row of both header and content table. Here is the activity and its layout: package com.stylingandroid.ScrollingTable; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.LinearLayout; import android.widget.TableLayout; import android.widget.TableRow; public class ScrollingTable extends LinearLayout { public ScrollingTable( Context context ) { super( context ); } public ScrollingTable( Context context, AttributeSet attrs ) { super( context, attrs ); } @Override protected void onLayout( boolean changed, int l, int t, int r, int b ) { super.onLayout( changed, l, t, r, b ); TableLayout header = (TableLayout) findViewById( R.id.HeaderTable ); TableLayout body = (TableLayout) findViewById( R.id.BodyTable ); if (body.getChildCount() 0 ) { TableRow bodyRow = (TableRow) body.getChildAt(0); TableRow headerRow = (TableRow) header.getChildAt(0); for ( int cellnum = 0; cellnum bodyRow.getChildCount(); cellnum++ ){ View bodyCell = bodyRow.getChildAt(cellnum); View headerCell = headerRow.getChildAt(cellnum); int bodyWidth = bodyCell.getWidth(); int headerWidth = headerCell.getWidth(); int max = Math.max(bodyWidth, headerWidth); TableRow.LayoutParams bodyParams = (TableRow.LayoutParams)bodyCell.getLayoutParams(); bodyParams.width = max; TableRow.LayoutParams headerParams = (TableRow.LayoutParams)headerCell.getLayoutParams(); headerParams.width = max; } } } } main.xml === ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.stylingandroid.ScrollingTable.ScrollingTable android:layout_width=match_parent android:orientation=vertical android:layout_height=match_parent TableLayout android:layout_height=wrap_content android:layout_width=match_parent android:id=@+id/HeaderTable /TableLayout ScrollView android:layout_width=match_parent android:layout_height=wrap_content TableLayout android:layout_height=wrap_content android:layout_width=match_parent android:id=@+id/BodyTable /TableLayout /ScrollView /com.stylingandroid.ScrollingTable.ScrollingTable /LinearLayout Main activity == package com.stylingandroid.ScrollingTable; import android.app.Activity; import android.app.ProgressDialog; import android.graphics.Color; import android.os.AsyncTask; import android.os.Bundle; import android.widget.TableLayout; import android.widget.TableRow; import android.widget.TextView; public class ScrollingTableActivity extends Activity { private String[][] tableData = { {header111, header2,header3,header4}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1, column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}, {column1, column1,column1,column1}
[android-developers] Re: Android@Home status
AFAIK, there has been no new official communications from Google related to Android@Home. Maybe it was a cool 20% project and the guy left or whatever... On Dec 27, 12:17 pm, nemik ne...@nemik.net wrote: I got excited about this supposedly 6LowPAN-powered Android@Home project shown at Google IO and also herehttp://www.youtube.com/watch?v=AL2AJanKrqg but no new info has come out. The guy presenting it at IO said it would be out by the end of the year but I have looked hard and have yet to find any of these products or frameworks from Google or Lighting Science. Does anyone know what is going on with this? It seems like it has a lot of potential. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 apps sending and receiving SMSs be visible on the market for the new Galaxy Tablets?
Just curious, how can a device support SMS but not voice calling? They both require a cellular radio, don't they? On Dec 23, 3:29 pm, Terry terb...@gmail.com wrote: Hi, Kostya. Thanks for your response, and for info on your strange experience with WiFi on the Galaxy Tablet. My problem is not to make SMS-functions work on the Galaxy Tab (which they do), but to make SMS apps visisble to devices which support SMS (including the Galaxy Tabs) - and only those. One could obviously try something like what you suggest, but in that case you need to make the app visible to all sorts of devices, also those which do not support SMS. Starting/running an app on deviced on which it will not run properly, would probably result in lots of angry users and bad/low ratings. Which we do not want. At some stange it seemed that the Market would try to solve this general problem - once and for all: Read about The 5 steps to future harware happiness: http://android-developers.blogspot.com/2010/10/five-steps-to-future-h... The Market may have thought that they had solved this issue, but it seems not. Or could there be other ways ? Terry On 22 Des, 13:55, Kostya Vasilyev kmans...@gmail.com wrote: While I don't have a workaround - sorry - but this particular device is quite weird... FWIW, this is what I recently ran into, it has to do with WiFi: http://wp.me/pSrdQ-lg Have you tried calling SmsManager.getDefault() and checking for null? -- Kostya 22 ÄÅËÁÂÒÑ 2011šÇ. 16:48 ÐÏÌØÚÏ×ÁÔÅÌØ Terry terb...@gmail.com ÎÁÐÉÓÁÌ: As no one has responed to this issue yet, I shall try to explain it in more detail. In order to DO make an app visible for e.g. the Galaxy Tab 10.1 model GT-P7500, one could put the following in the Manifest file: uses-feature android:name=android.hardware.telephony android:required=false/ In the app code, one could e.g. use the following too check what features are available: PackageManager pm = getPackageManager(); boolean hasTelephony = pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY); However, the Galaxy Tab 10.1 model GT-P7500 returns a false on that method. The problem would be solved if there existed a constant like PackageManager.FEATURE_SMS or similar, but there is no such thing. I think that the Market is still not prepared for the type of products like the Galaxy Tab 10.1 model GT-P7500. Any ideas as to how I can solve this? Terry On 21 Des, 12:38, Terry terb...@gmail.com wrote: I have tried to ask this question elsewhere, but without getting any answer I can use. So I try it here also. I have some apps which send and receive SMSs. They are invisible for the new Galaxy Tablets on the Market, and they cannot be dowloaded to them. WHY? As e.g. the Galaxy Tablet 10.1, model GT-P7500 does NOT support audio phone calls - but it DOES support sending and receiving SMSs, there should be no problem. In fact, when I download these apps to the GT- P7500 šlocally, they work as expected. The Market however, sees the permissions to SEND_ and RECEIVE_SMS in the Manifest file of the apps, and interprets this so as to require hardware.telephony from the Galaxy Tabs. Which is does not seem to support. Any idea how to make a work-around for this problem? Terry -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android.hardware.sensor.pressure required -- No compatible devices
Android Market/Developer Console Bug? Would be the first -- today... On Dec 24, 4:23 am, Chris cwesoftw...@gmail.com wrote: Hello, I created an application that uses the pressure sensor. My manifest contains the following feature requirement: uses-feature android:name=android.hardware.sensor.pressure android:required=true/ My developer console listing shows the following requirements: Features: android.hardware.sensor.pressure, android.hardware.touchscreen However, the developer console says that this application is compatible with 0 devices. I cannot install this application on my Galaxy Nexus from the Android Market, even though it has the required sensor and the application functioned properly on it. Does anyone have any information on this issue? 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