[android-beginners] ant scripts to build apk file and load it in a emulator?
Hi. i am trying to create a build.xml script that cleans, builds and creates a apk file of a Junit android test project that i have created. the steps i want to achieve in my build file is this: [list=]clean[/list] [list=]build[/list] [list=]create apk file[/list] [list=]Sign apk file[/list] [list=]launch emulator[/list] [list=]install apk file[/list] [list=]run instrumentalTest[/list] [list=]Save the tests into an HTML Junit Report[/list] Anyone know how to achieve this? so far my build file looks like this: [code]?xml version=1.0 encoding=UTF-8 standalone=no? !-- WARNING: Eclipse auto-generated file. Any modifications will be overwritten. To include a user specific buildfile here, simply create one in the same directory with the processing instruction ? eclipse.ant.import? as the first entry and export the buildfile again. -- project basedir=. default=build name=Unity Agent SDK Test property environment=env / property name=junit.output.dir value=junit / property name=debuglevel value=source,lines,vars / property name=target value=1.6 / property name=source value=1.6 / property file=build.properties / path id=android1.6.userclasspath pathelement location=lib/android.jar / /path path id=Junit.userclasspath pathelement location=lib/junit-4.8.2 / pathelement location=lib/ org.hamcrest.core_1.1.0.v20090501071000.jar / /path path id=Unity Agent SDK Test.classpath pathelement location=bin / pathelement location=lib/fb_connect-android-api.jar / pathelement location=lib/signpost-commonshttp4-1.2.jar / pathelement location=lib/signpost-core-1.2.jar / pathelement location=lib/UnityAgentSDK.jar / path refid=android1.6.userclasspath / path refid=Junit.userclasspath / /path path id=android.antlibs pathelement path=${android-sdk-path}/tools/lib/anttasks.jar / pathelement path=${android-sdk-path}/tools/lib/sdklib.jar / pathelement path=${android-sdk-path}/tools/lib/androidprefs.jar / pathelement path=${android-sdk-path}/tools/lib/apkbuilder.jar / pathelement path=${android-sdk-path}/tools/lib/jarutils.jar / /path path id=run.Unity Agent SDK Test (1).classpath path refid=Unity Agent SDK Test.classpath / /path path id=run.Unity Agent SDK Test (1).bootclasspath / target name=init echo message=Initialize project / mkdir dir=bin / copy includeemptydirs=false todir=bin fileset dir=src exclude name=**/*.launch / exclude name=**/*.java / /fileset /copy copy includeemptydirs=false todir=bin fileset dir=gen exclude name=**/*.launch / exclude name=**/*.java / /fileset /copy /target target name=clean echo message=Cleaning project / delete dir=bin / /target target depends=clean name=cleanall / target depends=build-subprojects,build-project name=build / target name=build-subprojects / target depends=init name=build-project echo message=${ant.project.name}: ${ant.file} / javac debug=true debuglevel=${debuglevel} destdir=bin source=${source} target=${target} src path=src / classpath refid=Unity Agent SDK Test.classpath / /javac javac debug=true debuglevel=${debuglevel} destdir=bin source=${source} target=${target} src path=gen / classpath refid=Unity Agent SDK Test.classpath / /javac /target target description=Build all projects which reference this project. Useful to propagate changes. name=build-refprojects / target description=copy Eclipse compiler jars to ant lib directory name=init-eclipse-compiler copy todir=${ant.library.dir} fileset dir=${ECLIPSE_HOME}/plugins includes=org.eclipse.jdt.core_*.jar / /copy unzip dest=${ant.library.dir} patternset includes=jdtCompilerAdapter.jar / fileset dir=${ECLIPSE_HOME}/plugins includes=org.eclipse.jdt.core_*.jar / /unzip /target target description=compile project with Eclipse compiler name=build-eclipse-compiler property name=build.compiler
[android-beginners] Re: Flurry and AppWidgets
No, that would be crazy. I have written a throttling algorithm that progressively reduces the update frequency over time, since the last upgrade. Regards Mark On Jul 16, 2:48 pm, Jake Colman col...@ppllc.com wrote: Mark, So you call dispatch() from a service upon every call to onUpdate? ...Jake w == whitemice markbr...@zedray.co.uk writes: w Hi Jake w Assuming you are talking about Android Home Screen Widgets, I had w the same issue which I blogged here: whttp://blog.zedray.com/2010/05/01/tracking-a-android-home-screen-widget/ w I still haven't gotten a response from Flurry, so I suggest you w consider the Google Analytics API. While this offers fewer w features relevant for application developers, it does provide a w dispatch() method which allows you to manually workaround the w widget life cycle issue. Let me know how this works for you. w Regards w Mark -- Jake Colman -- Android Tinkerer -- 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] How to call a clicked item within an intent??
Hi, in my code I am trying to call the last clicked item within an intent. Inside an onClick event, the Uri gets tagged to keep track of the item that was clicked, but I don't know how I can call this uri now from the intent. What I mean is: here I tag the item... vGrid.setOnItemClickListener(new OnItemClickListener() { @Override // click on item and open options menu public void onItemClick(AdapterView? parent, View v, int position, long id) { //get uri of selected/clicked video String uri = (String) v.getTag(); String [] proj={MediaStore.Video.Media.DATA}; videocursor = managedQuery( MediaStore.Video.Media.EXTERNAL_CONTENT_URI, proj, null,null,null); videocursor.moveToPosition((int) vGrid.getSelectedItemId()); // print the filename Toast.makeText(ShareGalleryView.this, You just selected +uri, Toast.LENGTH_SHORT).show(); openOptionsMenu(); //Opens Options Menu by clicking a video } }); and inside an menu I would like to call the item that was clicked and attach it to the new intent: i.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File())); //HOW TO CALL THE CLICKED ITEM?? @Override //creates options menu with menu-items public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.menu_gallery_share, menu); return super.onCreateOptionsMenu(menu); } @Override //what happens when a menu item is clicked public boolean onOptionsItemSelected (MenuItem item){ try{ //Facebook if (item.getItemId() == R.id.menu_facebook) { //TODO open fb new AlertDialog.Builder(this) .setTitle(No Service) .setMessage(Sorry, Facebook is not supported yet!) .setNeutralButton(Close, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub }}).show(); return true; } //YouTube else if (item.getItemId() == R.id.menu_youtube) { //TODO open YouTube new AlertDialog.Builder(this) .setTitle(No Service) .setMessage(Sorry, YouTube is not supported yet!) .setNeutralButton(Close, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub }}).show(); return true; } else if (item.getItemId() == R.id.menu_email) { Intent i = new Intent(Intent.ACTION_SEND); i.setType(text/plain); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); i.setType(video/mp4); i.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File())); //HOW TO CALL THE CLICKED ITEM?? startActivity(i); return true; } else if (item.getItemId() == R.id.menu_bluetooth) { // TODO send via bluetooth new AlertDialog.Builder(this) .setTitle(No Service) .setMessage(Sorry, Bluetooth is not supported yet!) .setNeutralButton(Close, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub }}).show(); return true; } } catch(Exception e) { e.printStackTrace(); } return super.onContextItemSelected(item); } Any help is welcome, I would really appreciate if someone could give me a hand here. Thank you. -- 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
[android-beginners] Regarding VideoView
Hi, I am currently working on an app in which i use The VideoView for media playback. I want to actually hide the play controls (i.e play/pause) when the video starts and want them back on tap on the videoview .I used the onTouchListener as well as onClickListener on VideoView .But they both seems nt getting fired. Is there any other way ? Thanks and Regards, Ameya -- 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] Re: Including libraries in project
:: shrug :: It works for many other developers, including hundreds of students of mine. Since the non-Eclipse portion is pretty bulletproof, and since I don't use Eclipse, my guess is that your problems stem from something Eclipse-related, perhaps in the way you are putting it in your build path. I don't doubt that it works actually and I do think it has to do with either how I configured the plug in or some other issues with Eclipse - the build path etc I know that pretty well so I don't think that's the problem. I will post a solution once I find it to help anyone else who may have the same issue. The libs dir is either in the src dir or the top level dir. The libs/ dir is supposed to be in the root of the project dir. Now, I have heard that you can have it located elsewhere when you are building with Eclipse, but I have not tried that. I tried both - I will keep it in the root dir to be on the safe side and eliminate at least that unknown. Once I move it in the assets dir I can see it being wrapped inside the apk. I suspect having it there will be useless. Ack. On a related note - I think the http commons (apache) is part of the Android platform but in the general scheme of things is there a repository somewhere that stores 3rd party jars compiled for Android (similar to ibm's wsdl, bouncycastle etc.)? Thanks again -- 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] Eclipse: Easy way to refactor/rename package?
Thanks for the replies, I did use the refactor option to rename the package and the project, but then there were a few updates that were needed in the manifest, and one other place i can't remember now. I was simply wondering if there was an automated way to make all these changes at once using the ADT plugin, or if i was going to have to do this manually every time i have an update to my app. //Nick On Sun, Jul 18, 2010 at 10:47 AM, Mark H. Nichols code.pr...@gmail.comwrote: On Jul 18, 2010, at 3:41 AM, Nick Richardson wrote: Hopefully simple question: I would like to create a second copy of my app and release it as a free version. I have copied my project to a new one in eclipse, but now i would like to rename the project and package to upload to the market. Is there an easy way using ADT or otherwise that will do this for me? I found a few posts online with reference to right clicking the project and selecting Rename from Android Tools, but i do not have that option. If there's not an automated way, what are the steps i need to be sure to take to insure that everything is renamed correctly before i upload? If you are using Eclipse, you can use the Refactor tool to do what you want. Right-click on the project to be renamed, select Refactor from the object menu, and then rename from there. Mark -- 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 -- //Nick Richardson //richardson.n...@gmail.com -- 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] stubborn error wont go away
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //set variables to hold search control final Button button = (Button) findViewById(R.id.ImageButtonSearch); //set new OnClickListener button.setOnClickListener(new View.OnClickListener() { //onClick event @Override public void onClick(View button) { //set variables to hold search term on edittext control final EditText txtSearch = (EditText) findViewById(R.id.EditTextSearch); final String STERM = txtSearch.getText().toString(); searched(STERM); } ERROR ON } BELOW THIS STATES Multiple markers on this line, insert ) or ; } } -- 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] Eclipse: Easy way to refactor/rename package?
- Right click project - Choose Android Tools Rename application package This will go and change everything that needs changing. Now, for your specific case of having 2 versions of your app, I recommend splitting your project in a common library and 2 applications projects. See here for more details: http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject On Mon, Jul 19, 2010 at 10:55 AM, Nick Richardson richardson.n...@gmail.com wrote: Thanks for the replies, I did use the refactor option to rename the package and the project, but then there were a few updates that were needed in the manifest, and one other place i can't remember now. I was simply wondering if there was an automated way to make all these changes at once using the ADT plugin, or if i was going to have to do this manually every time i have an update to my app. //Nick On Sun, Jul 18, 2010 at 10:47 AM, Mark H. Nichols code.pr...@gmail.com wrote: On Jul 18, 2010, at 3:41 AM, Nick Richardson wrote: Hopefully simple question: I would like to create a second copy of my app and release it as a free version. I have copied my project to a new one in eclipse, but now i would like to rename the project and package to upload to the market. Is there an easy way using ADT or otherwise that will do this for me? I found a few posts online with reference to right clicking the project and selecting Rename from Android Tools, but i do not have that option. If there's not an automated way, what are the steps i need to be sure to take to insure that everything is renamed correctly before i upload? If you are using Eclipse, you can use the Refactor tool to do what you want. Right-click on the project to be renamed, select Refactor from the object menu, and then rename from there. Mark -- 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 -- //Nick Richardson //richardson.n...@gmail.com -- 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 -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- 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] Re: stubborn error wont go away
I should probably give some info background here. The code is listening for a button click to call a private function searched(String sTERM). Im just starting app development and learning java at the same time. not sure what im doing wrong. -- 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: stubborn error wont go away
Your call to setOnClickListener is missing a closing parentheses... which is why you get the error telling you to insert one. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 12:18 PM, martinmike2 martinmi...@gmail.com wrote: I should probably give some info background here. The code is listening for a button click to call a private function searched(String sTERM). Im just starting app development and learning java at the same time. not sure what im doing wrong. -- 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] Re: Including libraries in project
If jars are not compatible with the Android platform would that prevent them from being packaged in the .apk? I checked build class paths etc. and everything looks good ... On Jul 18, 8:19 am, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jul 17, 2010 at 11:45 PM, kypriakos demet...@ece.neu.edu wrote: But older postings and some sources supported that in general external jars may not work under Android There are a multitude of reasons why an existing JAR may not work on Android: -- It was compiled with Java 1.4.2 or a non-Sun/Oracle Java compiler -- It assumes certain classes exist (from, say, JavaSE) that do not ship with Android -- It uses JNI (and therefore needs to be adjusted to work with the NDK) -- It assumes certain platform binary programs exist, or exist at certain paths, which may not be the case on Android -- and so on and that their corresponding source should be compiled with its SDK before they can be used That will directly resolve the compiled-with-wrong-compiler program and will give you better error information for the assumes-certain-classes-exist problem. In any case, then it makes no sense as to why the classes are not visible in the emulator even though I (finally) managed to include the jars in the apk - having them in the classpath does not do it. Step #1: Put the JAR in libs/ Step #2: If using Eclipse, add it to your build path Step #3: Code to the JAR's API and build your APK and you're done...assuming the JAR is Android-friendly. For example, here is a sample project using a re-compiled edition of the BeanShell interpreter: http://github.com/commonsguy/cw-android/tree/master/Java/AndShell/ -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- 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] Re: addContentView obscures events
What exactly are you trying to accomplish? Are you trying to get the same sort of effect that the browser or google maps has with the zoom in/out buttons (in that they show up on top of the current view)? I'm trying to do the following: overlay a Drawable and interact with it (reposition, resize based on touch events) on an arbitrary background (a SurfaceView or just a linear layout with a background). I want to reuse this same code for multiple backgrounds. Above all of that I'd need buttons to control the activity that would change based on which activity. I think I just don't understand the best way to lay this out with the proper view hierarchy... Thanks, -Chris -- 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] Eclipse: Easy way to refactor/rename package?
Xavier, I had read about that option while searching around... but i do not have that option under Android Tools. I've checked for updates of the plugin through Eclipse and it appears that i am running the latest version (Android Development Tools 0.9.7.v201005071157-36220). Is there a newer version than this? If so, Eclipse doesn't want to grab it from https://dl-ssl.google.com/android/eclipse/. Is it possible that the rename option is not available on a Mac? (I doubt it). Is there a specific version of ADT that i need in order to have this option show up? The options i have available under Android Tools are: * New Test Project * New Resource File * Export Signed Application Package * Export Unsigned Application Package * Fix Project Properties On Mon, Jul 19, 2010 at 11:12 AM, Xavier Ducrohet x...@android.com wrote: - Right click project - Choose Android Tools Rename application package This will go and change everything that needs changing. Now, for your specific case of having 2 versions of your app, I recommend splitting your project in a common library and 2 applications projects. See here for more details: http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject On Mon, Jul 19, 2010 at 10:55 AM, Nick Richardson richardson.n...@gmail.com wrote: Thanks for the replies, I did use the refactor option to rename the package and the project, but then there were a few updates that were needed in the manifest, and one other place i can't remember now. I was simply wondering if there was an automated way to make all these changes at once using the ADT plugin, or if i was going to have to do this manually every time i have an update to my app. //Nick On Sun, Jul 18, 2010 at 10:47 AM, Mark H. Nichols code.pr...@gmail.com wrote: On Jul 18, 2010, at 3:41 AM, Nick Richardson wrote: Hopefully simple question: I would like to create a second copy of my app and release it as a free version. I have copied my project to a new one in eclipse, but now i would like to rename the project and package to upload to the market. Is there an easy way using ADT or otherwise that will do this for me? I found a few posts online with reference to right clicking the project and selecting Rename from Android Tools, but i do not have that option. If there's not an automated way, what are the steps i need to be sure to take to insure that everything is renamed correctly before i upload? If you are using Eclipse, you can use the Refactor tool to do what you want. Right-click on the project to be renamed, select Refactor from the object menu, and then rename from there. Mark -- 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 -- //Nick Richardson //richardson.n...@gmail.com -- 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 -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- 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 -- //Nick Richardson //richardson.n...@gmail.com -- 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] Re: Including libraries in project
Just to make this a bit more visual - the .classpath shows: ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src path=src/ classpathentry kind=src path=gen/ classpathentry kind=con path=com.android.ide.eclipse.adt.ANDROID_FRAMEWORK/ classpathentry kind=con path=org.eclipse.jdt.USER_LIBRARY/myLib/ classpathentry kind=output path=bin/ /classpath The myLib contains the jars that reside under ROOT/libs in this particular project. And finally the .dex archive (and subsequently the .apk file) contains all the project classes but not the jars from above. So what am I missing?? Like I said in the previous email, unless the Android plugin packaging ignores the jars I don't see any other reason why they would not be included. Thanks On Jul 18, 8:19 am, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jul 17, 2010 at 11:45 PM, kypriakos demet...@ece.neu.edu wrote: But older postings and some sources supported that in general external jars may not work under Android There are a multitude of reasons why an existing JAR may not work on Android: -- It was compiled with Java 1.4.2 or a non-Sun/Oracle Java compiler -- It assumes certain classes exist (from, say, JavaSE) that do not ship with Android -- It uses JNI (and therefore needs to be adjusted to work with the NDK) -- It assumes certain platform binary programs exist, or exist at certain paths, which may not be the case on Android -- and so on and that their corresponding source should be compiled with its SDK before they can be used That will directly resolve the compiled-with-wrong-compiler program and will give you better error information for the assumes-certain-classes-exist problem. In any case, then it makes no sense as to why the classes are not visible in the emulator even though I (finally) managed to include the jars in the apk - having them in the classpath does not do it. Step #1: Put the JAR in libs/ Step #2: If using Eclipse, add it to your build path Step #3: Code to the JAR's API and build your APK and you're done...assuming the JAR is Android-friendly. For example, here is a sample project using a re-compiled edition of the BeanShell interpreter: http://github.com/commonsguy/cw-android/tree/master/Java/AndShell/ -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- 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] Re: Including libraries in project
And one more interesting fact - if I add the jars as External Jars using Eclipse, building the workspace takes a while, eventually it runs out of memory and it only generates the resources file (no apk and no dex). If I add the jars as Lib (as I showed in the previous posting), the workspace is built fast, all archived deployable files are generated but no jars are include ... something seems a bit out of wack here - anyone else saw this before? Thanks again On Jul 18, 8:19 am, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jul 17, 2010 at 11:45 PM, kypriakos demet...@ece.neu.edu wrote: But older postings and some sources supported that in general external jars may not work under Android There are a multitude of reasons why an existing JAR may not work on Android: -- It was compiled with Java 1.4.2 or a non-Sun/Oracle Java compiler -- It assumes certain classes exist (from, say, JavaSE) that do not ship with Android -- It uses JNI (and therefore needs to be adjusted to work with the NDK) -- It assumes certain platform binary programs exist, or exist at certain paths, which may not be the case on Android -- and so on and that their corresponding source should be compiled with its SDK before they can be used That will directly resolve the compiled-with-wrong-compiler program and will give you better error information for the assumes-certain-classes-exist problem. In any case, then it makes no sense as to why the classes are not visible in the emulator even though I (finally) managed to include the jars in the apk - having them in the classpath does not do it. Step #1: Put the JAR in libs/ Step #2: If using Eclipse, add it to your build path Step #3: Code to the JAR's API and build your APK and you're done...assuming the JAR is Android-friendly. For example, here is a sample project using a re-compiled edition of the BeanShell interpreter: http://github.com/commonsguy/cw-android/tree/master/Java/AndShell/ -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- 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] ERROR:- no such table: TABLE: , while compiling: SELECT _id, network, url FROM TABLE
Hi, I have followed the instructions from this site to the letter http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-2/ but to no avail. Each time I run the code suggested, the Eclipse debugger keep throwing the following error no such table: TABLE: , while compiling: SELECT _id, network, url FROM TABLE. I created the database using SQLite Browser and ran the emulator's shell and can see that the database was there. Here is the code that I am implementing to manage the database: package com.rodney.IET_Events_Widget; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; import android.database.sqlite.SQLiteOpenHelper; public class DataBaseHelper extends SQLiteOpenHelper { //The Android's default system path of your application database. private static String DB_PATH = /data/data/com.rodney.IET_Events_Widget/databases/; private static final String DB_NAME = local_network_db; private static final String DB_TABLE = local_network; public static final String KEY_NETWORK = network; public static final String KEY_URL = url; public static final String KEY_ROWID = _id; private SQLiteDatabase myDataBase; private final Context myContext; /** * Constructor * Takes and keeps a reference of the passed context in order to access to the application assets and resources. * @param context */ public DataBaseHelper(Context context) { super(context, DB_NAME, null, 1); this.myContext = context; } /** * Creates a empty database on the system and rewrites it with your own database. * */ public void createDataBase() throws SQLException{ boolean dbExist = checkDataBase(); if(dbExist){ //do nothing - database already exist }else{ //By calling this method and empty database will be created into the default system path //of your application so we are gonna be able to overwrite that database with our database. this.getReadableDatabase(); try { copyDataBase(); } catch (IOException e) { throw new Error(Error copying database); } } } /** * Check if the database already exist to avoid re-copying the file each time you open the application. * @return true if it exists, false if it doesn't */ private boolean checkDataBase(){ SQLiteDatabase checkDB = null; try{ String myPath = DB_PATH + DB_NAME; checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY); }catch(SQLiteException e){ //database does't exist yet. } if(checkDB != null){ checkDB.close(); } return checkDB != null ? true : false; } /** * Copies your database from your local assets-folder to the just created empty database in the * system folder, from where it can be accessed and handled. * This is done by transferring bytestream. * */ private void copyDataBase() throws IOException{ //Open your local db as the input stream InputStream myInput = myContext.getAssets().open(DB_NAME); // Path to the just created empty db String outFileName = DB_PATH + DB_NAME; //Open the empty db as the output stream OutputStream myOutput = new FileOutputStream(outFileName); //transfer bytes from the inputfile to the outputfile byte[] buffer = new byte[1024]; int length; while ((length = myInput.read(buffer))0){ myOutput.write(buffer, 0, length); } //Close the streams myOutput.flush(); myOutput.close(); myInput.close(); } public void openDataBase() throws SQLException{ //Open the database String myPath = DB_PATH + DB_NAME; myDataBase = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY); } @Override public synchronized void close() { if(myDataBase != null) myDataBase.close(); super.close(); } @Override public void onCreate(SQLiteDatabase db) { } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { } /** * Return a Cursor over the list of all notes in the database * * @return Cursor over all notes */ public Cursor fetchAll() { return myDataBase.query(local_network, new String[] {KEY_ROWID, KEY_NETWORK,KEY_URL}, null, null, null, null, null); } } And here is
Re: [android-beginners] ERROR:- no such table: TABLE: , while compiling: SELECT _id, network, url FROM TABLE
Where is the code for the select statement? Is it the fetchAll() method? -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 1:37 PM, Rodney Lendore rodney.lend...@gmail.comwrote: Hi, I have followed the instructions from this site to the letter http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-2/ but to no avail. Each time I run the code suggested, the Eclipse debugger keep throwing the following error no such table: TABLE: , while compiling: SELECT _id, network, url FROM TABLE. I created the database using SQLite Browser and ran the emulator's shell and can see that the database was there. Here is the code that I am implementing to manage the database: package com.rodney.IET_Events_Widget; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; import android.database.sqlite.SQLiteOpenHelper; public class DataBaseHelper extends SQLiteOpenHelper { //The Android's default system path of your application database. private static String DB_PATH = /data/data/com.rodney.IET_Events_Widget/databases/; private static final String DB_NAME = local_network_db; private static final String DB_TABLE = local_network; public static final String KEY_NETWORK = network; public static final String KEY_URL = url; public static final String KEY_ROWID = _id; private SQLiteDatabase myDataBase; private final Context myContext; /** * Constructor * Takes and keeps a reference of the passed context in order to access to the application assets and resources. * @param context */ public DataBaseHelper(Context context) { super(context, DB_NAME, null, 1); this.myContext = context; } /** * Creates a empty database on the system and rewrites it with your own database. * */ public void createDataBase() throws SQLException{ boolean dbExist = checkDataBase(); if(dbExist){ //do nothing - database already exist }else{ //By calling this method and empty database will be created into the default system path //of your application so we are gonna be able to overwrite that database with our database. this.getReadableDatabase(); try { copyDataBase(); } catch (IOException e) { throw new Error(Error copying database); } } } /** * Check if the database already exist to avoid re-copying the file each time you open the application. * @return true if it exists, false if it doesn't */ private boolean checkDataBase(){ SQLiteDatabase checkDB = null; try{ String myPath = DB_PATH + DB_NAME; checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY); }catch(SQLiteException e){ //database does't exist yet. } if(checkDB != null){ checkDB.close(); } return checkDB != null ? true : false; } /** * Copies your database from your local assets-folder to the just created empty database in the * system folder, from where it can be accessed and handled. * This is done by transferring bytestream. * */ private void copyDataBase() throws IOException{ //Open your local db as the input stream InputStream myInput = myContext.getAssets().open(DB_NAME); // Path to the just created empty db String outFileName = DB_PATH + DB_NAME; //Open the empty db as the output stream OutputStream myOutput = new FileOutputStream(outFileName); //transfer bytes from the inputfile to the outputfile byte[] buffer = new byte[1024]; int length; while ((length = myInput.read(buffer))0){ myOutput.write(buffer, 0, length); } //Close the streams myOutput.flush(); myOutput.close(); myInput.close(); } public void openDataBase() throws SQLException{ //Open the database String myPath = DB_PATH + DB_NAME; myDataBase = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY); } @Override public synchronized void close() { if(myDataBase != null) myDataBase.close();
[android-beginners] Info-Based: Indian Rupee finally gets its symbol
*Indian Rupee finally gets its symbol* NDTV Correspondent, 15 July, 2010 [image: Original] Finally, the Rupee will have a symbol like the Dollar ($) or the Euro (€) or the Pound (£). The Cabinet today finalised the design for the Rupee. IIT post-graduate Uday kumar's entry has been selected out of five shortlisted designs as the new symbol for the Indian Rupee. The government had organised a symbol design competition with a prize money of Rs 2.5 lakh. Five designs were shortlisted from a competition and all new notes will bear the design finally approved. The growing influence of the Indian economy in the global space is said to have prompted this move that will result in the Indian rupee joining the select club of global currencies like the US dollar, the British Pound, European Euro and Japanese Yen that have unique symbols. The abbreviation for the Indian Rupee, 'Re' or 'Rs' is used by India's neighbours Pakistan, Nepal and Sri Lanka. -- 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 attachment: image001.jpg
[android-beginners] Re: Eclipse: Easy way to refactor/rename package?
Do you have Rename under File? I'm pretty sure it's the same function. Just highlight the project to rename that, the package to rename that. On Jul 19, 1:50 pm, Nick Richardson richardson.n...@gmail.com wrote: Xavier, I had read about that option while searching around... but i do not have that option under Android Tools. I've checked for updates of the plugin through Eclipse and it appears that i am running the latest version (Android Development Tools 0.9.7.v201005071157-36220). Is there a newer version than this? If so, Eclipse doesn't want to grab it fromhttps://dl-ssl.google.com/android/eclipse/. Is it possible that the rename option is not available on a Mac? (I doubt it). Is there a specific version of ADT that i need in order to have this option show up? The options i have available under Android Tools are: * New Test Project * New Resource File * Export Signed Application Package * Export Unsigned Application Package * Fix Project Properties On Mon, Jul 19, 2010 at 11:12 AM, Xavier Ducrohet x...@android.com wrote: - Right click project - Choose Android Tools Rename application package This will go and change everything that needs changing. Now, for your specific case of having 2 versions of your app, I recommend splitting your project in a common library and 2 applications projects. See here for more details: http://developer.android.com/guide/developing/eclipse-adt.html#librar... On Mon, Jul 19, 2010 at 10:55 AM, Nick Richardson richardson.n...@gmail.com wrote: Thanks for the replies, I did use the refactor option to rename the package and the project, but then there were a few updates that were needed in the manifest, and one other place i can't remember now. I was simply wondering if there was an automated way to make all these changes at once using the ADT plugin, or if i was going to have to do this manually every time i have an update to my app. //Nick On Sun, Jul 18, 2010 at 10:47 AM, Mark H. Nichols code.pr...@gmail.com wrote: On Jul 18, 2010, at 3:41 AM, Nick Richardson wrote: Hopefully simple question: I would like to create a second copy of my app and release it as a free version. I have copied my project to a new one in eclipse, but now i would like to rename the project and package to upload to the market. Is there an easy way using ADT or otherwise that will do this for me? I found a few posts online with reference to right clicking the project and selecting Rename from Android Tools, but i do not have that option. If there's not an automated way, what are the steps i need to be sure to take to insure that everything is renamed correctly before i upload? If you are using Eclipse, you can use the Refactor tool to do what you want. Right-click on the project to be renamed, select Refactor from the object menu, and then rename from there. Mark -- 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 -- //Nick Richardson //richardson.n...@gmail.com -- 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 -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- 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 -- //Nick Richardson //richardson.n...@gmail.com -- 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
[android-beginners] Getting the content view of an Activity
After I call setContentView( resID ) in an activity, is there a way to get the View object associated with the content? -- 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] Info-Based: Indian Rupee finally gets its symbol
Wow... this has what to do with Android? -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 3:05 PM, gaurav bajpai grv.baj...@gmail.com wrote: *Indian Rupee finally gets its symbol* NDTV Correspondent, 15 July, 2010 [image: Original] Finally, the Rupee will have a symbol like the Dollar ($) or the Euro (€) or the Pound (£). The Cabinet today finalised the design for the Rupee. IIT post-graduate Uday kumar's entry has been selected out of five shortlisted designs as the new symbol for the Indian Rupee. The government had organised a symbol design competition with a prize money of Rs 2.5 lakh. Five designs were shortlisted from a competition and all new notes will bear the design finally approved. The growing influence of the Indian economy in the global space is said to have prompted this move that will result in the Indian rupee joining the select club of global currencies like the US dollar, the British Pound, European Euro and Japanese Yen that have unique symbols. The abbreviation for the Indian Rupee, 'Re' or 'Rs' is used by India's neighbours Pakistan, Nepal and Sri Lanka. -- 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
Re: [android-beginners] Getting the content view of an Activity
findViewById() -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 3:15 PM, Bret Foreman bret.fore...@gmail.comwrote: After I call setContentView( resID ) in an activity, is there a way to get the View object associated with the content? -- 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
Re: [android-beginners] ERROR:- no such table: TABLE: , while compiling: SELECT _id, network, url FROM TABLE
Hi Justin, Thanks for the quick reply yes it is in the fetchall() definition. I hardcoded it find the table I wanted to query local_network. Sorry for any confusion. On Mon, Jul 19, 2010 at 9:29 PM, Justin Anderson janderson@gmail.comwrote: Where is the code for the select statement? Is it the fetchAll() method? -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 1:37 PM, Rodney Lendore rodney.lend...@gmail.comwrote: Hi, I have followed the instructions from this site to the letter http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-2/ but to no avail. Each time I run the code suggested, the Eclipse debugger keep throwing the following error no such table: TABLE: , while compiling: SELECT _id, network, url FROM TABLE. I created the database using SQLite Browser and ran the emulator's shell and can see that the database was there. Here is the code that I am implementing to manage the database: package com.rodney.IET_Events_Widget; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; import android.database.sqlite.SQLiteOpenHelper; public class DataBaseHelper extends SQLiteOpenHelper { //The Android's default system path of your application database. private static String DB_PATH = /data/data/com.rodney.IET_Events_Widget/databases/; private static final String DB_NAME = local_network_db; private static final String DB_TABLE = local_network; public static final String KEY_NETWORK = network; public static final String KEY_URL = url; public static final String KEY_ROWID = _id; private SQLiteDatabase myDataBase; private final Context myContext; /** * Constructor * Takes and keeps a reference of the passed context in order to access to the application assets and resources. * @param context */ public DataBaseHelper(Context context) { super(context, DB_NAME, null, 1); this.myContext = context; } /** * Creates a empty database on the system and rewrites it with your own database. * */ public void createDataBase() throws SQLException{ boolean dbExist = checkDataBase(); if(dbExist){ //do nothing - database already exist }else{ //By calling this method and empty database will be created into the default system path //of your application so we are gonna be able to overwrite that database with our database. this.getReadableDatabase(); try { copyDataBase(); } catch (IOException e) { throw new Error(Error copying database); } } } /** * Check if the database already exist to avoid re-copying the file each time you open the application. * @return true if it exists, false if it doesn't */ private boolean checkDataBase(){ SQLiteDatabase checkDB = null; try{ String myPath = DB_PATH + DB_NAME; checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY); }catch(SQLiteException e){ //database does't exist yet. } if(checkDB != null){ checkDB.close(); } return checkDB != null ? true : false; } /** * Copies your database from your local assets-folder to the just created empty database in the * system folder, from where it can be accessed and handled. * This is done by transferring bytestream. * */ private void copyDataBase() throws IOException{ //Open your local db as the input stream InputStream myInput = myContext.getAssets().open(DB_NAME); // Path to the just created empty db String outFileName = DB_PATH + DB_NAME; //Open the empty db as the output stream OutputStream myOutput = new FileOutputStream(outFileName); //transfer bytes from the inputfile to the outputfile byte[] buffer = new byte[1024]; int length; while ((length = myInput.read(buffer))0){ myOutput.write(buffer, 0, length); } //Close the streams myOutput.flush(); myOutput.close(); myInput.close(); } public void openDataBase() throws SQLException{ //Open the database String myPath
Re: [android-beginners] Re: Eclipse: Easy way to refactor/rename package?
it's not the same function. The custom rename will update the manifest to make sure the activities, services, etc... are properly defined based on the new name. It's also going to update XML files that reference the package name (such as namespaces for custom attributes for custom views), etc... I have, however, spoken too soon. The feature didn't make it in ADT 0.9.7, but it'll be in the next ADT update. Xav On Mon, Jul 19, 2010 at 2:06 PM, DanH danhi...@ieee.org wrote: Do you have Rename under File? I'm pretty sure it's the same function. Just highlight the project to rename that, the package to rename that. On Jul 19, 1:50 pm, Nick Richardson richardson.n...@gmail.com wrote: Xavier, I had read about that option while searching around... but i do not have that option under Android Tools. I've checked for updates of the plugin through Eclipse and it appears that i am running the latest version (Android Development Tools 0.9.7.v201005071157-36220). Is there a newer version than this? If so, Eclipse doesn't want to grab it fromhttps://dl-ssl.google.com/android/eclipse/. Is it possible that the rename option is not available on a Mac? (I doubt it). Is there a specific version of ADT that i need in order to have this option show up? The options i have available under Android Tools are: * New Test Project * New Resource File * Export Signed Application Package * Export Unsigned Application Package * Fix Project Properties On Mon, Jul 19, 2010 at 11:12 AM, Xavier Ducrohet x...@android.com wrote: - Right click project - Choose Android Tools Rename application package This will go and change everything that needs changing. Now, for your specific case of having 2 versions of your app, I recommend splitting your project in a common library and 2 applications projects. See here for more details: http://developer.android.com/guide/developing/eclipse-adt.html#librar... On Mon, Jul 19, 2010 at 10:55 AM, Nick Richardson richardson.n...@gmail.com wrote: Thanks for the replies, I did use the refactor option to rename the package and the project, but then there were a few updates that were needed in the manifest, and one other place i can't remember now. I was simply wondering if there was an automated way to make all these changes at once using the ADT plugin, or if i was going to have to do this manually every time i have an update to my app. //Nick On Sun, Jul 18, 2010 at 10:47 AM, Mark H. Nichols code.pr...@gmail.com wrote: On Jul 18, 2010, at 3:41 AM, Nick Richardson wrote: Hopefully simple question: I would like to create a second copy of my app and release it as a free version. I have copied my project to a new one in eclipse, but now i would like to rename the project and package to upload to the market. Is there an easy way using ADT or otherwise that will do this for me? I found a few posts online with reference to right clicking the project and selecting Rename from Android Tools, but i do not have that option. If there's not an automated way, what are the steps i need to be sure to take to insure that everything is renamed correctly before i upload? If you are using Eclipse, you can use the Refactor tool to do what you want. Right-click on the project to be renamed, select Refactor from the object menu, and then rename from there. Mark -- 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 -- //Nick Richardson //richardson.n...@gmail.com -- 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 -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- 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
Re: [android-beginners] ERROR:- no such table: TABLE: , while compiling: SELECT _id, network, url FROM TABLE
And before you were using TABLE? If that is the case, you defined DB_TABLE but not TABLE. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 3:35 PM, Rodney Lendore rodney.lend...@gmail.comwrote: Hi Justin, Thanks for the quick reply yes it is in the fetchall() definition. I hardcoded it find the table I wanted to query local_network. Sorry for any confusion. On Mon, Jul 19, 2010 at 9:29 PM, Justin Anderson janderson@gmail.comwrote: Where is the code for the select statement? Is it the fetchAll() method? -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 1:37 PM, Rodney Lendore rodney.lend...@gmail.com wrote: Hi, I have followed the instructions from this site to the letter http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-2/ but to no avail. Each time I run the code suggested, the Eclipse debugger keep throwing the following error no such table: TABLE: , while compiling: SELECT _id, network, url FROM TABLE. I created the database using SQLite Browser and ran the emulator's shell and can see that the database was there. Here is the code that I am implementing to manage the database: package com.rodney.IET_Events_Widget; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; import android.database.sqlite.SQLiteOpenHelper; public class DataBaseHelper extends SQLiteOpenHelper { //The Android's default system path of your application database. private static String DB_PATH = /data/data/com.rodney.IET_Events_Widget/databases/; private static final String DB_NAME = local_network_db; private static final String DB_TABLE = local_network; public static final String KEY_NETWORK = network; public static final String KEY_URL = url; public static final String KEY_ROWID = _id; private SQLiteDatabase myDataBase; private final Context myContext; /** * Constructor * Takes and keeps a reference of the passed context in order to access to the application assets and resources. * @param context */ public DataBaseHelper(Context context) { super(context, DB_NAME, null, 1); this.myContext = context; } /** * Creates a empty database on the system and rewrites it with your own database. * */ public void createDataBase() throws SQLException{ boolean dbExist = checkDataBase(); if(dbExist){ //do nothing - database already exist }else{ //By calling this method and empty database will be created into the default system path //of your application so we are gonna be able to overwrite that database with our database. this.getReadableDatabase(); try { copyDataBase(); } catch (IOException e) { throw new Error(Error copying database); } } } /** * Check if the database already exist to avoid re-copying the file each time you open the application. * @return true if it exists, false if it doesn't */ private boolean checkDataBase(){ SQLiteDatabase checkDB = null; try{ String myPath = DB_PATH + DB_NAME; checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY); }catch(SQLiteException e){ //database does't exist yet. } if(checkDB != null){ checkDB.close(); } return checkDB != null ? true : false; } /** * Copies your database from your local assets-folder to the just created empty database in the * system folder, from where it can be accessed and handled. * This is done by transferring bytestream. * */ private void copyDataBase() throws IOException{ //Open your local db as the input stream InputStream myInput = myContext.getAssets().open(DB_NAME); // Path to the just created empty db String outFileName = DB_PATH + DB_NAME; //Open the empty db as the output stream OutputStream myOutput = new FileOutputStream(outFileName); //transfer bytes from the
[android-beginners] Re: Getting the content view of an Activity
Didn't work: setContentView(R.layout.main); View myView = findViewById( R.layout.main ); myView comes back null. The R.layout.main resource works fine in the Activity, by the way. -- 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] Re: Notification.FLAG_NO_CLEAR not working as expected
Just bumping this topic. I still haven't figured out how to make this work. Does anyone know of an example? -- 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] Real-time audio processing
I have been reading through various discussions and it seems like real- time audio processing on Android has some minimum latency. I am about to develop an app that is as simple as recording and playing back simultaneously. My question is it possible to do it on an Android platform. I have Nexus One for the testing. Any clues as to if it will be possible with a latency of say 10ms? -- 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: Getting the content view of an Activity
You need to specify an id in that method... and you need to set an id in your xml layout. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 3:51 PM, Bret Foreman bret.fore...@gmail.comwrote: Didn't work: setContentView(R.layout.main); View myView = findViewById( R.layout.main ); myView comes back null. The R.layout.main resource works fine in the Activity, by the way. -- 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
Re: [android-beginners] Re: Getting the content view of an Activity
As an example: RelativeLayout ... android:id=@+id/my_relative_layout_id ... / Then you would use setContentView(R.id.my_relative_layout_id); Hope that helps... Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 5:06 PM, Justin Anderson janderson@gmail.comwrote: You need to specify an id in that method... and you need to set an id in your xml layout. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 3:51 PM, Bret Foreman bret.fore...@gmail.comwrote: Didn't work: setContentView(R.layout.main); View myView = findViewById( R.layout.main ); myView comes back null. The R.layout.main resource works fine in the Activity, by the way. -- 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
Re: [android-beginners] Re: Notification.FLAG_NO_CLEAR not working as expected
I'm going to look at my code when I get a chance... But I don't have it on me at work. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 4:04 PM, Bret Foreman bret.fore...@gmail.comwrote: Just bumping this topic. I still haven't figured out how to make this work. Does anyone know of an example? -- 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
Re: [android-beginners] Re: Getting the content view of an Activity
Edit: NOT setContentView() The code would be: findViewById(R.id.my_relative_layout_id); Sorry about that... Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 5:07 PM, Justin Anderson janderson@gmail.comwrote: As an example: RelativeLayout ... android:id=@+id/my_relative_layout_id ... / Then you would use setContentView(R.id.my_relative_layout_id); Hope that helps... Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 5:06 PM, Justin Anderson janderson@gmail.comwrote: You need to specify an id in that method... and you need to set an id in your xml layout. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 3:51 PM, Bret Foreman bret.fore...@gmail.comwrote: Didn't work: setContentView(R.layout.main); View myView = findViewById( R.layout.main ); myView comes back null. The R.layout.main resource works fine in the Activity, by the way. -- 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] Re: stubborn error wont go away
Yeah, the ability to define a class inline like that is a very powerful feature of Java, but it can be very confusing since the {} and () get nested so deeply and get so distantly separated. On Jul 19, 1:31 pm, Justin Anderson janderson@gmail.com wrote: Your call to setOnClickListener is missing a closing parentheses... which is why you get the error telling you to insert one. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 12:18 PM, martinmike2 martinmi...@gmail.com wrote: I should probably give some info background here. The code is listening for a button click to call a private function searched(String sTERM). Im just starting app development and learning java at the same time. not sure what im doing wrong. -- 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] Crashing/hanging problem with recent JDK/JRE update on Windows
I hope it is appropriate for me to post the following: Crashing/hanging problem with recent JDK/JRE update on Windows http://www.eclipse.org/forums/index.php?t=msgth=171988start=0; If that has already been posted here, then I apologize for the duplication, but it appears to be worth mentioning here. -- Sam Hobbs Los Angeles, CA -- 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] Consuming an ASP.NET Webservice
Hi, I'm trying to build an Android application which consumes an ASP.NET Webservice. In the future I plan to send audio files between the two. So far I've been experimenting with a simple application which sends a parameter to a simple webservice which is supposed to store the value in a database, but with no success. When debugging the webservice I saw that it received the following soap request: - v:Envelope xmlns:i=http://www.w3.org/2001/XMLSchema-instance; xmlns:d=http://www.w3.org/2001/XMLSchema; xmlns:c=http:// schemas.xmlsoap.org/soap/encoding/ xmlns:v=http:// schemas.xmlsoap.org/soap/envelope/ v:Header / v:Body UpdateTest2 xmlns=http:///WebWithWcf/; id=o0 c:root=1 id i:type=d:int19/id /UpdateTest2 /v:Body /v:Envelope - When continuing to debug I noticed that the webservice successfully recognized the Webmethod (UpdateTest2) but failed to pass on the parameter (19). The Android application uses the ksoap2 library. Here is the code: - package test.Client1; import android.app.Activity; import android.os.Bundle; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapPrimitive; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.AndroidHttpTransport; public class Client1 extends Activity { private static final String NAMESPACE = http:///WebWithWcf/; ; private static final String URL = http://192.168.2.100/WebWithWcf/ WebService1.asmx; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); String soapAction = http://localhost/WebWithWcf/ UpdateTest2; String methodName = UpdateTest2; Object soapIn = new Object(); SoapObject request = new SoapObject(NAMESPACE, methodName); request.addProperty(id,19 ); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(request); AndroidHttpTransport aht = new AndroidHttpTransport(URL); try { aht.call(soapAction, envelope); SoapPrimitive resultString = (SoapPrimitive)envelope.getResponse(); } catch(Exception e) { e.printStackTrace(); } } } - Any ideas? Thanx -- 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: Emulating the mobiles camera
currently android emulator not support for camera. therefore you can not emulate application related to camera. But there are some alternative way to achieve that. Dont whether they are working or not. Try following links, http://www.inter-fuser.com/2009/09/live-camera-preview-in-android-emulator.html http://www.tomgibara.com/android/camera-source On Tue, Jul 13, 2010 at 1:01 PM, madcabbage madcabb...@gmail.com wrote: Not sure how well it works, but when you create a new AVD there's an option to add a camera from the Hardware section. On Jul 13, 1:30 am, Emmen Farooq farooq.em...@gmail.com wrote: Hi again , I am using android emulator for developing , and do not have an android based phone , but my app requires the following things it allows the user to take a picture from the phones camera Now my questions is that how do I handle that in an emulator , or in other words , how do i know if my app is doing this correctly or emulating this correctly the second requirement is that the user is able to select a picture from his phone's memory to set as his profile pic in the app , now how do I emulate that ? more clearly how should I store and access my images so that it is similar to accessing images from a mobile phones memory ?? thanks a million -- 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 -- Thanks Regards, Thisara. -- 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] Re: Real-time audio processing
Why have you chosen 10ms? (just out of curiousity). If you record at 44khz, you are grabbing 44 samps per ms, or 440 samps in 10ms. I dont think you can record from the mic higher than 16khz on an ADP2/Google Ion at least. The audio routines have a 'minimum buffer size' that you should probably use. Here's an experiment you can try to determine minimum acceptable latency... have a buddy walk 30 or 40 feet away from you. Have him talk to you from this distance. Watch his lips. The delay is 1ms per foot. Is there a noticable loss of sync between lips and ears? If not, this proves that 30 or 40ms is acceptable. I have noticed that the 300ms delay across a stadium at a concert is nuts. You see the drummer hit a rimshot, but you dont hear the Whack! for 300ms. Crazy. -- 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] Re: Getting the content view of an Activity
That worked. Thanks. -- 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] GPS satellite icon
When I install a GPS update listener with LocationManager.requestLocationUpdates with the period set to 600 seconds (600,000 milliseconds), the little GPS satellite icon comes on and stays on until I call LocationManager.removeUpdates. Is the GPS receiver really turned on full time when there's an update listener installed even if it only needs an update every 10 minutes? If so, that defeats the purpose of requestLocationUpdates and I might as well use a Timer to install and remove a listener every 10 minutes when I need a location fix. Or if the icon is just a chimera, how do I prevent it from turning on and giving the user the impression my app is sucking GPS power all the time? -- 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: stubborn error wont go away
* Yeah, the ability to define a class inline like that is a very powerful feature of Java, but it can be very confusing since the {} and () get nested so deeply and get so distantly separated. * Personally, I tend to avoid inline classes for that very reason... -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 5:17 PM, DanH danhi...@ieee.org wrote: Yeah, the ability to define a class inline like that is a very powerful feature of Java, but it can be very confusing since the {} and () get nested so deeply and get so distantly separated. On Jul 19, 1:31 pm, Justin Anderson janderson@gmail.com wrote: Your call to setOnClickListener is missing a closing parentheses... which is why you get the error telling you to insert one. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Jul 19, 2010 at 12:18 PM, martinmike2 martinmi...@gmail.com wrote: I should probably give some info background here. The code is listening for a button click to call a private function searched(String sTERM). Im just starting app development and learning java at the same time. not sure what im doing wrong. -- 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 android-beginners%2bunsubscr...@googlegroups.comandroid-beginners%252bunsubscr...@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 -- 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] Communicate with device connected to USB port
Hi, I need to communicate with a device connected to the Android USB port. Is there any documentation / sample apps. Any suggestions as where to start would be appreciated. Thanks -- 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] How to Access voice call stream in real time
I know it is possible to catch the voice stream of a call and edit it in real time because of the existence of call spoofing applications on android phones. I need to know how i can access the real time stream of a voice call that i may edit it and then send the edited voice stream through the modem. Any help would be greatly appreciated. -- 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