[android-beginners] adb usage in Win32::Process::Create
Hello all, i am using an iperf utility in Win32::Process::Create process in windows for data transfer purposes. the iperf.exe file is on windows and so working fine (by replacing $path to $path-data/app/; and $command to $command-data/app/iperf -u -s -p 5001; in below code) now i wants this functionality to work by placing the iperf application in phone (data/app) but i am not able to locate and execute that application using the system() commands i am using Perl interpreter on windows i am using the below code. could anybody please let me know the how can i incorporate these commands in Win32::Process::Create process? #!/usr/bin/perl #use strict; #use warnings; use Win32::Process; my $file = 'my_output.txt'; # redirect stdout to a file local *STDOUT; open STDOUT, '', $file or die can't redirect STDOUT to $file $!; my $path = exec(adb shell cd /data/app; ); my $command = system(adb shell data/app/iperf -u -s -p 5001; ); Win32::Process::Create(my $ProcessObj, $path, $command, 0, NORMAL_PRIORITY_CLASS, .) || die ErrorReport(); print Hello\n; #system(taskkill /F /IM /data/app/iperf.exe); print Bye\n; sleep 10; $ProcessObj-Kill(0); sub ErrorReport{ print Win32::FormatMessage( Win32::GetLastError() ); } /rocky -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 To unsubscribe, reply using remove me as the subject.
[android-beginners] installing iperf application on Android Phone
Hello All, i need to install iperf application on my android phone and want to run that application using the command prompt rather than the GUI interface available.. could anybody suggest me how to install iperf.exe on android based phone and running the utility using commands. regds rocky -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 To unsubscribe, reply using remove me as the subject.
[android-beginners] How To find the path and call the intent of a newly installed application..
Hello all, recently i installed one application named iperf from android market (package is com.magicanddroidapps.iperf/bin/iperf) my doubt is how can i find this package path stored in phone. i tried in /data/data/ but could not find... also if anyone knows ?? if i issue a command on command prompt adb shell am start -a android.settings.APN_SETTINGS a window of APN set up prompts up just after a sec may i know how can open the newly installed appication via this way rather that clicking the menu in phone ? could anybody suggest? regds /rocky -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 To unsubscribe, reply using remove me as the subject.
[android-beginners] Error message while running an application on adb shell
Hello all, i am getting the below error message while issuing the following command on adb shell i installed iperf.exe and moved in to phone via adb push iperf.exe /data/app, chmod 777 iperf.exe # ./iperf.exe -u -s -p 5001 ./iperf.exe -u -s -p 5001 MZÉ♥♦ �...@α♫▼║♫┤: not found ▼║♫┤: not found ./iperf.exe: 1: Syntax error: end of file unexpected (expecting )) # could anybody suggest ? regds rocky.. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 To unsubscribe, reply using remove me as the subject.
[android-beginners] How to call an intent of an installed application
Hello all, as using the adb shell command adb shell am start -a android.settings.APN_SETTINGS i can call the APN settigns intent. if i installed a new app (say abc.apk) could anybody please let me know how can i call the intent of that particular application?? my installed applicationa are stored in location /data/app-private thanks in advance rocky -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] system command did not work on adb shell
Hello All, i was trying to dial a number from adb shell using system command in Perl script, but this command did not go through at all. after i typed the below code, $NUMBER = STDIN; $COM_PORT = STDIN; system(ECHO ATZ0 $COM_PORT;); system(ECHO ATDT $NUMBER $COM_PORT;); sleep 10; system(ECHO ATH $COM_PORT;); i got in the o/p: ATDT1110001110 and there was no dial tone. however when i don't take any user input and give the value of NUMBER and COM_PORT directly in the code , it works fine. could anybody please let me know where i am going wrong in system command in adb shell? regds rocky -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-beginners] Re: How to know the size of a file in adb shell prompt
Hello pskink all, i am more inerested in size of a particular file rather than other details as with ls -l command. i issued the below commands utility in perl to calculate the size of a file abc.txt *system(adb shell cd /data/app); $filename = abc.txt; $size_of_file = -s $filename; print The file Size is . $size_of_file. Bytes.\n;* but in o/p i am getting blank... The file Size is Bytes can anybody suggest me the most robust way to calculate the file size. regds rocky On Thu, Mar 18, 2010 at 7:36 PM, skink psk...@gmail.com wrote: On Mar 17, 5:34 pm, rocky84 rocky84 hulkman...@gmail.com wrote: *Hello all, i want to extract the size of a file in adb shell using some perl utility. this works fine for me as below in windows but does not work in adb shell prompt (#) i used this function in windows stat($filename); can anybody please let me know how can i get file size in #prompt? regds rocky * ls -l filename l is for long pskink -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] How to know the size of a file in adb shell prompt
*Hello all, i want to extract the size of a file in adb shell using some perl utility. this works fine for me as below in windows but does not work in adb shell prompt (#) i used this function in windows stat($filename); can anybody please let me know how can i get file size in #prompt? regds rocky * -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] Re: Regarding Database setup
hi all, following the below mail chain, i have created a Sqlite data base for an entity called APN names for activating/deactivating the PDP. i filled the required parameters in the APN menu using Sqlite data base. but foe activating the PDP or to make effective those settings , i always need to manually click the GREEN Button right to APN name in APN TAB. could it be done automatically ? thanks rocky On Sun, Mar 7, 2010 at 10:21 AM, Ben Orchard ben.orch...@gmail.com wrote: Hey, I wanted to say thanks for the information. Let me ask one more thing: I have a large amount of data that I want to use in conjunction with my app. In my mind it seems more efficient to use a db to store this data, but packing the db in android seems..odd. I think it might be easier to pack the db using a better tool, then just access the pre-packed db in the app. Any thoughts on this? Thanks again. On Sat, Mar 6, 2010 at 3:04 PM, Adrian Vintu adrianvi...@gmail.comwrote: Yes to all :) Typically, you will pack your DB in the Android project and unpack it on the device. BR, Adrian Vintu http://adrianvintu.com On Thu, Mar 4, 2010 at 7:36 PM, Ben Orchard ben.orch...@gmail.comwrote: Let me ask this, since I suspect it's the question that was on the mind of the submitter, and it's on mine as well. Can I create an sqlite db on my computer, populate then use that as the main data source for my app? That's the question that I think is most pressing. If the answer is yes, then is it as simple as moving the file (I don't know the sqlite extension) to the resources folder in your project? Thanks, Ben On Wed, Mar 3, 2010 at 2:10 AM, Maxood maqs...@salsoft.net wrote: Here are your required answers: Q.Which database i can use ? A. SQLite. You can download it free from www.sqlite.org Q. What should be connection string ? A. You can make a database adapter class instead. Go though these links http://developer.android.com/reference/android/database/sqlite/package-summary.html http://www.devx.com/wireless/Article/40842/1954 Q. How i can deploy queries ? A. You can write queries in your class using cursors Q. How i can parse recordsets etc ? A. Look into the Android SQLite API: http://developer.android.com/reference/android/database/sqlite/package-summary.html Hope this helps. Android Developer, Maqsood http://www.twitter.com/maxood On Feb 23, 11:51 pm, Harminder Singh jimmysing...@gmail.com wrote: Hello, I am newbie to Android application development. Can anybody help me about to set up database related applications. I have many questions into mind like: Which database i can use ? How i can use that ? What should be connection string ? How i can deploy queries ? How i can parse recordsets etc ? Seeking your valuable comments Thank in Advance Harminder -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- I have no bit of wisdom to include as a signature. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- I have no bit of wisdom to include as a signature. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack
[android-beginners] Service List command in Android...
Hello all, “service list” command shows a long list of services available. I have place a real call via the command line. # service call phone 2 s16 “+15084157509″ could anybody suggest me how can i activate/deactivate a PDP using this service list. problem here is i could not find android.providers.telephony package (which is needed) under the service lists (total coming out 50 services) /rocky -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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] Changing the APN settings!!
hi, can anybody suggest me how can i change the APN parameters in android for activating the PDP context automatically? i need it from scratch as being new to android.. regds rakesh -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] Changing the APN settings!!
Hey David. thank you... On Fri, Feb 26, 2010 at 7:24 PM, David Fire ddf...@gmail.com wrote: look the source code of apndroid http://code.google.com/p/apndroid/ 2010/2/26 rocky84 rocky84 hulkman...@gmail.com hi, can anybody suggest me how can i change the APN parameters in android for activating the PDP context automatically? i need it from scratch as being new to android.. regds rakesh -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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] Handling the menu and check boxes..
Hello, can anybody please suggest me how to handle the menu bar and its check boxes? e.g i want to access Airplane Mode option inside settings and CHECK the Button. regds rocky -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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] Unable to get default service manager! ---Need Urgent Help!!!
Hi, can anybody please help me out in the below error? i am not getting the service list (however sometimes i got the list of services) $ adb shell $ service list service list service: Unable to get default service manager! $ thanks in advance rocky -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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] Generating .java file from .aidl file
hi, i am developing an android application with Eclipse/ADT. i want to generate .java files from the existing .aidl file for my application. i got some below hints from internet, but i could not see the below option in* Android Tools*- 1. In the Package Explorer view, right-click on the project. 2. Choose *Android Tools* *Create Aidl preprocess file for Parcelable classes*. can anybody tell me the procedure to generate java files. /rocky -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] Re: Error in Building Hello World
hi, thanks for replying .. below is the excerpt of the default code. /* Name: HelloWorld.c Author : Rakesh Version : Copyright : Your copyright notice Description : Hello World in C, Ansi-style */ #include stdio.h #include stdlib.h int main(void) { puts(!!!Hello World!!!); /* prints !!!Hello World!!! */ return EXIT_SUCCESS; } i am running it using Eclipse on windowns platform (via my laptop).i followed the tutorial also for my setup. when i saw in manuals it is indicating some problems with the Build (make utility) can you guys please elaborate on errors i am getting while compiling itself ? DescriptionResourcePathLocationType Error launching external scanner info generator (sh -c 'gcc -E -P -v -dD D:/Profiles/xtcg76/workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c ')HelloWorldUnknownC/C++ Problem Error launching external scanner info generator (sh -c 'gcc -E -P -v -dD D:/Profiles/xtcg76/workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c ')HelloWorldUnknownC/C++ Problem /rakesh On Tue, Jan 5, 2010 at 10:24 PM, Vant shav...@gmail.com wrote: Yes more info would be helpful. Can you give us details on your setup and development environment? Also posting your code may help as well. Following the Hello World tutorial(http://developer.android.com/ resources/tutorials/hello-world.htmlhttp://developer.android.com/%0Aresources/tutorials/hello-world.html) provided by Android developer site is recommended. On Jan 4, 5:48 pm, cellurl gpscru...@gmail.com wrote: You gotta give more info up front. 1. Do it on a PC. 2. Run the existing HelloWorld first before writing your own HelloWorld. It works if you install and follow all the step by step steps. I had absolutely no experience and I got the HelloWorld to work right out of the box.. On Jan 4, 12:15 am, rocky hulkman...@gmail.com wrote: Hi All, i am getting the below 2 errors while Building a simple Hello World program. could anyone Genius help it out? looks some problem in my eclipse settings... regds rocky Description ResourcePathLocationType Error launching external scanner info generator (sh -c 'gcc -E -P -v - dD D:/Profiles/xtcg76/workspace/.metadata/.plugins/ org.eclipse.cdt.make.core/specs.c ')HelloWorld Unknown C/C++ Problem Error launching external scanner info generator (sh -c 'gcc -E -P -v - dD D:/Profiles/xtcg76/workspace/.metadata/.plugins/ org.eclipse.cdt.make.core/specs.c ')HelloWorld Unknown C/C++ Problem -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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