[android-beginners] Re: HTC Hero

2009-09-29 Thread Chi Kit Leung
They are using same version of Android and even the hardware specifications
are similar identical.
Only it has SenseUI in front end.
I don't think there will be any different between those two phones

On Tue, Sep 29, 2009 at 9:22 AM, Eros Stein eros.st...@gmail.com wrote:

 Thank you all for the infos.

 Best regards.

 On Mon, Sep 28, 2009 at 5:05 PM, Jeffrey Blattman 
 jeffrey.blatt...@gmail.com wrote:

 yes. my understanding is that the motorola cliq is doing something
 similar  ... android, but with an altered front end. it sent a chill down my
 spine. IMHO, these companies should be putting effort into android to
 improve its theme mechanism until it can cover their needs. then we should
 be able to install the hero theme, or the cliq theme on any phone.

 now, maybe motorola / htc would not license use of the theme on other
 phones, but it should be possible technically.




 On 9/28/09 12:40 PM, Jonas Petersson wrote:

 Jeffrey Blattman wrote:


 android apps are write once run anywhere (in theory).


 Technically, yes. However, my experience is that many Hero users expect
 apps to also LOOK like most of the apps that come with their Hero from
 the start and since HTC has significantly altered the lookfeel an app
 that looks normal on the G1/G2 may very well be considered ugly on
 the Hero.

 I've had one Hero user rate one of my apps with a single star just
 because of this (even though he claimed the app did everything he
 expected). Sure, I could dismiss this user as ignorant, but don't we all
 hope that every single noob should own an android? As Hero is the most
 common android around here, I decided to alter the way my app looks.
 Ideally there should be a way to skin all apps the same, but alas it is
 not there yet. Maybe we can hope for 2.0?

  Best / Jonas



 On 9/28/09 12:16 PM, Eros Stein wrote:


 Hi everyone.
 Does anyone know if there are differences between the G2 and Hero.
 Software differences.
 Will the app I wrote for G2 work the same way on a Hero?



 --




 --
 Eros Eduardo Stein
 Técnico de Informática / Em breve analista.
 USE  http://www.ekaaty.org
 http://www.erosstein.info

 



-- 
Regards,
Michael Leung
http://www.itblogs.info
http://www.michaelleung.info

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---

inline: qr-gmail.png

[android-beginners] Re: Problem with ADT plugin in Eclipse Galileo

2009-09-29 Thread Andre Wichmann

Hi,

On Sep 27, 9:11 pm, Stéphane Bruno sbrun...@gmail.com wrote:
 It is as if the ADT plugin and the Google plugins cannot coexist in Eclipse
 

The same is true for the subclipse and subversion plugins - as soon as
either one of them is installed, the ADT plugin stops working, at
least when using Kubuntu Linux. Using Windows, it works.

What operating system are you using?

-Andre

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Golf App for Android

2009-09-29 Thread Maxood

Could someone provide me a link on a good Golf application on android?
I am interested to look at the screenshots and its flow.
Wonder if we are able to find out elevation and/or wind speed through
a device. Is it possible with any of the phones in the market running
on android?
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: android service repaint

2009-09-29 Thread lei

Thanks Mark, this app only has one view, and many custom UI components
which is about to draw on screen. A UI component has properties like
x,y,width,height and so on. The events and actions that are produced
by UI components are placed into event thread. This thread will
response to execute each one sequentially, I call postInvalidate()
after each execution to update screen, but sometimes I just found
postInvalidate() did not paint immediately. I port this app from
JavaME to Android, the serviceRepaint() is called after each repaint
in JavaME, so it can force any pending repaint requests to be serviced
immediately, is there any thing similar for Android or alternative way
to do that?

On Sep 28, 12:56 pm, Mark Murphy mmur...@commonsware.com wrote:
 lei wrote:
  I just found postInvalidate() does not paint the view immediately, is
  there a method like serviceRepaint() in J2ME ?

 Nothing paints anything immediately in Android.

 All GUI events (e.g., setting the text on a TextView) are put on a
 message queue. Those events are only then processed when you return from
 whatever callback you are in and let the UI thread go back to processing
 those events on the queue.

 If you explain a bit more about what effect you are trying to achieve,
 we may be able to give you more guidance.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 _Beginning Android_ from Apress Now Available!
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Playing video in Android not showing the video, playing sound only with a still image

2009-09-29 Thread Mark Murphy

shobhit kasliwal wrote:
 I tried the DemoApi's that come's with the sdk but still no luck.
 I am still getting a still image with audio if I try to run teh Wmv file
 and for 3gp and mp4 I am not getting anything.

WMV is not supported on Android generally. WMV may be supported on
select devices from manufacturers.

 I am not geting what the problem is...??

1. Start with a video file known to work with your sample, or known to
work on Android.

For example:

http://www.law.duke.edu/cspd/contest/finalists/

At least the Documentaries and You video works fine on Android. I have
used it with numerous training classes, with my sample code I linked to
earlier.

2. Check your warnings in logcat to see if anything shows up.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books.html

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Open Source Android Apps

2009-09-29 Thread jbrohan

Hello
It seems to me that along with many people on this list we are often
struggling to do the same things, maybe with just a different twist
here and there. In my case taking pictures, recording comments and
uploading these to a web site. I have found several examples of each
of these and they work more or less well.

Is there a repository where people could work together on say an
Activity to use the camera, or to upload a file to a website. If we
have several people working on these issues in a cooperative fashion
we will make a lot better apps, maybe you will find my mistakes rather
than a user.


--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: HTC Hero

2009-09-29 Thread Shawn Brown

 Will the app I wrote for G2 work the same way on a Hero?

It may.

If you are using bluetooth, it may not.

I am not sure why -- other than to say bluetooth is not finalize as an
api -- but there are differences in the G2 and Hero.  Apps that work
on the G1, and G2 fail under Hero.  This is bluetooth specific though
and again the api is not official.

Shawn

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Should anyone be allowed to alter Android OS and Applications?

2009-09-29 Thread Fugita

Funny this is a topic that deals with something all Developers should
know about.

On Sep 27, 2:53 am, Mark Murphy mmur...@commonsware.com wrote:
 Jeffrey Blattman wrote:
  the big deal is that the license does not grant the right to
  re-distribute. this is pretty standard for a closed source license.

  while it's true that most (all?) android phones come with the google
  apps today, there's no requirement of that and it may not be the case in
  the future. mr. cell phone maker can take AOSP and build their own dist
  and choose not to include the google apps. google doesn't want mr. happy
  phone owners to be able to install a 3rd party dist that includes the
  google apps. why not? because mr. happy vendor didn't license the apps
  from google, and the apps weren't tested on mr. happy vendor's hardware.

 Where Mr. Happy Vendor = Archos, among others.

 @Fugita: This list is for introductory QA on developing with the
 Android SDK. For other topics, please post to the [android-discuss] list:

 http://groups.google.com/group/android-discuss

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 Need help for your Android OSS project?http://wiki.andmob.org/hado
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] problem occurred installing ADT plugin

2009-09-29 Thread phil

i am using Eclipse 3.5 (Galileo) and during installation of the ADT
plugin, I get --

An error occurred while collecting items to be installed
  session context was:(profile=epp.package.java,
phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect,
operand=, action=).
  No repository found containing: osgi.bundle,org.eclipse.ant.ui,
3.4.1.v20090901_r351
  No repository found containing: osgi.bundle,org.eclipse.cvs,
1.0.300.v200909170800
  No repository found containing: osgi.bundle,org.eclipse.jdt,
3.5.1.v200909170800
  No repository found containing: osgi.bundle,org.eclipse.jdt.apt.core,
3.3.201.R35x_v20090818-0235
  No repository found containing:
osgi.bundle,org.eclipse.jdt.apt.pluggable.core,
1.0.201.R35x_v20090818-0225
  No repository found containing:
osgi.bundle,org.eclipse.jdt.compiler.apt,1.0.201.R35x_v20090825-1530
  No repository found containing:
osgi.bundle,org.eclipse.jdt.compiler.tool,1.0.100.v_972_R35x
  No repository found containing: osgi.bundle,org.eclipse.jdt.core,
3.5.1.v_972_R35x
  No repository found containing: osgi.bundle,org.eclipse.jdt.debug.ui,
3.4.1.v20090811_r351
  No repository found containing: osgi.bundle,org.eclipse.jdt.doc.user,
3.5.1.r351_v20090821-0800
  No repository found containing: osgi.bundle,org.eclipse.jdt.junit,
3.5.1.r351_v20090708-0800
  No repository found containing: osgi.bundle,org.eclipse.jdt.ui,
3.5.1.r351_v20090821-0800
  No repository found containing: osgi.bundle,org.eclipse.team.cvs.ui,
3.3.201.R35x_v20090826-0905
  No repository found containing: osgi.bundle,org.eclipse.ui.views.log,
1.0.100.v20090731
  No repository found containing:
osgi.bundle,org.junit4,4.5.0.v20090824
  No repository found containing:
org.eclipse.update.feature,org.eclipse.cvs,
1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16
  No repository found containing: binary,org.eclipse.cvs_root,
1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16
  No repository found containing:
org.eclipse.update.feature,org.eclipse.jdt,
3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ
  No repository found containing: binary,org.eclipse.jdt_root,
3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] conference call

2009-09-29 Thread Nemat

Hi,

is it possible to add an incoming call with current call to make it as
a conference call programmatically?

Thanks in advance
Nemat
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] question: adp1 images on a t-mobile g1?

2009-09-29 Thread Jeffrey Blattman




what is special about the adp1 images that makes them only flashable on
an adp1? that's what htc claims. is it something for subtle, for
example, root access is required? or is there something special about
the adp1's hardware that really prevents it from being installed on a
g1?

i ask because i own an unlocked g1 used with att, and with the
removal of modded android dists, i no longer have an upgrade path.

thanks.

-- 





[android-beginners] Re: real-time audio transfer over Wi-Fi

2009-09-29 Thread Roman ( T-Mobile USA)

Based on your description there are no problems writing such an
application.

My understanding is that your connection is only half-duplex, means
you send the traffic only in one direction. When I mentioned that with
mixing Voip and data traffic in a Wifi network the quality of your
connection could decrease, I wanted to say that in your WLAN there
might be also other systems communicating over Wifi.

Android SDK does not support specifically audio streaming which is
recorded over the mic (there are no APIs for Voip :-( ). You have to
think about the following

+ signaling
+ RTP streaming

For the signaling you can use your own proprietary protocol or an
existing protocol like SIP or XMPP (have a look at SipDroid which uses
MjSIP)

Also SipDroid implements some RTP socket communication which you can
use in your application.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Sep 28, 10:32 pm, kevin j ken...@verizon.net wrote:
 This is helpful. I wouldn't call what I'm doing Voip, though it is
 similar. Without going through the Internet, I want to send audio or
 data to a nearby Wi-Fi enabled PC. I don't need to mix the two,
 because I'm only sending one type at a time. Would the SDK Voip
 services still apply to this situation, ie, will the SDK support this
 type of Voip?

 On Sep 21, 12:39 pm, Roman ( T-Mobile USA) roman.baumgaert...@t-

 mobile.com wrote:
  Android gives you the support to doreal timeaudio (Voip) on SDK
  level.

  As a good example check out the app SipDroid. If you mix Voip traffic
  with data traffic,
  you might get a different audio quality overWifi. The reason is that
  normal data traffic has different traffic characteristics then Voip
  overWifi.

  You will find research papers on this topic which talk about mixing
  different traffic types on aWifinetwork.

  --
  Roman Baumgaertner
  Sr. SW Engineer-OSDC
  ·T· · ·Mobile· stick together
  The views, opinions and statements in this email are those of the
  author solely in their individual capacity, and do not necessarily
  represent those of T-Mobile USA, Inc.

  On Sep 20, 7:14 pm, kevin j ken...@verizon.net wrote:

   I would like to know if the following application is possible given
   the currently available tools and OS services. I want to send audio
   from the microphone inreal-timeover Wi-Fi to a Windows desktop
   application. I also want to send data which represents what screen
   icons have been tapped. I want to receive audio and data the same way
   - using Wi-Fi.

   Sincerely,

   Kevin J- 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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: problem installing a .apk file

2009-09-29 Thread wahib haq

yes exactly i see this error message. what does it mean ???

On 9/29/09, Jack Ha jack...@t-mobile.com wrote:

 Run adb logcat and you should see the error message:

 W/PackageParser(  582): /data/app/vmdl43410.tmp (at Binary XML file
 line #10): provider does not specify android:name

 --
 Jack Ha
 Open Source Development Center
 ・T・ ・ ・Mobile・ stick together
 The coverage you need at the price you want

 The views, opinions and statements in this email are those of
 the author solely in their individual capacity, and do not
 necessarily represent those of T-Mobile USA, Inc.



 On Sep 28, 2:26 pm, wahib wahib.t...@gmail.com wrote:
 hi ! I am a newbie and wanna install a barcode app on emulator. The
 app is moseycode and i have its .apk file. when i run 'adb install
 path' in command prompt this error is displayed ..

 FAILURE [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]

 i dnt know why this error is here !! :S plz help

 Regards,
 wahib
 



-- 
Wahib-ul-haq

Communications Engineering Student,
NUST, Pakistan.
www.sizzlotech.com

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: problem installing a .apk file

2009-09-29 Thread Sean Hodges

It means that there is a content provider specified in the apps
AndroidManifest.xml file that has not been given an android:name
attribute. As described in the docs
(http://developer.android.com/guide/topics/manifest/provider-element.html)
the android:name attribute is mandatory. My guess is that the apk is
built from broken code, and the developer has not noticed yet.

I suggest you contact the developer about your problem, and in the
meantime try the previous release:

http://www.tomgibara.com/android/moseycode/releases/0.2.0/installation




On Tue, Sep 29, 2009 at 6:25 PM, wahib haq wahib.t...@gmail.com wrote:

 yes exactly i see this error message. what does it mean ???

 On 9/29/09, Jack Ha jack...@t-mobile.com wrote:

 Run adb logcat and you should see the error message:

 W/PackageParser(  582): /data/app/vmdl43410.tmp (at Binary XML file
 line #10): provider does not specify android:name

 --
 Jack Ha
 Open Source Development Center
 ・T・ ・ ・Mobile・ stick together
 The coverage you need at the price you want

 The views, opinions and statements in this email are those of
 the author solely in their individual capacity, and do not
 necessarily represent those of T-Mobile USA, Inc.



 On Sep 28, 2:26 pm, wahib wahib.t...@gmail.com wrote:
 hi ! I am a newbie and wanna install a barcode app on emulator. The
 app is moseycode and i have its .apk file. when i run 'adb install
 path' in command prompt this error is displayed ..

 FAILURE [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]

 i dnt know why this error is here !! :S plz help

 Regards,
 wahib
 



 --
 Wahib-ul-haq

 Communications Engineering Student,
 NUST, Pakistan.
 www.sizzlotech.com

 


--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Placing Layouts in a Relative Layout

2009-09-29 Thread Grinarn

Hi folks,

i just started developing Android apps and i got a first question
while designing the screen.

What i want to do is do build a login screen.
So i arranged my Labels and Editfields with a TableLayout in Rows.
Below the fields, i want to place a Login Button and a below that, an
image with a logo.

So my idea was to place a TableLayout into a Relative Layout. so i can
arrange my fields using a TableLayout and the Button and Image with
the Relative Layout, but when i want to place my Button below the
table, it appears in the topright corner.

Here is my approach:
?xml version=1.0 encoding=utf-8?


RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=wrap_content
android:padding=10px 


TableLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:id=@+id/tableLay
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=wrap_content

TableRow android:minHeight=50px
TextView
android:text=@string/login_user
android:paddingRight=20px
android:layout_gravity=center_vertical/
EditText android:id=@+id/user
  android:layout_height=wrap_content
  android:background=@android:drawable/
editbox_background android:layout_width=200sp android:lines=1
android:maxLength=15 android:inputType=text
android:layout_gravity=center_vertical android:focusable=true/

/TableRow
TableRow android:minHeight=50px
TextView
android:text=@string/login_pass
android:paddingRight=20px
android:layout_gravity=center_vertical/
EditText android:id=@+id/password
  android:layout_height=wrap_content
  android:background=@android:drawable/
editbox_background android:layout_width=200sp android:lines=1
android:maxLength=15 android:inputType=textPassword
android:layout_gravity=center_vertical/

/TableRow

TableRow android:minHeight=50px
TextView
android:text=@string/login_licPlate
android:paddingRight=20px
android:layout_gravity=center_vertical/

EditText android:id=@+id/licPlate
  android:layout_height=wrap_content
  android:background=@android:drawable/
editbox_background android:lines=1 android:maxLength=15
android:inputType=text android:layout_gravity=center_vertical
android:layout_width=wrap_content/
/TableRow

/TableLayout

Button android:id=@+id/login
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@id/licPlate
android:layout_alignParentRight=true
android:layout_marginLeft=10px
android:text=Login /


/RelativeLayout

Maybe someone can help me with that.

Regards,
Grinarn

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] AD HOC

2009-09-29 Thread FARAZ

http://hydtech.wordpress.com/2009/09/14/how-to-connect-to-ad-hoc-networks-using-tmobile-g1-android/

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Is LayoutParams activity centric?

2009-09-29 Thread Chris

I am using WindowManager.LayoutParams to set the brightness of my
actvity.  My question is, is this activity centric, app centric or
does this change the current system brightness meaning I need to clean
up the brightness back to what it was in my onPause?

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Get next Alarm

2009-09-29 Thread Mark

Hi there,

Both as an exercise and because I've not yet found a simple app that
does this already, I'm trying to develop a widget that displays the
next alarm set by the standard Alarm Clock application.

I've found that you can get an already formatted String of this time
using:

Settings.System.getString(getContentResolver(),
Settings.System.NEXT_ALARM_FORMATTED);

but I have a few problems with this:

1. The String it returns is already formatted, but in a way I don't
want. So, I'd have to do some rather nasty String splits and
manipulations to reformat it how I want. Ideally I'd like to get this
time in millis/seconds since epoch, or as a Date object.

2. I've read that this value is easily overwritten by any app for any
purpose - if this is the case, it's not exactly reliable.

3. It's stopped working for me! (It's now returning a blank (not null)
String, despite there being alarms set). I guess if nothing better is
available to get this information, this will become a debugging
assistance discussion :-).


Is there a better, more reliable way to get the date/time of the next
Alarm set?

Thanks,
Mark.

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Run the same applications that are running J2ME

2009-09-29 Thread Ray da Costa
A helping hand, I have an Android G2 and would like to run the same
applications that are running J2ME on my other cell E62. Is it possible?
What is the procedure?


-- 
Ray da Costa
The best way to predict the future is to invent it.
Alan Kay

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] onscreen keyboard on/off?

2009-09-29 Thread Walery Strauch

Is it possible to find out whether onscreen keyboard is present or not?

THX
Walery ;o)


-- 
Follow me:
http://twitter.com/walery

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Pushing application from foregound to background

2009-09-29 Thread Safy

Hi,

   How can I push application from foreground to background on
keyevent. In Blackberry you have a function called request background
which pushes the UI application from foreground to background. How can
I achieve this functionality in Android, is this possible ?


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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: HTC Hero

2009-09-29 Thread SANTA CLAUS
If hardware support ;)

28 сент., 2009 11:25 PM пользователь Jeffrey Blattman 
jeffrey.blatt...@gmail.com написал:

 android apps are write once run anywhere (in theory).

On 9/28/09 12:16 PM, Eros Stein wrote:   Hi everyone.  Does anyone know
if there are difference...
--

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---

inline: qr-gmail.png

[android-beginners] Re: HTC Hero

2009-09-29 Thread Jerome Clarke
I got the g2 touch and there are some difference.

Unless i'm blind... where is the dictionary so i can remove my own words
instead of adding only

Numerous developers and customers complaining about UDP protocol issues.

Where is the default android virtual keyboard. I have google default home
screen...

I thought with android while you can customize it. You can still set it to
googles defaults.

They didn't add... they replaced and I'm sick of this proprietory crap
that's slowly coming again...

There are already numerous applications requiring certain phones to
configure before use.. I don't like it...

J

On Sep 29, 2009 7:10 AM, Chi Kit Leung michaelchi...@gmail.com wrote:

They are using same version of Android and even the hardware specifications
are similar identical.
Only it has SenseUI in front end.
I don't think there will be any different between those two phones

On Tue, Sep 29, 2009 at 9:22 AM, Eros Stein eros.st...@gmail.com wrote:

   Thank you all for the infos.   Best regards.On Mon, Sep 28,
 2009 at 5:05 PM, Jeffrey Bl...
 Regards,
 Michael Leung
 http://www.itblogs.info
 http://www.michaelleung.info

   --~--~-~--~~~---~--~~  You received
 this message because you a...


--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Pass data between activitys

2009-09-29 Thread DWischer

Hi,

in my app, i got a login screen and a screen, where the user
information should be displayed. So, when the button is pressed, a
login request will be made and in case of sucess, a new activity
should be displayed.
For later requests, i need the entered login data from the login
screen in my other activitys to process further requests.
So the question is, how to pass data from activity to activity.

In the Blackberry app,  which is running already, you could pass
objects to the constructor of the new Screen.
So the best for me would be, to find a possibility to pass a bean
object from screen to screen.
Sadly, i found nothing like that in the documentation. I would be
grateful for any help.

Regards,
Daniel

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Android as a Universal Remote for CE/HA? (ab)

2009-09-29 Thread Jed
Hi All,

I was wondering if there's any good Universal Remote software for CE or
HA being developed in the Android ecosystem?

Does anyone know of anything under way or a related Linux project that
could be re-adapted for Android?

I have something roughly like this visualised... (see attached txt file)

I have an old Axim X50v which android is being ported to atm...
But progress is slow so I may have to find a better supported device soon.

Any thoughts/ideas/advice greatly appreciated!

Cheers,
Jed


--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---

ÿþMiscellaneous --------Internet--------
                  |                  | 
....... Hand-held ----Wifi---------- 
CE/HA server (Pluto/LMCE?) 
----------PoE (existing aircon 
network)...
                  |                  |  
                               |--Wifi? 
(2.4ghz 802.11n)...
                   --Irda            |  
                               
|--IR?...
                         |           
|_IR bridge__CE devices           |
                         |              
                               
|--Powerline?...
                         |_CE devices   
                               |
                                        
                               
|_Proprietary RF:
                                        
                                
Zigbee,Zwave,Insteon,X10 etc.
                                        
                                One or 
combination...

                                        
                                        
        HA/CE end devices ===

[android-beginners] Re: Android 1.6 SDK is here!

2009-09-29 Thread Shreyas

I've tried to download the SDK many times but it just doesn't seem to
start. Can someone help me out here?

I read somewhere that downloads may be restricted based on
geographical location, is this true? I am from NZ.

- Shreyas

On Sep 16, 11:22 am, Xavier Ducrohet x...@android.com wrote:
 http://android-developers.blogspot.com/2009/09/android-16-sdk-is-here...

 Enjoy!
 --
 Xavier Ducrohet
 Android Developer Tools Engineer
 Google Inc.

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Android Emulator and compiled source.

2009-09-29 Thread Lee Wilson

I know its a silly question, but I cant seem to find the answer.

Is it possible to run code i have compiled on the emulator ? I cant
work out how to do it.

I am happier using the command line if that helps.

I just want to compile my own rom and play about with it, but it would
be easier to test using the emulator rather than having to reflash my
phone every 10 minutes.

cheers 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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Pushing application from foregound to background

2009-09-29 Thread Mark Murphy

Safy wrote:
How can I push application from foreground to background on
 keyevent. In Blackberry you have a function called request background
 which pushes the UI application from foreground to background. How can
 I achieve this functionality in Android, is this possible ?

Have the user press the HOME key.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 Available!

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Android Emulator and compiled source.

2009-09-29 Thread Mark Murphy

Lee Wilson wrote:
 I know its a silly question, but I cant seem to find the answer.
 
 Is it possible to run code i have compiled on the emulator ? I cant
 work out how to do it.
 
 I am happier using the command line if that helps.
 
 I just want to compile my own rom and play about with it, but it would
 be easier to test using the emulator rather than having to reflash my
 phone every 10 minutes.

This list is for questions about the SDK. Questions about building the
firmware are best suited for:

-- [android-platform] (if you are planning on contributing code to the
project)
-- [android-porting] (otherwise)

http://source.android.com/discuss

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 Available!

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Changing the Build Target

2009-09-29 Thread gmseed

I have 2 versions of a Hello,World project. Both were newly built.
One I built with Android 1.5-API Level 3 and one with Android1.6-API
Level 4.

If I run them as initially setup then they both run fine.

I then changed the build target of the 1.6-API Level 4 down to 1.5-API
Level 3 via right clicking on the project, selecting Properties and
then Andoird and selecting a different build target.

The Android 1.6 icon is changed to an Android 1.5 icon in the
Package Explorer but when I rebuild and rerun I get the following
error:

[2009-09-29 19:05:57 - MyFirstAndroidApp]ERROR: Application requires
API version 4. Device API version is 3 (Android 1.5).
[2009-09-29 19:05:57 - MyFirstAndroidApp]Launch canceled!

Has anyone else experienced this problem in changing the build target?

Thanks

Graham
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Pass data between activitys

2009-09-29 Thread Mark Murphy

DWischer wrote:
 Hi,
 
 in my app, i got a login screen and a screen, where the user
 information should be displayed. So, when the button is pressed, a
 login request will be made and in case of sucess, a new activity
 should be displayed.
 For later requests, i need the entered login data from the login
 screen in my other activitys to process further requests.
 So the question is, how to pass data from activity to activity.

Use putExtra() on the Intent you use to launch the new Activity. The new
Activity can then use getExtra() to retrieve them.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 Available!

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Android Emulator and compiled source.

2009-09-29 Thread Lee Wilson

Cheers i will give that a go, sorry for the wrong section I figured as
it was part of the SDK and a beginner question it should go here.



On Sep 29, 7:13 pm, Mark Murphy mmur...@commonsware.com wrote:
 Lee Wilson wrote:
  I know its a silly question, but I cant seem to find the answer.

  Is it possible to run code i have compiled on the emulator ? I cant
  work out how to do it.

  I am happier using the command line if that helps.

  I just want to compile my own rom and play about with it, but it would
  be easier to test using the emulator rather than having to reflash my
  phone every 10 minutes.

 This list is for questions about the SDK. Questions about building the
 firmware are best suited for:

 -- [android-platform] (if you are planning on contributing code to the
 project)
 -- [android-porting] (otherwise)

 http://source.android.com/discuss

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 _Android Programming Tutorials_ Version 1.0 Available!
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Android Emulator and compiled source.

2009-09-29 Thread Mark Murphy

Lee Wilson wrote:
 Cheers i will give that a go, sorry for the wrong section I figured as
 it was part of the SDK and a beginner question it should go here.

Understood. You'll have access to more targeted experts in those other
forums, which is why I'm steering you that way, that's all.

Sorry for the confusion!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 Available!

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Is LayoutParams activity centric?

2009-09-29 Thread Justin Anderson
Have you tried some testing to see what behavior you get?

Also, in my opinion, I wouldn't be messing with the screen brightness unless
there is a real good reason to.  I have my phone settings set exactly how I
want them.  If an app changed them without a VERY good reason I would be
extremely annoyed and probably uninstall the app.

Thanks,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Sep 29, 2009 at 8:25 AM, Chris
themaninthesuitc...@googlemail.comwrote:


 I am using WindowManager.LayoutParams to set the brightness of my
 actvity.  My question is, is this activity centric, app centric or
 does this change the current system brightness meaning I need to clean
 up the brightness back to what it was in my onPause?

 


--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Pushing application from foregound to background

2009-09-29 Thread Yusuf Saib (T-Mobile USA)

It depends on what you mean by background. If you want the Activity
to disappear and not to anything until next time, save your state and
call finish(). OTOH, if you want it to continue doing something in the
background, you can run a Service as part of your app.



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Sep 29, 11:12 am, Mark Murphy mmur...@commonsware.com wrote:
 Safy wrote:
     How can I push application from foreground to background on
  keyevent. In Blackberry you have a function called request background
  which pushes the UI application from foreground to background. How can
  I achieve this functionality in Android, is this possible ?

 Have the user press the HOME key.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 _Android Programming Tutorials_ Version 1.0 Available!
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Run the same applications that are running J2ME

2009-09-29 Thread Yusuf Saib (T-Mobile USA)

There are a number of efforts in bridging J2ME-Android. These links
may be of use, although I've not tried them out:


http://www.netmite.com/android/
http://www.assembla.com/wiki/show/j2ab
http://microemu.blogspot.com/2008/11/running-java-me-applications-on-android.html



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Sep 29, 10:21 am, Ray da Costa raydaco...@gmail.com wrote:
 A helping hand, I have an Android G2 and would like to run the same
 applications that are running J2ME on my other cell E62. Is it possible?
 What is the procedure?

 --
 Ray da Costa
 The best way to predict the future is to invent it.
 Alan Kay
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Golf App for Android

2009-09-29 Thread Yusuf Saib (T-Mobile USA)

There's more than one Golf app. Golfzilla is one:
http://asia.cnet.com/crave/2008/07/08/google-maps-android-golf-golfzilla/

You can find elevation from the GPS, windspeed would have to come from
a weather web service, which in theory you could access
programmatically.



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Sep 29, 12:39 am, Maxood maqs...@salsoft.net wrote:
 Could someone provide me a link on a good Golf application on android?
 I am interested to look at the screenshots and its flow.
 Wonder if we are able to find out elevation and/or wind speed through
 a device. Is it possible with any of the phones in the market running
 on android?
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: conference call

2009-09-29 Thread Yusuf Saib (T-Mobile USA)

No AFAIK.


Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Sep 29, 5:26 am, Nemat nemate...@gmail.com wrote:
 Hi,

 is it possible to add an incoming call with current call to make it as
 a conference call programmatically?

 Thanks in advance
 Nemat
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Doc and Samples typos and suggestions?

2009-09-29 Thread gmseed

Hi

I've found a couple of typos in the dev guide and samples.

Does anyone know how to pass these onto the Google Android doc team?

Graham
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Handling focus in ExpandableListView

2009-09-29 Thread Brian

Yeah - works like a charm!
Thanks, Justin!

Here the code snippets for others to reuse:



public class ProjectList extends ExpandableListActivity
implements AdapterView.OnItemSelectedListener

...

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

ExpandableListView listView = getExpandableListView() ;
listView.setOnItemSelectedListener(this) ;
...
}

...

//-- Callback when an (group) item is selected in the list
public void onItemSelected(AdapterView? arg0, View arg1, int
arg2, long arg3) {
Log.d( Constants.LOG_TAG, onItemSelected() );
...
}


//-- Callback when nothing is selected in the list
public void onNothingSelected(AdapterView? arg0) {
Log.d( Constants.LOG_TAG, onNothingSelected() );
}



On Sep 26, 6:44 am, Justin Anderson janderson@gmail.com wrote:
 Try implementing the AdapterView.OnItemSelectedListener interface...

 Thanks,
 Justin

 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --

 On Fri, Sep 25, 2009 at 3:57 AM, Brian heum...@me.com wrote:

   Hi there,

  I have been tinkering with the ExpandableListView and would like to
  tweak its behaviour a little bit. Right now you can navigate through
  the expandable list and when you select an entry (group) it will
  expand and display its children.  However, I would like to expand the
  group automatically as soon as the group receives the focus (almost
  like a fisheye list).

  I managed to overwrite  onGroupExpand(int groupPosition)  to close
  all other entries before expanding the selected group. But I cannot
  find any way to install any focus listeners which gets notified when a
  group receives focus... Does anyone know how to do this?

  Regards, Brian
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] getting length of an EditText while entering text

2009-09-29 Thread infero

I'd like to display the length of the entered text for a EditText
while the user is typing, so he/she can see when the maximum
characters are reached - or the other way round how many chars are
left (link for an SMS).

I see that the TextView has a protected method onTextChanged, but how
can I make the activity get informed about a change, so I can update
the text?

href to that method:
http://developer.android.com/reference/android/widget/TextView.html#onTextChanged(java.lang.CharSequence,
int, int, int)

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Doc and Samples typos and suggestions?

2009-09-29 Thread Romain Guy

Hi,

Please follow the instructions at source.android.com if you want to
submit patches, or just file bugs at b.android.com.

On Tue, Sep 29, 2009 at 12:20 PM, gmseed gms...@gmail.com wrote:

 Hi

 I've found a couple of typos in the dev guide and samples.

 Does anyone know how to pass these onto the Google Android doc team?

 Graham
 




-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~-~--~~~---~--~~
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
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 length of an EditText while entering text

2009-09-29 Thread Justin Anderson
One way would be to subclass the EditText class...  You would then have
access to onTextChanged and could do whatever you want with it.

Thanks,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Sep 29, 2009 at 2:07 PM, infero inf...@infero.ch wrote:


 I'd like to display the length of the entered text for a EditText
 while the user is typing, so he/she can see when the maximum
 characters are reached - or the other way round how many chars are
 left (link for an SMS).

 I see that the TextView has a protected method onTextChanged, but how
 can I make the activity get informed about a change, so I can update
 the text?

 href to that method:

 http://developer.android.com/reference/android/widget/TextView.html#onTextChanged(java.lang.CharSequencehttp://developer.android.com/reference/android/widget/TextView.html#onTextChanged%28java.lang.CharSequence
 ,
 int, int, int)

 


--~--~-~--~~~---~--~~
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
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 length of an EditText while entering text

2009-09-29 Thread infero

 One way would be to subclass the EditText class...  You would then have
 access to onTextChanged and could do whatever you want with it.

Thanks Justin,
That sounds like a big overhead :-( for something quite simple.
I hope there is somehow a simpler way available...

Regards
infero
--~--~-~--~~~---~--~~
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
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 length of an EditText while entering text

2009-09-29 Thread Justin Anderson
And indeed there is... My last post was without referencing the docs.
However there is this:

addTextChangedListener(TextWatcher watcher)

Hope that helps.

Thanks,
Justin
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Sep 29, 2009 at 2:27 PM, infero inf...@infero.ch wrote:


  One way would be to subclass the EditText class...  You would then have
  access to onTextChanged and could do whatever you want with it.

 Thanks Justin,
 That sounds like a big overhead :-( for something quite simple.
 I hope there is somehow a simpler way available...

 Regards
 infero
 


--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Pass data between activitys

2009-09-29 Thread DWischer



On 29 Sep., 20:11, Mark Murphy mmur...@commonsware.com wrote:
 Use putExtra() on the Intent you use to launch the new Activity. The new
 Activity can then use getExtra() to retrieve them.

Is it possible to pass complete Java objects via putExtra? I just
found functions for passing simple data types.
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Pass data between activitys

2009-09-29 Thread Jeffrey Blattman




yes, the object needs to be serializable or parcelable.

On 9/29/09 2:22 PM, DWischer wrote:

  


On 29 Sep., 20:11, Mark Murphy mmur...@commonsware.com wrote:
  
  
Use putExtra() on the Intent you use to launch the new Activity. The new
Activity can then use getExtra() to retrieve them.

  
  
Is it possible to pass complete Java objects via putExtra? I just
found functions for passing simple data types.
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---

  


-- 





[android-beginners] Flashing recovery 1.6...

2009-09-29 Thread Troglodad

Wanted to note that I screwed up in the process and it still worked...

I used a miniSD to USB adapter to put the radio file on my miniSD,
then booted up with home+power. Alas, instead of doing ALT+L I goofed
up and ALT+S but it still worked.

Rebooted (HOME+BACK) fine, and very quickly and then I powered off.

Used the USB adapter again, and put the Recovery on the miniSD (again,
renamed as Update), and again HOME+POWER rebooted.

This time I ALT+L, then ALT+S and installed, with no problem.

When I HOME+BACK rebooted, it took awhile to write but came back okay.

So... it doesn't seem like you need to enter the ALT+L command, just
insert the miniSD with the renamed radio image, power up, holding
HOME, then just go straight to pushing ALT+S

To recap, here's what worked for me:

MY ADP1 was upgraded to 1.5, but I never put the new Radio image on
from a while back. I had the first 1.5 radio.

1. Power off phone
2. Download the latest Radio image to your PC
3. Download the latest Recovery image to your PC
4. Rename the Radio, “Update” (ensure name is update.zip, not
update.zip.zip)
5. Connect, via USB adapter, miniSD Card to PC
6. Copy update.zip to the root level of the mini sd. DO NOT place in
any folder on miniSD card.
7. Put miniSD in phone
8. Power up phone, holding Power+HOME
9. Phone will appear with a triangle symbol on screen
10. use keyboard and hold ALT + L
11. use keyboard and hold ALT +S, image of a box and phone appear,
with arrow indicated something being installed from box to phone
(unpacking symbol?)
12. Phone will apply update.zip, then prompt you to reboot, use HOME +
BACK to reboot.

green Android logo came up, then blue Android log

13. Power off phone and Remove miniSD card, put in USB adapter in PC
14. delete update.zip from PC and miniSD
15. Rename Recovery image on PC update
16. copy update.zip from PC to miniSD
17. put miniSD in phone
18. press ALT + L (or maybe delete this step)
19. press ALT+ S
20. Again, phone will install update.zip (now the renamed recovery
image), then prompt you to reboot, by pressing HOME + BACK

NOTE: There will be a considerably longer delay during reboot, with
green logo then blue.
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Flashing recovery 1.6...

2009-09-29 Thread C.Martin

Whoops, put this in the wrong forum- could someone move it to the ADP
update forum?

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Is LayoutParams activity centric?

2009-09-29 Thread Chris

I haven't tested as I still have a week until the phone arrives.  I am
doing a few learning android exercise type apps and 1 felt would be a
good basis for learning the app lifecycle/structure would be a torch
app with settings for things like the brightness and so on.  But
generally yes, I agree messing with the brightness would normally be a
bad idea, which is why I am curious if I needed to return it to what
it was or if it was app/activity centric.

I will do some testing once I have a phone to test on.

On Sep 29, 7:35 pm, Justin Anderson janderson@gmail.com wrote:
 Have you tried some testing to see what behavior you get?

 Also, in my opinion, I wouldn't be messing with the screen brightness unless
 there is a real good reason to.  I have my phone settings set exactly how I
 want them.  If an app changed them without a VERY good reason I would be
 extremely annoyed and probably uninstall the app.

 Thanks,
 Justin

 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --

 On Tue, Sep 29, 2009 at 8:25 AM, Chris
 themaninthesuitc...@googlemail.comwrote:



  I am using WindowManager.LayoutParams to set the brightness of my
  actvity.  My question is, is this activity centric, app centric or
  does this change the current system brightness meaning I need to clean
  up the brightness back to what it was in my onPause?
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Placing Layouts in a Relative Layout

2009-09-29 Thread iPaul Pro

Hey,

I fear you are approaching Android design as if you were coding for
HTML in the 90s. ;)

There is no real need for a table layout here. Heres an example of a
login dialog from the API Demos (samples/ApiDemos/res/layout/
alert_dialog_text_entry.xml):

?xml version=1.0 encoding=utf-8?
!-- Copyright (C) 2008 The Android Open Source Project

 Licensed under the Apache License, Version 2.0 (the License);
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing,
software
 distributed under the License is distributed on an AS IS BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
 See the License for the specific language governing permissions
and
 limitations under the License.
--

LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=vertical

TextView
android:id=@+id/username_view
android:layout_height=wrap_content
android:layout_width=wrap_content
android:layout_marginLeft=20dip
android:layout_marginRight=20dip
android:text=@string/alert_dialog_username
android:gravity=left
android:textAppearance=?android:attr/textAppearanceMedium /

EditText
android:id=@+id/username_edit
android:layout_height=wrap_content
android:layout_width=fill_parent
android:layout_marginLeft=20dip
android:layout_marginRight=20dip
android:scrollHorizontally=true
android:autoText=false
android:capitalize=none
android:gravity=fill_horizontal
android:textAppearance=?android:attr/textAppearanceMedium /

TextView
android:id=@+id/password_view
android:layout_height=wrap_content
android:layout_width=wrap_content
android:layout_marginLeft=20dip
android:layout_marginRight=20dip
android:text=@string/alert_dialog_password
android:gravity=left
android:textAppearance=?android:attr/textAppearanceMedium /

EditText
android:id=@+id/password_edit
android:layout_height=wrap_content
android:layout_width=fill_parent
android:layout_marginLeft=20dip
android:layout_marginRight=20dip
android:scrollHorizontally=true
android:autoText=false
android:capitalize=none
android:gravity=fill_horizontal
android:password=true
android:textAppearance=?android:attr/textAppearanceMedium /

/LinearLayout

Hope this helps.

Paul

On Sep 29, 7:56 am, Grinarn danielwisc...@googlemail.com wrote:
 Hi folks,

 i just started developing Android apps and i got a first question
 while designing the screen.

 What i want to do is do build a login screen.
 So i arranged my Labels and Editfields with a TableLayout in Rows.
 Below the fields, i want to place a Login Button and a below that, an
 image with a logo.

 So my idea was to place a TableLayout into a Relative Layout. so i can
 arrange my fields using a TableLayout and the Button and Image with
 the Relative Layout, but when i want to place my Button below the
 table, it appears in the topright corner.

 Here is my approach:
 ?xml version=1.0 encoding=utf-8?

 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
 android
                 android:layout_width=fill_parent
                 android:layout_height=wrap_content
                 android:padding=10px 

 TableLayout xmlns:android=http://schemas.android.com/apk/res/
 android
     android:id=@+id/tableLay
     android:orientation=vertical
     android:layout_width=fill_parent
 android:layout_height=wrap_content

     TableRow android:minHeight=50px
                 TextView
                 android:text=@string/login_user
         android:paddingRight=20px
 android:layout_gravity=center_vertical/
         EditText android:id=@+id/user
               android:layout_height=wrap_content
               android:background=@android:drawable/
 editbox_background android:layout_width=200sp android:lines=1
 android:maxLength=15 android:inputType=text
 android:layout_gravity=center_vertical android:focusable=true/

     /TableRow
         TableRow android:minHeight=50px
                 TextView
                 android:text=@string/login_pass
                 android:paddingRight=20px
 android:layout_gravity=center_vertical/
         EditText android:id=@+id/password
               android:layout_height=wrap_content
               android:background=@android:drawable/
 editbox_background android:layout_width=200sp android:lines=1
 android:maxLength=15 android:inputType=textPassword
 android:layout_gravity=center_vertical/

     /TableRow

     TableRow android:minHeight=50px
                 TextView
                 

[android-beginners] Re: How can I prevent the background from fading out when I show a dialog?

2009-09-29 Thread iPaul Pro

Hi,

Could you possibly have the dialog as a separate activity, with the
dialog theme? This gives you full control over the window background.

Hope that helps.

Paul

On Sep 27, 10:44 am, Christian c.braumuel...@eagle-graphics.de
wrote:
 Hi,

 how can I prevent the background from fading out when I show a dialog.
 I am
 showing a picture on a surface in the dialog taking from the camera.
 And
 when the background fades out the picture in the dialog on the surface
 is
 fading out too. Can I prevent the background from fading out while
 showing a
 dialog?

 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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Poor performance on my file loader (code optimization help!)

2009-09-29 Thread Glen Kimsey
Thanks to everyone for the help on this.  As I mentioned, I'm rather
new to Java, so things like StringTokenizer being legacy are news.

Believe it or not the file format uses actual frames instead of
keyframes (hence no timestamp or other indication of time or frames
between each being parsed out), but this is all still up in the air.
Obviously it's a very amateur way to do it right now.  I'll probably
shift back to quaternions and worry about interpolating later (it
might be a application size vs. performance vs. memory usage thing in
the end.  I'm not sure).  Thanks for the links.

The LineNumberReader was actually hijacked from some open source code
intended for a very similar purpose.  I didn't know what to use for
this scenario and so finding someone else using LNR meant I jumped on
it as the ideal solution.  Safe to say I'll be trying R.E.s and/or
buffered reader soon enough.  Are mark and reset really that taxing?
More so than basically buffering the several lines that might need to
be re-parsed?

Thanks again.  Very helpful.
Glen

On Sep 24, 10:14 am, Kaj Bjurman kaj.bjur...@gmail.com wrote:
 Is there a reason to why you use a LineNumberReader? I would instead
 use a BufferedReader, that will probably improve your performance.

 I don't know anything about the dataformat in the file, but there
 probably is a much faster way to parse it than using all those
 StringTokenizers (or regexp even if that might be faster). I would
 also try to parse the file without mark and reset.

 On 20 Sep, 20:28, Glen Kimsey gkim...@gmail.com wrote:

  Hello!
  I'm fairly new to both Android and Java (pretty experienced in C/C++),
  and (stupidly, perhaps) took on a big project.  In it, I need to load
  information about 3D models and their respective animations from a
  text file (proprietary file format based on PSK/PSA).

  The loading process on a sample (1000+ line) file is abysmally slow
  (more than 4 minutes).  The good news is that there are lots and lots
  of ways I can improve it.  What I'm hoping to find out here is if
  there's anything in *particular* in my code that is very inefficient
  that I can change.  Don't worry about offending me, I know this is
  amateur code here.

  Some possible causes for the slowness:
  - Extensive use of parseFloat()
  - Creating new StringTokenizer for every line
  - Inefficiencies in for() loops (not caching as necessary?)
  - Repeated use of the acos() and sqrt() functions

  I'd like to find out from you gentlemen (ladies) what you think is the
  major thing eating up my time here.  If there's some tool I can use to
  find out what lines of code are taking up the most time that'd be
  ideal.  I'm open to any possible solutions.  The file format can
  change (and probably will).  I could even do something as drastic as
  performing this load in a separate app (before distribution) and
  somehow exporting the resulting object (KdfAnimation) that could more
  easily be picked back up (this would work in C, but I'm doubtful Java
  would allow such low-level memory copying).

  One final note is that the action loading section of this code
  occupies about 3/4 of the files being loaded (so this section may be
  more important to optimize).

  Loader Code
  public class KdfLoader {

          public static KdfAnimation load(String file) throws IOException {
                  KdfAnimation anim = new KdfAnimation();

                  FileInputStream fis = new FileInputStream(file);
                  String line = [start];
                  LineNumberReader lnr = new LineNumberReader(new 
  InputStreamReader
  (fis));

                  int boneNum = 0;

                  try {

                  for (line = lnr.readLine(); line != null; line = 
  lnr.readLine()) {
                          if (line.length()  0) {
                                  if (line.startsWith(numbones)) {
                                          // Ignore it for now
                                  }
                                  else if (line.startsWith(bone)) {
                                          // Bone define
                                          StringTokenizer tok = new 
  StringTokenizer(line);
                                          KdfBone bone = new KdfBone();

                                          // Toss out bone
                                          tok.nextToken();

                                          // Set name
                                          bone.boneName = tok.nextToken();

                                          if (boneNum == 0) {
                                                  // Root bone.  Ignore 
  children and parent id in file
                                                  bone.parentId = 0;
                                                  bone.parent = null;
                                                  // ignore numchildren x
                                                  // ignore parentid x
                

[android-beginners] Re: Saving calculator result problem

2009-09-29 Thread bgoody

I couldn't get that one to work so I'm trying something else.

Here's where the button is pressed:

btnMP.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
memNum = memNum + 
Double.parseDouble(txtCalc.getText().toString());
operator = 0;   }
});

Here's a thingie I hammered together from parts:

// Save MEMORY
public void WriteMemory(OnClickListener onClickListener, double
memNum){
File sdcard = Environment.getExternalStorageDirectory();
File destinationdir = new File(sdcard,/download/calculator);
destinationdir.mkdir();
File destinationfile = new File(destinationdir,memory.dat);
  FileOutputStream fOut = null;
  OutputStreamWriter osw = null;

  try{
  destinationfile.createNewFile();
  fOut =  new FileOutputStream(destinationfile);
  osw = new OutputStreamWriter(fOut);
  osw.write((int) memNum);
  osw.flush();
  Toast.makeText((Context) onClickListener, Memory
saved,Toast.LENGTH_SHORT).show();
  }
  catch (Exception e) {
  e.printStackTrace();
//Toast.makeText((Context) onClickListener, Memory not
saved,Toast.LENGTH_SHORT).show();
  }
  finally {
 try {
osw.close();
fOut.close();
} catch (IOException e) {
e.printStackTrace();
}
  }
 }

This is called by inserting WriteMemory(this,memNum); in the button
routine thusly:

btnMP.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
memNum = memNum + 
Double.parseDouble(txtCalc.getText().toString());
operator = 0;   }
WriteMemory(this,memNum);
});

The file is created but nothing is written in it. What's missing?
Brian

On Sep 28, 3:38 pm, Yusuf Saib (T-Mobile USA) yusuf.s...@t-
Mobile.com wrote:
 txt is declared inside your if (hasChanged) { scope. Then you use it
 after the corresponding }.

 Yusuf Saib
 Android
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Sep 27, 10:02 am, bgoody bgoody...@gmail.com wrote:

  Hi. I am trying to hack this bit of code tosavethe results of a
  calculation to disk but it says that the variable (txt) cannot be
  resolved.
  Any ideas!

  private void handleEquals(int newOperator) {
  if (hasChanged) {
  switch (operator) {
  case 1:
  num = num +Double.parseDouble(txtCalc.getText().toString());
  break;
  case 2:
  num = num -Double.parseDouble(txtCalc.getText().toString());
  break;
  case 3:
  num = num *Double.parseDouble(txtCalc.getText().toString());
  break;
  case 4:
  num = num /Double.parseDouble(txtCalc.getText().toString());
  break;

  }

  String txt =Double.toString(num);
  txtCalc.setText(txt);
  txtCalc.setSelection(txt.length());

  readyToClear = true;
  hasChanged = false;

  }

  FileOutputStream fOut = openFileOutput
  (samplefile.txt,MODE_WORLD_READABL E);
  OutputStreamWriter osw = new OutputStreamWriter(fOut);
  osw.write(txt);
  osw.flush();
  fOut.close();
  osw.close();
  operator = newOperator;

  }


--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Open Source Android Apps

2009-09-29 Thread tinyang

Great idea!!  I'm trying to do something similar, got about 1/3rd through my
app and having serious probs moving forward now.  I would fully support your
idea. 

-Original Message-
From: android-beginners@googlegroups.com
[mailto:android-beginn...@googlegroups.com] On Behalf Of jbrohan
Sent: Tuesday, September 29, 2009 5:49 AM
To: Android Beginners
Subject: [android-beginners] Open Source Android Apps


Hello
It seems to me that along with many people on this list we are often
struggling to do the same things, maybe with just a different twist here and
there. In my case taking pictures, recording comments and uploading these to
a web site. I have found several examples of each of these and they work
more or less well.

Is there a repository where people could work together on say an Activity to
use the camera, or to upload a file to a website. If we have several people
working on these issues in a cooperative fashion we will make a lot better
apps, maybe you will find my mistakes rather than a user.



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/28/2009
5:53 PM


--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] record and store the recording to remote server

2009-09-29 Thread Shobhit Kasliwal

Hi

I am creating an application which does recording and save the file to
a remote server.
I recorded the file successfully on local sdcard and when I tried to
convert that file to byte[] and send it via webservice I am getting
runtime exception (Cannot serialize)
Can anybody help me out on this issue.
How can I record and save the recording to a remote server.

Thanks
Shobhit Kasliwal
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Golf App for Android

2009-09-29 Thread Maxood

How can we detect wind speed from a weather web service. Can you
suggest some good sites?

Also i have been informed that one is restricted by the United States
Golf Association and the Royal and Ancient Golf Association (the
ruling bodies of golf in the US and Europe) for using any device to
check atmospheric conditions as it is against the rules.Please check:

http://answers.yahoo.com/question/index;_ylt=AvIE5c3zE5fjluY9rd28i5vsy6IX;_ylv=3?qid=20090928235536AAVOKmx

Wonder if we can incorporate this feature in the app?Would it be
legal?

Also let me know how do you find TeeDroid:
http://www.teedroid.com/

Looking for valuable comments suggestions.Thank you
Maxood

On Sep 30, 12:11 am, Yusuf Saib (T-Mobile USA) yusuf.s...@t-
Mobile.com wrote:
 There's more than one Golf app. Golfzilla is 
 one:http://asia.cnet.com/crave/2008/07/08/google-maps-android-golf-golfzi...

 You can find elevation from the GPS, windspeed would have to come from
 a weather web service, which in theory you could access
 programmatically.

 Yusuf Saib
 Android
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Sep 29, 12:39 am, Maxood maqs...@salsoft.net wrote:



  Could someone provide me a link on a good Golf application on android?
  I am interested to look at the screenshots and its flow.
  Wonder if we are able to find out elevation and/or wind speed through
  a device. Is it possible with any of the phones in the market running
  on android?
--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Is LayoutParams activity centric?

2009-09-29 Thread Justin Anderson
My apologies if I seemed a little curt in my original response.

There are quite a few people who post questions without doing any work for
themselves to find an answer... and I had already answered two other people
today who fit into this category.  It took me 2 minutes to look on the SDK
docs to find the answer for them.

It gets a little old and it seemed that your question fit into that category
as well.  I really don't know the answer to the question.  Perhaps someone
else can answer this, or, when you get your phone, you could post your
findings.

Thanks,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Sep 29, 2009 at 4:14 PM, Chris
themaninthesuitc...@googlemail.comwrote:


 I haven't tested as I still have a week until the phone arrives.  I am
 doing a few learning android exercise type apps and 1 felt would be a
 good basis for learning the app lifecycle/structure would be a torch
 app with settings for things like the brightness and so on.  But
 generally yes, I agree messing with the brightness would normally be a
 bad idea, which is why I am curious if I needed to return it to what
 it was or if it was app/activity centric.

 I will do some testing once I have a phone to test on.

 On Sep 29, 7:35 pm, Justin Anderson janderson@gmail.com wrote:
  Have you tried some testing to see what behavior you get?
 
  Also, in my opinion, I wouldn't be messing with the screen brightness
 unless
  there is a real good reason to.  I have my phone settings set exactly how
 I
  want them.  If an app changed them without a VERY good reason I would be
  extremely annoyed and probably uninstall the app.
 
  Thanks,
  Justin
 
  --
  There are only 10 types of people in the world...
  Those who know binary and those who don't.
  --
 
  On Tue, Sep 29, 2009 at 8:25 AM, Chris
  themaninthesuitc...@googlemail.comwrote:
 
 
 
   I am using WindowManager.LayoutParams to set the brightness of my
   actvity.  My question is, is this activity centric, app centric or
   does this change the current system brightness meaning I need to clean
   up the brightness back to what it was in my onPause?
 


--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---