[android-beginners] Re: Poor Documentation
Thank you naveen I will read the documents and try to solve the problem as guided by you. Thanks, Shobhit On Fri, Oct 23, 2009 at 5:42 AM, Naveen Krishna Ch naveenkrishna.ch@ gmail.com wrote: 2009/10/23 Dori dorian.cus...@googlemail.com i dont know if thats a joke or not?! the docs are not that bad, Docs exists ??? tell where, look for android doc in google (or) touch this http://developer.android.com/guide/index.html try developing for facebook stuff, so out of date it hurts! On Oct 22, 2:00 pm, usharani ganapathy usharani.ganapa...@gmail.com wrote: hi i m new to androidwhat is intent? -- Shine bright, (: Naveen Krishna Ch :) -- Shobhit Kasliwal Application Developer Intern Liventus Designs 3400 Dundee Rd Northbrook IL 60062 skasli...@liventus.com office: 847-291-1395 ext. 192 Cell: (309) 826 4709 Samuel Goldwynhttp://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html - I'm willing to admit that I may not always be right, but I am never wrong. --~--~-~--~~~---~--~~ 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: Run the Previous Activity
Thank you Naveen for your help I'lll try this model but I have one more question onButton do a Finish what does that mean ? How can i do that if I dont use finish in button click event. Thanks Shobhit Kasliwal On Thu, Oct 22, 2009 at 12:16 AM, Naveen Krishna Ch naveenkrishna.ch@ gmail.com wrote: This should be working Activity 1 Activity 2 onCreate onStart - onButton --- onCreate/ | onStart | onButtondo a finish| onDestroy finish()--| onDestroy i will be out of ur app 2009/10/22 shobhit kasliwal shobhit.kasli...@gmail.com Thanks for the reply but if I do that .then how can I finish activity on button click event ? And also My problem is on the previous activity coz I am getting to the previous activity from button click event on the new activity but I am not able to do any event on the previous activity after that. So how can I do that ..?? On Thu, Oct 22, 2009 at 12:02 AM, Naveen Krishna Ch naveenkrishna.ch@ gmail.com wrote: Add a onDestroy or onPause in the 2nd activity, and do a finish there.. 2009/10/22 Shobhit Kasliwal shobhit.kasli...@gmail.com Hi I am using tabbed Activity and Inside every tab I have different activities. on one of the activity (inside tabs) on click of a button I am starting a new activity(with a button it ) now I want to come back on previous activity on click of that button in new Activity and do some click events. I used the finish() on the new activity and I am getting back to the previous tabbed activity but I am not able to do any click event on that activity. I checked the Logs and it is saying that No Window to dispatch pointer 1 what can be the problem ? I also tried opening a new activity (to open the previous tabbed activity) but still no luck. can anyone suggest me any alternate way of doing that -- Shine bright, (: Naveen Krishna Ch :) -- Shobhit Kasliwal Application Developer Intern Liventus Designs 3400 Dundee Rd Northbrook IL 60062 skasli...@liventus.com office: 847-291-1395 ext. 192 Cell: (309) 826 4709 Charles de Gaullehttp://www.brainyquote.com/quotes/authors/c/charles_de_gaulle.html - The better I get to know men, the more I find myself loving dogs. -- Shine bright, (: Naveen Krishna Ch :) -- Shobhit Kasliwal Application Developer Intern Liventus Designs 3400 Dundee Rd Northbrook IL 60062 skasli...@liventus.com office: 847-291-1395 ext. 192 Cell: (309) 826 4709 Joan Crawfordhttp://www.brainyquote.com/quotes/authors/j/joan_crawford.html - I, Joan Crawford, I believe in the dollar. Everything I earn, I spend. --~--~-~--~~~---~--~~ 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] Returning to Previous Activity from a network camera activity
Hi I have an activity with a button on it and when I click the button I am starting a new activity with a network camera on it. when I click a button on this activity (after capturing the image ) I want to start the previous activity again. I am getting back to previous activity with finish() but I am not able to do any event on it. When I check the logcat it is saying No window to dispatch at Pointer 1 and 0. Can anyone help me to solve this issue ? Thanks Shobhit --~--~-~--~~~---~--~~ 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] Run the Previous Activity
Hi I am using tabbed Activity and Inside every tab I have different activities. on one of the activity (inside tabs) on click of a button I am starting a new activity(with a button it ) now I want to come back on previous activity on click of that button in new Activity and do some click events. I used the finish() on the new activity and I am getting back to the previous tabbed activity but I am not able to do any click event on that activity. I checked the Logs and it is saying that No Window to dispatch pointer 1 what can be the problem ? I also tried opening a new activity (to open the previous tabbed activity) but still no luck. can anyone suggest me any alternate way of doing that --~--~-~--~~~---~--~~ 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: Run the Previous Activity
Thanks for the reply but if I do that .then how can I finish activity on button click event ? And also My problem is on the previous activity coz I am getting to the previous activity from button click event on the new activity but I am not able to do any event on the previous activity after that. So how can I do that ..?? On Thu, Oct 22, 2009 at 12:02 AM, Naveen Krishna Ch naveenkrishna.ch@ gmail.com wrote: Add a onDestroy or onPause in the 2nd activity, and do a finish there.. 2009/10/22 Shobhit Kasliwal shobhit.kasli...@gmail.com Hi I am using tabbed Activity and Inside every tab I have different activities. on one of the activity (inside tabs) on click of a button I am starting a new activity(with a button it ) now I want to come back on previous activity on click of that button in new Activity and do some click events. I used the finish() on the new activity and I am getting back to the previous tabbed activity but I am not able to do any click event on that activity. I checked the Logs and it is saying that No Window to dispatch pointer 1 what can be the problem ? I also tried opening a new activity (to open the previous tabbed activity) but still no luck. can anyone suggest me any alternate way of doing that -- Shine bright, (: Naveen Krishna Ch :) -- Shobhit Kasliwal Application Developer Intern Liventus Designs 3400 Dundee Rd Northbrook IL 60062 skasli...@liventus.com office: 847-291-1395 ext. 192 Cell: (309) 826 4709 Charles de Gaullehttp://www.brainyquote.com/quotes/authors/c/charles_de_gaulle.html - The better I get to know men, the more I find myself loving dogs. --~--~-~--~~~---~--~~ 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] record and store the recording to remote server
Hi I am creating an application which does recording and save the file to a remote server. I recorded the file successfully on local sdcard and when I tried to convert that file to byte[] and send it via webservice I am getting runtime exception (Cannot serialize) Can anybody help me out on this issue. How can I record and save the recording to a remote server. Thanks Shobhit Kasliwal --~--~-~--~~~---~--~~ 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] Playing video in Android not showing the video, playing sound only with a still image
Hi I am new to android. I am creating an application to run the video file. The application is running fine but the only problem I am getting is ...it is playing the sound with an image instead of complete video. Can anybody help me on this... Thanks Shobhit Kasliwal --~--~-~--~~~---~--~~ 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] Running camera in emulator using computer's webcam
Hello Everyone Can anybody tell me how can I run the camera in the emulator using my computer's webcam. Urgent help needed... Thanks in Advance. Shobhit Kasliwal --~--~-~--~~~---~--~~ 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: Running camera in emulator using computer's webcam
Thanks for Replying mark. I tried using these wrapper classes but no luck. Might be I am doing something wrong Can you please give me link or tutorial which tells me the step by step procedure to run the camera from a remote source That would be a great help for me Thanks Shobhit On Mon, Sep 28, 2009 at 8:48 AM, Mark Murphy mmur...@commonsware.comwrote: Shobhit Kasliwal wrote: Can anybody tell me how can I run the camera in the emulator using my computer's webcam. You can't, AFAIK. You can use Tom Gibara's wrapper classes that allow you to switch between the built-in camera and a camera from some other source, if you do not need the full features of the actual Android Camera class: http://www.tomgibara.com/android/camera-source -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- Shobhit Kasliwal Application Developer Intern Liventus Designs 3400 Dundee Rd Northbrook IL 60062 skasli...@liventus.com office: 847-291-1395 ext. 192 Cell: (309) 826 4709 Ted Turner http://www.brainyquote.com/quotes/authors/t/ted_turner.html - Sports is like a war without the killing. --~--~-~--~~~---~--~~ 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: Playing video in Android not showing the video, playing sound only with a still image
Hi mark I tried the DemoApi's that come's with the sdk but still no luck. I am still getting a still image with audio if I try to run teh Wmv file and for 3gp and mp4 I am not getting anything. I am not geting what the problem is...?? Can you help me Thanks On Mon, Sep 28, 2009 at 8:46 AM, Mark Murphy mmur...@commonsware.comwrote: Shobhit Kasliwal wrote: Hi I am new to android. I am creating an application to run the video file. The application is running fine but the only problem I am getting is ...it is playing the sound with an image instead of complete video. Can anybody help me on this... I would start with sample code and a sample file that works, then go from there. Besides the ones in the ApiDemos in your SDK, here are two other sample apps: http://github.com/commonsguy/cw-advandroid/tree/master/Media/Video/ http://github.com/commonsguy/vidtry -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- Shobhit Kasliwal Application Developer Intern Liventus Designs 3400 Dundee Rd Northbrook IL 60062 skasli...@liventus.com office: 847-291-1395 ext. 192 Cell: (309) 826 4709 Jonathan Swifthttp://www.brainyquote.com/quotes/authors/j/jonathan_swift.html - May you live every day of your life. --~--~-~--~~~---~--~~ 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] Map 3D View
Hello If anyone know how can I view Map in 3D View. Thanks in advance Regards Shobhit --~--~-~--~~~---~--~~ 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: Getting data from a server
Hi Can you please tell me how can I use RestWebServcie, because I tried to use it before but I got a blank screen so can you please give me any tutorial, that would be really helpful for me. Thanks Regards Shobhit Kasliwal On Tue, Feb 10, 2009 at 5:17 AM, Mark Murphy mmur...@commonsware.comwrote: shobhit kasliwal wrote: I am new to android and in my application I want to read and update data (text and image) which is stored in a database at the server. How can I do this ? The same ways you would do this in any other environment where the client and the server are connected via the Internet. A common approach nowadays is to write a Web service, perhaps one with a RESTful API. On the Android side, you would then use one of the built-in HTTP libraries (e.g., Apache's HttpClient) to consume the Web service. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml -- Shobhit Kasliwal Graduate Assistant School of Information Technology Illinois state university, Normal IL- 61761 --~--~-~--~~~---~--~~ 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 data from a server
Hi I am new to android and in my application I want to read and update data (text and image) which is stored in a database at the server. How can I do this ? Any tutorial or source code to do this would be very much helpful for me. Thanks -- Shobhit Kasliwal --~--~-~--~~~---~--~~ 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: Camera Preview Sizing
Hi I am trying to use camera in my application but when I tried to use the Camera class it does not display any error but When I run the application in emulator it displays the one rectangle moving with boxes in background. I tried to search it on web but I did not find any solution. Can you tell me what can be the problem ? if you have any tutorial or code which shows how to work with camera and video camera that would be really helpful for me. Thanks and Regards Shobhit Kasliwal On Tue, Feb 3, 2009 at 10:15 PM, Vternal Android mdunsm...@gmail.comwrote: I finally had a revelation related to the problems I have been having with setImageURI. My images were too big. 2048x1586 to be precise. I brought them down to 960x640 and it all works. Logcat reported the attempted allocation of over 6Mb by my application and this is what gave me the clue. So for those who are having problems with setImageURI, be aware of this difference between the emulator and the real device. m. On Jan 28, 10:22 am, Vternal Android mdunsm...@gmail.com wrote: I appreciate your help. I wanted to try a few things before I got back to you and I've definitely made some progress. My application is a client which streams audio and send jpeg pictures to a remote server. I want to use thecamerato take periodic shots and I want to capture and stream audio from the Mic. I have a Google G1 phone from T-Mobile, not an unlocked development special. The UI framework is built and I am now ready to build the guts (FYI a Windows version of what I am attempting to run on Android is already running). There are three difficulties I am having that are holding me up. The first is my desire to display my subclass of SurfaceView (I was already doing this) within a layout. You say: I made the CameraView a child of the activity view and set its properties in the XML layout. I am sorry to say that I am still confused :-). Could you send me a code snippet and and xml example? Then I think it would be very clear. My second problem is that I cannot get the MediaRecorder to function either in the phone or on the emulator (I do not know if the mic is emulated). Here is my code: try { mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat (MediaRecorder.OutputFormat.THREE_GPP); mRecorder.setAudioEncoder (MediaRecorder.AudioEncoder.AMR_NB); mRecorder.setOutputFile(vternal.3gp); mRecorder.prepare(); mRecorder.start(); // Recording is now started } at the line: mRecorder.start(), it crashes. I got this code from the android website. I thought it might be a permissions thing, but I have all the permissions set that could possibly be related. Here is my AndroidManifest.xml lines: uses-permission android:name=android.permission.RECORD_AUDIO/uses- permission uses-permission android:name=android.permission.CAMERA/uses- permission uses-permission android:name=android.permission.INTERNET/uses- permission Can you throw any light on this for me, I just can't see what I could be doing wrong. Lastly, I have been having a problem with the ImageView widget. I want to display an perfectly valid jpeg file in a layout. I use setImageUri () to do this on a pointer to the ImageView. The Uri is contructed from a local file name, as follows: ImageView image = (ImageView)mVTB.findViewById(R.id.image); mJpegFile = new File( /sdcard/dcim/Camera/latest.jpg ); Uri u = Uri.fromFile( mJpegFile ); Then I execute: image.setImageURI(u); and nothing is displayed. If I put the very same jpeg into a resource, everything works. The value of u.toString is 'file:///sdcard/dcim/Camera/latest.jpg'. Perhaps setImage does not handle file resources? How then can I display a jpeg? How does theCamerado it? Any help will be much appreciated. m. On Jan 25, 9:33 am, Dave Sparks davidspa...@android.com wrote: The preview surface on the G1 can be any size within a factor of 2x (if I remember correctly) of the dimensions of thecamerapreview. By default thecamerapreview frame is 480x320, so you should be able to get away with 240x160. In my test application, I created a subclass of SurfaceView called CameraView that manages all thecamerafunctionality. I made the CameraView a child of the activity view and set its properties in the XML layout. On Jan 24, 12:33 am, Vternal Android mdunsm...@gmail.com wrote: Does anyone know if it is possible to have theCameraPreview surface be smaller than fullscreen. I want to display thecamerapreview in the upper portion of the display and have controls below
[android-beginners] Re: How to create and view my map(Google Map)?
Hope this link will help you in creating Map application... http://www.devx.com/wireless/Article/39145 On Sun, Jan 25, 2009 at 3:58 AM, ibuun ibu...@gmail.com wrote: I would like to create and view my map(Google My Maps) with my Android app. I looked for a class library and an tutorial,but I gave up. Does anybody have an idea? Should I have to start making codes from zero reffering to Google Maps Api Doc ? -- Shobhit Kasliwal Graduate Assistant School of Information Technology Illinois state university, Normal IL- 61761 --~--~-~--~~~---~--~~ 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: Geotagging in android
Hi Dave Can I use WebService for storing and retrieving data from a remote location. I mean Can I create a webservice in J2SE and use WSDL in android to retrieve the data. But I dont know how to consume webservice in android. I dint find ay tutorial which will help me in consuming the webservice. It would be really helpful for me if you have any . Also can you provide me any example for EXIF Tags. I dint find anything about it on web. Thank you very much Regards Shobhit On Fri, Jan 23, 2009 at 11:36 PM, Dave Sparks davidspa...@android.comwrote: I'm probably not going to be much help with the database, though I think remoting to an SQL server is going to be a challenge over a mobile network. Generally, I think the typical solutions involve proxying through an HTTP server. Android has built-in support for geo-tagging pictures in the camera app using EXIF tags. You just need to enable it in the settings. There is no video record in 1.0, though we will support it in a future release. However in the first version, there won't be any geo-tagging support. Theoretically, you could read the video file in and add the tags in your application. How you geo-tag the text will depend on what container you use. Can't help you much there. On Jan 23, 8:42 pm, shobhit kasliwal shobhit.kasli...@gmail.com wrote: Hi Dave Thanks for replying I am creating an application in android in which I am using GPS functionality and user can geotag the photos, text and videos so that all other users can see it. I dont know how can I do that ? Also I want to store that text, image and video at a remote location so that all users can access it Since SQLite is local database how can I connect to a Database at remote location. Regards Shobhit On Fri, Jan 23, 2009 at 7:47 PM, Dave Sparks davidspa...@android.com wrote: What exactly do you need help on? MapView mashups? On Jan 23, 2:41 pm, shobhit.kasli...@gmail.com shobhit.kasli...@gmail.com wrote: Hi I wanna GeoTag photos and videos on Google Maps in Android. can anyone please help me how can I do that. Thanks in advance -- Shobhit Kasliwal Graduate Assistant School of Information Technology Illinois state university, Normal IL- 61761 -- Shobhit Kasliwal Graduate Assistant School of Information Technology Illinois state university, Normal IL- 61761 --~--~-~--~~~---~--~~ 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: Geotagging in android
Hi Dave Thanks for replying I am creating an application in android in which I am using GPS functionality and user can geotag the photos, text and videos so that all other users can see it. I dont know how can I do that ? Also I want to store that text, image and video at a remote location so that all users can access it Since SQLite is local database how can I connect to a Database at remote location. Regards Shobhit On Fri, Jan 23, 2009 at 7:47 PM, Dave Sparks davidspa...@android.comwrote: What exactly do you need help on? MapView mashups? On Jan 23, 2:41 pm, shobhit.kasli...@gmail.com shobhit.kasli...@gmail.com wrote: Hi I wanna GeoTag photos and videos on Google Maps in Android. can anyone please help me how can I do that. Thanks in advance -- Shobhit Kasliwal Graduate Assistant School of Information Technology Illinois state university, Normal IL- 61761 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---