[android-beginners] Eclipse: Easy way to refactor/rename package?

2010-07-18 Thread Nick Richardson
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

Re: [android-beginners] Re: Including libraries in project

2010-07-18 Thread Mark Murphy
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

[android-beginners] Re: Eclipse: Easy way to refactor/rename package?

2010-07-18 Thread DanH
File - Rename? You might have to do it twice -- once on the project and once on the package. On Jul 18, 3:41 am, Nick Richardson richardson.n...@gmail.com 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

[android-beginners] Re: Eclipse: Easy way to refactor/rename package?

2010-07-18 Thread DanH
As for steps to insure everything is renamed correctly, that would be a clean, build, and thorough test -- what you should be doing anyway, of course. On Jul 18, 3:41 am, Nick Richardson richardson.n...@gmail.com wrote: Hopefully simple question: I would like to create a second copy of my app

[android-beginners] How to attach a video to an email...???

2010-07-18 Thread Victoria
Hi everyone, I am working on a Video App, where you can click on a video from the sdcard. This click event opens a menu (I used a options menu) that provides the user with different sharing options, e.g. email, bluetooth etc. This part works fine so far... What I am now trying to do is, when the

[android-beginners] Re: Database handling - when do you open and close

2010-07-18 Thread Bender
I want to get rid of the error which is telling me that there is a leak in my app because my db gets opened twice. The db doesn't need to be open the whole time but it is accessed quite often so I don't think it would be very performant to open and close it for every access. On 16 Jul., 09:10,

Re: [android-beginners] Eclipse: Easy way to refactor/rename package?

2010-07-18 Thread Mark H. Nichols
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

[android-beginners] Re: Including libraries in project

2010-07-18 Thread kypriakos
Hey Mark, good points as always - 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

Re: [android-beginners] SQL and SQLite

2010-07-18 Thread Sam Hobbs
SQLite http://en.wikipedia.org/wiki/Sqlite SQL http://en.wikipedia.org/wiki/Sql Raul Martinez wrote: Are SQL and SQLite the same thing? If not what's the difference -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and

Re: [android-beginners] Java Keyword This and Button Listeners.

2010-07-18 Thread Sam Hobbs
I am new to Java, but since Justin says that the this reference is essentially the same as in C++ and C# I hope my comments are helpful. I think one point that was not made clear is that the operating system (Android, Linux or whatever) is not written in Java but if it was written in Java it

[android-beginners] Re: Database handling - when do you open and close

2010-07-18 Thread brucko
Bender, put your db in a local Service. Open the db in onCreate() close it in onDestroy(). Your Activities can bind and unbind to the Service as many times as you like. The system will keep the service running as long as you have an activity in the foreground process bound to it or otherwise

[android-beginners] Re: Java Keyword This and Button Listeners.

2010-07-18 Thread DanH
Well, that's not exactly it. The pointer is needed in setOnClickListener to distinguish that specific instance of the listener class from the thousand other possible instances in the machine. You'll find the analogous pointer in C++ based systems, eg. And note that it need not be this. One

Re: [android-beginners] Re: Including libraries in project

2010-07-18 Thread Mark Murphy
On Sun, Jul 18, 2010 at 4:52 PM, kypriakos demet...@ece.neu.edu wrote: Step #1: Put the JAR in libs/ I did Step #2: If using Eclipse, add it to your build path I did Step #3: Code to the JAR's API and build your APK I did Even for the case of the jars that are Android-friendly they don't

Re: [android-beginners] Re: Java Keyword This and Button Listeners.

2010-07-18 Thread Sam Hobbs
Except the original question is about this and why it works to use it as an argument. My comments explain why the this is missing when an event handler is called. I apologize that I don't know what the Java term is that corresponds with the C++ term static, but in C++ the this pointer is the

[android-beginners] Don't know how to show Video Thumbnails

2010-07-18 Thread Victoria
Hi, I have been trying to display thumbnails of videos that I have stored on the SD card of the emulator. On stackflow someone posted the following code to a similar question of somebody else: int id = **The Video's ID** ImageView iv = (ImageView ) convertView.findViewById(R.id.imagePreview);

[android-beginners] Re: Java Keyword This and Button Listeners.

2010-07-18 Thread DanH
I apologize that I don't know what the Java term is that corresponds with the C++ term static The Java term is static. Both setOnClickListener and the listener's method onClick are instance methods, not static ones. The argument to setOnClickListener is the reference of (pointer to) the object

[android-beginners] list

2010-07-18 Thread Raul Martinez
i have a list with several items, when i click on one of the items i want it to start another activity but i want it to show the name of the previous item clicked with an image and a description of the item, how would i go with doing that -- You received this message because you are subscribed

[android-beginners] using intent to switch between a simple activity and a tab activity

2010-07-18 Thread Emmen Farooq
Kindly help me with the following scenario , I have activity A that is tab acitvity , I press a certain button and go to B that is a simple activity , now on clicking a certain button on B I should be allowed to go back to A but the app crashes , how ever if i go from B to a normal activity ,it

Re: [android-beginners] using intent to switch between a simple activity and a tab activity

2010-07-18 Thread Mark Murphy
On Sun, Jul 18, 2010 at 10:22 PM, Emmen Farooq farooq.em...@gmail.com wrote: Kindly help me with the following scenario , I have activity A that is tab acitvity ,  I press a certain button and go to B that is a simple activity , now on clicking a certain button on B I should be allowed to go

Re: [android-beginners] using intent to switch between a simple activity and a tab activity

2010-07-18 Thread Emmen Farooq
you mean the tab thing should be a problem ? On Mon, Jul 19, 2010 at 7:24 AM, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jul 18, 2010 at 10:22 PM, Emmen Farooq farooq.em...@gmail.com wrote: Kindly help me with the following scenario , I have activity A that is tab acitvity ,  I press

Re: [android-beginners] using intent to switch between a simple activity and a tab activity

2010-07-18 Thread Emmen Farooq
and im facing teh same problem for intenting between tab activities On Mon, Jul 19, 2010 at 7:43 AM, Emmen Farooq farooq.em...@gmail.com wrote: you mean the tab thing should be a problem ? On Mon, Jul 19, 2010 at 7:24 AM, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jul 18, 2010 at

Re: [android-beginners] using intent to switch between a simple activity and a tab activity

2010-07-18 Thread Emmen Farooq
07-19 07:37:05.706: ERROR/AndroidRuntime(198): at android.view.View.performClick(View.java:2344) 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at android.view.View.onTouchEvent(View.java:4133) 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at

Re: [android-beginners] using intent to switch between a simple activity and a tab activity

2010-07-18 Thread Justin Anderson
Look for the words caused by in this message... It will tell you the problem. In this case it is a NullPointerException. -- There are only 10 types of people in the world... Those who know binary and those who don't.