[android-beginners] Re: Convert framebuffer in video
We have no plans to support this function in the framework. It's a significant security risk (allowing an application to snoop the frame buffer), and on some hardware, the app processor may not even have access to the final framebuffer. On Mar 24, 8:11 am, Cartouche hafid.s...@gmail.com wrote: Hi guys, first sorry for my english, I'm french. I'm a new developper in Android and this is what I would program : I want to convert the framebuffer into video, the final goal is to see, in real time, the screen of a HTC Magic in another device (a PC). I found that the framebuffer's file is /dev/graphics/fb0. Do you know an API for manipulating this file ? Or perhaps you see another way to resolve my problem ? Any help will be appreciated. Thanks Cartouche. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Voting Is Open For The UC Berkeley Human Rights Center Mobile Challenge!
Voting is open on the UC Berkeley Human Rights Center Mobile Challenge! From now until Friday, March 27 at 3 p.m. PDT, you can show your support for your favorite projects by voting for them here: http://netsquared.org/hrc-ucb/vote A bit of background: The Human Rights Center is sponsoring a challenge to encourage innovations for applying mobile technologies for human rights investigations and advocacy. Through a NetSquared Community vote, 10 finalists will be chosen. All 10 finalists will be invited to present their ideas at an international conference, “The Soul of the New Machine: Human Rights, Technology, and New Media,” at UC Berkeley, May 4 and 5, 2009. A panel of judges, selected by the Human Rights Center, will choose three winners, to be announced at the conference. Winners will receive cash awards of $15,000 (first place), $10,000 (second place), and $5,000 (third place) to implement their ideas. To learn more about speakers and program topics for The Soul of the New Machine: Human Rights, Technology, and New Media visit the conference Web page: http://hrc.berkeley.edu/events/newmachineconference/ To register for the conference visit the registration page: http://www.acteva.com/booking.cfm?bevaID=176606 Many thanks! Alex Steed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Talk through bluetooth.
I would like to know if it is possible to talk to nearby users with bluetooth.If not, is there any other way to talk to people nearby without using air time ( say for example using wireless networking) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to show a dialog on top of another dialog in an activity
Hihi, you found about how to use if the user entered information in some field and it doesn't validate you show dailog. But I want to correct method you have used. you should method show(). V.Nhan. protected Dialog onCreateDialog(int id) { return new AlertDialog.Builder(RegisterEvent.this) .setIcon(R.drawable.ico_registerevent_customization) .setTitle(R.string.tv_x_customization) .setView(textEntryView) .setPositiveButton(R.string.tv_x_ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { if (!validInformation()) // Validates if the user entered or not information //Here's where I would like to show another dialog!! } }).show(); On Jan 26, 11:31 am, Juan David Trujillo C. jdavidandr...@gmail.com wrote: In case this is useful, I found it: You can't use a regulardialogwith the possitive and negative buttons, what you have to do is to create the buttons inside the UI of thedialogyou want toshowand then add regular listeners to this buttons. When you want to hide thedialog, all you have to do is ues the cancel() method on thedialogand that's it. Juan. On Jan 25, 1:11 pm, Juan David Trujillo C. jdavidandr...@gmail.com wrote: Hi guys! I have anactivitythat shows adialogthat has some editText fields the user is supposed to fill in. I would like to validate if the user entered information in some fields, and in case he didn't, I would like toshowadialogwith an appropiate message ontopof the aforementioneddialog. However I haven't been able to do so, because once I write code on the onClick(DialogInterfacedialog, int whichButton) of the firstdialog, thisdialogcloses and doesn't stay in the screen. Am I missing something? Here's what I have: protectedDialogonCreateDialog(int id) { return new AlertDialog.Builder(RegisterEvent.this) .setIcon(R.drawable.ico_registerevent_customization) .setTitle(R.string.tv_x_customization) .setView(textEntryView) .setPositiveButton(R.string.tv_x_ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterfacedialog, int whichButton) { if (!validInformation()) // Validates if the user entered or not information //Here's where I would like toshowanotherdialog!! } }).create(); Best regards, Juan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] How can I see all of applications source on Eclipse?
Hi guys! I downloaded android source using Git. However, I have no idea to use them on Eclipse. I'd like to develop android application based on original source such as AlarmClock, Calculator.. I'm not sure if it's possible.. I tried to move application's source files to Eclipse but they have A LOT of error... Could anyone tell me how to use and see android source for applications ?? Thanks~! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Trouble with HelloWorld
I had this issue earlier. Turned out to be the emulator was still loading (showing the android logo). Eventually the program popped up on the phone. Let it run for a minute, see what pops up. On Mar 23, 9:34 am, ml la...@earthlink.net wrote: I am having trouble with the hello world application. My emulator starts and ultimately gets to a screen with that says android and shows the android logo. I never get to the hello world or phone startup screens. The last message I see in Eclipse is: Waiting for HOME ('android.process.acore') to be launched... I have read the other posts that say that the problem is a mix of versions. I have two computers, one running Vista, the other running XP. I have: 0.8.0 Android 3.4.2 Eclipse 6.0.120.4 JRE One post said that I needed 1.0 of the Android ADT. If so, where is that? When I look at the google site, it looks like 0.8 is the most recent version. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Reconnect adb while emulator is running
Is there a way to reconnect the adb after an emulator has started. I am currently receiving the following error which kills adb: NetworkStateTracker( 49): initial network configuration NetworkStateTracker( 49): config changed:: before:interface eth0 state: link up NetworkStateTracker( 49): ipaddr 0.0.0.0 gateway 0.0.0.0 netmask 0.0.0.0 dns1 0.0.0.0 dns2 0.0.0.0 DHCP server 0.0.0.0 lease 0 seconds NetworkStateTracker( 49): haveIpAddress=false, obtainingIpAddress=false, explicitlyDisabled=false NetworkStateTracker( 49): reset Interface NetworkStateTracker( 49): a broadcasting ethernet change action: state:DISCONNECTING no devices are detected after this however my emulator is still running on port 5554. Please let me know if there is a way to reconnect adb to this emulator. Thanks, Frank --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] full screen without status bar
just set the 'theme' attribute of your activity to @android:style/ Theme.Black.NoTitleBar.Fullscreen,Your activity display in real full screen now. I found this in the source of Android Camera. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] could not resolve android.view.View$OnClickListener
Hi all, I tried out the tutorial code of different layout. When I have : import android.view.View$OnClickListener; Eclipse gives me an error msg of The import android.view.View $OnClickListener cannot be resolved. I believe Google had overridden the way library is imported using $. So, eclipse is not picking up the android.jar and reading it properly? But I have the preferences android SDK location pointing to the right dir. Anything I am missing? Thank a lot! Jimmy Chu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] getting the system wallpapers, is it possible?
Please bear with me as I'm still grasping the SDK... I just want to ask. I wanted to get all the wallpapers (those that are built-in with Android phone), and copy/save it, or perhaps display it on my app. Sort of a wallpaper gallery that merges both the built-in wallpaper and the custom ones that came along with my app. as of SDK 1.1._r1... is it possible or not? your answer is highly appreciated, thanks :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Hi Dear all
--~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Android?
Android? Never heard of it. Is it some sort of programming language? Atm i'm simultaneously learning java, C, C++, C#, and Uscript. How much can it hurt to learn one more. :) if its similar to these languages then it should be relatively easy to pick up. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android?
That's an interesting thought and I commend your ambition. Android is a platform rather than a language, an operating system for mobile phones. There are plenty of resources online for you to learn more. If you develop applications, this list is for said developers, then you will program in Java. Was there something specific you wanted to know? On Wed, Mar 25, 2009 at 7:14 AM, robert.ba...@student.curtin.edu.au robert.ba...@student.curtin.edu.au wrote: Android? Never heard of it. Is it some sort of programming language? Atm i'm simultaneously learning java, C, C++, C#, and Uscript. How much can it hurt to learn one more. :) if its similar to these languages then it should be relatively easy to pick up. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Reconnect adb while emulator is running
Strange, which build are you using exactly ? For the record, adb won't be able to connect to the emulator if the emulated ethernet interface is down. On Tue, Mar 24, 2009 at 8:59 PM, frank frank.yens...@gmail.com wrote: Is there a way to reconnect the adb after an emulator has started. I am currently receiving the following error which kills adb: NetworkStateTracker( 49): initial network configuration NetworkStateTracker( 49): config changed:: before:interface eth0 state: link up NetworkStateTracker( 49): ipaddr 0.0.0.0 gateway 0.0.0.0 netmask 0.0.0.0 dns1 0.0.0.0 dns2 0.0.0.0 DHCP server 0.0.0.0 lease 0 seconds NetworkStateTracker( 49): haveIpAddress=false, obtainingIpAddress=false, explicitlyDisabled=false NetworkStateTracker( 49): reset Interface NetworkStateTracker( 49): a broadcasting ethernet change action: state:DISCONNECTING no devices are detected after this however my emulator is still running on port 5554. Please let me know if there is a way to reconnect adb to this emulator. Thanks, Frank --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android?
Android is the operating system for t mobile G1 phones and apparently if you want to create a G1 app, you have to use the android sdk with eclipse. Other than that, c++ isn't really necessary for android. On Mar 25, 2009 9:42 AM, robert.ba...@student.curtin.edu.au robert.ba...@student.curtin.edu.au wrote: Android? Never heard of it. Is it some sort of programming language? Atm i'm simultaneously learning java, C, C++, C#, and Uscript. How much can it hurt to learn one more. :) if its similar to these languages then it should be relatively easy to pick up. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How do I set the value of an EditText
So I see the NullPointer Exception as a good starting point but I'm still perplexed. I created a new project just for testing. And I can't get this to work: package com.test; import android.app.Activity; import android.os.Bundle; import android.widget.EditText; public class main extends Activity { /** Called when the activity is first created. */ EditText justFillIn; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); justFillIn = (EditText) findViewById(R.id.ipText); justFillIn.setText(charSequence is a string); setContentView(R.layout.main); } } All I want to do is set the value for that EditText and it's just not working. Any help? On Mar 23, 10:55 am, Lovedumplingx lovedumpli...@gmail.com wrote: I get a NullPointer Exception when I use the Debug tool. So you're saying that I haven't successfully read the View probably? Ok...that's a great starting point. On Mar 21, 5:55 am, Tseng tseng.priv...@googlemail.com wrote: An error message would be helpful Otherwise it's hard to help you, other than guessing what could be the reasons for it. Maybe you haven't set the ID correctly, using a wrong ID (which doesn't even exist in the XML Layout file) or you're using setContentView/setView after you have using findViewById. This could throw up a NullPointer Exception when you try to access (because findViewById returns 0 if no layout has been set or the View with this ID was not found). On Mar 20, 9:00 pm, Lovedumplingx lovedumpli...@gmail.com wrote: That's what I thought too but I crash the task every time the activity that contains this code is started: EditTextuserText = (EditText) findViewById(R.id.userText); userText.setText(userParam); This is the basic way I thought to have the value set but it crashes every time. On Mar 19, 10:53 pm, Isaac Waller ad...@isaacwaller.com wrote: A String _is_ a CharSequence. There is no need for a cast. On Mar 19, 3:35 pm, Will sem...@gmail.com wrote: Cast the String to a CharSequence. String x = foo; EditTextET; ET.setText((CharSequence) x); On Mar 19, 10:43 am, Lovedumplingx lovedumpli...@gmail.com wrote: Ok...so I've scoured and scoured and played and fiddled but I can't figure it out. I want to allow the user to set preferences for an application and I want the preferences to be displayed in theEditTextarea if/when they come back to change them again. In my head I'm thinking I would be able to use setText() but no...that takes a CharSequence and I have a string and don't know how to make a CharSequence (which according to what I've read is supposed to be a read-only thing anyway). So...does anyone know how to put text into anEditTextfield without relying on the XML? I really want to do this via application preferences. Thanks.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How do I set the value of an EditText
Lovedumplingx wrote: So I see the NullPointer Exception as a good starting point but I'm still perplexed. I created a new project just for testing. And I can't get this to work: package com.test; import android.app.Activity; import android.os.Bundle; import android.widget.EditText; public class main extends Activity { /** Called when the activity is first created. */ EditText justFillIn; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); justFillIn = (EditText) findViewById(R.id.ipText); justFillIn.setText(charSequence is a string); setContentView(R.layout.main); } } All I want to do is set the value for that EditText and it's just not working. You must call setContentView() first. You aren't telling Android what layout to display until you call setContentView(). Hence, until that time, findViewById() is guaranteed not to work, because there are no views to find. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Convert framebuffer in video
The frame buffer is only accessible to a privileged process. We have no plans to expose an API to allow applications to access the frame buffer. On Mar 25, 12:42 am, Cartouche hafid.s...@gmail.com wrote: Thanks a lot for your response, do you mean Android actually has not API to control the framebuffer, or it's really impossible to do what I want ? Cartouche. On 25 mar, 07:22, Dave Sparks davidspa...@android.com wrote: We have no plans to support this function in the framework. It's a significant security risk (allowing an application to snoop the frame buffer), and on some hardware, the app processor may not even have access to the final framebuffer. On Mar 24, 8:11 am, Cartouche hafid.s...@gmail.com wrote: Hi guys, first sorry for my english, I'm french. I'm a new developper in Android and this is what I would program : I want to convert the framebuffer into video, the final goal is to see, in real time, the screen of a HTC Magic in another device (a PC). I found that the framebuffer's file is /dev/graphics/fb0. Do you know an API for manipulating this file ? Or perhaps you see another way to resolve my problem ? Any help will be appreciated. Thanks Cartouche. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Convert framebuffer in video
Ok Dave, thanks a lot for your help. Cartouche. On 25 mar, 21:59, Dave Sparks davidspa...@android.com wrote: The frame buffer is only accessible to a privileged process. We have no plans to expose an API to allow applications to access the frame buffer. On Mar 25, 12:42 am, Cartouche hafid.s...@gmail.com wrote: Thanks a lot for your response, do you mean Android actually has not API to control the framebuffer, or it's really impossible to do what I want ? Cartouche. On 25 mar, 07:22, Dave Sparks davidspa...@android.com wrote: We have no plans to support this function in the framework. It's a significant security risk (allowing an application to snoop the frame buffer), and on some hardware, the app processor may not even have access to the final framebuffer. On Mar 24, 8:11 am, Cartouche hafid.s...@gmail.com wrote: Hi guys, first sorry for my english, I'm french. I'm a new developper in Android and this is what I would program : I want to convert the framebuffer into video, the final goal is to see, in real time, the screen of a HTC Magic in another device (a PC). I found that the framebuffer's file is /dev/graphics/fb0. Do you know an API for manipulating this file ? Or perhaps you see another way to resolve my problem ? Any help will be appreciated. Thanks Cartouche. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Data Picker Example
Hi, Can you please tell me where I can find an android data picker and timer picker example? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Data Picker Example
Phooey -- bumped the Send button too soon... Lucius Fox wrote: Can you please tell me where I can find an android data picker and timer picker example? http://developer.android.com/guide/tutorials/views/hello-datepicker.html http://developer.android.com/guide/tutorials/views/hello-timepicker.html -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---