[android-beginners] Not able to locate any database on Emulator
Hi all, I am not able to locate any database on Emulator through the shell. I have tried with the Notepad application. The application is working very properly and creating notes, but I can't see the application's table and database from the shell. # sqlite3 data/data/com.android.demo.notepad2/databases/data.db SQLite version 3.5.9 Enter ".help" for instructions sqlite> .tables This fetched me nothing. I even tried # sqlite3 data/data/com.google.android.providers.contacts/databases/contacts.db SQLite version 3.5.9 Enter ".help" for instructions sqlite> .tables But without success. I would really appreciate if someone can provide any idea about this. Thanks in advance, Vaibhav --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: View.SetBackgroundColor(int color) simple question
Thanks all, As I had mentioned, I knew it was possible in XML, I was wondering if it was also possible at runtime. I had forgotten that to tell java that a number is in hex you put 0x before it instead of a #. I got confused with the xml. On Nov 20, 1:14 am, "心蓝" <[EMAIL PROTECTED]> wrote: > You can put the color in xml file or use the Class Color ,like: > Color.blue > > 2008/11/20 Lawrence Samantha <[EMAIL PROTECTED]> > > > > > if you use it on xml, put # in front of it.. for example: > > > android:background > > ="#" > > > Thanks. > > 2008/11/19 Mark Murphy <[EMAIL PROTECTED]> > > >> [EMAIL PROTECTED] wrote: > >> > Is it possible to define one's own colours? > > >> Sure. Use an eight-digit hex value in the form of AARRGGBB (AA = > >> two-hex-digit alpha channel). So, for example, 0xFF00FF00 is solid > >> green, if my cold-fogged brain isn't screwing this up... > > >> -- > >> Mark Murphy (a Commons Guy) > >>http://commonsware.com > > >> Android Training on the Ranch! -- Mar 16-20, 2009 > >>http://www.bignerdranch.com/schedule.shtml > > -- > Welcome to my site about GPhone:http://51gphone.cn > I am a GFans!!欢迎你来到我的GPhone网站!!http://51gphone.cn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to let image scaled to appropriate size.
Hi Brian, I am glad that you have solved your problem. With regards to your question about how weight works: The weight property only has an effect if the view is trying to "fill_parent" in a dimension with some other view. Since you have your mysterious weight=300 as a property of a view that is only set to fill_parent horizontally, it will only try to split the space it has with views to the sides of it. If you change the tag to: you should notice that the image gets 90% of the screen space (vertically) regardless of the phone's orientation. Why setting the weight to 300 when the height is set to wrap_content is still a mystery to me though. I hope this helps to your future understanding of weight! @Mark: I am not sure where you got the idea that weight was no longer used. Gravity is very different to weight, affecting where views are positioned within their layouts, as well as how text is justified. On Nov 19, 11:06 pm, Brian Hsu <[EMAIL PROTECTED]> wrote: > Thanks for all of your help. > > I found that I have some misunderstanding about android:layout_weight. > I don't know why, but it seems conflict with the explation in > Tutorial: Notepad Exercise 2. > > [Quote] > If the first one has a layout_weight of 1 and the second has a > layout_weight of 2, then one third of the remaining space will be > given to the first, and two thirds to the second (because we claim the > second one is more important). > [/Quote] > > In the fact, It takes larger screen space when the I assign a smaller > value. > > So, this is the XML code doing what I said before. > > [XML] > > > http://schemas.android.com/apk/res/ > android" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:orientation="vertical"> > >android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_weight="300" > android:orientation="horizontal"> > android:layout_height="fill_parent" >android:layout_weight="1" >android:adjustViewBounds="true" >android:src="@drawable/maid" /> > >android:layout_height="fill_parent" > android:layout_weight="2" > android:orientation="vertical"> > > android:layout_height="fill_parent" > android:layout_weight="1" > android:text="Dialer" /> > > android:layout_height="fill_parent" > android:layout_weight="1" > android:text="Contacts" /> > > android:layout_height="fill_parent" > android:layout_weight="1" > android:text="Applications" /> > > > > >android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_weight="1" > android:orientation="vertical"> > >android:layout_height="wrap_content" > android:text="Welcome to Android Phone." /> > >android:layout_height="wrap_content" > android:text="Meow..." /> > > > > [/XML] > > It works fine on both landscape of device except that I don't know why > I have to assign a very large value of android:layout_weight in the > LinearLayout with id actionArea, or the second TextView(Meow...) will > missing when the device placed horizontally. > > Here is some screenshot. > > android:layout_weight="300" works on both. > > http://picasaweb.google.com.tw/brianhsu.hsu/CsRjrD#5270503013613342114http://picasaweb.google.com.tw/brianhsu.hsu/CsRjrD#5270503071347922322 > > android:layout_weight="1" works only when the device is vertically > placed. > > http://picasaweb.google.com.tw/brianhsu.hsu/CsRjrD#5270503128655340514http://picasaweb.google.com.tw/brianhsu.hsu/CsRjrD#5270503194578579346 > > Finally, after I think about it more carefully, I found that since I'm > using TextView as a message area, a better way might be assign a fixed > height for it. > > Because this will ensuere that there is always a sufficient space to > put the text on the screen no matter what device configuration used by > the user. > > So, there is the final version of my UI XML code and screenshot, and > it works perfectly for me. > > http://picasaweb.google.com.tw/brianhsu.hsu/CsRjrD#5270507459983968850http://picasaweb.google.com.tw/brianhsu.hsu/CsRjrD#5270507516842311266 > > [XML] > http://schemas.android.com/apk/res/ > android" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:orientation="vertical"> > >android:layout_height="wrap_content" >
[android-beginners] Re: OnClick Listener problems...please HELP!
Have you looked in the logcat at the exception text? On Nov 20, 1:14 am, "Lawrence Samantha" <[EMAIL PROTECTED]> wrote: > how about putting a try catch block and run it on debug... see where it > fails. > > 2008/11/18 Light052 <[EMAIL PROTECTED]> > > > > > > > Hi All, > > > Am very new to the Android platform as a developer and have been > > struggling with some issues, one of which is: > > > I have a number of screens in my application (activities). Now, the > > main splash screen has a button which, upon being clicked moves on to > > the main menu (Activity no. 2). That works well. The second page has a > > number of buttons too. It seems though that I'm not able to implement > > Listeners for any of the buttons in the second page. It throws an > > Exception yet the exception does not have any message ( I tried > > printing it by a Toast, as a form of debugging, and it just flashed a > > blank screen) > > > Please, please, please HELP! I have such a tight deadline and have > > much left to be done > > > Thank you all in Advance... > > > Hussein > > -- > Lawrence Samantha --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Not able to locate any database on Emulator
Vaibhav Gathibandhe wrote: > Hi all, > > I am not able to locate any database on Emulator through the shell. > > I have tried with the Notepad application. The application is working > very properly and creating notes, but I can't see the application's > table and database from the shell. > > # sqlite3 data/data/com.android.demo.notepad2/databases/data.db IIRC, the database files do not have the .db extension. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Disappearing Dialer
Is it possible to keep the dialer visible during an entire phone call? An example would be when I was on a automated service call. You know the situation: Press 1 for this Wait Press 2 for that Wait some more During the wait time the screen shuts down and locks so then I have to hit menu twice and sometimes I have to bring the dialer up again. During the wait I may miss my window to enter the number to proceed through the process. Any setting I could change to fix this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Disable the screen lock?
Is there a way to disable the screen lock while the phone is closed and in the vertical position? Maybe an option I could uncheck that I can't find? Thanks for any help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Progress Bar before an Activity
Hi, I have a requirement where when I click a menu option, I invoke a new activity. This new activity takes a little long time to display. So I want a progress bar for this while. Which is the best way to accomplish this? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: About the screen width and height???
int w = getWindowManager().getDefaultDisplay().getWidth(); int h = getWindowManager().getDefaultDisplay().getHeight(); Unfortunately, I have no answer to your second question; I don't understand the question. ;) Dennis On 20 Nov., 08:00, SinFrancis <[EMAIL PROTECTED]> wrote: > I wanna konw the screen width and height when app run ? > how can i do? > > and if the touchpad move ?? which way can get the moved > distance ? > Thanks? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] problem with selcting a item from list
hey all..i m having problem with selecting a item from a listonListItemClic() is not catching this eventis there any other call back function for this? -- Jayesh M. Jethva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: why my GPS always unavailable?
What sort of phone do you have jesse? -Original Message- From: android-beginners@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jesse Cai Sent: Wednesday, November 19, 2008 10:27 PM To: Android Beginners Subject: [android-beginners] why my GPS always unavailable? i try to use GPS Tracker, but it says my GPS always unavailable, i turned on gps in settings. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Importing Jars
In eclipse: right click -> Build path -> Configure Build Path Add jars to "libraries" tab (I think you've already done this) Click tab "Order and Export" and check all the jars that you want to export into the compiled apk file... Then they'll be accessible in the application when you run in emulator or device. If building with ant, make sure your jars are in a folder called "libs" in the project file and they'll be automatically picked up and bundled into the apk. Adam. 2008/11/19 jeremy Kalinowksi <[EMAIL PROTECTED]> > They are on the java build path but it seems that in the emulator they are > unaccessible. > > On Wed, Nov 19, 2008 at 3:12 AM, 心蓝 <[EMAIL PROTECTED]> wrote: > >> I just wanna get the answer!! >> >> 2008/11/19 Dennis Wilmsmann <[EMAIL PROTECTED]> >> >> >>> Are the JAR files shown under "Referenced Libraries" in eclipse and >>> included inside the Java Build Path of your project? >>> >>> Dennis >>> >>> On 18 Nov., 18:48, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >>> > Hey all, >>> > I wanted to know how to bring in external Jars into the Android >>> > Application? The issue I'm having is that I have imported all the Jars >>> > that I want however when I run my program it doesn't seem to be able >>> > to access them. Any ideas? >>> > Sincerely, >>> > Jeremy >>> >>> >>> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] How can i control the monkey tool by any scripting language
Hi, I need to do stress- testing of my application for that I am running the monkey tool which generate the random hits and touch. I want to program the monkey by any scripting language. Please help if it supported in Android. Regards Usman DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: OnClick Listener problems...please HELP!
do you change the parameter in setContentView() in onCreate. for example, first activity is setContentView(R.layout.bluetooth_main); and second is setContentView(R.layout.bluetooth_editmydevice); in second activity code onCreate @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.bluetooth_editmydevice); editTextDeviceName = (EditText)findViewById(R.id.EditTextDeviceName); editTextDeviceAddress = (EditText)findViewById(R.id.EditTextDeviceAddress); editTextDeviceProfile = (EditText)findViewById(R.id.EditTextDeviceProfile); radioGroupDeviceDiscoverable = (RadioGroup)findViewById(R.id.RadioGroupSetDiscoverable); saveButton = (Button)findViewById(R.id.ButtonSave); saveButton.setOnClickListener(btnSaveOnClick); ... } private OnClickListener btnSaveOnClick = new OnClickListener() { public void onClick(View v) { . } } pls try. On Thu, Nov 20, 2008 at 9:14 AM, Lawrence Samantha <[EMAIL PROTECTED]>wrote: > how about putting a try catch block and run it on debug... see where it > fails. > > 2008/11/18 Light052 <[EMAIL PROTECTED]> > >> >> Hi All, >> >> Am very new to the Android platform as a developer and have been >> struggling with some issues, one of which is: >> >> I have a number of screens in my application (activities). Now, the >> main splash screen has a button which, upon being clicked moves on to >> the main menu (Activity no. 2). That works well. The second page has a >> number of buttons too. It seems though that I'm not able to implement >> Listeners for any of the buttons in the second page. It throws an >> Exception yet the exception does not have any message ( I tried >> printing it by a Toast, as a form of debugging, and it just flashed a >> blank screen) >> >> Please, please, please HELP! I have such a tight deadline and have >> much left to be done >> >> Thank you all in Advance... >> >> >> Hussein >> >> >> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] new raw folder cannot be found by aapt tool
I am trying to use a wav file for my test application in the Eclipse IDE. I created a raw folder under res, then imported the sound file into it. My code: MediaPlayer mp = MediaPlayer.create(Test_Class.this, R.raw.largeSound); The 'R.raw' is reported as an error, "R.raw cannot be resolved" So the application/IDE can't find the raw folder, but the raw folder is included in the project under the 'res' folder. The R.java file doesn't reflect the raw folders presence, so is there something I have to do to 'let it know' I've added the folder to the project? I've deleted the raw folder, and tried to add it again, but still to no avail. :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] posibility of self-acting sms/ mms an phone calls
Hello everyone. Is there a chance for sending sms/ mms and calling a number automatic and without users authentication. In the AndroidManifest.xml the applications request the permissions like CALL_PHONE and SEND_SMS, but the developer can set this permissions by himself. Don't the application need a verification or authentification from the user? As I understand it is possible to create an easy application (i.e a notepad) and in background the application sends a sms or calls an expensive phone number without the users affirmation? Is this right or am i wrong? best regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] developing on DEC Alpha with FreeBSD
Is it possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: posibility of self-acting sms/ mms an phone calls
My understanding is that when the user first installs the software, they are prompted to 'allow' the permissions that are requested. So given the 'notepad' application that you have mentioned - if you were a user who had downloaded it, and you were prompted to allow access to both phone and messaging, you'd be suspicious. This is not to say that applications that you WOULD expect to use the dialer etc. can't do unexpected things with the permissions, but that is where trust and respect come into play. On Nov 20, 11:51 am, Mak <[EMAIL PROTECTED]> wrote: > Hello everyone. > Is there a chance for sending sms/ mms and calling a number automatic > and without users authentication. > In the AndroidManifest.xml the applications request the permissions > like CALL_PHONE and SEND_SMS, > but the developer can set this permissions by himself. Don't the > application need a verification or authentification from the user? > As I understand it is possible to create an easy application (i.e a > notepad) and in background the application sends a sms or calls an > expensive phone number without the users affirmation? > Is this right or am i wrong? > > best regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Importing Jars
I do use Eclipse for development. I have imported them into project and I references them using "Add jars" in the Java Build Path menu for the project Preferences. I "import" as usual in my Java files. Everything checks out in the java file, no errors. Thanks for helping. Sincerely, Jeremy 2008/11/19 Lawrence Samantha <[EMAIL PROTECTED]> > Are you developing using eclipse? If they are inaccesible, it shouldn't > build. How do you reference it? > > 2008/11/19 jeremy Kalinowksi <[EMAIL PROTECTED]> > >> They are on the java build path but it seems that in the emulator they are >> unaccessible. >> >> >> On Wed, Nov 19, 2008 at 3:12 AM, 心蓝 <[EMAIL PROTECTED]> wrote: >> >>> I just wanna get the answer!! >>> >>> 2008/11/19 Dennis Wilmsmann <[EMAIL PROTECTED]> >>> >>> Are the JAR files shown under "Referenced Libraries" in eclipse and included inside the Java Build Path of your project? Dennis On 18 Nov., 18:48, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hey all, > I wanted to know how to bring in external Jars into the Android > Application? The issue I'm having is that I have imported all the Jars > that I want however when I run my program it doesn't seem to be able > to access them. Any ideas? > Sincerely, > Jeremy >> >> >> > > > -- > Lawrence Samantha > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Importing Jars
Did you try this ? In eclipse: right click -> Build path -> Configure Build Path Add jars to "libraries" tab (I think you've already done this) Click tab *"Order and Export"* and check all the jars that you want to export into the compiled apk file... Then they'll be accessible in the application when you run in emulator or device. 2008/11/20 jeremy Kalinowksi <[EMAIL PROTECTED]> > I do use Eclipse for development. I have imported them into project and I > references them using "Add jars" in the Java Build Path menu for the project > Preferences. I "import" as usual in my Java files. Everything checks out in > the java file, no errors. Thanks for helping. > Sincerely, > Jeremy > > 2008/11/19 Lawrence Samantha <[EMAIL PROTECTED]> > > Are you developing using eclipse? If they are inaccesible, it shouldn't >> build. How do you reference it? >> >> 2008/11/19 jeremy Kalinowksi <[EMAIL PROTECTED]> >> >>> They are on the java build path but it seems that in the emulator they >>> are unaccessible. >>> >>> >>> On Wed, Nov 19, 2008 at 3:12 AM, 心蓝 <[EMAIL PROTECTED]> wrote: >>> I just wanna get the answer!! 2008/11/19 Dennis Wilmsmann <[EMAIL PROTECTED]> > Are the JAR files shown under "Referenced Libraries" in eclipse and > included inside the Java Build Path of your project? > > Dennis > > On 18 Nov., 18:48, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > Hey all, > > I wanted to know how to bring in external Jars into the Android > > Application? The issue I'm having is that I have imported all the > Jars > > that I want however when I run my program it doesn't seem to be able > > to access them. Any ideas? > > Sincerely, > > Jeremy > > > >>> >>> >>> >> >> >> -- >> Lawrence Samantha >> >> >> >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Importing Jars
Yes I have tried this and it doesn't seem to work. 2008/11/20 Adam Connors <[EMAIL PROTECTED]> > Did you try this ? > > In eclipse: right click -> Build path -> Configure Build Path > > Add jars to "libraries" tab (I think you've already done this) > > Click tab *"Order and Export"* and check all the jars that you want to > export into the compiled apk file... Then they'll be accessible in the > application when you run in emulator or device. > > 2008/11/20 jeremy Kalinowksi <[EMAIL PROTECTED]> > > I do use Eclipse for development. I have imported them into project and I >> references them using "Add jars" in the Java Build Path menu for the project >> Preferences. I "import" as usual in my Java files. Everything checks out in >> the java file, no errors. Thanks for helping. >> Sincerely, >> Jeremy >> >> 2008/11/19 Lawrence Samantha <[EMAIL PROTECTED]> >> >> Are you developing using eclipse? If they are inaccesible, it shouldn't >>> build. How do you reference it? >>> >>> 2008/11/19 jeremy Kalinowksi <[EMAIL PROTECTED]> >>> They are on the java build path but it seems that in the emulator they are unaccessible. On Wed, Nov 19, 2008 at 3:12 AM, 心蓝 <[EMAIL PROTECTED]> wrote: > I just wanna get the answer!! > > 2008/11/19 Dennis Wilmsmann <[EMAIL PROTECTED]> > > >> Are the JAR files shown under "Referenced Libraries" in eclipse and >> included inside the Java Build Path of your project? >> >> Dennis >> >> On 18 Nov., 18:48, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >> > Hey all, >> > I wanted to know how to bring in external Jars into the Android >> > Application? The issue I'm having is that I have imported all the >> Jars >> > that I want however when I run my program it doesn't seem to be able >> > to access them. Any ideas? >> > Sincerely, >> > Jeremy >> >> >> >>> >>> >>> -- >>> Lawrence Samantha >>> >>> >>> >>> >> >> >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] 2D over 3D
Hi I am porting an application based on the sdk 3.0, and I am having countless problems... now, I am struggling trying to put 2D graphics on top of a 3D scene... After a lot of headache, I managed to create a opengl context, which now works, but when I try to put 2D graphics on top of it, this is what happens: public void drawFrame(GL10 gl) { //view is a SurfaceView, and the value is not null ! mySurfaceHolder=view.getSurfaceHolder(); Canvas c=mySurfaceHolder.lockCanvas(); //this is where I wanted to place my 2D drawing, but after the above line, this is //what I got in the Log: //11-20 12:52:02.508: ERROR/SurfaceComposerClient(490): eLocked set when entering lock_layer(), //layer=1 (lcblk=0x410420a0), state=0020 //11-20 12:52:02.598: ERROR/SurfaceHolder(490): Exception locking surface mySurfaceHolder.unlockCanvasAndPost(c); } Any help would be very appreciated Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Why isn't this layout file working?
Hey thanks a lot! Sorry for taking so long, I'm pretty busy with school :-( On Oct 5, 12:10 am, "Zachary Becker" <[EMAIL PROTECTED]> wrote: > You want to use the XML attribute *android:layout_weight="1"* so that the > element will take up as much space as it can. I edited your layout and > posted a working version below. > > > http://schemas.android.com/apk/res/android"; > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > > > > android:layout_width="fill_parent" > android:layout_height="wrap_content" > > > > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Artist" > android:padding="10sp" > /> > android:layout_weight="1" > android:layout_height="wrap_content" > android:layout_marginRight="10sp" > android:singleLine="true" > /> > > > > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Title" > android:padding="10sp" > /> > android:layout_weight="1" > android:layout_height="wrap_content" > android:layout_marginRight="10sp" > android:singleLine="true" > /> > > > > > > On Sat, Oct 4, 2008 at 10:25 AM, Znupi <[EMAIL PROTECTED]> wrote: > > > Here's what I want: two simple input fields, one labeled "Artist" and > > one "Title". Basically: > > Artist [ input ] > > Title [ input ] > > The two input fields (EditTexts) need to be aligned on a vertical > > axis, so that the application looks good. Thus, I used the TableLayout > > View. Unfortunately, it seems I just can't get the table cells to > > expand all the way. So here's how my layout looks like (the | > > represends the margin of the screen): > > Artist [ input ] | > > Title [ input ] | > > But I want the input fields to expand all the way. I could probably do > > it with a fixed width, but I don't think that's a good idea. Here's my > > main.xml file: > > > > > > http://schemas.android.com/apk/res/ > > android" > > android:orientation="vertical" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > > > android:layout_width="fill_parent" > > android:layout_height="wrap_content" > > > > > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:text="@string/artist" > > android:padding="10sp" > > /> > > > android:layout_width="fill_parent" > > android:layout_height="wrap_content" > > android:layout_marginRight="10sp" > > android:singleLine="true" > > /> > > > > > > > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:text="@string/title" > > android:padding="10sp" > > /> > > > android:layout_width="fill_parent" > > android:layout_height="wrap_content" > > android:layout_marginRight="10sp" > > android:singleLine="true" > > /> > > > > > > > > > > > BTW, I know the is not currently needed, but I'll have > > to add some things below the table. > > > Thanks, > > Felix. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://gr
[android-beginners] Re: posibility of self-acting sms/ mms an phone calls
that sounds good. i hope you're right, cause this is a good solution to be sure that the application can't do unexpected things. and you don't have the problem that the user must allow every automatic phone call. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Camer API sample
It's not too hard to get CameraAPITest.zip working. I'm betting it didn't compile for you? I think in the capture call, the method needs another parameter in 1.0, but you can just pass a null. I think that's for shutter effects. On Nov 19, 11:11 pm, elf <[EMAIL PROTECTED]> wrote: > Hi, > Does anyone know where I can get a working example (for 1.0) about > taking a picture using the camera API? I tried the CameraApiTest.zip. > It crashed for some reasons. > > Thanks in advance > Elf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: About the screen width and height???
Thanks for your answer! I'm sorry to express the second question! And the second question like this: if i use the touch to move the screen, how can we get the distance between from and to?? 2008/11/20 Dennis Wilmsmann <[EMAIL PROTECTED]> > > int w = getWindowManager().getDefaultDisplay().getWidth(); > int h = getWindowManager().getDefaultDisplay().getHeight(); > > Unfortunately, I have no answer to your second question; I don't > understand the question. ;) > > Dennis > > On 20 Nov., 08:00, SinFrancis <[EMAIL PROTECTED]> wrote: > > I wanna konw the screen width and height when app run ? > > how can i do? > > > > and if the touchpad move ?? which way can get the moved > > distance ? > > Thanks? > > > -- Welcome to my site about GPhone: http://51gphone.cn I am a GFans!!欢迎你来到我的GPhone网站!!http://51gphone.cn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Not able to locate any database on Emulator
HI Marc, Thanks for the response. Is there any way I can see the database and its table (through the shell) that my application is creating? Thanks and Regards, Vaibhav On Thu, Nov 20, 2008 at 6:41 AM, Mark Murphy <[EMAIL PROTECTED]>wrote: > > Vaibhav Gathibandhe wrote: > > Hi all, > > > > I am not able to locate any database on Emulator through the shell. > > > > I have tried with the Notepad application. The application is working > > very properly and creating notes, but I can't see the application's > > table and database from the shell. > > > > # sqlite3 data/data/com.android.demo.notepad2/databases/data.db > > IIRC, the database files do not have the .db extension. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 1.4 Published! > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Not able to locate any database on Emulator
Vaibhav Gathibandhe wrote: > Is there any way I can see the database and its table (through the > shell) that my application is creating? Your original process was fine. Just don't put the .db extension on the end if the database file doesn't have it. So, you wind up with: sqlite3 data/data/com.android.demo.notepad2/databases/data (assuming that's what it's called in the app) -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Not able to locate any database on Emulator
Thanks Mark. I can see the database and tables now. Regards, Vaibhav On Thu, Nov 20, 2008 at 7:03 PM, Mark Murphy <[EMAIL PROTECTED]>wrote: > > Vaibhav Gathibandhe wrote: > > Is there any way I can see the database and its table (through the > > shell) that my application is creating? > > Your original process was fine. Just don't put the .db extension on the > end if the database file doesn't have it. So, you wind up with: > > sqlite3 data/data/com.android.demo.notepad2/databases/data > > (assuming that's what it's called in the app) > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com > > Android Training on the Ranch! -- Mar 16-20, 2009 > http://www.bignerdranch.com/schedule.shtml > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: why my GPS always unavailable?
My G1 Build number is kila-user 1.0 TC4-RC30 116143 On Thu, Nov 20, 2008 at 12:32 PM, McDaniel, William ABEAN < [EMAIL PROTECTED]> wrote: > > What sort of phone do you have jesse? > > -Original Message- > From: android-beginners@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Jesse Cai > Sent: Wednesday, November 19, 2008 10:27 PM > To: Android Beginners > Subject: [android-beginners] why my GPS always unavailable? > > > i try to use GPS Tracker, but it says my GPS always unavailable, i > turned on gps in settings. > > > > > -- Best Regards, Jesse Cai (蔡望勤) http://P1.cn Email: [EMAIL PROTECTED] Skype: caiwangqin Mobile: +8613811479619 MSN: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: new raw folder cannot be found by aapt tool
Sorry guys, I figured it out... I didn't realize the it was under import->general Thanks anyways! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Where to find pictures from camera and how to read them
I want to load the pictures taken from the camera into a Gallery view and allow the user to select one. I have a couple of questions. 1. Where do I find the pictures? Does the camera store them to a standard location? 2. How do I access the pictures? Is there a content provider, or can I read them from memory? Thanks in advance... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Load onto phone
you could use adb install {ur file name}.apk when the phone is connected to your pc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] will the android ever be compatible with mobiles other than the G1?
iv been wanting android to run on my winmo6 smar phone htc vox s710 since the initial rumors of a gphone i would like to know when the android could be installed a s an os to various mobile phones, with all the hardware compatible nd stuff.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] help
i want to delete some of the preloaded apps such as amazonmp3 etc. help please --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Camer API sample
I tried that. It passed the compilation and can run. (I am using the Eclipse plugin). After I click "space bar", I got "Sorry! The applicaiton com.android.camerapitest (xxx) has stopped unexpectedly. please try again. Forced close" Any clue? Thanks again. Elf On Nov 20, 2:10 pm, mathiastck <[EMAIL PROTECTED]> wrote: > It's not too hard to get CameraAPITest.zip working. I'm betting it > didn't compile for you? I think in the capture call, the method needs > another parameter in 1.0, but you can just pass a null. I think > that's for shutter effects. > > On Nov 19, 11:11 pm, elf <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > Does anyone know where I can get a working example (for 1.0) about > > taking a picture using thecameraAPI? I tried the CameraApiTest.zip. > > It crashed for some reasons. > > > Thanks in advance > > Elf- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] not able to play video files
hi, i am beginner working over android from 3 weeks i want to play video i am tring to play video files(3gp,mp4) from local files or from a url i am not able to get succed getting mediaplayer error(-38,0) (-1,0) can anyone share the code thanx in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---