[android-beginners] Re: How do I import to eclipse projects that come with the android source?

2010-04-12 Thread Stephen
I've hit this issue as well.  I don't know why it happens, but in
addition to the first suggestion, I do the following so I can keep
everything neatly in my Workspace folder

1) Copy the code you want somewhere else
ie.  copy android-source/apps/whatever home-dir/whatever

2) Create a new project using existing code

3) Once the project is created, right click on it and Refactor  Move
it into the Workspace folder.

Maybe someone more familiar with Eclipse/Android SDK can tell us why
it's like this, whether it's desired behaviour or not, but this seems
to be the best workaround I've found so far.

Hope it helps.

Stephen

-- 
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] Filtering ListViews powered by SimpleCursor Adapter

2010-02-22 Thread Stephen Knox
Hi,

I am having problems filtering my ListView, that gets its data from a
SimpleCursorAdapter. There are a number of threads around about this,
including a href=http://groups.google.co.uk/group/android-developers/
browse_thread/thread/5d19c5dd3f28307d# here/a, a href=http://
groups.google.co.uk/group/android-developers/browse_thread/thread/
7ed8593be568d86ehere/a, and a href=http://groups.google.co.uk/
group/android-developers/browse_thread/thread/22b015b031a13bb2 here
/a but a lot of them seem to be referring to Autocomplete views,
whereas I want to filter my ListView - I'm sure the concepts are the
same but I can't get it to work. My code is below, I would appreciate
any pointers, thanks.

   ListView list=(ListView)findViewById(R.id.rail);

final DbAdapter dbAdapt = new DbAdapter(this);
dbAdapt.open();
Cursor mStationsCursor_rail = dbAdapt.query_rail_stations();
startManagingCursor(mStationsCursor_rail);
String[] from_rail = new String[]{DbAdapter.KEY_NAME};
   int[] to_rail = new int[] {android.R.id.text1};
   SimpleCursorAdapter rail_adapt = new
SimpleCursorAdapter(this,android.R.layout.simple_list_item_1,
mStationsCursor_rail, from_rail, to_rail);
 rail_adapt.setFilterQueryProvider(new FilterQueryProvider()
{
 //@Override
 public Cursor runQuery(CharSequence constraint) {
 String filter = constraint.toString().toUpperCase() + 
%;
 Cursor mStationsCursor_rail_filter =
dbAdapt.query_rail_stations(filter); //this is an overloaded method in
another class that returns the filtered cursor correctly
 return mStationsCursor_rail_filter;
 }

  });
 list.setAdapter(rail_adapt);

// this is hard-coded at the moment for testing, but clearly I will
want to create this from an EditText, but that // should be
comparatively easy
 Cursor newcursor =
rail_adapt.getFilterQueryProvider().runQuery(ch);
 rail_adapt.setStringConversionColumn(1);
 newcursor.moveToFirst();
 rail_adapt.convertToString(newcursor);

Many thanks

Stephen Knox

-- 
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] Help with scrollbar in resized LinearLayout

2010-01-04 Thread Stephen B
I'm developing my first Android application. I've got it working, in a
basic, It compiles, it links, and it even accepts input and doesn't
crash, sort of way. I'm seeing a very strange behavior, though, when
I deploy it to my DROID (android version 2.0.1). If I start the app
with the phone held so that it's in a portrait orientation, there's
enough room for all the layout elements and the screen does not have
any scrollbars. If I start the app with the phone held so that it's in
landscape orientation (slide the keyboard out, or just hold the phone
up as if to use the camera) there isn't enough vertical space for all
the elements and there's a scrollbar on the right.

Now for the mystery: if I start out in portrait mode and then turn the
phone over to landscape, the screen gets reoriented but *no scrollbar
appears*. Am I missing some callback? Is there something like an
orientation changed event that I should listen for and tell the view
to redraw?

-- 
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] Cannot stream youtube for playback through emulator.. coding isssues..

2009-12-22 Thread Stephen Abrams
Hi Valentino,
You won't be able to use that standard URL as you would in a browser.  That
will load a page with a flash player, which will play the embedded content.
What you will want to do to use the Android player (which is not Flash) with
YouTube content is to search with parameters specifying the video formats
you would like, in such a way that you'll get the direct video streaming
URLs instead of one for Flash.

You can read up on the YouTube api documentation to figure out how to search
for valid video content. I've been playing with (
http://gdata-samples-youtube-search-py.appspot.com/) to get some samples to
see the videos works at this point, though. Once I do the search there I
grab a couple valid (H263, MPEG-4) URLs and throw them in the code.

I have a slightly different implementation in my sand box, but this is how
I'm doing it. Also, this did not work on the emulator, but it worked on a
real G1. (The YouTube vids didn't work on the emulator, but if you want one
I know works just to test your code try out 
http://www.jhepple.com/SampleMovies/niceday.wmv;

Side note: Flash looks like its only really supported on the HTC Hero for
now, though to my understanding Adobe is working on expanding support for
more platforms (so until then we're not grabbing the YouTube flash player in
a WebView/browser)

package com.myproject;

import java.io.IOException;

import android.app.Activity;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.MediaController;
import android.widget.Toast;
import android.widget.VideoView;

public class VideoPlayer extends Activity {

MediaController mediaController;
VideoView video;
//private static final String URIString = 
http://www.jhepple.com/SampleMovies/niceday.wmv;;
// h263 from you tube
private static final String URIString = rtsp://
v1.cache6.c.youtube.com/CiILENy73wIaGQkSUW_ygz76WhMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp
;
// MPEG 4 from you tube
//private static final String URIString = rtsp://
v7.cache3.c.youtube.com/CiILENy73wIaGQlE0yg2wN9HwxMYESARFEgGUgZ2aWRlb3MM/0/0/0/video.3gp
;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.video_player);
mediaController = new MediaController(this);
video = (VideoView) findViewById(R.id.video_view);

video.setVideoURI(Uri.parse(URIString));
video.setMediaController(mediaController);
video.requestFocus();

video.requestFocus();
}
}



?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent


VideoView
android:id=@+id/video_view
android:layout_width=320px
android:layout_height=240px
/


/LinearLayout

Steve

On Sat, Dec 19, 2009 at 5:20 AM, Valentino XM shourai...@gmail.com wrote:

 Hi All
 i have tried mixing and matching code from several listed sources on
 the development page. but cannot stream video from youtube using the
 emulator.

 package info.shouraig.com;

 import java.io.IOException;

 import android.app.Activity;
 import android.media.MediaPlayer;
 import android.os.Bundle;
 import android.util.Log;
 import android.widget.TextView;
 import android.widget.VideoView;

 public class Video2 extends Activity {
private static final String HTTP = http://www.youtube.com/watch?
 v=6ej-imJWuno http://www.youtube.com/watch?%0Av=6ej-imJWuno;
VideoView ViewVideo2;
TextView textVideo2;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
Log.d(Video2, ***Video to Play:: + HTTP);

//***VideoView to video
ViewVideo2 =(VideoView)findViewById(R.id.ViewVideo2);
MediaPlayer mp = new MediaPlayer();
try {
mp.setDataSource(HTTP);
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalStateException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
mp.prepare();
} catch (IllegalStateException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
 

[android-beginners] Vimeo mobile video search?

2009-12-22 Thread Stephen Abrams
Hi all,

Has anyone found documentation regarding how to search for mobile content on
vimeo's site? They recently added some support for non-flash mobiles, and
going to their site on an Android phone gets you content that will open the
Android native video player when clicked, but I would like to write and app
that searches this content for display in the player myself.

Thanks,
Steve

-- 
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: logcat question

2009-12-22 Thread Stephen Abrams
Hi tinyang,

If you're using eclipse, you can put a debug point at line 42 in
CameraPreview and see what object is null that you're trying to call a
method on.

Steve

On Sat, Dec 19, 2009 at 3:15 PM, tinyang tiny...@earthlink.net wrote:

 OK, thanks.

 -Original Message-
 From: android-beginners@googlegroups.com
 [mailto:android-beginn...@googlegroups.com] On Behalf Of Lance Nanek
 Sent: Saturday, December 19, 2009 12:26 PM
 To: Android Beginners
 Subject: [android-beginners] Re: logcat question

 You are already seeing them. The more refers to the lines that are just
 duplicates of the lines that the RuntimeException exception above the
 NullPointerException has already printed.

 On Dec 19, 11:44 am, tinyang tiny...@earthlink.net wrote:
  I'm trying to figure out a java.lang.RuntimeException problem in my app.
  When I look at the logcat, it will show something like this:
 
  12-19 09:29:38.055: WARN/dalvikvm(716): threadid=3: thread exiting
  with uncaught exception (group=0x4000fe70)
  12-19 09:29:38.065: ERROR/AndroidRuntime(716): Uncaught handler:
  thread main exiting due to uncaught exception
  12-19 09:29:38.075: ERROR/AndroidRuntime(716):
 java.lang.RuntimeException:
  Unable to start activity ComponentInfo{test.app/test.app.CameraPreview}:
  java.lang.NullPointerException
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): at
  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2
  268)
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): at
  android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:22
  84)
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): at
  android.app.ActivityThread.access$1800(ActivityThread.java:112)
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): at
  android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): at
  android.os.Handler.dispatchMessage(Handler.java:99)
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): at
  android.os.Looper.loop(Looper.java:123)
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): at
  android.app.ActivityThread.main(ActivityThread.java:3948)
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): at
  java.lang.reflect.Method.invokeNative(Native Method)
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): at
  java.lang.reflect.Method.invoke(Method.java:521)
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): at
  com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.
  java:7
  82)
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): at
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): at
  dalvik.system.NativeStart.main(Native Method)
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): Caused by:
  java.lang.NullPointerException
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): at
  test.app.CameraPreview.onCreate(CameraPreview.java:42)
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): at
  android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
  1123)
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): at
  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2
  231)
  12-19 09:29:38.075: ERROR/AndroidRuntime(716): ... 11 more
 
  I want to see the 11 more lines in the error logging.  How do I view
  those?
 
  Thanks.

 --
 You received this message because you are subscribed to the Google Groups
 Android Beginners group.
 To post to this group, send email to android-beginners@googlegroups.com
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.5.406 / Virus Database: 270.14.89/2539 - Release Date: 12/18/09
 19:38:00

 --
 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.comandroid-beginners%2bunsubscr...@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] How to Retrieve Phone Owner's Email

2009-11-18 Thread Stephen Abrams
Hello all,

Is there a way to find the activation email account for the Android
phone, or the default email address used by Gmail?

I havn't been able to find this in the service providers or other
docs...

Thank you

-- 
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] Thread Issues

2009-11-17 Thread Stephen Lebed
I'm having trouble figuring out how to resolve a problem I'm having.
I'm writing a game that needs to process moves in another thread.  I
launch the thread from within the main game loop.  I've copied
snippets of my code below...



Thread _gen = new Thread(new SearchThread());

//This is the same as the Lunar Lander example
@Override
public void run() {
Canvas ccc;

while (_run) {
ccc = null;
try {
ccc = _surfaceHolder.lockCanvas(null);
synchronized (_surfaceHolder) {

_panel.onDraw(ccc);


// Here is where I want to
launch a thread

if (_gen.isAlive() == false) {
_gen.start();
}
}
} finally {
// do this in a finally so that if an exception 
is thrown
// during the above, we don't leave the Surface 
in an
// inconsistent state
if (ccc != null) {
_surfaceHolder.unlockCanvasAndPost(ccc);
}
}
}
}

class SearchThread extends Thread {

@Override
public void run() {
testmove();
setmove(x,y);
}

}

_gen is an AI routine that is processor intensive.  When it finishes,
it returns to the above code and throws an exception after the
'finally' statement.  I'm not sure why that happens.  I hope I've
explained my problem in an understandable way.  I'm still learning
java and android.

Thanks in advance,

Stephen

-- 
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] How hard would it be to make a second language of sorts for the Android?

2009-11-11 Thread Stephen Walsh
It would probably be easier to just learn Java.  It's a great language that
has been around for years and is very useful in learning OOP for
applications beside Android.

Stephen Walsh


On Fri, Nov 6, 2009 at 17:14, Anthony Walker anthonyrichardwal...@gmail.com
 wrote:

 I just started reading up on developing apps for Android and it's
 quite confusing as I don't know any Java. So I was thinking how hard
 would it be to make a simple point  click Flash application that
 modifies your Eclipse workspace files?

 For example, in a game, you want your player to go left when you roll
 the trackball left.
 So in the app maker you click the character,
 select on - trackball left
 move left at a speed of __

 Then it inserts template code into a few files in the workspace to
 make that happen, all the variables such as button, speed, direction,
 all defined by you.

 --
 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.comandroid-beginners%2bunsubscr...@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.
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] (Root) update to rc33

2009-10-23 Thread stephen rigg
I jus successfully rooted my g1
Nd all the links for updating it to rc33 nd they were unresponsive.
My situation is I am like the lowest buil of the phone trying to get these
amazing features like:
Multi-touch
Tethering, nd ect
How do I start on my way frum here?

--~--~-~--~~~---~--~~
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] Cant install ADT plugin for Eclipse

2009-09-25 Thread Stephen

On 2 different machines (with clean galileo installs) the ADT plugin
fails to load both remotely and trying to import from the zip archive.
The error is as follows:

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

Can anybody point in the right direction? Thanks
Stephen

--~--~-~--~~~---~--~~
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] Comparing different dates

2009-08-19 Thread Stephen Lebed

How would I compare the current date against a date I've set to
determine if today is before or after the set date?

I've tried the following, but its not working

Date endTime;
{
endTime = new Date();
endTime.setMonth(11);
endTime.setYear(2009);
}

Date trialTime;
{
trialTime = new Date();
trialTime.getMonth();
trialTime.getYear();
}

boolean test = endTime.before(trialTime);



Any help is greatly appreciated.

--~--~-~--~~~---~--~~
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: Comparing different dates

2009-08-19 Thread Stephen Lebed

Thanks, I didn't realise that!  That explain the results I'm getting.

Best,
Stephen


On Aug 19, 5:03 pm, Jack Ha jack...@t-mobile.com wrote:
 The year specified in setYear() should be the year since 1900. That
 said, it should be 109 (2009-1900) instead of 2009.

 --
 Jack Ha
 Open Source Development Center
 ・T・ ・ ・Mobile・ stick together

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

 On Aug 18, 5:01 pm, Stephen Lebed srle...@gmail.com wrote:

  How would I compare the current date against a date I've set to
  determine if today is before or after the set date?

  I've tried the following, but its not working

  Date endTime;
  {
  endTime = new Date();
  endTime.setMonth(11);
  endTime.setYear(2009);

  }

  Date trialTime;
  {
  trialTime = new Date();
  trialTime.getMonth();
  trialTime.getYear();

  }

  boolean test = endTime.before(trialTime);

  Any help is greatly appreciated.
--~--~-~--~~~---~--~~
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] Reducing application size by exporting some files to SD card

2009-08-13 Thread Stephen

Hi, I'm just starting out programming for the android and I want to
eventually do games. A major concern of mine is being limited by the
size of applications. I know when I look for new games if its above
1mb I get very critical since I only have 10mb left on my phone.

What I'd like to do is have the user install all files normally, but
on the first run of the program have what files that can be moved,
moved to the SD card and deleted from the phone's memory. This would
mostly be for images, animations, and sound effects but if more could
be done then that would be great.

So is this possible? Or would I have to set up a system where they
install the bare bones and then download the rest from a server and
have those put on the SD card?

--~--~-~--~~~---~--~~
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] Exporting the large application components to the SD card no initial run? Is it possible?

2009-08-13 Thread Stephen Teodori

Hi all, I'm in the process of starting to learn to program for the
android platform and I'd like to eventually start making games. A very
big concern of mine, though, is that the space for installing
applications for the average user is very limited.

The concept I wish to discuss is the possibility that the user
downloads the program normally, then the first time they run the
program they have the option of having files exported to the SD where
they will be retrieved for access when needed by the program. I don't
know to what extent this is possible so I was hoping that a smarter
mind could tackle the problem to benefit us all. At the very least it
seems to me that it would be possible to do this with pictures,
animations, and sound effects.

An important part of this though, is whether or not you can delete
files out of the installed files placed on the phone.

Any help on this matter will be greatly appreciated! Thank you!

--~--~-~--~~~---~--~~
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] Mrarket?

2009-07-21 Thread stephen rigg
I wanted to noe how ppl are able to post comments on the market, I dnt c any
form of sign up

--~--~-~--~~~---~--~~
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: Rooting?

2009-07-18 Thread stephen rigg
How big of a risk am I taking???
Is this reversable??

On Jul 17, 2009 1:42 AM, Roman roman.baumgaert...@t-mobile.com wrote:


Hi,

Here is a pretty good description of how to root your G1 phone.

http://androidandme.com/2009/05/guides/beginners-guide-for-rooting-your-android-g1-to-install-cupcake/


Of course there is always a risk that during rooting something goes
wrong. Make sure that you charge your battery before you start the
process. You don't won't that during flashing and rooting your device
that the device turns of.

Also follow exactly the steps in the same order.

Good luck!

--
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 Jul 16, 4:16 pm, stephen rigg stevie...@gmail.com wrote:  Haven't
researched it : (  Jus hav...

--~--~-~--~~~---~--~~
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] Rooting?

2009-07-16 Thread stephen rigg
Haven't researched it : (
Jus have a few specific questions wich do feel a little obvious.
Can rooting cause a potential harm to my g1?
If so it it reversable?
What are my risks?

--~--~-~--~~~---~--~~
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] Avd issues

2009-07-14 Thread stephen rigg
I need major help, I've followed all instruction all the way up till the
first cmd code nd keep receive error like messages back.
Pl 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] Assets not appearing in emulator/G1

2009-06-22 Thread Stephen

I posted this yesterday but it hasn't appeared on the list, not sure
why. Anyway, I'm having a problem where text files I have in the
assets folder are not being transferred to the application's
respective files folder either for the emulator or for the physical
phone. Is there anything you have to specify in the manifest to get
these files to transfer or something. I can't specify them as
resources because I need both read and write access to them.

Any ideas

Thanks

Stephen

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



[android-beginners] Android Sooner Development

2009-04-01 Thread Stephen

Please help!  I'm one step away from developing on the Google Phone.

We have a few HTC exca300 aka Google Sooner phones that we want to
development educational software on.  From our testing, we found that
the best SDK for the Google Sooner is android sdk m3-rc22a.  However,
our android applications crash on the Sooner phone, whereas it has no
problems in the m3-rc22a emulator.

I would like steps on how I can copy the Android OS from the m3-rc22a
emulator onto the Sooner phone.  The files I believe are ramdisk.img,
system.img and userdata.img.  Would I be able to use adb push to
overwrite the system files on the phone?  I'm at a lost on how to
extract the img files and over write the files on the Sooner phone
while the phone still still turned on.

Here's some information from the phone.
# dmesg
5Linux version 2.6.22-omap1 (x...@x.corp.google.com) (gcc version
4.1.1) #1-gc64286dd PREEMPT Tue Aug 28 18:21:25 PDT 2007
4CPU: ARM926EJ-S [41069263] revision 3 (ARMv5TEJ), cr=00053177
4Machine: Sardine
4Ignoring unrecognised tag 0x4d534d70
4Memory policy: ECC disabled, Data cache writeback
7On node 0 totalpages: 15360
7  DMA zone: 120 pages used for memmap
7  DMA zone: 0 pages reserved
7  DMA zone: 15240 pages, LIFO batch:3
7  Normal zone: 0 pages used for memmap
4Unknown OMAP cpu type: 0x00
4OMAP revision 1 handled as 00xx id: 87035cc953590a15
6Reserving 992 bytes SRAM at 20026c20
6Reserving 40960 bytes SRAM at 20028000
6SRAM: Mapped pa 0x2000 to va 0xd000 size: 0x10
6Reserving 311296 bytes SDRAM for frame buffer
4CPU0: D VIVT write-back cache
4CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128
sets
4CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
4Built 1 zonelists.  Total pages: 15240
5Kernel command line: mem=60M board_sardine.version=5 console=null

Thank you,
Stephen

--~--~-~--~~~---~--~~
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] Distance Application - Newbie Discussion

2008-12-29 Thread Stephen

Hi guys, I am new to java and am trying to learn... as a mechanical
engineer i am stoked on tweaking with the accelerometer and other neat
aspects to the G1/ Android.

I want to make an application which, at the push of a button, record
your position and then you move it a foot hit the button again and
it will tell you approximately how far you moved.

First is this possible?

A little more detail is here:

When the button is pushed, the software would start calculations on
the accelerometer, I dont know how it works, but I would assume theres
a counter in the software, and everytime the accelerometer sent me
info I would multiply it by the amount of time since the last data and
we would get a distance in X, Y and Z.  At the final position, you
push the button and it takes the final x, y z and subtracts the
original to get the change in position.  If you want only 1 value
output you just sqrt( x^2 + y^2 + z^2) to get the distance vector.


I appreciate the help and suggestions.

--~--~-~--~~~---~--~~
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 (Sample doesnt work)

2008-12-11 Thread Stephen

if I have the Spinner set as below like the example:

mSpinner = new Spinner(this);

The dropdown Views is empty.


If I set the mSpinner = (Spinner)findViewById(R.id.status);

This works but much slower in performance
--~--~-~--~~~---~--~~
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] Align one image after another

2008-12-04 Thread Stephen

Hi, I am trying to form a page with images background like html,

the frame_bottomleft managed to align to the bottom and left of the
layout, but I would like the frame_lsk to align on the right of the
frame_bottomleft without overlapping.

How would I do that?


RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent

ImageView
android:id=@+id/frame_bottomleft
android:layout_alignParentLeft=true
android:layout_alignParentBottom=true
android:layout_width=5px
android:layout_height=36px
android:background=@drawable/global_frame_bottomleft
/
ImageView
android:id=@+id/frame_lsk
android:layout_alignLeft=@id/frame_bottomleft
android:layout_alignParentBottom=true
android:layout_width=53px
android:layout_height=29px
android:background=@drawable/global_frame_bottomleft2
/
/RelativeLayout

--~--~-~--~~~---~--~~
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: Align one image after another

2008-12-04 Thread Stephen


Thanks it works
On Dec 5, 6:30 am, Romain Guy [EMAIL PROTECTED] wrote:
 Use android:layout_toRightOf=@id/frame_bottomleft





 On Thu, Dec 4, 2008 at 2:31 AM, Stephen [EMAIL PROTECTED] wrote:

  Hi, I am trying to form a page with images background like html,

  the frame_bottomleft managed to align to the bottom and left of the
  layout, but I would like the frame_lsk to align on the right of the
  frame_bottomleft without overlapping.

  How would I do that?

  RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
  android
         android:layout_width=fill_parent
     android:layout_height=fill_parent

     ImageView
         android:id=@+id/frame_bottomleft
         android:layout_alignParentLeft=true
         android:layout_alignParentBottom=true
         android:layout_width=5px
         android:layout_height=36px
         android:background=@drawable/global_frame_bottomleft
     /
     ImageView
         android:id=@+id/frame_lsk
         android:layout_alignLeft=@id/frame_bottomleft
         android:layout_alignParentBottom=true
         android:layout_width=53px
         android:layout_height=29px
         android:background=@drawable/global_frame_bottomleft2
     /
  /RelativeLayout

 --
 Romain Guywww.curious-creature.org- Hide quoted text -

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



[android-beginners] Re: Coding an RSS Reader Application

2008-12-04 Thread Stephen

Depends on which xml parser you are looking for. Using import from
java is fastest in performance.

SAXParser would be nice

On Dec 4, 1:53 am, planetshine [EMAIL PROTECTED] wrote:
 What packages or libraries would be needed to code an RSS reader
 application? I'd have to integrate the code written for the RSS reader
 into Java, right?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---