[android-beginners] Brisbane HTC Dream Test Run App

2009-07-02 Thread MMC2
Is there anyone in Brisbane Australia who has a HTC Dream Android phone and would allow me to test my Apps on it please? I am nearly finished two apps and I will soon need to give them a test run on a real phone before I place them on the market. --~--~-~--~~~---~--~--

[android-beginners] client server communication between two computers

2009-07-02 Thread sumit
hello all , can any body give me full code of client server communication which capable to communicate between two computers in diff emulator like M1 is first machine(PC) on that E1 (emulator) is running with server and on other M2 machine(PC) on that client running on E2 (emulator) .i wa

[android-beginners] Re: Getting images to appear in the Gallery

2009-07-02 Thread Jack Ha
If your photo data is a Bitmap, you can use the following code segment to insert the photo and it should appear in the Gallery. String uriString = MediaStore.Images.Media.insertImage(getContentResolver(), photo_bitmap, "title", "description"); Uri uri = Uri.parse(uriS

[android-beginners] Re: CheckBox enabled/disabled reality check

2009-07-02 Thread Jack Ha
setEnabled(false) works fine for CheckBox. What version of SDK are you using? Can you post your code here? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do

[android-beginners] Getting images to appear in the Gallery

2009-07-02 Thread Jonathan Daugherty
Hi all, I'm working on a program that acquires camera captures and I'd like them to appear in the Gallery. I'm storing them on the SD card alongside pictures stored by the native camera application and I've verified with "adb shell" that the images are physically present, but when I open the Gal

[android-beginners] Re: Displaying Web Content Using Java Android Application

2009-07-02 Thread Personality
Thank you. That is quite helpful. It is not very specific- but I think it can be adapted to my needs. Cheers. On Thu, Jul 2, 2009 at 6:46 PM, Mehdi Achour wrote: > Hello, > > Check the Panoramio application : > http://code.google.com/p/apps-for-android/source/browse/trunk/Panoramio/ > > Bests, >

[android-beginners] CheckBox enabled/disabled reality check

2009-07-02 Thread Beth Mezias
Hello, I want to switch a button out of my UI in favor of a CheckBox object. However, the enable = false parameter in my layout does not seem to have any effect on a CheckBox! My plan is to code the CheckBox to be enabled when certain other objects are valid. With a button object, the grayness a

[android-beginners] Re: Exception while calling setAdapter on Spinner

2009-07-02 Thread Jean-Sebastien Stoezel
Hum... It looks like it generated an exception because the spinner I was trying to display was not in the current view displayed. Thanks for your help Mark. Jean On 2-Jul-09, at 7:27 PM, Mark Murphy wrote: > > Jean-Sebastien Stoezel wrote: >> Logcat does not show an >> exception... Am I sup

[android-beginners] Re: Need help selecting ringtones from a Spinner

2009-07-02 Thread iPaul Pro
The easiest way I know how to do this involves extending PreferenceActivity to load preferences from a xml file by calling addPreferencesFromResource(R.xml.preferences); The preferences.xml entry should be something like: Then in your activity, to access the data: Uri uri = String.valueOf (an

[android-beginners] Re: Exception while calling setAdapter on Spinner

2009-07-02 Thread Mark Murphy
Jean-Sebastien Stoezel wrote: > Logcat does not show an > exception... Am I suppose to enable the logging of exceptions? No, but if you have breakpoints or something going in Eclipse, they can interfere with logcat getting the stack trace. Try letting it run to the force-close dialog and see if t

[android-beginners] Re: Exception while calling setAdapter on Spinner

2009-07-02 Thread Jean-Sebastien Stoezel
Thanks for the quick reply. Switching to lower case did not fix the issue. Logcat does not show an exception... Am I suppose to enable the logging of exceptions? The debugger window shows: Thread[<3> main] (Suspended (exception RuntimeException)) ZygoteInit$MethodAndArgsCaller.run() line:

[android-beginners] Re: Exception while calling setAdapter on Spinner

2009-07-02 Thread Jean-Sebastien Stoezel
Thanks for the quick reply. Switching to lower case did not fix the issue. Logcat does not show an exception... Am I suppose to enable the logging of exceptions? The debugger window shows: Thread[<3> main] (Suspended (exception RuntimeException)) ZygoteInit$MethodAndArgsCaller.run() line: 788

[android-beginners] Re: Exception while calling setAdapter on Spinner

2009-07-02 Thread Mark Murphy
jstoezel wrote: > Hi, > > I'm getting a runtime exception when calling the last line of the > following code: > > Spinner s = (Spinner) findViewById(R.id.samplingTimeSpinner); > ArrayAdapter adapter = ArrayAdapter.createFromResource(this, > R.array.samplingRate, android.R.layout.simple_spinner_i

[android-beginners] Re: Open source or not

2009-07-02 Thread Andrew Burgess
Technically yes, but by making it open source, you're saying you want people to do that so that they can also help improve the system. Less technically capable users would probably end up purchasing the app from the market since they don't possess the know-how to install it from source. You can als

[android-beginners] Exception while calling setAdapter on Spinner

2009-07-02 Thread jstoezel
Hi, I'm getting a runtime exception when calling the last line of the following code: Spinner s = (Spinner) findViewById(R.id.samplingTimeSpinner); ArrayAdapter adapter = ArrayAdapter.createFromResource(this, R.array.samplingRate, android.R.layout.simple_spinner_item); adapter.setDropDownViewRes

[android-beginners] Re: Hello world help

2009-07-02 Thread Roman
I assume that your application is not successfully installed. You can verify with DDMS FileExplorer whether your application is correctly installed. It should be in folder /data/app. Have you already tried to use the adb install command instead of Eclipse install? That's what you should see when

[android-beginners] Re: Loading Acitvity

2009-07-02 Thread Victor Pantoja
I really have a purpose for this :) I decided to use some threads, what solves the problem. While the app connects to a database and make some initial transactions, users see some adds! 2009/7/2 schwiz > > from a user standpoint that sounds really annoying and people are > going to hate your ap

[android-beginners] Re: Loading Acitvity

2009-07-02 Thread schwiz
from a user standpoint that sounds really annoying and people are going to hate your app, although it is a neat idea. On Jul 1, 1:01 pm, Victor Pantoja wrote: > Hi > > I'm trying to create an activity whose purpose is to show some > advertisements for a while and then go to another activity, whi

[android-beginners] Shortcuts

2009-07-02 Thread Danesh Mondegarian
Hey how would yo make ur program go directly to somewhere in the system lets say settings/applications/manage applications ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this g

[android-beginners] Problems with android.graphics.camera

2009-07-02 Thread zoerb
I'm trying to use the android.graphics.camera package to do a 3d rotation (about the y-axis) of a playing card on a canvas. Here is the code that does the transformation: camera.save(); camera.rotateY(rotate); rotate += .5f; camera.getMatrix(m); camera.restore(); m.pre

[android-beginners] Re: Help needed in error!!

2009-07-02 Thread Mark Murphy
randheersingh wrote: > Hi, I am just trying to run the relative example given in the sample > code of Google documentation of android. Its just ran. But when I > added the background property of relative layout an error is coming. I > am giving the code of XML file here and the error. Please tell

[android-beginners] Equivalent of Custom JAD property in Android?

2009-07-02 Thread Chris N
Hello, I'm trying to figure out if there is an equivalent feature as the custom JAD property in J2ME. Basically, I would like to pass arguments/ properties to an Application that are not hard-coded in the apk file. The Preferences storage seems like the place to store these properties. But I don'

[android-beginners] adb is not detecting my new android phone

2009-07-02 Thread N3vik
Hi I have two G1 phone's, the first one got wet and no longer gets a signal so I had to buy another :( My problem is adb does not detect my new phone :( It can detect my old phone ok, but not the new one. Running "adb devices" with my old phone connected shows my old phone, but with my new pho

[android-beginners] Need help selecting ringtones from a Spinner

2009-07-02 Thread John Reese
Hi all, I apologize if this has been covered somewhere already, but after looking through all the SDK documentation, searching google (and the Android groups), and fruitless requests on #android, I'm stuck asking for help on this list. In my application, I'm sending notifications to the user, an

[android-beginners] ImageView object - How to display image dynamically?

2009-07-02 Thread Meng Meng
Hi, I am trying to use ImageView object and dynamically display the image based on what was returned from the selected item. However this code is not working. It is not able to change the default image to image cabA in the ImageView object when cab_str equal to CabA. Can anyone advise me on how I

[android-beginners] Open source or not

2009-07-02 Thread twistadias
Me and a few of my mates from uni want to start on building and selling some android apps. The problem is one of us is really keen to make the whole thing open source. If we do go ahead and make it open, wont anyone be able to download the source and run it on their phone instead of purchasing it

[android-beginners] Cache

2009-07-02 Thread Danesh Mondegarian
hey how would u implement CLEAR_APP_CACHE into a program so it clears the cache. ? --~--~-~--~~~---~--~~ 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

[android-beginners] Flurry Mobile Application Analytics - Industry Pulse, June 2009

2009-07-02 Thread Peter Farago
Hi everyone, Sharing some android app usage stats with you that we've rolled up from our analytics service. We've just published our monthly Pulse for June. In particular, I think it has great stats on Android vs. iPhone application usage and retention, among other things that you may find inte

[android-beginners] Slideshow with fading in pictures

2009-07-02 Thread Robi
Hey folks, I'm doing Android since 3 weeks and I really like it, everything was fine but now I really need help. I do a simple slideshow app, I got my pictures in an array (not really array but that doesn't matter now), and I'd like to use transition effect to slide in the next picture. OK, so

[android-beginners] OnItemClickListener not working with Custom ListAdapter

2009-07-02 Thread Hidayath
Hi all, I have... public class SomeAdapter extends BaseAdapter{ ... } In an Activity(not ListActivity), I have a ListView ListView myListView = (ListView) findViewById(R.id.list); myListView.setAdapter(new SomAdapter(...)); myListView.setOnItemClickListener(new OnItemClickListener(){ public voi

[android-beginners] Can we use gcc for compilation in emulator

2009-07-02 Thread ani
Which all compilers are supported in emulator?Actualy i have created native library in .c file and created .so file using gcc and when i am trying to load this .so file in my java file i am getting "unable to load .so not found library problem"(i have placed .so file in system/ lib using push comm

[android-beginners] Help needed in error!!

2009-07-02 Thread randheersingh
Hi, I am just trying to run the relative example given in the sample code of Google documentation of android. Its just ran. But when I added the background property of relative layout an error is coming. I am giving the code of XML file here and the error. Please tell me what this error wants to t

[android-beginners] Re: creating an avd

2009-07-02 Thread zoerb
You can actually use the Android Virtual Device Manager from Eclipse if you have the android plugin installed. Just go to Window -> Android AVD Manager. Or, click on the icon that looks like a phone in the toolbar. From there you can create AVD's. On Jun 30, 3:56 pm, Paul Turchenko wrote: > W

[android-beginners] Re: G1 Disability Accessibility

2009-07-02 Thread Vytautas Vaitukaitis
Check out the talk of these two guys at Google I/O 2009: http://code.google.com/intl/lt/events/io/sessions/LookingBeyondScreenTextSpeechAndroid.html It discusses what's being done with TTS and eyes-free interaction on Android. Vytautas On 26 Bir, 21:58, mrgushi wrote: > Need Help I have poor

[android-beginners] Hello world help

2009-07-02 Thread Sonic
Hi, new to Android development, I have sucessfully installed java sdk, eclipse, android sdk etc and all environment variables in XP. Although, when I come to deploy my hello world app either onto a device or emulator all as i get is the following message saying that it has been sucessfully install

[android-beginners] DialerFilter

2009-07-02 Thread BRitchie
Hello all, I am trying to play around with the DialerFilter layout. But I keep getting an "IllegalStateException", it is complaining of an EditText child not being named "hint". This is the layout code I am using, any suggestions would be welcome. http://schemas.android.com/apk/res/ android"

[android-beginners] Re: how to create AndroidManifest.xml

2009-07-02 Thread Kenny
http://schemas.android.com/apk/res/android"; package="com.example" android:versionCode="1" android:versionName="1.0"> Use this as a base: Please note that you're going to have to chan

[android-beginners] Loading Acitvity

2009-07-02 Thread Victor Pantoja
Hi I'm trying to create an activity whose purpose is to show some advertisements for a while and then go to another activity, which is a simple menu. The menu activity is already done. What about de first one? Have you guys developed something like that before? It's a kind of "loading" activity.

[android-beginners] Re: creating an avd

2009-07-02 Thread ain
Well i discovered what the issue was that prevent eclipse from creating the workspace folders and android SDK from creating the avd. well all these folders were under C:\Documents and Settings\Sam\ and apparently I did not have permission to change anything in the folders, i could create folders b

[android-beginners] Re: Activity / Screen rotation relationship

2009-07-02 Thread Jack Ha
When you switch from portrait to landscape mode or vice-versa, your activity's onDestroy() and onCreate() will be called. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual cap

[android-beginners] Re: more experimenting, new view

2009-07-02 Thread Michael Dorin
Mark, Thank you for the tip. I got WebViewDemo going...but not being content as to why that works and why mine didn't I dug a bit more. If anybody is interested...I changed the layout (see below for original) "wrap_contents" to "fill_parent", as was done in the WevViewDemo. That works. If any

[android-beginners] Re: Displaying Web Content Using Java Android Application

2009-07-02 Thread Mehdi Achour
Hello, Check the Panoramio application : http://code.google.com/p/apps-for-android/source/browse/trunk/Panoramio/ Bests, Mehdi On Thu, Jul 2, 2009 at 6:39 PM, Persona wrote: > > Can someone help? I have looked at this problem and most solutions use > servlets, etc. Can someone show me a strai

[android-beginners] Re: XML Layout Language

2009-07-02 Thread Romain Guy
The closest thing to a DTD is the following: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/res/res/values/attrs.xml;h=bcd12388157843f6022294a92548d3b2b87a4d13;hb=master On Thu, Jul 2, 2009 at 8:35 AM, Mark Murphy wrote: > >> I'm still confused by the XML Layout synta

[android-beginners] Displaying Web Content Using Java Android Application

2009-07-02 Thread Persona
Can someone help? I have looked at this problem and most solutions use servlets, etc. Can someone show me a straightforward way using Java and XML? What I want to learn is how the web content is called, how the connection is handled, and how the content is displayed. Thanks. --~--~-~--~--

[android-beginners] Re: XML Layout Language

2009-07-02 Thread Mark Murphy
> I'm still confused by the XML Layout syntax/semantics. I've asked > before but never got a good response. > > Does anyone know where the specification for the XML Layout exists? There is no specification per se. Each widget documents its attributes as part of its Javadocs. However, since you c

[android-beginners] XML Layout Language

2009-07-02 Thread Mitch
I'm still confused by the XML Layout syntax/semantics. I've asked before but never got a good response. Does anyone know where the specification for the XML Layout exists? I'd like some simple examples, but not like the ones on the android site. They are too dismissive of the specifics of each

[android-beginners] Re: How to test Sipdroid using an emulator?

2009-07-02 Thread Andrew Burgess
Eclipse can debug an Android project on both an emulator and device. You can't though for an APK, but for a source project, that comes with the plugin On Sat, Jun 27, 2009 at 10:11 PM, Tony Su wrote: > I'm interested in this as well... > > At least with my experience with Visual Studio, normall

[android-beginners] Re: SDK USB driver for Vista SP1 won't install - Solution?

2009-07-02 Thread schwiz
worked fine for me, although i was using 64 bit. go into device manager with your phone connected select the phone and say install driver. Then find your driver in the sdk folder. On Jul 2, 8:32 am, Wayne Wenthin wrote: > This may help. > > http://code.google.com/p/android/issues/detail?id=267

[android-beginners] Activity / Screen rotation relationship

2009-07-02 Thread csyperski
I have a very simple app activity within an app where there is a single Buttton and an Edit Text used for a user to enter a pin code. Here is my issue, everything works great if the app is kept in portrait mode, but if the screen is rotated to landscape mode it seems like another instance of the a

[android-beginners] Re: How to test Sipdroid using an emulator?

2009-07-02 Thread Personality
Thank you for that response. That worked perfectly. It was my ignorance of how Eclipse works that was a problem. 2009/6/28 Jack Ha > > Assuming you've already downloaded the SipDroid source (not apk). > >http://code.google.com/p/sipdroid/source/checkout > > In Eclipse, > >1. Select the

[android-beginners] Re: more experimenting, new view

2009-07-02 Thread Mark Murphy
> Yes, built in browser works fine. > Did I mess up the manifest? (See below) Not in an obvious way. I'm a lousy code reviewer, though. I would try to find some complete code that works and start from there. "Hello, WebView" is nice, but without actual files implementing the answer, it is diffic

[android-beginners] Re: SDK USB driver for Vista SP1 won't install - Solution?

2009-07-02 Thread Wayne Wenthin
This may help. http://code.google.com/p/android/issues/detail?id=2676 On Tue, Jun 30, 2009 at 7:16 AM, Gabriel wrote: > > I am running Vista 32 downloaded sdk 1.5r2 with a t-mo g1 with 1.5. > > I am unable to get adb to see my device. > I am unable to get the microCRAP drivers to stop reinstal

[android-beginners] Re: more experimenting, new view

2009-07-02 Thread Michael Dorin
Yes, built in browser works fine. Did I mess up the manifest? (See below) -Mike http://schemas.android.com/apk/res/android"; package="com.example.hellowebview" android:versionCode="1" android:versionName="1.0">

[android-beginners] Re: more experimenting, new view

2009-07-02 Thread Mark Murphy
> Redid everything from scratch. Still a blank, dark dark screen. > (Except for the hello, Webview on the top) > I would really appreciate any ideas. Does the built-in Browser application work? If not, your emulator probably is having networking woe. -- Mark Murphy (a Commons Guy) http://comm

[android-beginners] Re: more experimenting, new view

2009-07-02 Thread Michael Dorin
Redid everything from scratch. Still a blank, dark dark screen. (Except for the hello, Webview on the top) I would really appreciate any ideas. Code is below. Thank you. -Mike package com.example.hellowebview; import android.app.Activity; import android.os.Bundle; import android.webkit.WebView

Re: Fwd: [android-beginners] Alarm Manager

2009-07-02 Thread Veroland
Thanks, I saw in the documentation that it was not used but tried to set the request code to my alarm's corresponding db entity's id and it looks like its working. I only tried that this morning for the first time. Thanks for the help On Jul 2, 8:42 am, Beth wrote: > I hit this issue hard and f

[android-beginners] Re: How to install and run applications from within another application?

2009-07-02 Thread David Turner
On Wed, Jul 1, 2009 at 6:22 PM, calleandersson wrote: > > Is there somehow possible to simulate that an application has system > rights in the Emulator? > No, and very intentionally. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-beginners] Re: How to install and run applications from within another application?

2009-07-02 Thread calleandersson
I have been testing with the 'file://' prefix and got the following results: When saving an .apk file in the private directory of my application and trying to invoke the system installation UI, an parse error occured due to permission issues: 07-02 07:15:27.826: WARN/zipro(726): Unable to open

[android-beginners] Re: creating an avd

2009-07-02 Thread David Turner
The command tries to create the file C:\Documents and Settings\Sam\.android\avd\helloIan.ini which contains the AVD's configuration. The error reported is a bit strange but could be implied by the fact that the directory .android or .android\avd could not be created in your HOME directory (which sh

[android-beginners] Re: Is the emulator good enough for production?

2009-07-02 Thread David Turner
You should definitely try to test on a real device before that. The emulator will never give you more than an approximate experience with regards to physical user experience (e.g. touch screen, track ball, keyboard, etc...) On Thu, Jul 2, 2009 at 6:41 AM, ayush wrote: > > a few more thoughts in

[android-beginners] Re: Hello World - Can't 'run' android applications in Eclipse

2009-07-02 Thread d3ngar
It's all good thanks for the reply though... It turns out I was doing everything correctly, but it just takes ages for the Android virtual machine to start up... Also, sometimes the virtual machine doesn't start up properly and I have to re-run the application. Thanks, Chris On Jul 1, 2:48 am,

[android-beginners] Keypad issue

2009-07-02 Thread Chitra
Hi All, I am facing problem with the soft keypad. Initially I booted Android in portrait mode in which the keys appeared to be crammed and not working properly, so I switch to landscape mode, now the keypad works but the keys appear to be misplaced slightly. The letter Q does not work at all. H