Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Chris Ross

  The other side, as in something beyond the network level, or do you mean 
the authentication used to connect to the WiFi network, via enterprise WPA or 
some such?  If the authentication is done after the WiFi connection is 
established, than the way you asked the original question seems unusual.

  I'd assumed you were talking about per-user authentication to/with the Access 
Point, which is fairly common in enterprise/corporate environments...

  - Chris

On Aug 3, 2010, at 4:54 PM, Kevin Brooks wrote:

 The real issue is logging into the network that is on the other side of that 
 Access Point.  I apologize for not making that clear before.
 
 On Tue, Aug 3, 2010 at 2:21 PM, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Aug 3, 2010 at 3:06 PM, Kevin Brooks bear35...@gmail.com wrote:
  I am not looking to create a true Multi-user Android environment.  My idea
  would be for my application to change the WiFi settings then connect.
 
 Well, WifiManager has addNetworkConfiguration(),
 getConfiguredNetworks(), disconnect(), and so on. It is not out of the
 question you can use this for your aims. I do not know what
 permissions you need, if any, and I do not know if the API is rich
 enough for your needs.
 
 However, I don't see where any of that will do you any good. Most WiFi
 access points do not support multiple configurations, one per user,
 regardless of what your device expects. Similarly, most households and
 businesses do not have one WiFi access point per user. I don't know
 where your other accounts are going to come from.
 
 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy
 
 Android Development Wiki: http://wiki.andmob.org
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. 
 For more information about this change, please read [http://goo.gl/xkfl] or 
 visit the Group home page.
 
 Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 
 
 -- 
 Kevin
 Proverbs 21:6
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. 
 For more information about this change, please read [http://goo.gl/xkfl] or 
 visit the Group home page.
  
 Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
  
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Notification.FLAG_NO_CLEAR not working as expected

2010-07-21 Thread Chris Dibbern
I agree with TreKing. I just used this code in the last few days:

notification.flags |= Notification.FLAG_NO_CLEAR;

It appears to work fine for me. Does it solve your problem?

On Jul 17, 12:49 pm, Bret Foreman bret.fore...@gmail.com wrote:
 I'm setting my notification like this:

         notification.defaults |= Notification.FLAG_NO_CLEAR;

 I expect this to mean that pressing the clear button in the expanded
 notification screen will not clear this notification. But the button
 still clears the notification.

 I think this may be a permissions problem in my manifest. I currently
 have a uses permission android.permission.VIBRATE set. Do I need any
 other permissions to make a notification sticky?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: addContentView obscures events

2010-07-19 Thread Chris
 What exactly are you trying to accomplish?  Are you trying to get the same
 sort of effect that the browser or google maps has with the zoom in/out
 buttons (in that they show up on top of the current view)?

I'm trying to do the following: overlay a Drawable and interact with
it (reposition, resize based on touch events) on an arbitrary
background (a SurfaceView or just a linear layout with a background).
I want to reuse this same code for multiple backgrounds. Above all of
that I'd need buttons to control the activity that would change based
on which activity.

I think I just don't understand the best way to lay this out with the
proper view hierarchy...

Thanks,
-Chris

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: addContentView obscures events

2010-07-13 Thread Chris
 I've never tried to do an overlay view, but it seems to me to make sense
 that once the overlay view is on top that it would capture all events...

Is there a better way to accomplish the same effect that I'm not
thinking of? An additional consideration is that I'm intending to use
that same overlay view on multiple base views...

 If you want it to propogate to the base view I think you are going to have
 to handle it in the overlay and then pass it on to the base view somehow.
 Not entirely sure how to do that, but that seems the most logical approach
 to me.

So I tried this by calling the dispatchTouchEvent on the base view
from the overlay. From there one can compare the coordinates of the
MotionEvent to the Rect of the clickable object in questions and then
call performClick on the button. This seems like a hack, but it works.
* If there were more buttons it would be a hassle
* The buttons don't actually respond as though they're clicked - I'm
wondering if it's possible to make this happen programmatically...

Thanks for the response,
-Chris

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: addContentView obscures events

2010-07-13 Thread Chris
Actually I just realized that's not quite what I'm looking for because
the overlay will always draw above the buttons on the base view. I
guess I'm looking for some way to get the overlay between the base (in
this case a camera preview or an image) and some UI components. Any
thoughts?

-Chris

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] addContentView obscures events

2010-07-12 Thread Chris
I'm trying to overlay one view on top of another using addContentView.
The bottom view has an ImageButton on it linked to a ClickListener.
This all worked fine until I add the overlay view using:
addContentView(overlayView, new
LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
After that, no click events are seen by my base view. I think I'm
missing something fundamental about event propagation wrt views, but I
can't figure it out... any thoughts would be appreciated.

Thanks,
-Chris

Here's the base view:
--
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
  android:id=@+id/cameraView android:layout_width=fill_parent
  android:layout_height=fill_parent android:gravity=center_vertical|
center_horizontal
  RelativeLayout android:layout_width=fill_parent
android:layout_height=fill_parent android:gravity=bottom
SurfaceView android:id=@+id/camera_surface
  android:layout_width=fill_parent
android:layout_height=fill_parent /
LinearLayout android:layout_width=fill_parent
  android:layout_height=wrap_content
android:layout_gravity=bottom
  android:paddingTop=8dip android:gravity=center_horizontal
  android:background=#AA00
  ImageButton android:id=@+id/shutterButton
android:layout_width=wrap_content
android:layout_height=wrap_content
android:src=@android:id/drawable/ic_menu_camera /
/LinearLayout
  /RelativeLayout
/LinearLayout
--

And here's the view I'm trying to add on top:
--
public class OverlayView extends View
implements View.OnTouchListener, View.OnClickListener,
ZoomButtonsController.OnZoomListener {

  private final Drawable overlay;
  private boolean inDrag = false;
  private final ZoomButtonsController zoomController;
  private final float zoomIncrement = 0.1f;
  private final float aspectRatio;

  protected OverlayView(Context context) {
super(context);

setFocusable(true);
setFocusableInTouchMode(true);
overlay = context.getResources().getDrawable(R.drawable.overlay);
aspectRatio = ((float)overlay.getIntrinsicHeight()) /
((float)overlay.getIntrinsicWidth());
overlay.setBounds(0, 0, 100, (int)(100 * aspectRatio));
setOnTouchListener(this);
setOnClickListener(this);

zoomController = new ZoomButtonsController(this);
zoomController.setOnZoomListener(this);
  }

  protected void onDraw(Canvas canvas) {
overlay.draw(canvas);
super.onDraw(canvas);
  }

  public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
  if (overlay.getBounds().contains((int)event.getX(),
(int)event.getY())) {
inDrag = true;
  } else {
zoomController.setVisible(true);
  }
  break;
case MotionEvent.ACTION_MOVE:
  if (inDrag) {
Rect bounds = new Rect();
overlay.copyBounds(bounds);
bounds.offsetTo((int)(event.getX() - bounds.width()/2),
(int)(event.getY() - bounds.height()/2));
overlay.setBounds(bounds);
invalidate();
  }
  break;
case MotionEvent.ACTION_UP:
  if (inDrag)
inDrag = false;
  break;
default:
  break;
}
if (zoomController.isVisible())
  zoomController.onTouch(v, event);

return false;
  }

  public void onClick(View v) {
  }

  public void onVisibilityChanged(boolean visible) {
setOnTouchListener(this);
  }

  public void onZoom(boolean zoomIn) {
Rect bounds = new Rect();
overlay.copyBounds(bounds);
if (zoomIn) {
  float width = bounds.width() * (1.0f + zoomIncrement);
  float height = width * aspectRatio;
  bounds.set(bounds.left, bounds.top, bounds.left + (int)width,
bounds.top + (int)height);
}
else {
  float width = bounds.width() * (1.0f - zoomIncrement);
  float height = width * aspectRatio;
  bounds.set(bounds.left, bounds.top, bounds.left + (int)width,
bounds.top + (int)height);
}
overlay.setBounds(bounds);
invalidate();
  }

  protected void onDetachedFromWindow() {
zoomController.setVisible(false);
super.onDetachedFromWindow();
  }

}
--

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] adb shell command gives very inconsistent results

2010-07-08 Thread Chris
I do not own an Android phone and am working exclusively in the
Eclipse/emulator environment on my laptop.

When I type in the adb shell cmd from the tools directory I get very
inconsistent results.
Sometimes it says error: device not found.
Sometimes it says error: device offline.
If I start a small application and continue to type in the adb shell
command until the emulator starts I get the 2 errors I just mentioned
in that order and then the adb shell command actually works and I
can see the # prompt, and type in commands such as ls -l and see
the results.
Then as I'm working in the shell it suddenly ends and I'm back at the
Windows prompt.
I am running on Windows XP Pro Version 2002 Service Pack 3.

Thank You in advance to anyone who would like to offer some help with
this situation.

-Chris

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Adapting Android Bluetooth Chat for multiple devices

2010-06-02 Thread Chris Ross

On Jun 2, 2010, at 5:59 AM, Megh wrote:
 Hello, I'm doing a college project on Bluetooth for Android, and I'm
 trying to understand how to manage communication between multiple
 connected devices. Eventually I'm going to develop a multiplayer
 Bluetooth Game.
 
 Currently I've adapted Android's sample app BluetoothChat to connect
 my three Nexxus One phones. 1 connects to 2 who connects to 3 1 sends
 its messages successfully to 2. 3 sends its messages successfully to 2
 as well. 2 can send its messages successfully to 1 and 3, as it shares
 a ConnectedThread with both. But I can't figure out how to handle
 getting communication from 1 to 3.

  What you describe here is a simplified version of a star pattern.  Where 
there's one node in the center that all other nodes talk to.  Is you intended 
design to operate this way, or do you wish to instead form a mesh where 
everyone can talk directly to everyone else?

  If the former, then you need to have code in 2 to relay messages, and you 
need to design the message protocol such that there's a sense of recipient 
specified in the message.  Then 2 can handle messages for itself, and pass on 
messages for others.

  If the latter, then you simply need to make a direct connection between 1 and 
3.  The same way 1 connects to 2, connect it to 3.

  (Unless there's some reason that only one outgoing connection can exist, in 
which case you may be limited to a star formation.)

 Does anyone have any examples of communication between multiple
 devices or has done this themselves? Thanks

  Nope.  All of the above is design, and I'm afraid I know nothing about 
Android bluetooth.  I just wanted to clarify what you were intending, so you 
could hopefully receive more useful advice.

- Chris

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Finger swipe in Android API level 3 (OS 1.5) ?

2010-05-25 Thread Chris Ross

  Thanks much.  I had found something similar elsewhere in my searching, and as 
you ended up making a subclass of SimpleOnGestureListener.  As it happens, I 
made that class inside of my primary Activity class, so I didn't have to pass 
the object into the instantiator like you did, but the same have to work back 
into the main object effectively applies, and I see your point.

  If I get to a point where I'm willing to ignore the 1.5 OS revision, I'll see 
what else can be done with the new gestures support added in API level 4...

  - Chris

On May 25, 2010, at 3:50 AM, Justin Anderson wrote:

 I know this is late, but hopefully it will help you and others out there 
 still programming stuff to be compatible with 1.5...  This is a simplified 
 version of a class that I use to detect a vertical swipe on a Gallery object. 
  To see it in action and test it out you can take a look at AppSwipe! on 
 the market (It's free...)
 
 In order to get the swipe working exactly the way you want it to you may have 
 to fiddle around with the three integers used for detecting a swipe.
 
 public class GallerySwipeUpDetector extends SimpleOnGestureListener 
 implements OnTouchListener
 {
 private Gallery m_gallery;
 GestureDetector m_detector;
 int m_swipeMaxOffPath; //Maximum horizontal tolerance for detecting a 
 vertical swipe
 int m_swipeMinDistance; //Minimum distance in order to detect a vertical 
 swipe
 int m_swipeMinVelocity; //Minimum velocity (pixels/second) in order to 
 detect a vertical swipe
 
 public GallerySwipeUpDetector(Gallery gallery)
 {
 m_gallery = gallery;
 m_detector = new GestureDetector(this);
 m_swipeMaxOffPath = 25;
 m_swipeMinDistance = 10;
 m_swipeMinVelocity = 10;
 }
 
 @Override
 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, 
 float velocityY)
 {
 if (Math.abs(e1.getX() - e2.getX())  m_swipeMaxOffPath  
 e1.getY() - e2.getY() = m_swipeMinDistance  
 Math.abs(velocityY) = m_swipeMinVelocity)
 {
 int pos = m_gallery.pointToPosition((int)e1.getX(), 
 (int)e1.getY());
 int firstPos = m_gallery.getFirstVisiblePosition();
 int viewablePos = pos - firstPos;
 View swipedView = m_gallery.getChildAt(viewablePos);
 
 if (swipedView != null)
 executeSwipeUpAction(pos);
 
 return true;
 }
 
 return false;
 }
 
 protected void executeSwipeUpAction(int pos)
 {
 //Do stuff
 }
 
 @Override
 public boolean onTouch(View v, MotionEvent event) 
 {
 return m_detector == null ? false : m_detector.onTouchEvent(event);
 }
 }
 
 I would then use this class as follows:
 
 Gallery myGallery = (Gallery) findViewById(R.id.myGalleryID);
 myGallery.setOnTouchListener(new GallerySwipeUpDetector(myGallery));
 
 There may be a better way to do this, but this worked for me.  If someone 
 else has another solution that works better then I would be interested as 
 well.  I really don't like having to call a method on my gallery and pass it 
 in as an argument to my listener (I think it's ugly and probably a poor 
 design), but that was the only thing I could think of to do and it works.
 
 Hope this helps,
 Justin
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Fri, May 21, 2010 at 3:31 PM, Justin Anderson magouyaw...@gmail.com 
 wrote:
 It is admittedly difficult to get it to work in 1.5...
 
 I have implemented it for my app on the market (AppSwipe!) but it was not 
 easy.  It might be a day or two before I have a chance to sit down and look 
 at my code but as soon as I can, I will post something here to at least point 
 you in the right direction.
 
 Thanks,
 
 Justin
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Tue, May 18, 2010 at 11:58 AM, Chris Ross cross+goo...@distal.com wrote:
 
  Hi there.  When searching for information about how to code up recognition 
 of a finger swipe across the screen, I find most references to the Gesture 
 API added in API level 4 (OS 1.6).  However, there are still quite a few 
 devices (The HTC Droid Eris, for example.  And the ole G1.) that are running 
 1.5.
 
  The rest of my app is working just fine requiring only API level 3, but I 
 would like to add swipe recognition.  The home screens on the afore-mentioned 
 OS 1.5 devices detect swipes to go across pages, so it must be possible in 
 there somewhere.  It is just

Re: [android-beginners] Newbie looking to buy a handset

2010-05-22 Thread Chris Luehmann
In my experience the N1's 3G problems were isolated instances and not global
problems.

Plus, those issues were with the original release of the t-mobile version,
as far as I know, the att handset has not had those problems and works on a
more standardized frequency for their 3G.

Sent from my Android powered device.

On May 22, 2010 4:11 PM, Danny Pimienta danny...@gmail.com wrote:

If you get a dev device, the ADP2 or a Nexus One it'll be unlocked.

Sent from my iPhone


On May 20, 2010, at 3:32 PM, Raveesh raveeshbhall...@gmail.com wrote:

 Hey all,

 I'm new to ...

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Newbie looking to buy a handset

2010-05-22 Thread Chris Luehmann
Also, while I'm unsure if you could receive updates OTA, you could easily
update by downloading the ROMs and manually updating the software/firmware.

Sent from my Android powered device.

On May 22, 2010 9:33 PM, Chris Luehmann crluehm...@gmail.com wrote:

In my experience the N1's 3G problems were isolated instances and not global
problems.

Plus, those issues were with the original release of the t-mobile version,
as far as I know, the att handset has not had those problems and works on a
more standardized frequency for their 3G.

Sent from my Android powered device.



 On May 22, 2010 4:11 PM, Danny Pimienta danny...@gmail.com wrote:

 If you get a dev devi...



 On May 20, 2010, at 3:32 PM, Raveesh raveeshbhall...@gmail.com wrote:

  Hey all,
 
 I'm new to ...

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Finger swipe in Android API level 3 (OS 1.5) ?

2010-05-18 Thread Chris Ross

  Hi there.  When searching for information about how to code up recognition of 
a finger swipe across the screen, I find most references to the Gesture API 
added in API level 4 (OS 1.6).  However, there are still quite a few devices 
(The HTC Droid Eris, for example.  And the ole G1.) that are running 1.5.

  The rest of my app is working just fine requiring only API level 3, but I 
would like to add swipe recognition.  The home screens on the afore-mentioned 
OS 1.5 devices detect swipes to go across pages, so it must be possible in 
there somewhere.  It is just that it's really hard before the API level 4 
Gesture code came in, or is it really effectively not possible?

  Can anyone tell me how to detect swipes (just a directional swipe left or 
right across the screen) in OS 1.5 (API  level 3, or below) ?

  Thanks...

  - Chris


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] App icon development?

2010-04-26 Thread Chris Ross


On Apr 26, 2010, at 15:21, TreKing wrote:

Isn't the current style mostly 2D?


  Well, yeah, I guess it mostly it.  It's somewhat 3D though, and  
there's a recommended projection into a 3D space.


My advice: go with whatever you have, want, or can make and don't  
stress about the recommended style. The standard icons changed  
drastically from 1.5 / 1.6 to 2.0 / 2.1, so, assuming you're  
supporting all of those platforms, you're icon is not going to match  
one them anyway. Plus the style is likely to change yet again in the  
future so whatever choice you make now will be invalidated then  
anyway.


  Okay.  Good point.  I'll take a broader look at the recommendations  
for 1.5/1.6/2.1.  I know I was looking at the page at  
developer.android.com that describes app icon ( and other icon)  
design, and it had specific recomendations regarding angles and  
perspective.  I know it's not mandatory, but I was trying to be  
good.  :-)


  Thanks for the advice.

- Chris

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Available data from an InputStream from URLConnection?

2010-04-12 Thread Chris Ross

  Sorry to ping again, but does anyone have any idea how to take an InputStream 
from a URLConnection, and make enough data available so that BitmapFactory will 
either (a) wait for the data, or (b) have all data already available to it?

  I looked at all of the various classes in/around InputStream, and I didn't 
see any way to preload it.  Do I need to get the content all by myself?

  - Chris

On Apr 10, 2010, at 10:03 PM, Chris Ross wrote:
  I have an AsyncTask retrieving content from a website.  A few of them in 
 parallel, actually.  I've noticed that when I run on a device, rather than 
 the emulator, I will sometimes get a null Bitmap back when I do:
 
  URLConnection conn = url.openConnection();
  Bitmap image = BitmapFactory.decodeStream(conn.getInputStream());
 
  I tried creating an InputStream locally from the connection, too, with no 
 effect.  I suspect the issue is just that sufficient data is not yet 
 available on the URLConnection to satisfy BitmapFactory.decodeStream().
 
  Other than adding a sleep (Thread.sleep), does anyone know of a way to 
 ensure that enough data is available, or otherwise tell BitmapFactory that it 
 should be more patient rather than returning a null Bitmap?
 
  Thanks...


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe, reply using remove me as the subject.


Re: [android-beginners] Re: What version of Android to use when programming basic apps?

2010-04-12 Thread Chris Ross

  I also had seen that pie chart and information, and loved it.  Unfortunately, 
I notice that it's data from the turn of the year (week ending 4-Jan-2010).  
Does anyone know if Market folks generate this data more regularly, and if 
there's any web site we could look at to see it?

  I'd love to know what people are using this month, rather than 4+ months ago.

 - Chris

On Apr 12, 2010, at 12:07 PM, a2ronus wrote:
 If you are going to publish the app on the Market, you might want to
 think about these issues:
 
 - An overview the relative amount of how many users are using which
 Android platform version: 
 http://developer.android.com/intl/zh-CN/resources/dashboard/platform-versions.html.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe, reply using remove me as the subject.


[android-beginners] Available data from an InputStream from URLConnection?

2010-04-10 Thread Chris Ross


  I have an AsyncTask retrieving content from a website.  A few of  
them in parallel, actually.  I've noticed that when I run on a device,  
rather than the emulator, I will sometimes get a null Bitmap back when  
I do:


  URLConnection conn = url.openConnection();
  Bitmap image = BitmapFactory.decodeStream(conn.getInputStream());

  I tried creating an InputStream locally from the connection, too,  
with no effect.  I suspect the issue is just that sufficient data is  
not yet available on the URLConnection to satisfy  
BitmapFactory.decodeStream().


  Other than adding a sleep (Thread.sleep), does anyone know of a way  
to ensure that enough data is available, or otherwise tell  
BitmapFactory that it should be more patient rather than returning a  
null Bitmap?


  Thanks...

- Chris

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe, reply using remove me as the subject.


Re: [android-beginners] Custom installation

2010-04-02 Thread Chris Ross

On Apr 2, 2010, at 7:19 AM, Mark Murphy wrote:
 Vladyslav Namashko wrote:
 2) make one installation for two .apk packages, that should be
 installed successively in appropriate order.
 
 No, not using the SDK. An APK is an APK -- an APK is not two APKs. You
 can have an APK download another APK and ask to have it installed, but
 the user will then need to go through the screens to review and accept
 that second installation, and you will have two entries in the user's
 Manage Applications list.
 
 You could also have an APK have another APK inside of it (e.g., in
 assets/), but then you will be taking up a *lot* of extra on-board flash
 space, which will not make you popular. And, the user will still need to
 go through the screens to review and accept that second installation,
 and you will still have two entries in the user's Manage Applications
 list.

  Not that I'm sure of this, but couldn't there be an application that did the 
installation, and after installing the one or two APK's packaged within it, it 
could then delete itself?  That would avoid the extra flash space usage issue.

  There would still be the issue of having to interact with the user for the 
later installation(s), but...

- Chris

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe, reply using remove me as the subject.


Re: [android-beginners] Re: screenOrientation question

2010-03-31 Thread Chris Ross

  Great, thanks for the info on rotating the emulator.

  That still doesn't really answer my question, but I think it suggests that 
it's an emulator bug.  When using an HVGA-L screen on a 1.5 emulator, the 
application wrongly comes up in portrait (sideways) on the landscape device.  
When I switch the device, which actually makes it appear upside-down of what 
the skin should look like, the application rotates with it, staying portrait.

  I think it's just a bug of the way the emulator sees landscape on a device 
that's wide than it is tall...

  Thanks.  I'll hope this won't be an issue on real phones...

 - Chris

On Mar 31, 2010, at 12:59 PM, niko20 wrote:
 Hi
 
 You can simulate orientation changes by pressing CNTRL + F12 This
 allows you to test if your app remains in the correct orientation.
 
 Use the portrait mode emulator screen and then flip orientations to
 make sure it stays. But what you have in the manifest is correct.
 
 -
 
 On Mar 30, 12:50 pm, Chris Ross cross+goo...@distal.com wrote:
   I have written an application that really only works/looks sensibly in 
 landscape orientation, ie wider than it is tall.  My understanding from web 
 research suggests the following attributes on my Activity in the manifest:
 
   android:screenOrientation=landscape
   android:configChanges=keyboardHidden
 
   Will force it into landscape, and keep it that way when the orientation 
 changes.  First, does that sound right?
 
   Second, when I'm running in a Portrait (normal) aspect emulator, running 
 1.5, it does the right thing.  It comes up in landscape mode.
 
   But, I noticed that when I run in a landscape emulator (HVGA-L) for the 
 Android OS 1.5 target, it makes it come up portrait.  Ie, still turned 90 
 degrees, but now using the wrong orientation on the given screen.
 
   Is this an emulator bug?  Is this a 1.5 bug?  Or have I done something 
 wrong?  Does the emulator have any ability to simulate orientation changes?  
 I don't see any menu option for it...
 
   Thanks
 
- Chris
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 To unsubscribe, reply using remove me as the subject.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] screenOrientation question

2010-03-30 Thread Chris Ross

  I have written an application that really only works/looks sensibly in 
landscape orientation, ie wider than it is tall.  My understanding from web 
research suggests the following attributes on my Activity in the manifest:

  android:screenOrientation=landscape
  android:configChanges=keyboardHidden 

  Will force it into landscape, and keep it that way when the orientation 
changes.  First, does that sound right?

  Second, when I'm running in a Portrait (normal) aspect emulator, running 1.5, 
it does the right thing.  It comes up in landscape mode.

  But, I noticed that when I run in a landscape emulator (HVGA-L) for the 
Android OS 1.5 target, it makes it come up portrait.  Ie, still turned 90 
degrees, but now using the wrong orientation on the given screen.

  Is this an emulator bug?  Is this a 1.5 bug?  Or have I done something wrong? 
 Does the emulator have any ability to simulate orientation changes?  I don't 
see any menu option for it...

  Thanks

   - Chris

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe from this group, send email to 
android-beginners+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-beginners] Failure in ActivityLaunch

2010-03-20 Thread Chris Ross

On Mar 20, 2010, at 12:29 AM, TreKing wrote:
 Oh no, sorry, I misread your post. Thought you were adding a new Activity.
 
 In this case, again, posting the actual error you're getting is the best way 
 to figure out what's wrong. What does the debugger / logcat output tell you?

  Well, as I was bundling up the output of the debugger and logcat, I figured 
out the issue.  Thanks.  *Well* back in the logcat output was the following 
piece.

  If you look in it, you'll see that it notes that I'd screwed up something in 
my layout that requires a layout_width (and layout_height) that I had not 
supplied.  I'm now back to the process running, although not yet working.  :-)

  Thanks much...  I'll be more careful to look through all of the logcat output 
in situations like this in the future...

- Chris


03-20 21:47:15.002: DEBUG/AndroidRuntime(713): Shutting down VM
03-20 21:47:15.002: WARN/dalvikvm(713): threadid=3: thread exiting with 
uncaught exception (group=0x4000fe70)
03-20 21:47:15.012: ERROR/AndroidRuntime(713): Uncaught handler: thread main 
exiting due to uncaught exception
03-20 21:47:15.132: ERROR/AndroidRuntime(713): java.lang.RuntimeException: 
Unable to start activity 
ComponentInfo{com.distal.aleboards/com.distal.aleboards.AleBoards}: 
java.lang.RuntimeException: Binary XML file line #9: You must supply a 
layout_width attribute.
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.app.ActivityThread.access$1800(ActivityThread.java:112)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.os.Handler.dispatchMessage(Handler.java:99)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.os.Looper.loop(Looper.java:123)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.app.ActivityThread.main(ActivityThread.java:3948)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
java.lang.reflect.Method.invokeNative(Native Method)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
java.lang.reflect.Method.invoke(Method.java:521)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
dalvik.system.NativeStart.main(Native Method)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): Caused by: 
java.lang.RuntimeException: Binary XML file line #9: You must supply a 
layout_width attribute.
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:3319)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.view.ViewGroup$MarginLayoutParams.init(ViewGroup.java:3399)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.widget.RelativeLayout$LayoutParams.init(RelativeLayout.java:840)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.widget.RelativeLayout.generateLayoutParams(RelativeLayout.java:761)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.widget.RelativeLayout.generateLayoutParams(RelativeLayout.java:52)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.view.LayoutInflater.rInflate(LayoutInflater.java:619)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:309)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.app.Activity.setContentView(Activity.java:1626)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
com.distal.aleboards.AleBoards.onCreate(AleBoards.java:56)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): ... 11 more

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your

[android-beginners] Failure in ActivityLaunch

2010-03-19 Thread Chris Ross


  I'm having a failure to even run my app of late.  I switched from  
running an activity, that starts a service (intended for only local  
use), to instead use an AsyncTask to perform the background processing  
(network load) I needed.


  The failure I'm seeing according to the debugger looks like an OS- 
level failure, presumedly due to something I've screwed up.  I've seen  
this sort of thing before, when I'd forgotten something in my  
manifest.xml, but I've looked at that a few times and don't know what  
I might've done.


  Any suggestions as to what I should look at?  I took the onCreate  
of my Activity and stubbed it out so it calls super, sets the view,  
then returns.  I'm still getting a failure to launch, so I think it's  
*not* in my java code, but as of now, that I've removed the service, I  
only have the one main activity, so my manifest is pretty basic.


  Any thoughts appreciated.  If I can provide any useful details, I'd  
be happy to.


   - Chris

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe from this group, send email to 
android-beginners+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [android-beginners] Failure in ActivityLaunch

2010-03-19 Thread Chris Ross


On Mar 19, 2010, at 21:01, TreKing wrote:
On Fri, Mar 19, 2010 at 7:45 PM, Chris Ross cross 
+goo...@distal.com wrote:

 If I can provide any useful details, I'd be happy to.

The error you're getting might be useful ...

Though based on your description I'm willing to bet you forgot to  
declare your new Activity in your manifest file...


  I thought about that, but is an AsyncTask a new activity?  I'd  
assumed not.  If that's the issue, then I was just misunderstanding  
what an AsyncTask was, and I can try to google around to figure out  
how to add it.


  I was under the impression that I had only the one Activity, but  
that it spawned background threads away from the U/I thread, that  
didn't need to be tracked in the manifest...


  Thanks.

   - Chris

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe from this group, send email to 
android-beginners+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [android-beginners] Re: possible to send an xml file via HttpClient?

2010-03-17 Thread Chris Ross

  You probably want to look at HttpPost or HttpPut, which implement 
HttpRequest, which is an available parameter to the execute() method in the 
HttpClient interface.

  Not 100% sure what you're trying to do, but that's the path of investigation 
I'd suggest.

   - Chris

On Mar 17, 2010, at 5:14 AM, KC Dev Android 06 wrote:
 Any suggestions?
 
 On Mar 16, 4:45 pm, KC Dev Android 06
 kc.dev.android...@googlemail.com wrote:
 Hi, as the title says, is it possible to do so? in the examples found
 herehttp://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4
 
 It seems that HttpClient only accepts a String as its parameter? how
 do i go about sending/uploading a xml file using http?
 
 thanks in advance.
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: possible to send an xml file via HttpClient?

2010-03-17 Thread Chris Ross

  You can send parameters encoded in the url of an HTTP GET operation, but I 
wouldn't suggest using anything long.  I would suggest using an HTTP POST 
operation, or if you actually want to treat it as a file, rather than a blob 
of XML data, an HTTP PUT.  Most any web server software will know how to 
handle an HTTP POST, for sure.

  The question is, what does the server expect?  This is much more an HTTP 
question than an android question.

  - Chris

On Mar 17, 2010, at 10:38 AM, KC Dev Android 06 wrote:
 What im trying to do is simply send a xml file that i have created
 into a http server. The way i understand http is that the request and
 any kind of data ie a name value pair such as a username can be added
 and included in the actual url string.
 
 my question is, how do you go about constructing a url connection with
 an xml file added to it?
 
 On Mar 17, 2:23 pm, Chris Ross cross+goo...@distal.com wrote:
   You probably want to look at HttpPost or HttpPut, which implement 
 HttpRequest, which is an available parameter to the execute() method in the 
 HttpClient interface.
 
   Not 100% sure what you're trying to do, but that's the path of 
 investigation I'd suggest.
 
- Chris
 
 On Mar 17, 2010, at 5:14 AM, KC Dev Android 06 wrote:
 
 Any suggestions?
 
 On Mar 16, 4:45 pm, KC Dev Android 06
 kc.dev.android...@googlemail.com wrote:
 Hi, as the title says, is it possible to do so? in the examples found
 herehttp://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4
 
 It seems that HttpClient only accepts a String as its parameter? how
 do i go about sending/uploading a xml file using http?
 
 thanks in advance.
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: possible to send an xml file via HttpClient?

2010-03-17 Thread Chris Ross

  But, do you know exactly what sort of HTTP operation is expected by the 
server, and how it expects the xml file to be encoded and transmitted?  If 
you do not know these answers, very precisely, you won't know how to code you 
client.

  As for HTTP and your second question, see 
http://www.w3.org/Protocols/rfc2616/rfc2616.html and a quick google finds 
http://www.jmarshall.com/easy/http/ which might be at least as valuable.

   - Chris

On Mar 17, 2010, at 10:50 AM, KC Dev Android 06 wrote:
 The server basically expects the contacts stored on a android device
 in an xml file.
 
 So in a HTTP get operation i can send any parameters i want be in a
 xml file, string, int etc?
 
 On Mar 17, 2:44 pm, Chris Ross cross+goo...@distal.com wrote:
   You can send parameters encoded in the url of an HTTP GET operation, but I 
 wouldn't suggest using anything long.  I would suggest using an HTTP POST 
 operation, or if you actually want to treat it as a file, rather than a 
 blob of XML data, an HTTP PUT.  Most any web server software will know how 
 to handle an HTTP POST, for sure.
 
   The question is, what does the server expect?  This is much more an HTTP 
 question than an android question.
 
   - Chris
 
 On Mar 17, 2010, at 10:38 AM, KC Dev Android 06 wrote:
 
 What im trying to do is simply send a xml file that i have created
 into a http server. The way i understand http is that the request and
 any kind of data ie a name value pair such as a username can be added
 and included in the actual url string.
 
 my question is, how do you go about constructing a url connection with
 an xml file added to it?
 
 On Mar 17, 2:23 pm, Chris Ross cross+goo...@distal.com wrote:
   You probably want to look at HttpPost or HttpPut, which implement 
 HttpRequest, which is an available parameter to the execute() method in 
 the HttpClient interface.
 
   Not 100% sure what you're trying to do, but that's the path of 
 investigation I'd suggest.
 
- Chris
 
 On Mar 17, 2010, at 5:14 AM, KC Dev Android 06 wrote:
 
 Any suggestions?
 
 On Mar 16, 4:45 pm, KC Dev Android 06
 kc.dev.android...@googlemail.com wrote:
 Hi, as the title says, is it possible to do so? in the examples found
 herehttp://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4
 
 It seems that HttpClient only accepts a String as its parameter? how
 do i go about sending/uploading a xml file using http?
 
 thanks in advance.
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] ViewFactory for multiple switchers?

2010-03-16 Thread Chris Ross
  At first glance, I don't see a way for a class to act as a ViewFactory for 
multiple ViewSwitchers.  Specifically, I have both an ImageSwitcher and a 
TextSwitcher in my activity, and while I understand I can create a small class 
to act as a factory for one (or each) of them, the example code just implements 
all of that within the Activity.

  Is there a way to provide views for multiple ViewSwitchers?  By figuring out 
which switcher is invoking it, or some other such?

  Thanks...

- Chris

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] ViewSwitcher basics

2010-02-16 Thread Chris Ross


  Hi there.  I'm just looking into getting into Android development.   
My Java skills are modest, but I have extensive C/C++/Obj-C  
experience, and have done development of iPhone applications, so I  
understand the conceptual issues.


  In learning to use the Android SDK, I took as an intro project  
wanting to build an application to view multiple images.  Much like a  
Gallery object does, in concert with a ImageSwitcher, which I see in  
the API Demos application.  However, my concept didn't have a pre-set  
image list, nor thumbnails.


  So, just in Take n images, obtained from somewhere (WWW, most  
likely), and allow the user to switch through them terms, I started  
looking at ImageSwitcher, as it seemed good.  But, it's not clear to  
me how to control it without some other class, such as Gallery.   
Although, if I could bind a swipe control directly to an  
ImageSwitcher, it might suffice.


  Looking at ViewSwitcher, however, shows that it might do what I  
want.  If I understand correctly, I could implement a ViewFactory that  
would produce the correct next image.  Since I want to switch  
between N images, and ViewSwither only handles two.


  If I'm headed down the wrong path, I'd be happy to be told so.   
Otherwise, any suggestions as to whether a ViewSwitcher.ViewFactory  
can be used in this way would help.  I suppose I'm just looking for a  
validity check from people who know more than I.


  Thanks.  Sorry for a newbie-ish question, but it is a beginners  
list after-all.  :-)


  - Chris

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Need help with determinate progress bar

2010-01-26 Thread Chris
Hello everyone

I have tried following the ProgressBar1,2, and 3 examples, but I am
having a problem creating a determinate progress bar.   Using Eclipse
I add a ProgressBar to my layout and set the 'indeterminate' attribute
to false, however when it appears in the emulator, it is
indeterminate.  I've tried programmtically setting it - same problem.

I'm able to use the seekbar widget with no problem - but not what I
need.

This is such a trivial thing - if anyone can show me how to create a
simple horizontal progress bar that is determinate, has a determinate
end, I will be very happy.

Thanks


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: no text displayed on emulator in Hello World program

2009-12-24 Thread Chris Spencer
Sorry, spoke too soon. The simulator is indeed quite slow to boot.
After a few minutes, the app shows up.

On Wed, Dec 23, 2009 at 10:42 AM, Chris S chriss...@gmail.com wrote:
 Has anyone figured this out yet? It's a bit depressing something as
 simple as Android's hello world tutorial doesn't work.

 I'm running this under Eclipse 3.5 on Ubuntu. The fancy emulator
 window pops up, showing a reddish phone displaying the Android logo,
 and that's it. My console seems to show a red message (presumably an
 error?):

 [2009-12-23 10:34:19 - HelloAndroid]Android Launch!
 [2009-12-23 10:34:19 - HelloAndroid]adb is running normally.
 [2009-12-23 10:34:19 - HelloAndroid]Performing
 com.example.helloandroid.HelloAndroid activity launch
 [2009-12-23 10:34:19 - HelloAndroid]Automatic Target Mode: launching
 new emulator with compatible AVD 'my_avd'
 [2009-12-23 10:34:19 - HelloAndroid]Launching a new emulator with
 Virtual Device 'my_avd'
 [2009-12-23 10:34:19 - HelloAndroid]New emulator found: emulator-5554
 [2009-12-23 10:34:19 - HelloAndroid]Waiting for HOME
 ('android.process.acore') to be launched...
 [2009-12-23 10:34:20 - Emulator]emulator: emulator window was out of
 view and was recentred
 [2009-12-23 10:34:20 - Emulator]
 [2009-12-23 10:34:49 - HelloAndroid]emulator-5554 disconnected!
 Cancelling 'com.example.helloandroid.HelloAndroid activity launch'!

 Am I missing something?

 Chris

 On Dec 22, 9:14 pm, Dayong Sun sund...@gmail.com wrote:
 The emulator is VERY slow. Wait for 10 minutes and then you will see it.



 On Fri, Dec 18, 2009 at 4:49 AM, Amit Patel amit.sav...@gmail.com wrote:
  I am facing same problem as does cybereality

  On Nov 16, 6:42 am, cybereality cybereal...@gmail.com wrote:
  I am having the same problem on Eclipse. The 'hello, android' text
  does not show up, even though the program compiles and I followed
  every instruction exactly. The emulator pops up but just shows the
  default android text and nothing happens. Can anyone help?

  On Nov 11, 8:17 pm, Bossco juanbos...@gmail.com wrote:

   Hello, I'm using NetBeans, and I have the same problem, theemulator
   does not show the text.

   I got this error:

   Device's package manager not ready to install new packages

   On Nov 5, 9:59 am, Walker Rowe wer...@walkerrowe.com wrote:

Hi,

Following the tutorial I wrote the hello world application shown below
and eclipse shows the console messages shown at the bottom.  Problem
is theemulatorlaunched just has normal graphical display and does
not show the message Hello, Android.

package com.rosewoodhillfarm.helloandroid;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HelloAndroid extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        TextView tv = new TextView(this);
        tv.setText(Hello, Android);
        setContentView(tv);
    }

}

[2009-11-05 12:37:57 - Android Project]--
[2009-11-05 12:37:57 - Android Project]Android Launch!
[2009-11-05 12:37:57 - Android Project]adb is running normally.
[2009-11-05 12:37:57 - Android Project]Performing
com.rosewoodhillfarm.helloandroid.HelloAndroid activity launch
[2009-11-05 12:37:57 - Android Project]Automatic Target Mode:
Preferred AVD 'my_avd' is not available. Launching newemulator.
[2009-11-05 12:37:57 - Android Project]Launching a newemulatorwith
Virtual Device 'my_avd'
[2009-11-05 12:38:01 - Android Project]Newemulatorfound:
   emulator-5554
[2009-11-05 12:38:01 - Android Project]Waiting for HOME
('android.process.acore') to be launched...
[2009-11-05 12:38:34 - Android Project]HOME is up on device
'emulator-5554'
[2009-11-05 12:38:34 - Android Project]Uploading Android Project.apk
onto device 'emulator-5554'
[2009-11-05 12:38:34 - Android Project]Installing Android
Project.apk...
[2009-11-05 12:38:48 - Android Project]Success!
[2009-11-05 12:38:48 - Android Project]Starting activity
com.rosewoodhillfarm.helloandroid.HelloAndroid on device
[2009-11-05 12:38:56 - Android Project]ActivityManager: Starting:
Intent { cmp=com.rosewoodhillfarm.helloandroid/.HelloAndroid }

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow

[android-beginners] Enabling Android.Speech

2009-12-23 Thread Chris S
I'm trying to play around with the TTS capabilities outlined at
http://android-developers.blogspot.com/2009/09/introduction-to-text-to-speech-in.html

However, the default SDK setup doesn't seem to include a reference to
the android.speech.* package. Is there some additional add-on I have
to install in order to get this to work?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: no text displayed on emulator in Hello World program

2009-12-23 Thread Chris S
Has anyone figured this out yet? It's a bit depressing something as
simple as Android's hello world tutorial doesn't work.

I'm running this under Eclipse 3.5 on Ubuntu. The fancy emulator
window pops up, showing a reddish phone displaying the Android logo,
and that's it. My console seems to show a red message (presumably an
error?):

[2009-12-23 10:34:19 - HelloAndroid]Android Launch!
[2009-12-23 10:34:19 - HelloAndroid]adb is running normally.
[2009-12-23 10:34:19 - HelloAndroid]Performing
com.example.helloandroid.HelloAndroid activity launch
[2009-12-23 10:34:19 - HelloAndroid]Automatic Target Mode: launching
new emulator with compatible AVD 'my_avd'
[2009-12-23 10:34:19 - HelloAndroid]Launching a new emulator with
Virtual Device 'my_avd'
[2009-12-23 10:34:19 - HelloAndroid]New emulator found: emulator-5554
[2009-12-23 10:34:19 - HelloAndroid]Waiting for HOME
('android.process.acore') to be launched...
[2009-12-23 10:34:20 - Emulator]emulator: emulator window was out of
view and was recentred
[2009-12-23 10:34:20 - Emulator]
[2009-12-23 10:34:49 - HelloAndroid]emulator-5554 disconnected!
Cancelling 'com.example.helloandroid.HelloAndroid activity launch'!

Am I missing something?

Chris

On Dec 22, 9:14 pm, Dayong Sun sund...@gmail.com wrote:
 The emulator is VERY slow. Wait for 10 minutes and then you will see it.



 On Fri, Dec 18, 2009 at 4:49 AM, Amit Patel amit.sav...@gmail.com wrote:
  I am facing same problem as does cybereality

  On Nov 16, 6:42 am, cybereality cybereal...@gmail.com wrote:
  I am having the same problem on Eclipse. The 'hello, android' text
  does not show up, even though the program compiles and I followed
  every instruction exactly. The emulator pops up but just shows the
  default android text and nothing happens. Can anyone help?

  On Nov 11, 8:17 pm, Bossco juanbos...@gmail.com wrote:

   Hello, I'm using NetBeans, and I have the same problem, theemulator
   does not show the text.

   I got this error:

   Device's package manager not ready to install new packages

   On Nov 5, 9:59 am, Walker Rowe wer...@walkerrowe.com wrote:

Hi,

Following the tutorial I wrote the hello world application shown below
and eclipse shows the console messages shown at the bottom.  Problem
is theemulatorlaunched just has normal graphical display and does
not show the message Hello, Android.

package com.rosewoodhillfarm.helloandroid;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HelloAndroid extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        TextView tv = new TextView(this);
        tv.setText(Hello, Android);
        setContentView(tv);
    }

}

[2009-11-05 12:37:57 - Android Project]--
[2009-11-05 12:37:57 - Android Project]Android Launch!
[2009-11-05 12:37:57 - Android Project]adb is running normally.
[2009-11-05 12:37:57 - Android Project]Performing
com.rosewoodhillfarm.helloandroid.HelloAndroid activity launch
[2009-11-05 12:37:57 - Android Project]Automatic Target Mode:
Preferred AVD 'my_avd' is not available. Launching newemulator.
[2009-11-05 12:37:57 - Android Project]Launching a newemulatorwith
Virtual Device 'my_avd'
[2009-11-05 12:38:01 - Android Project]Newemulatorfound:
   emulator-5554
[2009-11-05 12:38:01 - Android Project]Waiting for HOME
('android.process.acore') to be launched...
[2009-11-05 12:38:34 - Android Project]HOME is up on device
'emulator-5554'
[2009-11-05 12:38:34 - Android Project]Uploading Android Project.apk
onto device 'emulator-5554'
[2009-11-05 12:38:34 - Android Project]Installing Android
Project.apk...
[2009-11-05 12:38:48 - Android Project]Success!
[2009-11-05 12:38:48 - Android Project]Starting activity
com.rosewoodhillfarm.helloandroid.HelloAndroid on device
[2009-11-05 12:38:56 - Android Project]ActivityManager: Starting:
Intent { cmp=com.rosewoodhillfarm.helloandroid/.HelloAndroid }

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http

[android-beginners] stream internet radio

2009-12-15 Thread chris
hi,,, i' need some simple code to stream my radio
station ...vulive.co.uk

-- 
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] Using Google Maps API for a navigational app

2009-12-10 Thread Chris Janota
Does anybody know if you require Google Maps api PREMIER to create a
Android navigational app?  I understand you must use Premier instead
of the free Google Maps api if you are charging a fee for use.But
i have requested info on Premier so i can get the pricing structure
and never receive a response.  Any navigational app developers
experience this?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] App idea. Database downloading of my products?

2009-12-06 Thread Chris Janota
I already have a website that offers dvd product search. I'm thinking
of offering an app for our customers that, in additional to mobility,
will offer quicker searching than our website offers.  I'm wondering
if there is a practical way to allow Android phone users to download
our product database and search directly on their phone allowing
instantaneous search results? (avoiding a web search delay?)

Most of the searches are done using UPC search to query used dvds they
want to sell to us.

I don't see any apps on the market that allow this unless i am missing
it.

-- 
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] Faster searches. Can database be icluded in app?

2009-12-06 Thread Chris Janota
I already have a website that has dvd product search. I'm thinking of
offering an app for our customers that, in additional to mobility,
will offer quicker searching.  I'm wondering if there is a practical
way to allow Android phone users to download our product database and
search directly on their phone allowing instantaneous search results?
(avoiding a web search delay?)

Most of the searches are done using UPC search to query used dvds they
want to sell to us.

I don't see any apps on the market that allow this unless i am missing
it. 

-- 
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] Clear difference between local and remote service?

2009-11-29 Thread Chris
Can anyone explain the difference between a local and remote service?
My understanding is that they both run in a new process, but a local
service dies when the invoking activity is destroyed - surely this is
simply a more complicated version of Thread?

-- 
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: No internet connection in emulator

2009-11-15 Thread Chris
I get the same problem in Ubuntu 9.4 and Android SDK 1.6.

netstate -r displays the following:

Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:5037 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0: 0.0.0.0:* LISTEN
tcp 0 0 10.0.2.15: 10.0.2.2:48937 ESTABLISHED

netcfg shows:
lo UP 127.0.0.1 255.0.0.0 0x0049
eth0 UP 10.0.2.15 255.255.255.0 0x1043
tun10 DOWN 0.0.0.0 0.0.0.0 0x0080
gre0 DOWN 0.0.0.0 0.0.0.0 0x0080

Any ideas?
Thanks,
Christian

On Nov 2, 2:22 pm, erisa baw...@ucdavis.edu wrote:
 After a fresh install of ubuntu 9.10 and the Android SDK, I discovered
 that the emulator hasnointernet access.  All websites produce the
 Page not available screen when accessed by the Android browser
 (1.6).  I do not have a firewall and my internet access from my
 computer is fully functional.  Any ideas on trouble shooting?

 Bruce

-- 
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] Building an app around Google Maps Navigation

2009-11-12 Thread Chris Janota
I want to build a navigational app that builds around the new Google
Maps Navigation.  Can the SDK for Navigation be downloaded? or is
there a different way to go about this?  Sorry im new at this.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Using Text to Speech (Pico) in 1.6 SDK

2009-11-11 Thread Chris Zaniewski
How the heck do i get TTS to work on my Droid PLEASE HELP

On Oct 11, 9:27 am, Thomas Riley tomrile...@googlemail.com wrote:
 Hello,

 As mark says check the android blog for info.

 I have an app on the market which is heavily based around the newTTS
 Engine so if you have any other questions or problems feel free to
 email me :)

 Cheerio,
 Tom.

 On Oct 10, 7:55 pm, jax jackma...@gmail.com wrote:

  great thanks

  On Oct 11, 1:43 am, Mark Murphy mmur...@commonsware.com wrote:

   jax wrote:
Does anyone know how to use the newPicoText to Speech library in SDK
1.6.  I can't seem to find anything about it.  Even in the developer
section of the android site.

   Try:

  http://developer.android.com/reference/android/speech/tts/package-sum...

   and:

  http://android-developers.blogspot.com/2009/09/introduction-to-text-t...

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

   Android Development Wiki:http://wiki.andmob.org

-- 
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] Unable to update TextView on a scheduled-basis

2009-11-11 Thread Chris
Hello everyone, I'm new to Android (but not Java), so bear with me.


I'm trying to create a stopwatch-type UI, where a digital timer is
displayed and incrementing every second.  I started off creating a
textview and attempted to update this textview (TextView.setText())
using either the TimerTask class to update the view in a timer as well
as updating the view in the same thread, using a Thread.sleep(1000).

In either case, the view does not get updated. Obviously this doesn't
seem to be the proper way to go about updating a text view.  Any
suggestions on the proper way to notify the textview?

Thanks
Chris

-- 
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


Re: [android-beginners] Re: modular programming (design pattern)

2009-11-11 Thread Chris Zaniewski
Please usubscribe

On Nov 9, 2009 2:12 PM, Justin Anderson janderson@gmail.com wrote:

Are you going to be the only person developing these modules, or are you
planning on creating some sort of a framework that other developers will be
able to tap into?
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--

On Sun, Nov 8, 2009 at 4:23 AM, Marton Kodok pentiu...@gmail.com wrote: 
 For example if I ha...
-- 

You received this message because you are subscribed to the Google Groups
Android Beginners group

-- 
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] How to set clickable areas of a single image?

2009-10-29 Thread Chris

Hi All

I have one image (it's a guitar fretboard), and I want to identify/act
on touch of events when different parts of the image are touched/
selected.

I can set the whole image to be clickable with setClickOnListener of
ImageView.

Is there a way to either:

1. Identify the coordinates of which point has been touched?
2. Define sub areas on the image and setClickOnListener for those
areas?

Otherwise, I'm thinking I must implement a GridView and dissect my
image into individual images and arrange them so they look like one
large image.

Thanks for any help!
Chris

--~--~-~--~~~---~--~~
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: Problems with WakeLock

2009-10-18 Thread Chris

Is there perhaps a way I can force the action?  or perhaps there is a
better event to use than onPause?

On Oct 16, 7:03 pm, Balwinder Kaur (T-Mobile USA) balwinder.k...@t-
mobile.com wrote:
 Ok. I was able to reproduce the problem, but it happened only twice
 ( I must have tried it about 12~15 times).

 I also found this discussion thread 
 .http://groups.google.com/group/android-developers/browse_thread/threa...

 I assume you have a reference to mWakeLock object, I do in my test
 program.

 Seems like a timing issue. The GC kicks in before the
 PowerManagerService is able to service the release of the WakeLock.

 Maybe one of the Android Framework Engineers would like to reply to
 this one :)

 Balwinder Kaur
 Mobile.Software.Development
 ·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 Oct 16, 1:43 am, Chris themaninthesuitc...@googlemail.com wrote:

  Occurs on both emu (the 1.6 one) and a HTC Hero (running latest rom
  which is a 1.5 one).

  SDK is the latest using the 1.5 API.

  The finish is in a onClick handler (allowTapToClose is a private
  member)
  public void onClick(View v) {
                  if (allowTapToClose) {
                      setResult(RESULT_OK);
                      finish();
                  }
              }

  out side of the calls posted it doesn't really do very much it's just
  a display;ay at the moment.

  On 15 Oct, 18:13, Balwinder Kaur (T-Mobile USA) balwinder.k...@t-

  mobile.com wrote:
   Could you please post the rest of your code - or at least the portion
   where you call finish. I can't reproduce your problem with the
   information that is present.

   Also, what version of the SDK are you using and where are you seeing
   this problem..on a device (which one) or the emulator (which
   platform) ?

   Thanks,
   Balwinder Kaur
   Mobile.Software.Development
   ·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 Oct 15, 2:51 am, Chris themaninthesuitc...@googlemail.com wrote:

I am using a PowerManager.WakeLock to lock to stop the screen auto
diming after a period of non use.  This works fine up until I try to
release the lock.

    private void aquireBacklightLock() {
        PowerManager pm = (PowerManager) getSystemService
(Context.POWER_SERVICE);
        mWakeLock = pm.newWakeLock
(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, mTag);
        mWakeLock.acquire();
    }

    private void releaseBacklightLock() {
        if (mWakeLock != null) {
            mWakeLock.release();
        }
    }

The aquireBacklightLock is called when the activity is created or
resumed.  releaseBacklightLock is called in the onPause.  However, if
I exit the app (I call finish) I get a force close a few seconds
later.  The logcat is saying WakeLock finalized while still held.

Where am I going wrong?
--~--~-~--~~~---~--~~
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: Problems with WakeLock

2009-10-16 Thread Chris

Occurs on both emu (the 1.6 one) and a HTC Hero (running latest rom
which is a 1.5 one).

SDK is the latest using the 1.5 API.

The finish is in a onClick handler (allowTapToClose is a private
member)
public void onClick(View v) {
if (allowTapToClose) {
setResult(RESULT_OK);
finish();
}
}

out side of the calls posted it doesn't really do very much it's just
a display;ay at the moment.

On 15 Oct, 18:13, Balwinder Kaur (T-Mobile USA) balwinder.k...@t-
mobile.com wrote:
 Could you please post the rest of your code - or at least the portion
 where you call finish. I can't reproduce your problem with the
 information that is present.

 Also, what version of the SDK are you using and where are you seeing
 this problem..on a device (which one) or the emulator (which
 platform) ?

 Thanks,
 Balwinder Kaur
 Mobile.Software.Development
 ·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 Oct 15, 2:51 am, Chris themaninthesuitc...@googlemail.com wrote:

  I am using a PowerManager.WakeLock to lock to stop the screen auto
  diming after a period of non use.  This works fine up until I try to
  release the lock.

      private void aquireBacklightLock() {
          PowerManager pm = (PowerManager) getSystemService
  (Context.POWER_SERVICE);
          mWakeLock = pm.newWakeLock
  (PowerManager.SCREEN_BRIGHT_WAKE_LOCK, mTag);
          mWakeLock.acquire();
      }

      private void releaseBacklightLock() {
          if (mWakeLock != null) {
              mWakeLock.release();
          }
      }

  The aquireBacklightLock is called when the activity is created or
  resumed.  releaseBacklightLock is called in the onPause.  However, if
  I exit the app (I call finish) I get a force close a few seconds
  later.  The logcat is saying WakeLock finalized while still held.

  Where am I going wrong?
--~--~-~--~~~---~--~~
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: how to call a function after taking snap from camera?? plz help

2009-10-15 Thread Chris

Have you tried using StartActivityForResult then calling the myfunction
() in an override of onActivityResult?

Chris.

On Oct 15, 1:58 am, wahib wahib.t...@gmail.com wrote:
 Hi!! I am stuck with this issue. When i press a button in my custom
 app the built-in camera app executes but after taking snap i want to
 run my code on the image taken but the camera preview doesnt
 vanishes:S I just want to exit the preview and run my code. Being a
 newbie i am really confused how to do it.

 This is the code in onclick() function for button -

 Intent intent = new Intent();
 intent.setClassName
 (com.android.camera,                com.android.camera.Camera);
                                 
 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 startActivity(intent);

 myfunction() ;   ///what i want to call
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
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-10-12 Thread Chris

I finally managed to do some testing on a HTC Hero.  It does seem that
the LayoutParams are specific to the activity.  Setting full
brightness on one activity went back to normal once I closed the
activity/it lost focus.

On 30 Sep, 09:41, Chris themaninthesuitc...@googlemail.com wrote:
 I know how you feel, I often get the same on other forums where I have
 more expertise.  I will do some testing once I have a device to hand
 as the emulator gives no indication of the brightness.  Once I know
 for sure I will post here again.

 On Sep 30, 6:35 am, Justin Anderson janderson@gmail.com wrote:

  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
-~--~~~~--~~--~--~---



[android-beginners] How to find permissions required

2009-10-08 Thread Chris

I am trying to see if some of the classes I am using require any
permissions to be set on the manifest.  How can I tell if a given
Class requires a permission.  Example I know PowerManager.WakeLock
needs the WAKE_LOCK permission but the documentation on
PowerManager.WakeLock makes no reference to any permissions required.
How would I have found this with out the example code I found telling
me?
--~--~-~--~~~---~--~~
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: How to find permissions required

2009-10-08 Thread Chris

I take it this would need to be done on a real device not the
emulator?

On Oct 8, 10:38 am, jbrohan jbro...@gmail.com wrote:
 I've found that there is an error reported in the logcat which is
 quite clear about a missing permission. Just keep going and look at
 the logcat output.
 John

 On Oct 8, 5:13 am, Chris themaninthesuitc...@googlemail.com wrote:

  I am trying to see if some of the classes I am using require any
  permissions to be set on the manifest.  How can I tell if a given
  Class requires a permission.  Example I know PowerManager.WakeLock
  needs the WAKE_LOCK permission but the documentation on
  PowerManager.WakeLock makes no reference to any permissions required.
  How would I have found this with out the example code I found telling
  me?
--~--~-~--~~~---~--~~
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 communication

2009-10-05 Thread Chris Stratton

Or to put it another way, the current method is to use a make a server
somewhere on the internet (or perhaps wifi intranet)  to catalog and
function as an intermediary between the phones.

In the future or maybe now with low-level hacking, ad-hoc wifi or
something bluetooth based could become an option.

On Oct 5, 4:09 pm, Roman ( T-Mobile USA) roman.baumgaert...@t-
mobile.com wrote:
 If you want to communicate within a wireless LAN  (using
 infrastructure mode on Wifi) you can come up with your own discovery
 protocol.

 If you want to communicate outside your locale network, you might want
 to use some cloud service which can help with client discovery.

 Another option might be Wifi Adhoc. Current Android SDK has no support
 for Wifi Adhoc, but you can get it running on platform level (or wait
 till it's supported).

 --
 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 Oct 2, 4:51 pm, Jerome White jer...@cs.caltech.edu wrote:

  I'd like to build an application in which there are several Android
  devices that communicate amongst themselves. What is the best way to
  do this? Wi-Fi seems like a good option, in that you can discover your
  neighbors and don't need any hard coded identifiers (such a phone
  number), but I'm not sure. What is the standard practice? Thanks

  jerome
--~--~-~--~~~---~--~~
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: Compile C on Android Phone

2009-10-03 Thread Chris Stratton

On Oct 3, 5:18 am, Sean Hodges seanhodge...@googlemail.com wrote:
 As far as I'm aware, no. There is no native C compiler available for
 the stock Android platform. To get that level of access to your
 device, you'd need to root the phone and cross-compile a tool-chain
 for it.

Rooting the phone is not technically required, though it would make
life easier by opening up your options for where to install the
executable.

I'm not aware of a C compile that has been made to run on an android
phone (as opposed to produce executables for one, which is common).
I'm sure it is possible, however I would also suggest that it's
probably not a good idea - you have a computer with limited ram, the
available storage media is not really designed for intensive re-write
cycles, and you don't exactly have a great platform on which to do
serious file editing.  But none of these things mean you couldn't do a
little light duty development on the phone if you really, really want
to.

If you really want to do it, an option to compiling a compiler with
the android toolchain would be to see if you could make one built to
run on arm-linux work by moving over enough of the arm-linux shared
libraries, as this may be simpler than trying to compile against
android's non-linux libraries.  Look up the people who have been
running Debian-arm on (rooted) phones.

--~--~-~--~~~---~--~~
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-30 Thread Chris

I know how you feel, I often get the same on other forums where I have
more expertise.  I will do some testing once I have a device to hand
as the emulator gives no indication of the brightness.  Once I know
for sure I will post here again.

On Sep 30, 6:35 am, Justin Anderson janderson@gmail.com wrote:
 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
-~--~~~~--~~--~--~---



[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] 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: Unable to compile C application in Emulator

2009-09-18 Thread Chris Stratton

On Sep 17, 1:55 am, Smruti Pragyan Misra smruti...@gmail.com wrote:
 Hi,
         I have compiled a C application with ELDK4.1 for ARM.However when I
 push it to Android and tried to run it on the shell,it fail.Please help me
 with this.

That is not the right toolchain to be using for Android, as while
Android has a linux kernel it does not have a usual linux userspace or
libraries.  If you can statically link the executable and it's in the
right format it might work, but Android is primarily intended for
pseudo-java programming within it's provided SDK.  If you really want
to write (or port) C programs, download the android NDK and re purpose
its toolchain to build executables dynamically linked against
Android's unique runtime libraries.  That toolchain is actually
intended for building jni libraries, not stand alone executables, but
if you search for an unofficial setup called android-ndk-wrappers
you will be able to set it up for somewhat normal compiler usage.

Also your executable will have to be stored somewhere that is not
mounted noexec, and have its exec bit set.
--~--~-~--~~~---~--~~
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: Routing audio to within the call

2009-09-18 Thread Chris Stratton

On Sep 17, 1:42 pm, Ron Schnell schn...@gmail.com wrote:
 I've been following the new APIs as they come out, and I notice a few
 different options on how to route media playback to the speaker,
 bluetooth, earpiece, etc.  But I have never seen an option to route
 media playback into an active telephone call. Am I correct that this
 is impossible?  Any chance that it will become possible?

Opinions seem to vary between not possible on current phones and
not possible with the current baseband firmware for current phones -
ie, at the very least it needs changes below the level of 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: Development Phone

2009-09-17 Thread Chris Stratton

On Sep 17, 8:55 am, Jeffrey Blattman jeffrey.blatt...@gmail.com
wrote:

 unlocked means it is not tied to a particular provider, so that is
 irrelevant to the question. you can normally add / remove any apps you
 want on a standard android phone.

I don't think you will be able to remove the applications that ship
with the phone unless you build and flash new system images, and for
that you will need root or a bootloader that lets you flash unsigned
firmware.
--~--~-~--~~~---~--~~
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: Terminate call programmatically

2009-09-17 Thread Chris Stratton

On Sep 17, 7:12 am, Mark Murphy mmur...@commonsware.com wrote:

 2. You cannot hangup/terminate call programmatically from an SDK
 application.

Can you turn off the radio / enter airplane mode?   Or will that only
pop up a dialog for the 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] HTC Hero connection problem causes USB device ID to change from 0bb4:0c01 to 0bb4:0c02.

2009-09-17 Thread Chris Dew

I just wanted to post this, it took me three hours to get adb to list
my phone...

http://www.finalcog.com/htc-hero-android-adb-0bb4-0c01-ubuntu-jaunty-0bb4-0c02-problem

Did anyone else have this problem?

Chris.

--~--~-~--~~~---~--~~
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: Development on the MyTouch 3G

2009-09-13 Thread Chris Stratton

On Sep 13, 9:45 pm, Roman ( T-Mobile USA) roman.baumgaert...@t-
mobile.com wrote:
 Don't worry. You have not to send back your MyTouch. You can do what
 you can do with the G1 or developer phone.

Well, a myTouch user isn't t likely to inadvertently write
applications that don't work without a slide-out keyboard ;-)

--~--~-~--~~~---~--~~
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: How Can I Block Unwanted Calls.

2009-09-10 Thread Chris Stratton

But there's no reason a future version of the platform couldn't
include both a documented api and an explicit reject calls
permission.

On Sep 10, 12:51 pm, Chris Stratton cs07...@gmail.com wrote:
 On Sep 10, 11:48 am, Mark Murphy mmur...@commonsware.com wrote:

  Blocking incoming phone calls...even if I
  knew how to do it, I would not be discussing it on an open list like
  this. After all, malware might exploit this capability to block all
  incoming calls, or random incoming calls, or something.

 Malware with the permission to block calls would also have the
 permission to make calls, wouldn't it?  If so, would think that be
 more serious, potentially running up substantial bills - and point to
 the same caution of users needing to be careful of what applications
 with phone permissions they install.

 I would think that the ability to block calls, for example all calls
 not in contacts, is much more likely to be employed to combat malware
 of the robo-dialer sort used by unscrupulous telemarketers...
--~--~-~--~~~---~--~~
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: Adroid on a phone with Windows OS

2009-09-10 Thread Chris Stratton

On Sep 9, 4:30 pm, Earl Wilson earl...@gmail.com wrote:

 No you can not.  The  type of applications you can develop on a
 windows mobile device is windows mobile applications.  Android is
 different the windows.  That is the same as trying to run or develop
 Mac OSX apps for your windows phone.

What keeps you from developing OSX applications for windows is not
primarily something technical, but Apple's perhaps over-reaching
claims of control over the OSX api's.  In the case of android, the
apis are not only documented but the actual code is available (and if
you are careful to do it right, legal) to use as the basis of a
translation layer.   In other words, for running android apps on a
windows mobile phone the problems are simply technical... if someone
wants to do it badly enough, they will come up with a way to.

More practical and popular approaches seem to be to try to get a build
of android running entirely in place of windows mobile.  The HTC line
of android phones at least give the impression of being descended from
from the hardware of their windows mobile platforms.
--~--~-~--~~~---~--~~
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: Adroid on a phone with Windows OS

2009-09-09 Thread Chris Stratton

On Sep 9, 5:33 pm, Justin Anderson janderson@gmail.com wrote:

  I have a new Samsung Omnia with Windows Mobile 6.1 on it.

  Can I develop Android applications to run on this type of phone?

 No.  That is the equivalent of asking if you can develop windows
 applications to run on Linux.

Well, I do that routinely (specifically, I write windows applications
by cross compiling from a linux machine, and test them on the
development machine using the wine compatibility layer).

I would assume that sooner or later we are going to start to see
compatibility layers to allow applications developed for one framework
to run on another, though it may not become fully practical until
phones have a bit more horsepower, and it will probably first become
practical as a cross platform toolkit where you write for the
compatibility layer rather than any native framework.

--~--~-~--~~~---~--~~
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: Development Phone

2009-08-29 Thread Chris Stratton

On Aug 24, 9:09 am, Ran dahan...@gmail.com wrote:

 What is the benefit of working with ADP1 over the other Android
 phones ?

Just to expand on what others have said:

Cost seems comparable betwen a dev phone and a retail phone at full
retail or plan price + termination fee, so it's really more a of a
technical question.

Reasons for a dev phone

-sim unlocked (some such as tmobile may? do that if you pay full
retail or eventually on a plan)
-can change linux and system libraries
-can change pre-installed applications
-tmobile myfaves application sends periodic sms which costs money on
any other network

Reasons for _not_ getting a dev phone

-only one older dev phone model generally available at present
-dev phones can't buy paid applications from the market (including
your own)
-if you sell apps, you need to restrict yourself to the capabilities
of your users phones (and test on such a device!)
-various preinstalled proprietary applications missing (+/- depending
on your interest)

The not being able to change preinstalled applications is in my mind
the least anticipated, and most annoying, problem.  There are many
areas where very small decisions of questionable wisdom in default
applications really hamper the user experience (even in the using it
just to make calls sense), but these can't be very readily changed on
a retail phone, particularly the parts most closely involved in the
telephone functionality.

As of this moment, I believe most of the retail phones are probably
still shipping with an easily rooted linux kernel, but that probably
will get closed up (already fixed in google's tree) and they will be
limited until another hole is found.







--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Fwd: [android-beginners] Alarm Manager

2009-08-04 Thread Chris

How did u achieve that, can u be a bit more elaborative. I am facing
the same problem i tried using different requestcode but it didnt
work.
Thanks

On Jul 2, 4:54 pm, Veroland marius.ven...@gmail.com wrote:
 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 emez...@gmail.com wrote:



  I hit this issue hard and found the answers sorting through threads on
  the non-beginner developer group.  Here is what I learned...

  When setting more than one timer/alarm, the second parameter in the
  Pending Intent call to getBroadcast is important.
  Your code looks like this:
  PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, i,
  0);

  The first zero can be changed up.  At this point, the docs define the
  second parameter this way:
  requestCode     Private request code for the sender (currently not used).

  However, this request code can be used.  If you want to setup a bunch
  of timers/alarm calls, try using unique request codes for each
  individual alarm.  Track these request codes and set them to be the
  same when you want to update or cancel an existing alarm.  Although
  the docs say that system is supposed to recognize the intent parameter
  and take action based on matching the intent and the flags in the last
  parameter, I found that the request code was used in the match-up.
  Setting unique request codes for each unique intent solved all my
  problems.  World peace will ensue.

  Best regards,
  Beth

  On Jul 1, 11:09 am, Veroland marius.ven...@gmail.com wrote:

   To get around this problem look at the flags the PendingIntent takes,
   I changed mine to PedingIntent.FLAG_CANCEL_CURRENT in the getBroadcast
   method, it means that if there was a previous PendingIntent it will
   update it with the new Intent.

   What I am not sure about yet is being able to create/control more than
   one of the same PendingIntent's that do the same thing. For multiple
   reminders for instance like what I am trying.

   Hope this helps

   On Jul 1, 7:52 am, varsha acharya varsha.acharya...@gmail.com wrote:

Hi,
I have a similar problem..
I have to send a sms on alarm to a predefined number. first time it 
works
well... sends the sms on alarm but then if i set the alarm to send a
different sms,it sends the previous sms.

-- Forwarded message --
From: Veroland marius.ven...@gmail.com
Date: Tue, Jun 30, 2009 at 3:53 PM
Subject: [android-beginners] Alarm Manager
To: Android Beginners android-beginners@googlegroups.com

Hi

I have 2 problems,

I create a timer using AlarmManager and I set an Intent with certain
values in the putExtra methods and then create the pendingIntent with
this intent and call alamarmManager.set(RTC_Wakeup, time,
pendingIntent)

1.  The first time I do this everything works fine. The second time I
do this and use a intent with different data in the intent when the
alarm gets fired in my BroadcastReceiver class the data on the intent
is the data of the intent used in the first alarm and NOT the second
one.

2. If I call the alarmManager.set 2 times with 2 differents intents
and settings only the last alarmManager.set seems to result in my
broadcast receiver getting called. Does anyone know how to create
multiple alarms?

Here is my code I use to create the alarms

Intent i = new Intent(getApplicationContext(), ReminderAlarm.class);
i.putExtra(ReminderDbAdapter.KEY_ROWID, extras.getLong
(ReminderDbAdapter.KEY_ROWID));
i.putExtra(ReminderDbAdapter.KEY_TITLE, extras.getString
(ReminderDbAdapter.KEY_TITLE));
i.putExtra(ReminderDbAdapter.KEY_BODY, extras.getString
(ReminderDbAdapter.KEY_BODY));
Log.d(Sending, extras.getString(ReminderDbAdapter.KEY_TITLE));
PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, i,
0);

AlarmManager alarmManager = (AlarmManager) getSystemService
(ALARM_SERVICE);
alarmManager.set(AlarmManager.RTC_WAKEUP, lcal, pendingIntent);

--
Regards,
Varsha- 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] SqliteOpenHelper db adapter design question

2009-07-29 Thread Chris Ho

I am writing an Android app that has a single database file with 3
tables
( AudioTable, PeopleMap, ImageTable)
and am looking at 2 design alternatives:

1. A -single- database adapter (myDBAdapter.java) which
uses a database helper class that extends SQLiteOpenHelper.
The adapter class has separate methods for accessing and updating rows
in each of the 3 tables.
ie. insertAudio()
   insertPeople()
   insertImage()


2.  3 different database adapters for each table all using the same db
file..
1. audioDBAdapter.java,
2. peopleDBAdapter.java,
3. imageDBAdapter.java)
Each adapter uses it's own db helper class (extending
SQLiteOpenHelper)

While option 2 offers better encapsulation of the 3 classes (and
corresponding data),
I'm wondering if there couldbe a performance overhead or does the
SQLiteOpenHelper implementation handle this without much overhead ?

Or is there some other way I can get better encapsulation with option
1. something similar
to the way the Contacts Provider nicely allows for separate instances
of
Contacts.People, Contacts.Phones, Contacts.Settings, etc.


Chris.

--~--~-~--~~~---~--~~
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-beginners]

2009-07-22 Thread Chris Heiden
Perhaps it was done by mistake. We shouldn't assume.

On Tue, Jul 21, 2009 at 4:18 PM, Oliver Rennfort anubis...@gmail.comwrote:

 Asking a question once is ok.
 Repeating them will not give you a faster answer.
 It just spamms our in box with it.

 Thank you.

 Android Apps Developer

 On Jul 21, 2009 4:16 PM, saurabh sinha saurso...@gmail.com wrote:


 what is pending Intent and how it differ from Intent



 


--~--~-~--~~~---~--~~
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] Slow to load emulator with eclipse

2009-07-21 Thread chris

Hey everyone,

I was fooling around with android this weekend while trying to figure
out whether to go with it or iphone.  There are many things that I
like about android, but one of the things that makes development
difficult is that it takes such a long time to load up the emulator
~15secs.  My laptop is a ~2 year old macbook pro which makes
developing iPhone apps in XCode nice and fast.  I should add that
eclipse in general is very slow ex to close a document tab it takes a
couple seconds when clicking apple-w

Is there some settings that can be tweaked to speed things up?

Thanks for the help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Slow to load emulator with eclipse

2009-07-21 Thread chris

I didn't realize that could be done.  That will speed things up quite
a bit.

Thanks.

On Jul 21, 12:45 pm, Oliver Rennfort anubis...@gmail.com wrote:
 The emulator when its once is up and running ,just leave it open. And just
 code and upload to it with out closing it.

 Android Apps Developer

 On Jul 21, 2009 2:23 PM, chris olsen.ch...@gmail.com wrote:

 Hey everyone,

 I was fooling around with android this weekend while trying to figure
 out whether to go with it or iphone.  There are many things that I
 like about android, but one of the things that makes development
 difficult is that it takes such a long time to load up the emulator
 ~15secs.  My laptop is a ~2 year old macbook pro which makes
 developing iPhone apps in XCode nice and fast.  I should add that
 eclipse in general is very slow ex to close a document tab it takes a
 couple seconds when clicking apple-w

 Is there some settings that can be tweaked to speed things up?

 Thanks for the help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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't see any way of initializing them from a
property file or HTTP headers.
If anyone can let me know if it's possible that would be great.

Thanks,

Chris Nagy

--~--~-~--~~~---~--~~
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] Voicemail Indicator Always On

2009-06-14 Thread Chris de Barros

Hello,

I am on the BTC GSM network in The Bahamas.  I can not get the VM
indicator to go away even though I have deleted all VMs in my inbox.
The indicator always shows up as new VM in the status/notifications
bar.

Also, I get a weird blank SMS every time I delete the VM from my inbox
using the carrier dialup interface.

I am assuming that this blank VM is a message to the fone to make
something happen.  How do I get my device to recognize this SMS and
clear my VM in the top bar?

Using a Google ION fone at 1.5 Cupcake.

Regards

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Receiving Changes to the Phone state

2009-05-27 Thread Chris Spicer

Hi Zsolt,

I had understood that by prefixing my BroadcastReceiver with '.',
Android would look in my default namespace (i.e. I'd get
com.technicana.customercontact. for free).  Is this correct?

I am wondering whether my complete lack of any activity or service in
my manifest is preventing things operating correctly.

Has anyone had any success getting notifications of an incoming call
via the ACTION_PHONE_STATE_CHANGED broadcast intent?

Chris

On May 26, 12:41 am, Zod zsolt.ba...@gmail.com wrote:
 Hi Chris!

 Well the receiver android:name should be fully qualified, in your
 case: com.technicana.customercontact.CallBroadcastReceiver

 Zsolt
--~--~-~--~~~---~--~~
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] Receiving Changes to the Phone state

2009-05-25 Thread Chris Spicer

Hi All,

I'm using the following code in an attempt to get notification that
the phone state has changed.  However, when I run it on the emulator I
can make and receive calls without ever triggering my breakpoint on
the 'Log.d' line.  Can anyone tell me what I'm doing wrong here?

manifest package=com.technicana.customercontact
xmlns:android=http://schemas.android.com/apk/res/android;
uses-permission android:name=android.permission.READ_PHONE_STATE/
uses-permission
receiver android:name=.CallBroadcastReceiver
intent-filer
action
android:name=android.telephony.TelephonyManager.ACTION_PHONE_STATE_CHANGED/

/intent-filer
/receiver
/manifest

And the code file: CallBroadCastReceiver.java

package com.technicana.customercontact;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class CallBroadcastReceiver extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
Log.d(Here, Broadcast received);
}

}

Regards,

Chris Spicer

--~--~-~--~~~---~--~~
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] porting old java to android

2009-05-21 Thread Chris Mac Morrison

Hi all

I've dug out some old java code i want to port to android.

so far so simple

but im getting a real beginners errors

I got lunar lander SDK sample app and ive added in a variable

   private int pw;

and a function that refers to it

  private void test() {

pw=0;

}

i get pw cannot be resolved.

but when i remove the reference to it in the function its no problem.

i can't see how what im doing is any different to the existing
variables and functions.

Background info: im used to text editing java, rather than eclipse IDE/
XML but I'm pretty sure I don't need to define it anywhere other than
in the .java file.





--~--~-~--~~~---~--~~
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: porting old java to android

2009-05-21 Thread Chris Mac Morrison

ignore me - i was being like super dim.

On May 21, 2:26 pm, Chris Mac Morrison chris.morri...@gmail.com
wrote:
 Hi all

 I've dug out some old java code i want to port to android.

 so far so simple

 but im getting a real beginners errors

 I got lunar lander SDK sample app and ive added in a variable

private int pw;

 and a function that refers to it

   private void test() {

 pw=0;

 }

 i get pw cannot be resolved.

 but when i remove the reference to it in the function its no problem.

 i can't see how what im doing is any different to the existing
 variables and functions.

 Background info: im used to text editing java, rather than eclipse IDE/
 XML but I'm pretty sure I don't need to define it anywhere other than
 in the .java file.
--~--~-~--~~~---~--~~
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] resource manager LayerDrawable problem

2009-05-11 Thread Chris

I have a LayerDrawable consisting of 4 Drawables each representing a
PNG. I get layers to change to different Drawables as desired, but
only a few times. Then debugging will throw an OutOfMemoryError. It's
as if the resource manager is not garbage-collecting once I replace
each drawable. What am I mssing?

Resources resources = getResouces();
Drawable layer;
Drawable[] layers = new Drawable[4]

// Initialize the array of layers, omitted layer.setBounds(...) for
readability
layer = resources.getDrawable(R.drawable.graphic_1_a);
layers[1] = layer;
layer = resources.getDrawable(R.drawable.graphic_2_a);
layers[2] = layer;
layer = resources.getDrawable(R.drawable.graphic_3_a);
layers[3] = layer;
layer = resources.getDrawable(R.drawable.graphic_4_a);
layers[4] = layer;

// Apply the array to a LayerDrawable
LayerDrawable layerDrawable = new LayerDrawable(layers);

// Now changing a layer will work
layer = resources.getDrawable(R.drawable.graphic_1_b);
layers[1] = layer;

// But then, ZygoteInit$MethodAndArgsCaller.run() throws
OutOfMemoryError
layer = resources.getDrawable(R.drawable.graphic_3_b);
layers[3] = layer;

--~--~-~--~~~---~--~~
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] CAN ANYONE ANSWER THIS QUESTION, SIMPLE FOR YOU LOT question on tutorial

2009-04-23 Thread chris idr

this should be simple for you lot, after all its a tutorial, and it 
stops me and a lot of others getting into the software.

id like to first ask how does the hello android,
(get list of contacts, and call selected one work)
i cant get the source code to work.

i have figured out all but the
i.setData(Phones.CONTENT_URI.addId(phoneId));
line,

what should it be???

regards

chris





--~--~-~--~~~---~--~~
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 on tutorial

2009-04-17 Thread chris idr


id like to first ask how does the hello android,
(get list of contacts, and call selected one work)
i cant get the source code to work.

i have figured out all but the
i.setData(Phones.CONTENT_URI.addId(phoneId));
line,

what should it be???

regards

chris


--~--~-~--~~~---~--~~
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] Spinner Shows data in popup dialog, but does not show the current selection?!

2009-02-22 Thread Chris

Here is the simplified code I am using. I have tried a thousand
different ways, and each time the items show up when you click the
arrow, but do not show in the minimized spinner box. Anyone know what
I've done wrong? PS. Using the newest 1.1 r1 of the sdk.

thanks,

Spinner tmp =  new Spinner (c);
tmp.setAdapter( getListItems(  chosen.variables.get(s)) );
tmp.setPrompt(  getResources().getString( R.string.pleaseSelect ) );

/**
 */
private PhraseAdapterLayout getListItems( Phrase.Variable var) {
ArrayListTeam values = new ArrayListTeam();

values.add(new Team(name, score);

PhraseAdapterLayout retval = new PhraseAdapterLayout(c, values,
width);
retval.setColor(Color.BLUE);

return retval;
}


@Override
public View getView(int position, View convertView, ViewGroup parent)
{
TextView tv = new TextView(context);
tv.setText(TEAM NAME);
return tv;
}

--~--~-~--~~~---~--~~
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 callback when telephony is out of service?

2009-01-12 Thread Chris

Hi,

I want to record the coordinates when the phone goes out of service,
and when it comes back in a service area.
I found the android.telephony.ServiceState, and its getState() should
return a useful value, but I'd prefer to not run this in a loop. Is
there some generic way of creating callbacks for things like this? Or
should I just call getState every x seconds?

Thanks,
Chris

--~--~-~--~~~---~--~~
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] Flip view in Gmail app on Android

2009-01-07 Thread Chris



Hello,

My fiancee  I have threads that last several hundred emails, and
gmail does the conversation view thing... however, on the Android,
when receiving new mail, leaving the app and coming back to the email
again later, etc; I have to scroll through all three hundred emails to
get to the very bottom to view what she said.

Is there a way to flip the gmail controls, or conversation view, so
that the previous emails are stacked under the new email instead of
over?

I'm starting to get really frustrated with it.

--~--~-~--~~~---~--~~
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] Adding Custom Hardware?

2008-12-30 Thread Chris H.

Hello all,

I am using the Logic PD OMAP3430 development platform, with the
intended result of integrating a custom i2c IC so that we can develop
demo applications for Android.  Overall, this configuration is similar
to a production G1, except for the added peripherals offered by the
3430LDP.  Currently, I have a userspace driver written in C, and
communication and proper operation of our part have been verified
while running an Android-configured variant of the 2.6.27 kernel.

Looking at the Android stack (http://code.google.com/android/images/
system-architecture.jpg), it looks like the driver could somehow be
compiled into a library or wrapped to fit into the application
framework, but I have been unable to find any documentation on this
type of project.  We need the part to be able to send data to
userspace; now it seems like we would almost have to tear Android
apart and rebuild it in order for this to work, even if the driver was
built into the kernel.

Maybe I've missed something, and if so I would certainly appreciate
being pointed in the right direction.  Any tips, suggestions, or
general information on this would be greatly appreciated.

Thanks!
Chris H.

--~--~-~--~~~---~--~~
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] Weirdness in Emulator with ListView

2008-11-30 Thread Chris Shearer Cooper

I don't have my phone yet but I'm getting a jumpstart on things by
using the emulator (I'm using Eclipse 3.4.1 with the Android
Development Toolkit version 0.8.0.v200809220836-110569).  What's
happening is this ...I have a scrolling ListView, and if I scroll it
by clicking the emulator's up and down buttons all is well.  But if I
move the list by clicking on an entry in the list with the mouse and
then dragging the list, the entire list gets a dark grey background
instead of the nice sunflower color it normally has.

Is this a bug in the emulator, or does the real phone do this as
well?  Is there some flag I have to set in my code that says don't
draw ugly stuff?

Thanks,
Chris

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Where do you get the java sdk for macs?

2008-10-23 Thread chris

All I can find for Leopard is some updates on the the Apple site, but
only for 64bit processors.

Thanks for the help

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Where do you get the java sdk for macs?

2008-10-23 Thread chris

Thanks Glen,

When I ran the java -version it said I have the JRE, but it didn't
mention the JDK.  I just assumed like most other OS's that I had to
manually install it.

Thanks again.

On Oct 23, 9:23 am, Glenn Bradford [EMAIL PROTECTED] wrote:
 Chris,

 You shouldn't need to install Java on the Mac - it is already installed.
 You can skip that step!

 Glenn

 On Wed, Oct 22, 2008 at 10:19 PM, chris [EMAIL PROTECTED] wrote:

  All I can find for Leopard is some updates on the the Apple site, but
  only for 64bit processors.

  Thanks for the help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Error + Eclipse plugin + android sdk on Debian Lenny AMD64

2008-10-13 Thread chris

check to see what your permissions are set to in your SDK directory.
the directories all had read, but all the files my user didn't have
read access to. i changed that and everything is working fine.

On Oct 5, 9:59 am, LoupBlanc2007 [EMAIL PROTECTED] wrote:
 I installed Eclipse pluginADT0.8.0, AndroidSDK1.0 on my debian
 lenny amd64, like the instructions say, and I get the following error:

 [2008-10-05 12:01:08 - Android Framework Parser] Menu declare-
 styleable Menu not found in file /opt/android-sdk/tools/lib/res//
 default/values/attrs.xml
 [2008-10-05 12:01:08 - Android Framework Parser] Menu declare-
 styleable MenuItem not found in file /opt/android-sdk/tools/lib/res//
 default/values/attrs.xml
 [2008-10-05 12:01:08 - Android Framework Parser] Menu declare-
 styleable MenuGroup not found in file /opt/android-sdk/tools/lib/res//
 default/values/attrs.xml
 [2008-10-05 12:01:08 - Android Framework Parser] Searchable declare-
 styleable Searchable not found in file /opt/android-sdk/tools/lib/res//
 default/values/attrs.xml
 [2008-10-05 12:01:08 - Android Framework Parser] Searchable declare-
 styleable SearchableActionKey not found in file /opt/android-sdk/tools/
 lib/res//default/values/attrs.xml
 [2008-10-05 12:01:08] Warning,ADT/SDKMismatch! The following
 elements are declared byADTbut not by theSDK: action, activity,
 activity-alias, application, category, data, grant-uri-permission,
 instrumentation, intent-filter, manifest, meta-data, permission,
 permission-group, permission-tree, provider, receiver, service, uses-
 library, uses-permission, uses-sdk
 [2008-10-05 12:01:08 - Framework Resource Parser] Failed to parse

 i have installed ia32-libs, eclipse ganymede, and sun-java6.

 please, can someone help me?

 thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Error + Eclipse plugin + android sdk on Debian Lenny AMD64

2008-10-10 Thread chris

i'm also having this problem, but then i get a message saying
JAVA_HOME isn't defined. anyone know what that's about? i know i have
that variable set, maybe eclipse isn't picking it up somehow?

On Oct 5, 9:52 am, LoupBlanc2007 [EMAIL PROTECTED] wrote:
 I installed Eclipse plugin ADT 0.8.0, Android SDK 1.0 on my debian
 lenny amd64, like the instructions say, and I get the following error:

 [2008-10-05 12:01:08 - Android Framework Parser] Menu declare-
 styleable Menu not found in file /opt/android-sdk/tools/lib/res//
 default/values/attrs.xml
 [2008-10-05 12:01:08 - Android Framework Parser] Menu declare-
 styleable MenuItem not found in file /opt/android-sdk/tools/lib/res//
 default/values/attrs.xml
 [2008-10-05 12:01:08 - Android Framework Parser] Menu declare-
 styleable MenuGroup not found in file /opt/android-sdk/tools/lib/res//
 default/values/attrs.xml
 [2008-10-05 12:01:08 - Android Framework Parser] Searchable declare-
 styleable Searchable not found in file /opt/android-sdk/tools/lib/res//
 default/values/attrs.xml
 [2008-10-05 12:01:08 - Android Framework Parser] Searchable declare-
 styleable SearchableActionKey not found in file /opt/android-sdk/tools/
 lib/res//default/values/attrs.xml
 [2008-10-05 12:01:08] Warning, ADT/SDK Mismatch! The following
 elements are declared by ADT but not by the SDK: action, activity,
 activity-alias, application, category, data, grant-uri-permission,
 instrumentation, intent-filter, manifest, meta-data, permission,
 permission-group, permission-tree, provider, receiver, service, uses-
 library, uses-permission, uses-sdk
 [2008-10-05 12:01:08 - Framework Resource Parser] Failed to parse

 i have installed ia32-libs, eclipse ganymede, and sun-java6.

 please, can someone help me?

 thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Android Maps application source code

2008-09-02 Thread Chris Chiappone

Now if you can figure out the directions piece that'll be great.
Anyone know how to create driving directions using a MapView?



On Mon, Sep 1, 2008 at 8:28 AM, Guillaume Perrot
[EMAIL PROTECTED] wrote:

 Great work ! 8)

 On 1 sep, 11:07, Nader Shalabi [EMAIL PROTECTED] wrote:
 Check it out:http://nader.shalabi.googlepages.com/androidapplications

 On Sat, Aug 30, 2008 at 5:49 AM, Nader Shalabi [EMAIL PROTECTED]wrote:

  Working on it :)

  On Fri, Aug 29, 2008 at 1:20 PM, Guillaume Perrot 
  [EMAIL PROTECTED] wrote:

  Great, unfortunately you did it with the M5 version of the SDK, it
  would be neat to have the new v0.9 maps code :D

  On Aug 29, 4:56 am, nader [EMAIL PROTECTED] wrote:
   Hi all, I added this page on my web site, it might help you,
   it contains Maps application code :), it was hard, but worth it

  http://nader.shalabi.googlepages.com/androidapplications

   If there is an interest in the code of the other applications, drop
   me
   email, I am still working on them.

   Nader A. Shalabihttp://nader.shalabi.googlepages.com

 




-- 
~chris

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Compairing EditText fields with if..else

2008-06-09 Thread Chris B.

Thanks.  The advice worked really nice.

On Jun 9, 10:04 am, Mark Murphy [EMAIL PROTECTED] wrote:
  I would like to know if it is possible to compare two different
  EditTexts using a if...else statement.  I am trying to compare them
  with this template:

  if(name.getText() == anotherName.getText()){
  //code
  }
  else {
  //more code
  }

  No matter what i always get the else block of code even if i display
  my answer and the correct one and they are obviously the same.  Is
  there another comparison method or is my code wrong?

 You need to tack a .toString() in there as well:

 if(name.getText().toString().equals(anotherName.getText().toString())){

 getText() returns an android.text.Editable object, not a String.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ -- Available Now!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Android Application Error

2008-04-07 Thread Chris B.

I have been making this program that has a user input their name and
then click the ok button.  Now I want to use the buttons. I used the
onClickListener code and after using code from one of the API demos i
get an Application Error.  The error says:

Application Error: com.android

An error has occurred in com.android. Unable to start activity
ComponentInfo{com.android/com.android.HelloWorld}:
java.lang.ClassCastException:
Landroid/widget/EditText;.

I think it has to do something with it saying Landroid but I don't
know.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---