[android-developers] Re: Developer Challenge 2

2009-03-09 Thread Sheenmue

Yeah, it would be appreciated even it there isn't a date, just to know
if it has been cancelled or not.

On 2 mar, 18:20, Federico C fdxx...@gmail.com wrote:
 hi,

 some news from ADC 2?

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



[android-developers] Re: com.google.wireless.gdata

2009-03-09 Thread ifuller1

Hi James, do you have the source for your modified gdatarequest and
abstract entity. I'd like to go a tried and tested route or just parse
the RSS manually. Am I right in thinking you've successfully connected
to a google service?

I'm pretty new to Java (c and as3 background) so I hope the questions
make sense?

On Jan 14, 3:11 pm, James jw.ma...@gmail.com wrote:
 I've been able to use the 1.0 version of the java gdata api
 successfully from Android.  I created custom implementations of
 GoogleAuthTokenFactory and GoogleGDataRequest.Factory.  The second one
 meant I had to create a custom GDataRequest and AbstractHttpEntity.
 The code needed utilizes the same apache http client library supported
 in the phone.  My use is specific to the print or BooksService,
 Though I suspect that it would work in other services.  Let me know if
 you're interested in more information.  I noticed more than one
 code.google.com project focused at porting the gdata api to Android.
 The farthest along I found ishttp://code.google.com/p/android-gdata/.
 I'm hesitant to start yet another gdata-porting project -- yet none of
 what I found met my requirements.  First on my list is using the same
 gdata public api.  Second is unit tests.  Here's one of my integration
 tests:

         @Test
         public void makeAuthenticatedQuery_usingCustomFactories() throws
 Exception {
                 BooksService service = createAuthenticatedCustomService();

                 VolumeFeed volumeFeed = query(service);

                 Assert.assertNotNull(volume feed is not null, volumeFeed);
                 Assert.assertFalse(volume feed has entries, 
 volumeFeed.getEntries
 ().isEmpty());

         }
         private BooksService createAuthenticatedCustomService() throws
 AuthenticationException {
                 HttpClient httpClient = new DefaultHttpClient();
                 String serviceName = print;
                 BooksService service = new BooksService(app name, new
 CustomRequestFactory(httpClient),
                                 new CustomAuthTokenFactory(serviceName, 
 applicationName,
 httpClient));

                 service.setUserCredentials(username, password);
                 return service;
         }

 On Dec 31 2008, 7:29 am, schtieF lisc...@googlemail.com wrote:

  Someone found the com.google.wireless code stuff in the open source
  repository of android? so we can compile and include it in our
  applications?

  Stefan

  On Dec 24, 6:21 pm, paxus paxu...@gmail.com wrote:

   OK, I agree that they could easily remove inner classes if it hasn't
   been published as common API. But I can't get what should I do to work
   with Gcalendar, for ex.? Can you show me the way? I can find several
   apps which somehow get calendar events, so there must be an API,
   right? Does anyone know a workaround?

   On 3 дек, 23:02, AndroidEngineer vaswani.jit...@gmail.com wrote:

Yet you had them in the previous version of the library? Uh huh. I
see.

On Dec 2, 10:42 pm, Jean-Baptiste Queru j...@google.com wrote:

 I'll try to simplify.

 In a nutshell, the com.google.* APIs are Google-specific add-ons that
 are not part of the Android core. Those APIs won't be present on all
 Android devices, and aren't ready to be officially supported as public
 Google-specific APIs.

 JBQ

 On Tue, Dec 2, 2008 at 10:27 PM, AndroidEngineer

 vaswani.jit...@gmail.com wrote:

  It's wierd that even in the section where its supposed to describe 
  the
  changes from 0.9 to 1.0 they don't have any mention of the apis that
  have been removed. I am only hoping it was a mistake and the apis 
  are
  going to be back.

  Please enlighten.

  On Dec 2, 12:33 pm, loty lev.pert...@gmail.com wrote:
  I'm also very much interested in these libraries. Can someone from
  Google enlighten us on when if ever these libraries become 
  available
  again.

  On Dec 1, 11:27 pm, AndroidEngineer vaswani.jit...@gmail.com 
  wrote:

   Howcomecom.google.wireless.gdataand com.google.android.gdata have
   been removed from the 1.0 r1 library. I see these packages in 
   0.9 and
   previous versions but not in 1.0. What is the reason behind 
   removing
   the libraries? From what I've seen, they seem to be very useful
   libraries.

   Please give me heads up. I am trying to write an application to 
   access
   google calendar and its events.

   Thanks.

   Android Engineer

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

[android-developers] emulator on linux in offline mode !!

2009-03-09 Thread dan raaka
The android emulator on Linux doesn't seem to get launched after Runs
as-Android Application.
The adb is still still running
s...@android-desktop:~/cupcake$ ps -A | grep adb
 5647 pts/000:01:02 adb
s...@android-desktop:~/cupcake$ adb devices
List of devices attached
emulator-5554offline

-Dan

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



[android-developers] toolchain to build kernel

2009-03-09 Thread Abhijeet

Hello All,

I am trying to build a kernel image to run in the emulator and I
am following
http://honeypod.blogspot.com/2007/12/compile-android-kernel-from-source.html

   I have downloaded the android source (http://source.android.com/
download) and it has 2 toolchains arm-eabi-4.3.1 and arm-eabi-4.2.1.
Which one should be used to build the kernel?

Thanks for your replies,
Abhijeet

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



[android-developers] Scroller widget in a WebView

2009-03-09 Thread oyobyaw

Hello,

I am trying to implement a custom WebView and override OnTouchEvent()
so that a tap near the bottom of the screen would result in the view
smoothly scrolling down one ‘page’ (and a tap at the top would result
in a smooth upward scroll).

I’ve been looking at the Scroller Widget to do the animated scrolling
but can’t seem to figure out how to make it work right. I found an
example of how to use a Scroller to animate a TextView (http://bear-
polka.blogspot.com/2009/01/scrolltextview-scrolling-textview-
for.html), but TextViews have a setScroller() method to attach a
Scroller to that view.

How can you attach and use a Scroller in a View that does not expose a
setScroller() method?

Below is the relevant section of my code:


private Scroller mScroller;
private static final long TAP_THRESHHOLD = 300; //ms
private float mDownY = 0;
private int mHeight = 0;
private int mWidth = 0;

public MyWebView(Context context, ChapterNavigator cn) {
   super(context);
   mScroller = new Scroller(context);
}

@Override
public boolean onTouchEvent(MotionEvent event) {
   Log.v(TAG, onTouchEvent);
   final int action = event.getAction();

   if (action == MotionEvent.ACTION_DOWN) {
  //Abort scrolling animation if not finished yet
  if (!mScroller.isFinished()) {
 Log.v(TAG, aborting scroll);
 mScroller.abortAnimation();
  }
  mDownY = event.getY();
   }
   else if (action == MotionEvent.ACTION_UP) {
  //Detect if we had a TAP
  if(event.getEventTime() - event.getDownTime()  TAP_THRESHHOLD)
{
 if(event.getX()  mHeight/2 ) {
mScroller.startScroll(0, mDownScrollY, 0, -mHeight, 1000);
 }
 else {
mScroller.startScroll(0, mDownScrollY, 0, mHeight, 1000);
 }
  }
   }
   return true;
}

@Override
protected void onSizeChanged(int w, int h, int ow, int oh) {
   super.onSizeChanged(w, h, ow, oh);
   mWidth = w;
   mHeight = h;
}


I’d greatly appreciate any pointer or suggestion.

Thanks

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



[android-developers] Ubuntu Compile/Run Error - Netbeans

2009-03-09 Thread deewiles

I am using Netbeans 6.5 on 8.04.  $JAVA_HOME = /usr/lib/jvm/java-1.5.0-
sun.

When I run the HelloWorld Android application I get the following
error:

init:
deps-jar:
Compiling 1 source file to /home/cwiles/NetBeansProjects/
AndroidApplication1/build/classes
compile:
Created dir: /home/cwiles/NetBeansProjects/AndroidApplication1/dist
Updating jar: /home/cwiles/NetBeansProjects/AndroidApplication1/dist/
AndroidApplication1.apk_
Updating zip: /home/cwiles/NetBeansProjects/AndroidApplication1/dist/
AndroidApplication1.apk_
Using keystore: /home/cwiles/.android/debug.keystore
Deleting: /home/cwiles/NetBeansProjects/AndroidApplication1/dist/
AndroidApplication1.apk_
jar:
Result: 255
java.io.IOException: Cannot run program /home/cwiles/Java:
java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:431)
at java.lang.Runtime.exec(Runtime.java:328)
at org.netbeans.modules.android.ant.Util.adb(Util.java:44)
at
org.netbeans.modules.android.ant.AdbPackageManagerWait.execute
(AdbPackageManagerWait.java:59)
at org.apache.tools.ant.UnknownElement.execute
(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute
(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets
(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:
1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets
(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:
1189)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run
(BridgeImpl.java:273)
at org.apache.tools.ant.module.run.TargetExecutor.run
(TargetExecutor.java:499)
at org.netbeans.core.execution.RunClassThread.run
(RunClassThread.java:151)
Caused by: java.io.IOException: java.io.IOException: error=2, No such
file or directory
at java.lang.UNIXProcess.init(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 20 more
BUILD FAILED (total time: 3 seconds)

The emulator fires up successfully, but obviously my application does
not.  I use the same setup/configuration on my mac and everything
works fine.

Thoughts?

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



[android-developers] maps probelm

2009-03-09 Thread karthik

Hi,
  I followed the procedure for signing up for Map api key as given
in the google documentation
  and i got the api key.Then i put the api key in Mapview , i put
the uses library tag in manifest file and INTERNET and
ACCESS.COARSE.LCATION permission also in the manifest file but my map
is not showing up.In the log file it is giving an error could not
connection factory
   what might be the probelm could anyone help?please



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



[android-developers] open gl es2.0

2009-03-09 Thread meghal shah

Is Android going to support openGL ES 2.0 soon ?

The support of openGL ES 1.0 is really good , but when can we expect
it support 2.0 version ?

As far as i know its not supported on any other platform at the
moment.

Thanks,
Meghal Shah

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



[android-developers] Application developer wanted for contract work

2009-03-09 Thread AndroidDev

We am looking for a expert Android developer for Android application
development. You must have documented experience in following areas:

- UI development
- file handling
- multimedia decoding
- authentication

We already have our application running on other devices and can
provide you with functioning models.
We will provide you with a well documented API for you to interface to
our servers.
The UI will change a little compared to what we have now. You will
have access to an experienced graphics designer for any necessary
design changes.

We expect that you will sign an NDA and a contract with us.
Compensation will be $20,000.00. Payment will occur as we launch the
application. It will be based on a revenue share model where you will
get 30% of the revenues up to a max of $20,000.00. We estimate you
will reach the $20,000.00 mark within 2 months of application launch
date.  We are only looking for expert developers and you should be
able to initiate the work within the next couple weeks. If succesful,
we would be interested in extending additional work as the application
evolves.

If interested, please respond to petersmail66 at gmail


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



[android-developers] accessing information from browser, in an application

2009-03-09 Thread Shani

I am editing the pre-existing zxing Barcode Reader code so it can
voice itself for blind users.
I know how to use Text to speech in the app.
Right now I am at the step where after the barcode is read, it then
opens a webpage in the android browser - it sends the product number
to google. What i want to do is be able to read from that webpage-
whether its from the DOM or just being able to get the source for the
page.

Here is where the intent is launched:

Uri uri = Uri.parse(http://www.google.; +
LocaleManager.getCountryTLD() + /products?q= + upc);
launchIntent(new Intent(Intent.ACTION_VIEW, uri));

Do I need to use android.webkit somehow? Or is that just for making my
own webpages in the browser?
No clue how to proceed right now. Thanks, any help is very appreciated

Shani

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



[android-developers] Re: Make a button from an image (PNG)

2009-03-09 Thread xspotlivin

Ok, thanks for the replies. I'm going to describe what I'm trying to
do better, because I'm still unsure of the solution, and I could
really use some help.

I have a clock application (how can you attache an image). For each
shaded region I want to place a button on top of it (a different
button depending on some xml data). I don't know how to create a
button from the attached image and then draw it in the correct spot.
My xml data has the time of the shaded region, so I can figure out
what angle to put the button. Below is the relevant code from my
ClockView class. The for loop is looping through each element in an
xml document (which I pass from the activity class).

Java:
public class ClockView extends View {

 protected Document clockXML;

 public ClockView(Context context) {
  super(context);
  this.setBackgroundDrawable(getResources().getDrawable
(R.drawable.clockbackgroundwithoutnames));

 }
 @Override
 protected void onDraw(Canvas canvas) {

  // Clock-size rectangle to draw compliance windows
  RectF clockRect = new RectF(86, 6, 394, 314);

  // Create a node list containing each reminder
  NodeList reminderNodes = this.clockXML.getElementsByTagName
(Reminder);
  int reminderLength = reminderNodes.getLength();

  // Loop through each reminder drawing compliance windows
  for (int i=0; i  reminderLength; i++) {
   String timeScheduledString = reminderNodes.item
(i).getFirstChild().getFirstChild().getNodeValue();
   float timeScheduled = Float.valueOf
(timeScheduledString.trim());
   String complianceWindowString = reminderNodes.item
(i).getFirstChild().getNextSibling().getFirstChild().getNodeValue();
   float complianceWindow = Float.valueOf
(complianceWindowString.trim());
   String administered = reminderNodes.item
(i).getFirstChild().getNextSibling().getNextSibling().getFirstChild
().getNodeValue().trim();

   float compStartAngle = -90 + ((timeScheduled*360)/24) -
(complianceWindow*15);
   float complianceSweepAngle = (complianceWindow*2)*15;

   // If we are in the daytime.
   if (compStartAngle  90  compStartAngle = -90) {
// If a reminder is scheduled in the daytime, but
window overlaps into the night.
if ((compStartAngle + complianceSweepAngle)  90)
{
 // Compute new angles and sweeps
 float startAngle1 = compStartAngle;
 float sweepAngle1 = 90 - startAngle1;
 // Draw for daytime
 canvas.drawArc(clockRect, startAngle1,
sweepAngle1, true, this.amColor);
 float sweepAngle2 = complianceSweepAngle -
sweepAngle1;
 // Draw for nighttime
 canvas.drawArc(clockRect, 90, sweepAngle2,
true, this.pmColor);
// Else, just draw normally.
} else {
 canvas.drawArc(clockRect, compStartAngle,
complianceSweepAngle, true, this.amColor);
}
   // If we are in the nighttime
   } else if (compStartAngle = 90) {
// If a reminder is scheduled in the nighttime,
but window overlaps into the day.
if ((compStartAngle + complianceSweepAngle)  270)
{
 // Compute new angles and sweeps
 float startAngle2 = compStartAngle;
 float sweepAngle3 = 270 - compStartAngle;
 // Draw for nighttime
 canvas.drawArc(clockRect, startAngle2,
sweepAngle3, true, this.pmColor);
 float sweepAngle4 = complianceSweepAngle -
sweepAngle3;
 // Draw for daytime
 canvas.drawArc(clockRect, 270, sweepAngle4,
true, this.amColor);
// Else, just draw normally.
} else {
 canvas.drawArc(clockRect, compStartAngle,
complianceSweepAngle, true, this.pmColor);
}
   // If a reminder is scheduled in the early daytime, but
window overlaps into the nighttime (backwards)
   } else {
// Compute new angles and sweeps
float startAngle3 = compStartAngle;
float sweepAngle5 = -90 - compStartAngle;
// Draw for nighttime
canvas.drawArc(clockRect, startAngle3,
sweepAngle5, true, this.pmColor);
float sweepAngle6 = complianceSweepAngle -
sweepAngle5;
// Draw for daytime
canvas.drawArc(clockRect, -90, sweepAngle6, true,
this.amColor);
   }

   // I want to create the buttons here for each
reminder

  }
 }
}


I'm sure if 

[android-developers] Re: Audio Volume

2009-03-09 Thread LukeH

I ended up handling the volume button presses myself.  The solution I
used is documented here:
http://stackoverflow.com/questions/628659/how-can-i-manage-audio-volumes-sanely-in-my-android-app

On Mar 9, 7:39 pm, strazzere str...@gmail.com wrote:
 Then I'd recommend looking 
 here:http://sdk.androidin.com/reference/android/media/AudioManager.html

 More 
 specifically;http://sdk.androidin.com/reference/android/media/AudioManager.html#se...)

 audio.setStreamVolume(AudioManager.STREAM_MUSIC, #);

 On Mar 9, 10:22 pm, LukeH luke.hun...@gmail.com wrote:

  I'm a developer, I'm looking to change the behavior of my app, not
  install another app for changing the volume.  I need some way to make
  it so that volume button presses always adjust the music stream volume
  when my activity is showing whether a sound is playing at the time or
  not.

  On Mar 9, 7:16 pm, strazzere str...@gmail.com wrote:

   Look at some of the applications on the market. Such as Master Volume
   Controller.

   You can lower the media volume, and raise your ringer volume.

   On Mar 9, 9:58 pm, LukeH luke.hun...@gmail.com wrote:

I also have exactly this issue. How can I fix it? Or as they say on
internets, BUMP.

On Feb 3, 2:28 am, blindfold seeingwithso...@gmail.com wrote:

 My app generates and plays sound samples in one second bursts, and
 this context sensitivevolumeadjustment keeps flipping between
 ringtonevolumeand mediavolumedepending on split second timing
 (apparently depending on whether a burst is playing or a next burst is
 in preparation when thevolumebuttons are pressed). How can I pin
 down (lock?) the audio context to prevent this? Right nowvolume
 adjustment via thevolumebuttons is unworkable.

 Thanks.

 On Feb 2, 11:35 pm, Dave Sparks davidspa...@android.com wrote:

  Thevolumeadjustment is context sensitive. You can tell whichvolume
  is being adjusted by thevolumedisplay.

  If YouTube or the music player, adjusting thevolumewill affect only
  the music/video playbackvolume. Thevolumedisplay will read Media
 Volume. If you're in the home screen, or most other apps that don't
  use audio, adjusting thevolumewill affect the ringtone/notification
 volume. Thevolumedisplay will read RingtoneVolume.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Help using autocomplete in my database.....

2009-03-09 Thread aljo

i already saw that thread but i still can't understand some of the
codes... i don't know how to incorporate my database in that code...
how can i import my db...


public ContactListAdapter(Context context, Cursor c) {
super(context, c);
Log.d(exp, *** A VER EHJEE
*);
mDb = new Database
(context);
--- (is this where i will put my DB?)
mDb.open();
Log.d(exp, *** A VER PUES 100
*);
}

 private static final String[] PEOPLE_PROJECTION = new String[]
- (is this where autocomplete extracts its data?)
{
Database.KEY_REASON,
Database.KEY_VALUE,
Database.KEY_TAX
};

sorry guyz... im kinda new on this whole thing
tnx for any of your help...



On Mar 5, 6:42 pm, roland roland...@gmail.com wrote:
 Check this 
 out,http://groups.google.com/group/android-developers/browse_thread/threa...

 On 4 mar, 07:22, aljo aljochim...@gmail.com wrote:



  i'm kinda new to this android application and still a newbei to
  programming so hope someone could help me

  i've created an SQLitedatabaseprogram.. but i don't know how to use
  theautocompletefunction to access mydatabase... here's my code:

  ---­---

  packagedatabase.dev5;

  import java.util.ArrayList;

  import android.app.ListActivity;
  import android.database.Cursor;
  import android.database.sqlite.SQLiteDatabase;
  import android.os.Bundle;
  import android.widget.ArrayAdapter;
  import android.widget.EditText;

  public classDatabaseextends ListActivity {

          private final String MY_DATABASE_NAME = myCoolDB_2;
          private final String MY_DATABASE_TABLE = Users;

          /** Called when the activity is first created. */
          @Override
          public void onCreate(Bundle icicle) {
                  super.onCreate(icicle);

                  EditText et = new EditText(this);
                  et.setSelection(et.getText().length());
                  /* Will hold the 'Output' we want to display at the end. */
                  ArrayListString results = new ArrayListString();

                  SQLiteDatabase myDB = null;
                  try {

                          //Create theDatabase(no Errors if it already exists)
                          this.openOrCreateDatabase(MY_DATABASE_NAME, 
  MODE_PRIVATE, null);
                          // Open the DB and remember it
                          myDB = this.openOrCreateDatabase(MY_DATABASE_NAME, 
  MODE_PRIVATE,
  null);

                          //this.deleteDatabase(MY_DATABASE_NAME);

                          // Create a Table in theDatabase.
                          myDB.execSQL(CREATE TABLE IF NOT EXISTS 
                                                          + MY_DATABASE_TABLE
                                                          +  (English 
  VARCHAR, Japanese VARCHAR,
                                                          +  MASU_Form 
  VARCHAR, Definition VARCHAR););

                          //myDB.delete(MY_DATABASE_TABLE, null, null);

                          // Add two DataSets to the Table.
                          /*myDB.execSQL(INSERT INTO 
                                                          + MY_DATABASE_TABLE
                                                          +  (English, 
  Japanese, MASU_Form, Definition)
                                                          +  VALUES ('yes', 
  'hai', 'NA', 'noun'););
                          myDB.execSQL(INSERT INTO 
                                                          + MY_DATABASE_TABLE
                                                          +  (English, 
  Japanese, MASU_Form, Definition)
                                                          +  VALUES ('yes', 
  'ee', 'NA', 'noun'););
                          myDB.execSQL(INSERT INTO 
                                                          + MY_DATABASE_TABLE
                                                          +  (English, 
  Japanese, MASU_Form, Definition)
                                                          +  VALUES ('call', 
  'kakeru', 'kakemasu', 'verb: to call'););
                          myDB.execSQL(INSERT INTO 
                                                          + MY_DATABASE_TABLE
                                                          +  (English, 
  Japanese, MASU_Form, Definition)
                                                          +  VALUES ('call', 
  'kakeru', 'kakemasu', 'verb: to wear'););
                          myDB.execSQL(INSERT INTO 
                                                          + MY_DATABASE_TABLE
                                                          +  (English, 
  Japanese, MASU_Form, 

[android-developers] error on MediaPlayer

2009-03-09 Thread bely

Hi all,
I am writing a  player for stream video, here is the player's code
(just copy from apidemo):

package com.android.playerdemo;

import com.android.playerdemo.R;


import android.app.Activity;
import android.graphics.PixelFormat;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnBufferingUpdateListener;
import android.media.MediaPlayer.OnCompletionListener;
import android.media.MediaPlayer.OnErrorListener;
import android.os.Bundle;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;


public class MediaPlayerDemo_Video extends Activity implements
OnBufferingUpdateListener,
OnCompletionListener,OnErrorListener,
MediaPlayer.OnPreparedListener, SurfaceHolder.Callback {

private static final String TAG = MediaPlayerDemo;
private int mVideoWidth;
private int mVideoHeight;
private MediaPlayer mMediaPlayer;
private SurfaceView mPreview;
private SurfaceHolder holder;
private String path;
private Bundle extras;
private static final String MEDIA = media;
private static final int LOCAL_AUDIO = 1;
private static final int STREAM_AUDIO = 2;
private static final int RESOURCES_AUDIO = 3;
private static final int LOCAL_VIDEO = 4;
private static final int STREAM_VIDEO = 5;

/**
 *
 * Called when the activity is first created.
 */
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.mediaplayer_2);
mPreview = (SurfaceView) findViewById(R.id.surface);
holder = mPreview.getHolder();
holder.addCallback(this);
holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
extras = getIntent().getExtras();

}

private void playVideo(Integer Media) {
try {

switch (Media) {
case LOCAL_VIDEO:
/*
 * TODO: Set the path variable to a local media
file path.
 */
path = ;
if (path == ) {
// Tell the user to provide a media file URL.
Toast
.makeText(
MediaPlayerDemo_Video.this,
Please edit
MediaPlayerDemo_Video Activity, 
+ and set the path
variable to your media file path.
+  Your media file
must be stored on sdcard.,
Toast.LENGTH_LONG).show();

}
break;
case STREAM_VIDEO:
/*
 * TODO: Set path variable to progressive
streamable mp4 or
 * 3gpp format URL. Http protocol should be used.
 * Mediaplayer can only play progressive
streamable
 * contents which basically means: 1. the movie
atom has to
 * precede all the media data atoms. 2. The clip
has to be
 * reasonably interleaved.
 *
 */
path = http://www.test.com/2102029.mp4;;
if (path == ) {
// Tell the user to provide a media file URL.
Toast
.makeText(
MediaPlayerDemo_Video.this,
Please edit
MediaPlayerDemo_Video Activity,
+  and set the path
variable to your media file URL.,
Toast.LENGTH_LONG).show();

}

break;


}

// Create a new media player and set the listeners
mMediaPlayer = new MediaPlayer();
mMediaPlayer.setDataSource(path);
mMediaPlayer.setDisplay(holder);
mMediaPlayer.prepareAsync();
mMediaPlayer.setOnBufferingUpdateListener(this);
mMediaPlayer.setOnCompletionListener(this);
mMediaPlayer.setOnPreparedListener(this);
mMediaPlayer.setAudioStreamType
(AudioManager.STREAM_MUSIC);


} catch (Exception e) {
Log.e(TAG, error:  + e.getMessage(), e);
}
}

public void onBufferingUpdate(MediaPlayer arg0, int percent) {
Log.d(TAG, onBufferingUpdate percent: + percent);

}

public void onCompletion(MediaPlayer arg0) {
Log.d(TAG, onCompletion called);
}

public boolean  onError(MediaPlayer mediaplayer, int what, int
extra) {
Log.d(TAG,---error found:+what);
return true;
}

public void 

[android-developers] Re: Android Testing with TMobile G1

2009-03-09 Thread Justin Allen Jaynes

I have connected a G1 to my development laptop and used eclipse just as 
I would when using the emulator to automatically deploy apk's and run 
and test them, and have the logcat readout looks just as per with the 
emulator.

There is at least one difference which I noticed.  You do NOT have root 
access to all folders and files using adb shell, or with the file viewer 
in DDMS of eclipse.

You do have to enable debug over USB or something like that on the 
phone.  I got all the details I needed by searching the 
development.android.com site.

Justin

Mike Pastor wrote:

 Fellow Developers,

 Has anyone experienced problems with using the TMobile G1 (usa) as a
 serious Android testing machine?  Is it a seamless task to load the G1
 phone from your development PC through the USB connection?

 Are there any special Developer Mode settings that have to be made
 on the consumer TMobile G1?  Does TMobile give us official root
 access?

 Does the GPS feature on the TMobile G1 work well?  Can the positioning
 and directions (with voice?) be similar to a Garmin Navigation unit?

 Thanks and Cheers,

 Mike Pastor



 
   


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



[android-developers] Re: Accessing the internet.

2009-03-09 Thread dillirao malipeddi
 public String get_DAtaFromWeb(String url_toconnect)//throws Exception
  {
int connection_Timeout = 1;// 10sec
HttpParams my_httpParams = new BasicHttpParams();;
HttpConnectionParams.setConnectionTimeout(my_httpParams,connection_Timeout);
HttpConnectionParams.setSoTimeout(my_httpParams,connection_Timeout);

HttpClient httpclient = new DefaultHttpClient(my_httpParams);  //get
http client with given params
String responseBody = null;

 try
 {

  HttpGet httpget = new HttpGet(url_Pls);

  if(myDebug.debug_Log)Log.i(CONTENT GET,executing request  +
httpget.getURI());

  // Create a response handler
  ResponseHandlerString responseHandler = new BasicResponseHandler();

  responseBody = httpclient.execute(httpget, responseHandler);
  }
 catch(Exception e)
 {
 if(myDebug.debug_Log)Log.i(Exception,Http Connection+e.toString());
 }

  String Content = responseBody;


 if(myDebug.debug_Log)Log.i(,-START---);
  if(myDebug.debug_Log)Log.i(Response,+Content);

 if(myDebug.debug_Log)Log.i(,---END-);

 return Content;

  }

On Mon, Mar 9, 2009 at 4:53 PM, murphy howt...@hotmail.com wrote:


 Hi all,

 Was just wondering if anyone had any code samples about writing and
 retrieving data from a website? I am currently creating an application
 which populates its textviews by accessing information from an online
 source.

 Thanks, Murphy.

 



-- 
Dilli Rao. M

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



[android-developers] How to make MotionEvent Stable

2009-03-09 Thread Nithin

Hi,

I am using motionEvent by X and Y co-ordinates, but when the skin
changes like from Landscape to Portrait, its not working. So is there
any way to make it Stable, like it has to work in all skin ?

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



[android-developers] Re: maps probelm

2009-03-09 Thread veer reef
On Mon, Mar 9, 2009 at 9:15 PM, karthik mknarayan1...@gmail.com wrote:

 Hi Karthik ,




 Hi,
  I followed the procedure for signing up for Map api key as given
 in the google documentation
  and i got the api key.Then i put the api key in Mapview , i put
 the uses library tag in manifest file and INTERNET and
 ACCESS.COARSE.LCATION permission also in the manifest file but my map
 is not showing up.In the log file it is giving an error could not
 connection factory
   what might be the probelm could anyone help?please



 


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



[android-developers] 24MB in RAW folder -- when running showing INSTALL_FAILED_INSUFFICIENT_STORAGE

2009-03-09 Thread Nithin

Hi,

We have 10 mp4 files, total size is about 24MB. We put all in RAW
folder and tried to run, but its showing insufficient storage. What
is the solution for this, please guide me in this ?? Whether we can
put these files in SDCard or anywhere else ??

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



[android-developers] GregorianCalendar.getOffset() returning 0

2009-03-09 Thread Farhan

Hello,

My timezone is C.S.T. in U.S., so it has a raw offset of -6 from GMT
and as of today it should be -5 as DST has started. But both the
getRawOffset() and getOffset() methods are returning 0. Can anyone
tell me why this is happening and how it can be corrected?

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



[android-developers] Re: how to implement scrolling text?

2009-03-09 Thread soniya

I am talking about this API Demo: API Demos - Text - Marquee

I tried selecting the textbut it does not move...not even a
millimeter :(

Am I missing something??

On Mar 4, 9:28 pm, Romain Guy romain...@google.com wrote:
 The marquee starts when a TextView gets focused/selected. It is used
 throughout the UI in 1.1, for instance in the list of all apps in
 Home.



 On Tue, Mar 3, 2009 at 11:00 PM, soniya soniy...@gmail.com wrote:

  I have downloaded the latest SDK i.e. Android 1.1 but I am not able to
  run the API demo for Marquee.
  It does not work The text remain static.
  Do I need to do any setting or something to view that?

  On Jan 31, 1:51 am, Romain Guy romain...@google.com wrote:
  Note that cupcake will have themarqueefeature on TextView.

  On Fri, Jan 30, 2009 at 12:31 PM, Zach Hobbs ho...@helloandroid.com 
  wrote:

   You can create a custom singleLine TextView and animate it by creating a 
   loop
   and calling scrollBy(x,y) incrementing/decrementing the x value.

   -Zach

   On Thursday 29 January 2009 7:47:49 pm Rodrigo wrote:
   HI,

   What is the best way to implement scrolling text (with behavior
   similar to that of HTML tag 'marquee')??

   I've been trying to do this using TextViews + Animations but I'm
   having troubles primarily because of sizing issues. If my text is long
   enough that it exceeds the screen width, it won't be drawn completely
   (it's size will be chopped at screen width). Thus,  when I animate it
   from right to left, only a part of the text will be displayed. This
   happens if I allow a maximum of 1 line in my TextView, because
   otherwise it makes the TextView have multiple lines. If I make it
   horizontally scrollable, the same 'chopped-off' behavior is seen.

   I think this happens because the TextView's parent imposes some
   restrictions on its size. Is there a way to bypass these restrictions
   so that the TextView is 'drawn' even if parts of it will be off-
   screen?

   If that's not possible, what's an alternative way of implementing this
   behavior?

   Thanks!

   --

   Zach Hobbs
   HelloAndroid.com
   Android OS news, tutorials, downloads

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

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

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

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: change rild privilege

2009-03-09 Thread srinivas

Hi, id did change these options, the code in rild.c under hardware/ril/
rild/ has a fucntion switchuser(). The code in thie switches the uid
of RILD to radio, but if i un comment this, ril is not working, its
not even getting initialized.

Thanks
Srinivas

On Mar 6, 5:55 pm, Mads Kristiansen mads.kristian...@nullwire.com
wrote:
 Looking at init.rc:
 service ril-daemon /system/bin/rild
 socket rild stream 660 root radio
 socket rild-debug stream 660 radio system
 user root
 group radio cache inet misc

 So it seems to be running as root, but it seems to be possible to change it,
 so I'd just try it.

 / Mads



 On Fri, Mar 6, 2009 at 12:53 PM, srinivas nivasn...@gmail.com wrote:

  Hi,
  In android, Does RILD run with root privileges?
  If so, can we change its privileges?
  Please let me know how and where we can change these privileges.
  Any pointers will be very helpful.

  Thanks
  Srinivas- Hide quoted text -

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



[android-developers] Re: Does this group need renaming?

2009-03-09 Thread Evil Mushroom Lord

A lot of android developers are from very small shops (1-5 people),
no? For many Android developers handling the market is a big part of
their process.

Although having said that, I wouldn't be opposed to a separate group
for market/business specific android topics. Until such is created I
don't think posts here about that are off topic.

~Evil Mushroom Lord

Mushroom Wars: The Splatting
On the android market now!
http://www.evilmushroomempire.com/splat/screenshots.html

On Mar 7, 11:15 pm, lotusscript lotusscr...@gmail.com wrote:
 I agree with your point about OT submits.  I would be happy if there
 were an android-business group.  This way anything business / market /
 promotions / tax etc could be submitted there.  Would be happy to
 subscribe to this.

 Jon Colverson wrote:
  Hello.

  I notice that there's been a bit of controversy in the last couple of
  days about off-topic posting on this list. As the list home page says,
  it is intended to be a place to Discuss developing Android
  applications using the Android framework. While I find the talk about
  the Market and wider issues very interesting, I do think it would be
  better placed on the -discuss list, so that this list can be more
  focussed on technical issues to do with developing using the SDK.

  I wonder if the reason why this list attracts a lot of off-topic stuff
  is the name? I suspect many people don't see the description and just
  interpret android-developers to be for discussion of issues
  affecting developers. Perhaps if it was named android-sdk (to match
  the new android-ndk list), that would improve things?

  Apologies for the fact that this post itself is off-topic. :-)

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



[android-developers] Turning GPS ON/OFF

2009-03-09 Thread Rudi

Anybody nows a code/sample how to turn ON/OFF the GPS location
provider *corretcly*. I have found the System.Settings provider and
can set / change the corresponding setting, but it seems that the rest
of the system does not recgnize the change. Is there a method to be
called to notify the system about the settings update?

Thanks

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



[android-developers] Accessing raw resource files with the filename as a String

2009-03-09 Thread Hayden

Is there  a way to access a raw resource file by having its filename
in a String?  According Google's documentation, I need to use

Resources.openRawResource (R.raw.myDataFile)

This requires that I have the file name at compile time, but what if I
have 20 or so files and want to do something to a specific file by
passing its file name at runtime?

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



[android-developers] how to config APN in android?

2009-03-09 Thread Gollum [www.aidiji.com]
I mean, which API can I turn to ?thank you.

-- 
www.aidiji.com - Andoroid Developing  Application Forum

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



[android-developers] AlertDialog Question

2009-03-09 Thread SimV01

Is there a way to change the textsize used in AlertDialog.Builder -
setMultiChoiceItems(validRatesCursor, show, country, new
DialogInterface.OnMultiChoiceClickListener()...  Some of my country
fields have rather long names and they are getting cut off (with a ...
on the end). Can the textsize be set so more text can show - or the
line count be increased?

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



[android-developers] Help: ADT and Eclipse integration problem (I think)

2009-03-09 Thread neckar

Hello all,

I've installed the android SDK, Eclipse and the ADT plugin (got all
the latest versions from the official websites: eclipse 3.4.2 from
which I installed the ADT plugin and SDK 1.1_r1 from google).

I've set the SDK in eclipse and also added it to the PATH environment
variable (I'm running Win XP SP2) and have entered the necessary Run
configurations settings in eclipse.

Yet trying to open each of the sample projects and create a Hello
Android project of my own consistently gets the following error from
eclipse: R cannot be resolved.

I still don't know much about the framework but have read that the
R.java is suppose to be generated automatically. Eclipse suggests
adding an import to android.R, but the tutorial I'm reading seems to
have no such import and even if I add the import the problem persist
as the 'main' class simply isn't there.

I've changed the relevant code so to omit the use of the R class from
this:

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

to this:

TextView tv = new TextView(this);
tv.setText(Hello, Android);
setContentView(tv);

While this did make the aforementioned error go away I still couldn't
run the project since eclipse doesn't seem to work well with the ADT
plugin (that's my guess at least) and the doesn't build the project.

When I Run it I get the following output on the console:

[2009-03-08 09:19:09 - Hello Android] --
[2009-03-08 09:19:09 - Hello Android] Android Launch!
[2009-03-08 09:19:09 - Hello Android] adb is running normally.
[2009-03-08 09:19:09 - Hello Android] Could not find Hello
Android.apk!

The emulatore doesn't start of course. It seems to me like there's a
problem with the ADT and Eclipse so that the projects aren't created
properly (that R.java file is suppose to be created automatically
according to what I've read).

any clues as to what's gone wrong here and how can I fix it?

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



[android-developers] Android and Epocrates

2009-03-09 Thread Alex Tsai

http://www.petitionspot.com/petitions/androidepocrates

I started a petition to show the developers at epocrates that there is
a demand for it on the Android platform. I dont know if this is an
appropriate place to post this, but one of the reasons that I have yet
to get a g1, is due to the fact that there is no pharmaceutical
application available for it yet, namely epocrates.

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



[android-developers] Performance of multiple threads.

2009-03-09 Thread kbeal10

I'm currently designing a game that will be displaying several dice. I
would like to know the wisest course of action. The dice will extend
View (or SurfaceView), so that each will be able to be touched, etc.
My question is should I:

A.) Spawn one child thread to draw all of the dice (up to 6). I would
do this by writing a class that extends ViewGroup or one of the
Layouts and having it create a new thread. Or...

B.) should I spawn a new thread for each die? Each die would extend
View, or possibly SurfaceView and have its own thread to perform the
onDraw() (i.e. the LunarLander example).

Which solution would yield better performance/responsiveness? Would up
to 6 child threads be necessary, or a detriment?

I'm asking because I understand how I would implement the B.) solution
already. It closely follows the LunarLander example and I have already
implemented another section of the game in the same fashion. Other the
other hand, creating up to 6 child threads seems like it may be a bit
much on resources. However, I am unsure how I would implement a
ViewGroup that does its work in a child thread.

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



[android-developers] Activating G1 without a SIM

2009-03-09 Thread Sierra Bravo

Hi
Apologies if it's the wrong forum for this question.

I'm in India, and have brought over an unlocked G1 phone from the US
that I'd like to activate without a SIM card. I've added the necessary
entries in the android rules file /etc/udev/rules.d/ (I'm using Ubuntu
Hardy). Now the G1 is recognized by the OS as an external USB drive,
but 'adb devices' returns an empty list.

Is there an instruction page somewhere for this?

TIA

s.b.

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



[android-developers] Loading images from SDCard

2009-03-09 Thread NeoRiddle

Hi!

I want to make a image gallery, I want to scan or have a way to get
pics from the external storage (sdcard) and have them pointed with a
Cursor object. I have read some examples that suggests to do this:

Uri uri = MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI;
String[] projection = {
MediaStore.Images.Thumbnails._ID,
MediaStore.Images.Thumbnails.IMAGE_ID,
MediaStore.Images.Thumbnails.WIDTH,
MediaStore.Images.Thumbnails.HEIGHT,
MediaStore.Images.Thumbnails.KIND
};
Cursor cursor = managedQuery(uri, projection, null, null, null);

But it does not work yet, when this code is executed, cursor variable
is empty (no objects pointed).
How can I should do this?

Please give me ideas!.

Thank you!

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



[android-developers] Reconnecting to a service

2009-03-09 Thread csyperski

This may be a easy question but I have a application that runs a
service using:

startService()

The service works great but my questions is how do I reconnect to this
service if I close my front end app by clicking the home button, then
re launch the app?  Thanks to anyone that can help.

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



[android-developers] App Not being found in the Market

2009-03-09 Thread endo79...@gmail.com

I have a number of previous users and some new potential ones who are
saying they can't find our app in the market place even though have
provisioned it too all current and future locations and the app is
also appearing on the android marketplace website.

Feel like I am missing out on potential adopters and am concerned.

Has anyone else encountered this issue?

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



[android-developers] Re: MenuItems and Typefaces

2009-03-09 Thread x2andr...@gmail.com

you can use setTypeface anywhere, inside the main class, please refer
to my app: Arabic keyboard in the market,
 but how did you use Locale??? there is no Arabic Locale right now,
did it make the letters connect?

thanks

x2android.blogspot.com

On Feb 23, 2:29 am, Christian Martín Reinhold sabues...@gmail.com
wrote:
 I am using thearabicfont at the /assets/fonts folder and then used
 the locale of ctx.getResources().configuration().locale to change the
 locale to the desired ones (having previously added the configuration
 settings uses-permition at the xml manifest), and it works. It changes
 to thearabiclanguage.

 The next step is to usearabicfonts, for that y use
 ctx.getAssetsManager(), and there  I specify the font to the TextView
 in the way tv.setTypeface so thatarabicletters are readable, and I
 used a reshaper (capital letters don't work properly when reshaping,
 but the rest works fine like this).

 The only thing is, Menus and Titles in Dialogs use textviews (i
 suppose that), but you can not access to the textview and set a
 typeface. In dialogs you have the option of setting a view, so you can
 define your own textview so it is no problem, but I do not know how to
 do that in the Menu object.

 On 22 feb, 12:08, G_man aman@gmail.com wrote:

  I don't mean to let you down but as of now, android does not have an
 arabicfont

  I have a g1 and I can viewarabic(disconnected letters) but this is
  because I have root access and I replaced the default system font with
  one that supportsarabic
  your application will not be readable for users.

  There is a way to do that.
  You have to put anarabicfont as a part of your program and do some
  sort of reshaper or make it viewable as images. Otherwise no one will
  be able to see what your application prints on screen.

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



[android-developers] G1 and Mac

2009-03-09 Thread radiro

My G1 is not visible to my MacBook, e.g.

$ adb devices

returns no device at all (USB-Debugging is enabled).  The adb kill-
server command doesn't help.

Note that the G1 is visible when I plug it to my Windows Vista
machine.

Any Mac-User with a solution for this?

Ralph

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



[android-developers] ADT Layout Editor

2009-03-09 Thread Susan

1. Can I  call ADT Layout Editor in  my java source file , not by XML
file  open with menu ?

2. When I click add button in the outline view of ADT Layout
Editor , it will show such a list of UI components as AbsoluteLayout
  AnalogClock
  AutoCompleteTextView
  Button
  .
My question is where it gets this list? Can I config this path to
get my customized UI components?

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



[android-developers] Doing a post url

2009-03-09 Thread vir

Hello people,

I have a problem while doing a post to a url. here is my scenario :

I have a login page e.g http://localhost/login.php and i need to login
with the username and password from my android application.  I am
using org.apache to do a post.  I am being able to post the variables
to the local to the php page, but how to get the response from my php
code below :

php code :

function loginpass(e)
{

$sql = SELECT count(*) FROM table_name where username='abd' AND
password='pass' ;
$querycount = mysql_query($sql) or die (mysql_error());

while ($row = mysql_fetch_array($querycount))
{
$count = $row[0];
}

if ($count == 1)
{
$response = ok;
}
else
{
$response = ko;
}

echo $response;



I know i can use java.net , do a post and read the contents from the
page using buffereader , is there anyway? may be assign the response
to a session variable... and read the session variable ?

Many thanks for your consideration and help

regards
Vir :)

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



[android-developers] execption while loadling providers

2009-03-09 Thread Nio

hi all,
When I try to start Location Manager, it throws exceptiones I post
here:

I/systemserver ( 44): starting Location Manager.
D/LocationManagerService (44): constructed LocationManager Service
E/LocationManagerService(44): Exception Loading Providers
E/LocationManagerService(44): java.lang.illegalArgumentException:
Key.length31
E/LocationManagerservice(44): at android.os.systemproperties.get
(systemproperties.java:42)
E/LocationManagerService(44): at
com.android.internal.location.networkLocationProvider.isSupported
(NetworkLocationProvider.java:111)
E/LocationManagerService(44): at
com.android.server.LocationManagerService._loadProvidersNoSync
(LocationManagerService.java:348)
E/LocationManagerservice(44): at
com.android.server.LocationManagerService.loadProvidersNoSync
(LocationManagerService.java:340)
E/LocationManagerservice(44): at
com.android.server.LocationManagerService.loadProviders
(LocationManagerService.java:333)
E/LocationManagerservice(44): at
com.android.server.LocationManagerService.init
(LocationManagerService.java:447)
E/LocationmanagerService(44): at com.android.server.serverThread.run
(systemserver.java.234)
E/AndroidRuntime(44): Crash logging skipped, no checkin service

Does any one know what is going on here or meet the same question?
Please tell me if i missed anything to clarify, and any help will be
appreciated.
thanks.

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



[android-developers] how can I create a 'View' object from a xml file?

2009-03-09 Thread Lucius Fox

Hi,

In the Tab2 of TabActivity in the APIDemo example, it has this method
to create a View object for each tab:
public View createTabContent(String tag) {
final TextView tv = new TextView(this);
tv.setText(Content for tab with tag  + tag);
return tv;
}

Can you please tell me how can I create a View for each tab from an
xml layout file?
For example:
public View createTabContent(String tag) {
// load the content from 'tab_content.xml' file
// return a View object

}

// tab content.xml looks something like:
 LinearLayout
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=wrap_content

Button android:id=@+id/button
android:text=@string/controls_1_save
android:layout_width=wrap_content
android:layout_height=wrap_content/
 /LinearLayout

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



[android-developers] Re: Performance of multiple threads.

2009-03-09 Thread Romain Guy

Views (except SurfaceView's surface) can NOT be used from background
threads. Besides, it would not help at all.

On Sun, Mar 8, 2009 at 8:38 PM, kbeal10 kbea...@gmail.com wrote:

 I'm currently designing a game that will be displaying several dice. I
 would like to know the wisest course of action. The dice will extend
 View (or SurfaceView), so that each will be able to be touched, etc.
 My question is should I:

 A.) Spawn one child thread to draw all of the dice (up to 6). I would
 do this by writing a class that extends ViewGroup or one of the
 Layouts and having it create a new thread. Or...

 B.) should I spawn a new thread for each die? Each die would extend
 View, or possibly SurfaceView and have its own thread to perform the
 onDraw() (i.e. the LunarLander example).

 Which solution would yield better performance/responsiveness? Would up
 to 6 child threads be necessary, or a detriment?

 I'm asking because I understand how I would implement the B.) solution
 already. It closely follows the LunarLander example and I have already
 implemented another section of the game in the same fashion. Other the
 other hand, creating up to 6 child threads seems like it may be a bit
 much on resources. However, I am unsure how I would implement a
 ViewGroup that does its work in a child thread.

 




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

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

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



[android-developers] MediaRecorder reset() runtime exception

2009-03-09 Thread aby

Hi,
There are always runtime exceptions about reset() method when I tried
to finish a audio record operation and start to record new one. The
procedure in my code as follows:

MediaRecorder mRecorder = new MediaRecorder();

//begin to record
mRecorder.prepare();
mRecorder.start();

//end to record
mRecorder.stop();
mRecorder.reset();

//.begin to record a new one...
mRecorder.prepare();
mRecorder.start();
...

And exception happen at mRecorder.reset().
Is there any problems in reset() of MediaRecorder?
Or I only can new a MediaRecorder object and release it when I need to
record a new one audio?

Regards



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



[android-developers] Re: Performance of multiple threads.

2009-03-09 Thread Stoyan Damov

U, I don't want to sound insulting in anyway but being a complete
newbie in game programming I can *assure* you you're about to do
something fundamentally wrong.
Your game only needs 2 threads - the UI (main) thread, and a secondary
which runs your game loop.
If you are a newbie as well, you'll need to read a couple of books, or
at least a dozen of articles on game programming before even thinking
of creating your own game.

Cheers

On Mon, Mar 9, 2009 at 5:38 AM, kbeal10 kbea...@gmail.com wrote:

 I'm currently designing a game that will be displaying several dice. I
 would like to know the wisest course of action. The dice will extend
 View (or SurfaceView), so that each will be able to be touched, etc.
 My question is should I:

 A.) Spawn one child thread to draw all of the dice (up to 6). I would
 do this by writing a class that extends ViewGroup or one of the
 Layouts and having it create a new thread. Or...

 B.) should I spawn a new thread for each die? Each die would extend
 View, or possibly SurfaceView and have its own thread to perform the
 onDraw() (i.e. the LunarLander example).

 Which solution would yield better performance/responsiveness? Would up
 to 6 child threads be necessary, or a detriment?

 I'm asking because I understand how I would implement the B.) solution
 already. It closely follows the LunarLander example and I have already
 implemented another section of the game in the same fashion. Other the
 other hand, creating up to 6 child threads seems like it may be a bit
 much on resources. However, I am unsure how I would implement a
 ViewGroup that does its work in a child thread.

 


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



[android-developers] Webview and language support

2009-03-09 Thread sagar.indianic

I have a local html file encoded in utf 8. It has some fonts in urdu
language. I want to display those character. But it seems that webview
is not displaying them..it displays squares instead of text..ne
idea?

Thanks..
Sagar


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



[android-developers] How to pass a class reference as a parameter to an activity?

2009-03-09 Thread Zhiping Zeng

HI, all,

I want to pass a class reference to an activity, and then the activity 
will construct the view according to the content of the class.

How could I implement this function?

thanks.
-- 
Zhiping



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



[android-developers] Re: permission denied error

2009-03-09 Thread luodaliang

I try to open a port for my nmea data transfer, but it also tells me
Permission denied.

Anyone any suggestions?

On 2月27日, 上午5时27分, bhavani.mat...@gmail.com
bhavani.mat...@gmail.com wrote:
 Hi,

  While Android is booting, I am gettingpermissiondeniederror from
 an application.
  Here is a snip of the log.

 Hi,

  While Android is booting, I am gettingpermissiondeniederror from
 an application.
  Here is a snip of the log.

  snip
 01-06 00:04:04.480 I/ActivityManager(  849): Start proc
 com.android.sdksetup for activity
 com.android.sdksetup/.DefaultActivity: pid=1023 uid=10017 gids={2001,
 3002, 3001, 1006, 3003}
 01-06 00:04:05.350 W/ActivityManager(  849):PermissionDenial:
 getIntentSender() from pid=1023, uid=10017, (need uid=1000) is not
 allowed to send as package android
 01-06 00:04:05.640 E/AndroidRuntime( 1023):
 java.lang.RuntimeException: Unable to start activity ComponentInfo
 {com.android.sdksetup/com.android.sdksetup.DefaultActivity}:
 java.lang.SecurityException:PermissionDenial: getIntentSender() from
 pid=1023, uid=10017, (need uid=1000) is not allowed to send as package
 android
 01-06 00:04:05.620 E/AndroidRuntime( 1023): Uncaught handler: thread
 main exiting due to uncaught exception
 /snip

 Is this some thing to do with AndroidManifest.xml?
 I tried with different uses-permission, but still no success.

 Can some body help me?

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



[android-developers] Change CharSet

2009-03-09 Thread Mr.No

Hello,
how i can change the charset for my app.?

I wonna use ISO-8859-1 for all Input!

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



[android-developers] Re: How to pass a class reference as a parameter to an activity?

2009-03-09 Thread Miguel Paraz

On Mar 9, 4:52 pm, Zhiping Zeng clipse.z...@gmail.com wrote:
 I want to pass a class reference to an activity, and then the activity
 will construct the view according to the content of the class.


Hi,
There's no way to store references in an Intent because it may be
passed to other virtual machines.

If you want to store a class with data, then you could implement
Parcelable, then store it as an extra in the Intent.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Turning GPS ON/OFF

2009-03-09 Thread Kevin AN

to maxim yukin' site

On Mar 9, 4:27 am, Rudi rudolf.hor...@gmail.com wrote:
 Anybody nows a code/sample how to turn ON/OFF the GPS location
 provider *corretcly*. I have found the System.Settings provider and
 can set / change the corresponding setting, but it seems that the rest
 of the system does not recgnize the change. Is there a method to be
 called to notify the system about the settings update?

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



[android-developers] Re: String to HTML String

2009-03-09 Thread Atxe

Sorry, when I wrote the post I was sleepy. The class is this:
http://developer.android.com/reference/java/net/URLEncoder.html

On Mar 9, 12:10 am, Atxe albert.hernan...@gmail.com wrote:
 Hi,

 I'm new in this newsgroup :) and I'm writing my thesis about Android.
 I'm developing an app that processes querys to google maps, in order
 to get driving directions.

 Then my question is, does anyone knows if there is something to parse
 String into HTML String?

 For example, if I have from:Barcelona to:Paris I want to obtain from
 %3ABarcelona+to%3AParis. I.e. a mapping between String and HTML
 String format.

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



[android-developers] Re: Reconnecting to a service

2009-03-09 Thread Kevin AN

you don't need to reconnect. service is always running, you can
communicate with it through static variables, or you can Stop it via
StopService()

On Mar 8, 11:03 pm, csyperski csyper...@gmail.com wrote:
 This may be a easy question but I have a application that runs a
 service using:

 startService()

 The service works great but my questions is how do I reconnect to this
 service if I close my front end app by clicking the home button, then
 re launch the app?  Thanks to anyone that can help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] https://dl-ssl.google.com/android/eclipse/ not reachable

2009-03-09 Thread Andreas Frey

Hello,

I wanted to install the ADT, but using the provided URL for the
Eclipse Update Site https://dl-ssl.google.com/android/eclipse/; did
not work. Trying the URL in the browser resulted in a 404 message.

Is there a new update-site location for the ADT Plugin?

--
Not Found
The requested URL /android/eclipse/ was not found on this server.
--
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Adding features to email client

2009-03-09 Thread Miguel Paraz

On Mar 6, 6:39 am, My3 maithri...@gmail.com wrote:
 I just wanted to know,whether is it possible to Add extra menu items
 to Standard email client?
 I know that we can use the email client to compose/forward mails, as
 well as we can access the content.
 Was just wondering if we can add extra menu items along with the
 existing menu items.

No, it's not possible to add extra menu items to other application
menus.

For the email client, you might want to work on the k9mail client
instead.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Adding features to email client

2009-03-09 Thread Eric Chan
you can modified the source of android and rebuild system image, I had done
to email.

Best Regards

Eric Chan


On Mon, Mar 9, 2009 at 6:09 PM, Miguel Paraz mpa...@gmail.com wrote:


 On Mar 6, 6:39 am, My3 maithri...@gmail.com wrote:
  I just wanted to know,whether is it possible to Add extra menu items
  to Standard email client?
  I know that we can use the email client to compose/forward mails, as
  well as we can access the content.
  Was just wondering if we can add extra menu items along with the
  existing menu items.

 No, it's not possible to add extra menu items to other application
 menus.

 For the email client, you might want to work on the k9mail client
 instead.
 


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



[android-developers] Re: https://dl-ssl.google.com/android/eclipse/ not reachable

2009-03-09 Thread Stoyan Damov

https://dl-ssl.google.com/android/eclipse/site.xml

Search the lists before asking ;)

On Mon, Mar 9, 2009 at 12:09 PM, Andreas Frey a-f...@gmx.de wrote:

 Hello,

 I wanted to install the ADT, but using the provided URL for the
 Eclipse Update Site https://dl-ssl.google.com/android/eclipse/; did
 not work. Trying the URL in the browser resulted in a 404 message.

 Is there a new update-site location for the ADT Plugin?

 --
 Not Found
 The requested URL /android/eclipse/ was not found on this server.
 --
 


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



[android-developers] Re: Customers on metered data plans

2009-03-09 Thread Tote

Duh, I thought we (i.e. developers with several years of mobile sw
development behind) could already get rid of this problem, sit back
and rely on that 1: Android devices will all be sold with a binding
contract with an operator (not as if it was always good) 2: that
contract had an unlimited plan. This would have saved us quite a bit
of time on trying to figure out what is good for the user.

On Symbian it's been a long time issue (since the platform is much
older than Android). We had to (and since there's serious QA criteria
to fulfill for your app to be officially signed we still have to) warn
the user that such an operation is to be performed during the
application's lifetime that may potentially suck money from the user's
wallet. Home network, roaming status, available WiFi hotspots, etc.
are all taken into account and the user can specify a preference among
these. Seamless roaming is such a new feature provided by the system
that enables an app to continuously exchange data with a remote server
while the comms stack changes between, say, home network (where data
plan is still affordable) and your home WiFi hotspot.

It was also troublesome, even though could be done with reasonable
effort, to always ask the user for her preference whenever your
application was to set up a network connection. I thought we wouldn't
have to face this problem at all on Android with unlimited plans
everywhere. Sad to hear that this is not the case.

Just my $0.02,

Tote

On Mar 8, 11:41 pm, Eric Wong (hdmp4.com) ericwon...@gmail.com
wrote:
 Well, in some parts of the world 3G data cost is astronomical

 In AustraliaOptus's HTC G1
 A $59 Internet Cap plan includes $350 worth of calls and text and
 500MB of data, while a $79 Internet Cap plan includes $550 worth of
 calls, unlimited text and 700MB of data. Two timeless plans offer
 1.5GB ($113.95 per month) and 3GB ($129) data allowances
 respectively.http://www.techworld.com.au/article/275393/htc_launches_first_android...

 You can check out the details from Optus (www.optus.com.au)

 I think one of the limiting factors for Android in such countries is
 many customers would be shocked with the data overchargeand
 this would prevent Android uptake in mobile phonesGoogle
 should really implement some simple settings within Android to allow
 one to shut off data access to 3G/GPRS completely (but not wifi)
 instead of relying on 3rd party apks.E.g. a simple click at the 3G/
 GPRS data icon to turn it off?

 This would be useful for roaming customers as wellI am sure
 everyone have seen the roaming story already?

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



[android-developers] Re: Customers on metered data plans

2009-03-09 Thread Al Sutton

The moment unlock codes started doing the rounds the idea of being bound 
to an unlimited data contract went out the window.

I, for one, have periods of time when my Android phone isn't using my 
T-Mobile SIM mainly because of reception problems where I live. My other 
sim does have a data allowance, but it's limited, so I'm *very* careful 
about when I use it.

Al.

Tote wrote:
 Duh, I thought we (i.e. developers with several years of mobile sw
 development behind) could already get rid of this problem, sit back
 and rely on that 1: Android devices will all be sold with a binding
 contract with an operator (not as if it was always good) 2: that
 contract had an unlimited plan. This would have saved us quite a bit
 of time on trying to figure out what is good for the user.

 On Symbian it's been a long time issue (since the platform is much
 older than Android). We had to (and since there's serious QA criteria
 to fulfill for your app to be officially signed we still have to) warn
 the user that such an operation is to be performed during the
 application's lifetime that may potentially suck money from the user's
 wallet. Home network, roaming status, available WiFi hotspots, etc.
 are all taken into account and the user can specify a preference among
 these. Seamless roaming is such a new feature provided by the system
 that enables an app to continuously exchange data with a remote server
 while the comms stack changes between, say, home network (where data
 plan is still affordable) and your home WiFi hotspot.

 It was also troublesome, even though could be done with reasonable
 effort, to always ask the user for her preference whenever your
 application was to set up a network connection. I thought we wouldn't
 have to face this problem at all on Android with unlimited plans
 everywhere. Sad to hear that this is not the case.

 Just my $0.02,

 Tote

 On Mar 8, 11:41 pm, Eric Wong (hdmp4.com) ericwon...@gmail.com
 wrote:
   
 Well, in some parts of the world 3G data cost is astronomical

 In AustraliaOptus's HTC G1
 A $59 Internet Cap plan includes $350 worth of calls and text and
 500MB of data, while a $79 Internet Cap plan includes $550 worth of
 calls, unlimited text and 700MB of data. Two timeless plans offer
 1.5GB ($113.95 per month) and 3GB ($129) data allowances
 respectively.http://www.techworld.com.au/article/275393/htc_launches_first_android...

 You can check out the details from Optus (www.optus.com.au)

 I think one of the limiting factors for Android in such countries is
 many customers would be shocked with the data overchargeand
 this would prevent Android uptake in mobile phonesGoogle
 should really implement some simple settings within Android to allow
 one to shut off data access to 3G/GPRS completely (but not wifi)
 instead of relying on 3rd party apks.E.g. a simple click at the 3G/
 GPRS data icon to turn it off?

 This would be useful for roaming customers as wellI am sure
 everyone have seen the roaming story already?

 Eric
 
 
   


-- 

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


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



[android-developers] CupCake download stats

2009-03-09 Thread Al Sutton

We've started breaking down the download stats at AndAppStore by android 
version and device and it looks like around 10% of downloads are going 
to devices running Cup Cake.

I was wondering if there was any chance of a CupCake SDK being released 
as a beta to allow developers to do some testing with it in the near future?

Al.

-- 

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


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



[android-developers] Android Programming courses

2009-03-09 Thread dushyEDU

Hi Everone,

If you're interested in learning how to develop top class games and
applications for the iPhone, HTC Touch (Android), Instinct, WinMobile,
or any other mobile device or platforms - then you should definitely
have a look at what they offer...http://EDUmobile.org

Register today and walk in for your free one-on-one
consultancy...http://EDUmobile.org


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



[android-developers] Why all mails were turned to unread?

2009-03-09 Thread yukinoba

Does anyone ever notice that the mail client (POP3) on Android will
turn all the mails' status from read into unread after a Force
Close event happened?

I found this when I survey whether Android could open a meeting
request message. When I opened the meeting.ics attachment which
includes the meeting detail, it threw an error message and ask me to
force close. After the error event, I went back to my INBOX folder,
and after a short period, OOPS, all the mails are changed into
unread status.

Is this a normal behavior? or did I crush my G1? Pleas tell me I
didn't spoil it...

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



[android-developers] Re: Android Programming courses

2009-03-09 Thread Stoyan Damov

Who's Everone? :P

On Mon, Mar 9, 2009 at 1:57 PM, dushyEDU dushyant.edumob...@gmail.com wrote:

 Hi Everone,

 If you're interested in learning how to develop top class games and
 applications for the iPhone, HTC Touch (Android), Instinct, WinMobile,
 or any other mobile device or platforms - then you should definitely
 have a look at what they offer...http://EDUmobile.org

 Register today and walk in for your free one-on-one
 consultancy...http://EDUmobile.org


 Dushy :-)
 


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



[android-developers] Re: How to have different types of view in ListActivity/BaseAdapter

2009-03-09 Thread hc

so that means if I wish to make a listview of conversation, with some
chatbubbles on the right and some on the left,
android does not provide support to optimize its display because it
expects predictable types for each row?

On Feb 23, 2:02 am, Mark Murphy mmur...@commonsware.com wrote:
 hc wrote:
  In a list, is it possible to have different kind of views, inflated
  from different layout XML?

 Sure!

  How am I able to have certain rows with layout inflated from a
  different XML? The method above seems to assume that all of them will
  have the same kind of layout.

 1. Override getViewTypeCount() to return the distinct number of types of
 layouts you are using.

 2. Override getItemViewType(int position) to return the 0-based index of
 the type of layout you are going to use for the indicated item in the list.

 At this point, getView() will only be passed a convertView to be
 recycled if it is of the proper type.

  I wish to make the last row a view with
  a Next/Previous button, and add rows with different layout in the
  middle of the list.

 I wouldn't recommend that approach. The getItemViewType() mechanism does
 not seem to support the notion of row positions changing type. If you
 make your Next/Previous button a row, that row will need to keep the
 same position, otherwise the row caching may break.

 I would recommend putting the next/previous button outside the list.

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

 Android Training on the Ranch! -- Mar 16-20, 
 2009http://www.bignerdranch.com/schedule.shtml
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: javax.mail.internet.InternetAddress cannot be found?

2009-03-09 Thread Noam

bump

On Mar 8, 7:12 pm, Noam noam.ha...@gmail.com wrote:
 Hello everyone,
 I am using Eclipse to develop and application for the android
 platform.
 When I try to tell it import javax.mail.internet.InternetAddress, it
 does not recognize it.
 Does anyone know why?

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



[android-developers] Re: Telephony API in Android

2009-03-09 Thread Arun

???

On Mar 6, 4:46 pm, Arunk arunk2...@gmail.com wrote:
 I am new to Android. I have developed application for blackberry. I
 want to develop the same application for Android also.

 Is there anything like phone listner in Android?

 How feasible its to implement an application which overrides the
 native phone application?

 When my application is running if someone make a call, I want to
 disconnect the call and dial a modified number.

 Same way I want to get Call Initiated, call connected, call
 disconnected, call incoming and call answered events.

 In blackberry PhoneListner class is prividing all these. Same way
 Symbian and Windows mobile also provides this. So I want to develop
 our application in android also. But I didn't find any API for that.

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



[android-developers] Re: javax.mail.internet.InternetAddress cannot be found?

2009-03-09 Thread Al Sutton

unbump.

Now try reading the SDK documentation.

Al.

Noam wrote:
 bump

 On Mar 8, 7:12 pm, Noam noam.ha...@gmail.com wrote:
   
 Hello everyone,
 I am using Eclipse to develop and application for the android
 platform.
 When I try to tell it import javax.mail.internet.InternetAddress, it
 does not recognize it.
 Does anyone know why?

 Thanks,
 Noam.
 
 
   


-- 

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


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



[android-developers] Re: SharedPreferences bug when writing strings with ampersands in them

2009-03-09 Thread Christoph Studer

This is a known issue and has a fix that will be part of a future release:
http://code.google.com/p/android/issues/detail?id=1707can=1q=SharedPreferencescolspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary


On Mon, Mar 9, 2009 at 11:36 AM, cmgreen...@googlemail.com
cmgreen...@googlemail.com wrote:

 Done.

 Here's a link to issue in case anyone is interested.

 http://code.google.com/p/android/issues/detail?id=2167q=SharedPreferencescolspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary

 I think for now in our app we'll just preprocess these strings to
 encode and decode the ampersands ourselves (avoiding the use of  of
 course) when we put them in and out of the settings.

 Cheers
 Chris.

 On Mar 7, 3:09 pm, Mark Murphy mmur...@commonsware.com wrote:
 cmgreen...@googlemail.com wrote:
  Is this a known issue?

 Well, you posted an issue, so it's known now!

 ;-)

 However, if you could attach some sample code to that issue that
 demonstrates the bug, that may help get it resolved more quickly.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 2.0 Published!
 




-- 
E-mail: christ...@studer.tv
Phone: +41 44 658 88 71
Mobile: +41 79 254 88 71

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



[android-developers] Re: Turning GPS ON/OFF

2009-03-09 Thread Neil

Use reflection to call LocationManager.updateProviders.


On Mar 9, 11:00 am, Kevin AN any...@gmail.com wrote:
 to maxim yukin' site

 On Mar 9, 4:27 am, Rudi rudolf.hor...@gmail.com wrote:

  Anybody nows a code/sample how to turn ON/OFF the GPS location
  provider *corretcly*. I have found the System.Settings provider and
  can set / change the corresponding setting, but it seems that the rest
  of the system does not recgnize the change. Is there a method to be
  called to notify the system about the settings update?

  Thanks


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



[android-developers] Re: How can host machine connect to emulator using socket

2009-03-09 Thread Arnauld NDEFO


hi,
i am a student, and  developp a application on android for my project
in school.I use android release 1.1 and the android emulator.I would
to use the socket  in my application.I have use the package
java.net.socket and java.io but i don't have a success.My code is
below.Please help me.I don't know how i can solve the problem.I have
explored  the package org.apache.http but i don't know how i can use
this package.Please help me
For the application, i want to send the data at android emulator for a
server web which is on another pc.Then the emulator android is a
client.
192.168.1.6 is the ip address for the server web
3000 is a port that server listen to retrieve the data which are
sended by the emulator android

public

class androidtracabilite extends Activity
{

/** Called when the activity is first created. */


private LocationManager locationManager;

private LocationProvider locationprovider;

private Miseajour miseajour;

private Socket socket;



public androidtracabilite()

{

miseajour = new Miseajour();

try

{

socket=new Socket(192.168.1.6,3000);

}catch(Exception e)

{

//sb.append(Exception levée);

}

}


@Override

public void onCreate(Bundle tracabilite)

{

super.onCreate(tracabilite);

setContentView(R.layout.main);

String location_context = Context.LOCATION_SERVICE;

locationManager =(LocationManager)getSystemService(location_context);

testProviders();

try{

envoiesocket();

}

catch(Exception e)

{

System.out.println(Non effectué);

}

}


public Location testProviders()

{


Location location=new Location(mobil);

TextView tv = (TextView)findViewById(R.id.myTextView);

StringBuilder sb = new StringBuilder(Enabled Providers:);


List String providers= new ArrayListString(10);


providers =(ArrayListString)locationManager.getProviders(true);


for (String provider : providers)

{

locationManager.requestLocationUpdates(provider,0,0,miseajour);

location=locationManager.getLastKnownLocation(provider);


sb.append(\n\n).append(provider).append( : );

if (location != null)

{

double lat = location.getLatitude();

double lng = location.getLongitude();

sb.append(lat).append( ; ).append(lng);

}

else {

sb.append(No location);


}

}


tv.setText(sb);

return(location);


}//fin de la fonction testprovider


public void envoiesocket() throws Exception

{

System.out.println(Entrer dans la fonction);

TextView tv = (TextView)findViewById(R.id.myTextView);

StringBuilder sb = new StringBuilder(Envoie Socket);



BufferedReader plec = new BufferedReader(new InputStreamReader
(socket.getInputStream()));

PrintWriter pred = new PrintWriter(new BufferedWriter(new
OutputStreamWriter(socket.getOutputStream())),true);


pred.println(envoie de socket);

String read= plec.readLine();

plec.close();

pred.close();

socket.close();

sb.append(read);

tv.setText(sb);

}





Thank you for your help


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



[android-developers] Can I initialize an Array list from data specified in xml resource file?

2009-03-09 Thread Videoguy

Is is possible to specify data in xml resource file and initialize
ArrayList from it?
I am looking for a way to use the ArrayList with a SimpleAdapter to
bind to a ListView.
I am wondering if there is a way to specify my data in xml resource
file and init ArrayList from it.

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



[android-developers] Re: Adding features to email client

2009-03-09 Thread My3

First of all thanks for the reply.
According my knowledge we can download K9 mail as well as Android
source and build it.
But what i wnt to know is, if i change the code(say with extra menu on
k9/email), will i be able to release myApp with the changes to email
app?
Or is it just for working with it on my machine?

On Mar 9, 5:12 am, Eric Chan jude...@gmail.com wrote:
 you can modified the source of android and rebuild system image, I had done
 to email.

 Best Regards

 Eric Chan

 On Mon, Mar 9, 2009 at 6:09 PM, Miguel Paraz mpa...@gmail.com wrote:

  On Mar 6, 6:39 am, My3 maithri...@gmail.com wrote:
   I just wanted to know,whether is it possible to Add extra menu items
   to Standard email client?
   I know that we can use the email client to compose/forward mails, as
   well as we can access the content.
   Was just wondering if we can add extra menu items along with the
   existing menu items.

  No, it's not possible to add extra menu items to other application
  menus.

  For the email client, you might want to work on the k9mail client
  instead.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Performance of multiple threads.

2009-03-09 Thread Stoyan Damov

On Mon, Mar 9, 2009 at 4:51 PM, kbeal10 kbea...@gmail.com wrote:

 I agree, having more than 2 threads seems to break from the
 traditional paradigm, which is part of the reason it didn't seem like
 a good answer.

 Since I wouldn't be able to have a ViewGroup in it's own thread, I
 suppose the best solution is to create a SurfaceView that handles
 drawing all of the dice. This is the way I had started, but liked the
 idea of each die being a View in order to handle onTouchEvents.
 Instead, the dice would simply be Drawables. Selecting one would mean
 getting the coords of the onTouchEvent, and determining if that is on
 top of a die.

That's a lot better - now develop the game, test it, release it, and
(ahem, ahaha, mwuahahaha, ahem) profit ;)

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



[android-developers] Re: Accessing raw resource files with the filename as a String

2009-03-09 Thread Andrew Stadler

Have you looked at storing your files in the assets folder?

You can then use getContext().getAssets().openFd(filename) to open
them by name.



On Sat, Mar 7, 2009 at 2:35 PM, Hayden hayden.stew...@gmail.com wrote:

 Is there  a way to access a raw resource file by having its filename
 in a String?  According Google's documentation, I need to use

 Resources.openRawResource (R.raw.myDataFile)

 This requires that I have the file name at compile time, but what if I
 have 20 or so files and want to do something to a specific file by
 passing its file name at runtime?

 


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



[android-developers] Re: Performance of multiple threads.

2009-03-09 Thread Streets Of Boston

I did the same with my app, The Gube, an OpenGL app.

It took me a while to figure out how to translate swipes of finger
into the rotation of the entire rubik's cube or to have a swipe
initiate the rotation of just one layer.

If your app is OpenGL (3D) as well, let me know if you need some help
on this (translating onTouch events into motions/gestures in 3D
space).

On Mar 9, 10:51 am, kbeal10 kbea...@gmail.com wrote:
 I agree, having more than 2 threads seems to break from the
 traditional paradigm, which is part of the reason it didn't seem like
 a good answer.

 Since I wouldn't be able to have a ViewGroup in it's own thread, I
 suppose the best solution is to create a SurfaceView that handles
 drawing all of the dice. This is the way I had started, but liked the
 idea of each die being a View in order to handle onTouchEvents.
 Instead, the dice would simply be Drawables. Selecting one would mean
 getting the coords of the onTouchEvent, and determining if that is on
 top of a die.

 On Mar 9, 4:14 am, Stoyan Damov stoyan.da...@gmail.com wrote:



  U, I don't want to sound insulting in anyway but being a complete
  newbie in game programming I can *assure* you you're about to do
  something fundamentally wrong.
  Your game only needs 2 threads - the UI (main) thread, and a secondary
  which runs your game loop.
  If you are a newbie as well, you'll need to read a couple of books, or
  at least a dozen of articles on game programming before even thinking
  of creating your own game.

  Cheers

  On Mon, Mar 9, 2009 at 5:38 AM, kbeal10 kbea...@gmail.com wrote:

   I'm currently designing a game that will be displaying several dice. I
   would like to know the wisest course of action. The dice will extend
   View (or SurfaceView), so that each will be able to be touched, etc.
   My question is should I:

   A.) Spawn one child thread to draw all of the dice (up to 6). I would
   do this by writing a class that extends ViewGroup or one of the
   Layouts and having it create a new thread. Or...

   B.) should I spawn a new thread for each die? Each die would extend
   View, or possibly SurfaceView and have its own thread to perform the
   onDraw() (i.e. the LunarLander example).

   Which solution would yield better performance/responsiveness? Would up
   to 6 child threads be necessary, or a detriment?

   I'm asking because I understand how I would implement the B.) solution
   already. It closely follows the LunarLander example and I have already
   implemented another section of the game in the same fashion. Other the
   other hand, creating up to 6 child threads seems like it may be a bit
   much on resources. However, I am unsure how I would implement a
   ViewGroup that does its work in a child thread.- Hide quoted text -

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



[android-developers] Re: Accessing raw resource files with the filename as a String

2009-03-09 Thread Sergey Ten
One possible way of doing it would be to call AssetManager::open method,
which takes a String (relative path in assets folder).

On Sat, Mar 7, 2009 at 2:35 PM, Hayden hayden.stew...@gmail.com wrote:


 Is there  a way to access a raw resource file by having its filename
 in a String?  According Google's documentation, I need to use

 Resources.openRawResource (R.raw.myDataFile)

 This requires that I have the file name at compile time, but what if I
 have 20 or so files and want to do something to a specific file by
 passing its file name at runtime?

 


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



[android-developers] Re: (OT) Is the combination of Android Market and Google Checkout a joke?

2009-03-09 Thread Dan Morrill
Actually, in this case I'm going to go ahead and request that we move
conversations of this type to android-discuss.
Normally, for our other developer products we wouldn't make such a request:
 anything and everything related to the product is welcome.  For instance,
discussions about this sort of thing would be fine on, say, the GWT list.
 The difference with our case, however, is that android-developers is very
high-volume, and we do have the luxury of multiple lists.  GWT has only one
list and (while high volume itself) it doesn't get as many messages as
android-developers.

So, I'd like to propose that we take discussions of Market to
android-discuss, and keep android-developers focused on technical,
API-related QA.  If we continue to get enough Market-related discussion on
android-discuss, it might be an indication that we should create a list just
for that.

This should help people pick the lists they want to be subscribed to, and
get the value they hope for from them.

Thanks,

- Dan

On Sat, Mar 7, 2009 at 12:34 AM, Al Sutton a...@funkyandroid.com wrote:


 Justin,

 This group isn't run just for your benefit and so I'm not sure why you
 think you should be the one to decide what is and isn't on-topic.

 In the 2 days you've been part of the group I've seen two people tell
 you your posts are not welcomed, so maybe you should take the hint, sit
 back, and use the delete button instead of the reply button to topics
 you don't want to read.

 As I said before, the Google engineers speak up when we're straying from
 the beaten path, and those requests are respected, but I'm afraid you
 haven't earned the respect we show them and so I would suggest you
 accept that fact that this list isn't run the way you think it should be.

 Al.

 Justin Allen Jaynes wrote:
  Al, and all who share his sentiments,
 
  I am from Idaho and I am new to THIS list.  But it doesn't mean I
  haven't spend a lot of time READING this forum, and in other developer
  forums as well.  I understand how they work and that there are rules,
  which, when followed, significantly improve the quality of the content.
 
  I can understand your resistance to begin complying with the rules.
  Approximately half of your posts are off topic. However, if you were to
  move such conversations to the android-discuss group, your relevant and
  useful dialog there would encourage others to move to that forum as
  well, when they wish to discuss non-development subjects.  It would
  improve both forums, to separate the content by topic, would it not?
 
  You are right.  This discussion does add traffic to the group.  But if
  reminding the users of the group of it's clearly defined usages cuts
  just 20 illegitimate emails out of the list daily, a few posts like this
  are worth it.  I think the majority of this groups subscribers would
 agree.
 
  Justin
 
  Al Sutton wrote:
 
  Justin,
 
  Whilst it's nice to see new people on the list, it's probably best to
  get a feel for how the list works rather than trying to wade in with
  how you think the world should work because all you're doing at the
  moment is getting yourself on peoples auto-trash lists.
 
  The Google engineers chip in when they feel we're straying from the
  path and we all respect their views because they have a genuine
  undeniable interest in seeing this community developer. If you compare
  this to what we know of you, which is that you are a little known
  developer from Idaho whose first post was less than a day ago, you can
  hopefully see why those of us who have been trying to help build this
  community for a while now may not see your opinion as worthy of a
  similar level of respect.
 
  Now, as this has gotten off topic, I'm sure you wouldn't want to reply
  here, would you?
 
  Al.
 
  Justin Allen Jaynes wrote:
 
  Stoyan,
 
  While I thank you for informing me of two OTHER choices, I prefer to
  continue to inform people ABOUT the charter so they will read it.  It
  isn't too much to ask that people use the right forum for the right
  discussion.
 
  This IS a DEVELOPER forum:
 
  You're now an experienced Android application developer. You've
 grasped
  the basics of Android app development, you're comfortable using the
 SDK,
  now you want to move to advanced topics. Get help here with
  troubleshooting applications, advice on implementation, and strategies
  for improving your application's performance and user experience. This
  is the not the right place to discuss user issues (use android-discuss
  for that) or beginner questions with the Android SDK (use
  android-beginners for that).
 
  There IS an appropriate forum for water-cooler talk.  It is not here.
  It is at android-disc...@googlegroups.com
 
  http://developer.android.com/community
 
 
  Stoyan Damov wrote:
 
 
  Justin, calm down, it's your 5th or so message aaargh, this is a
  DEVELPER forum - it's starting to piss me off, at least fix the typo
  :P
 
  If you think that more than 5% of all 

[android-developers] How to test the earpiece

2009-03-09 Thread cht

for the OEM, on the product line,we need to test the earpiece whether
it works well.
so I want to write a application which will play sounds through the
earpiece.
i want to know how can i play a sound through the earpiece?
or if there is a better way to test the earpiece?

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



[android-developers] Re: recreating webview display with capture picture

2009-03-09 Thread indra

Hi,

any update on this, I am also looking for it.

Thanks
-Indra

On Feb 12, 9:47 am, Bob bshumsk...@yahoo.com wrote:
 Hi,
 Does anyone have an example on how to recreate a webview display by
 using the capturepicture() method?  Can I save the resulting object in
 SQLLite and how do I put it on the canvas?

 Thanks,
 Bob

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



[android-developers] How to hide signal icon and clock icon at status bar?

2009-03-09 Thread gavin

Hello,

 I want to hide the two icons but not the whole status bar when
user enters my application. After exit my application, the two icons
can be re-displayed. How should I do ? thanks.

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



[android-developers] AlertDialog in Subactivity does not show...

2009-03-09 Thread Tommaso

Hi there,

I am facing a problem I cannot solve. Somehow this is frustrating me.
What I want to do is, show an AlertDialog when a user enters an
invalid eMail address:
Button saveButton = (Button) findViewById(R.id.save);
saveButton.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
mUserNameText = (EditText) findViewById
(R.id.enterUserName);
mUserEmailText = (EditText)
findViewById(R.id.enterEmail);
long resultCode;

String userEmail =
mUserEmailText.getText().toString();
if (userEmail.length()  0 
userEmail.matches(@.+\\..+)) {
resultCode =
mDbHelper.createUser(mUserNameText.getText().toString
(), userEmail);
} else {

AlertDialog dialog = new
AlertDialog.Builder
(UserCreate.this).create();

dialog.setMessage(Invalid
Email!);
dialog.setButton2(OK, new
Message());

dialog.show();

resultCode = -1l;
}

The problem is that the dialog does't show!

The code is located in my class
 public class UserCreate extends Activity { ...}

I also tried AlertDialog.Builder with the same result.

Now I found out that I need a Handler, invoke the Looper and pack it
in a Thread.
But I cannot quite figure out how?!

Any help appreciated.

Many thanks in advance,
  Tommaso

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



[android-developers] keyboard layout switching in Android

2009-03-09 Thread zergio

Hi,

I like Android platform a lot. However, one the things, IHMO, Android
lacks a lot, is an ability to dynamically switch keyboard layouts. It
seem this was not even considered in Andonis design. Is the platform
only suppose to serve Latin keyboard layout's users?...

Right now, the switch can be implemented by substituting trout-
keypad-v3.kcm.bin file with Cyrillic version of the file and replacing
it back with out-of-the-box version when English layout is required.
However, the keychar file is cached, so the change is not instantly
visible. Therefore this solution is far from being perfect.

Here are the links to the work of 'worry' on this:
http://forum.xda-developers.com/showthread.php?t=468703
http://forum.xda-developers.com/showthread.php?t=458473

Actually, the http://www.kandroid.org/android_pdk/keymaps_keyboard_input.html
doc suggests the the layout/keychar switching was considered, but
unfortunately the following command does NOT switch the keychar map to
be used.

setprop android.keychar.trout-keypad-v3 /system/usr/keychars/
qwerty_ru.kcm.bin

So my question is

-- What are the plans to enable keyboard layout switching in Android?

Sorry if I am missing something.

Thanks,
zergio

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



[android-developers] Re: how can I create a 'View' object from a xml file?

2009-03-09 Thread Mark Smith

Use the static method View.inflate(Context, int, ViewGroup):

http://developer.android.com/reference/android/view/View.html#inflate(android.content.Context,%20int,%20android.view.ViewGroup)

You should be able to use null for the third parameter in this case.

--Mark


On Mar 9, 7:19 am, Lucius Fox lucius.fo...@gmail.com wrote:
 Hi,

 In the Tab2 of TabActivity in the APIDemo example, it has this method
 to create a View object for each tab:
 public View createTabContent(String tag) {
         final TextView tv = new TextView(this);
         tv.setText(Content for tab with tag  + tag);
         return tv;
     }

 Can you please tell me how can I create a View for each tab from an
 xml layout file?
 For example:
 public View createTabContent(String tag) {
 // load the content from 'tab_content.xml' file
 // return a View object

 }

 // tab content.xml looks something like:
  LinearLayout
         android:orientation=vertical
         android:layout_width=fill_parent
         android:layout_height=wrap_content

         Button android:id=@+id/button
             android:text=@string/controls_1_save
             android:layout_width=wrap_content
             android:layout_height=wrap_content/
  /LinearLayout

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



[android-developers] Android programmers needed

2009-03-09 Thread cr...@firehead.net

Hi Folks,

Our client is looking for Android developers willing to relocate to
Sweden.

Slightly above market salary.  Start as contract with idea of becoming
permanent

Must have right to work in EU already.

Please send CV and questions via email to :

Craig (at) Firehead (dot) net

Thanks much,

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



[android-developers] Layout of Settings app on G1

2009-03-09 Thread roreb1313

Hi I am trying to find out what type of layout and buttons are used on
the
Settings app of the G1 and on some apps like ShopSavvy where you
have rows with gradient line breaks and each row is clickable/button.
It seems to be some kind of Theme/Template but I could not find on
the internet how to do the same thing for my app. Does
anybody know how to do that? Is it a linear layout or tablelayout? Is
it a particular widget?
Thanks,

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



[android-developers] Re: How to customize Android SDk kernel

2009-03-09 Thread baibai

1. Get a .config file into kernel directory
Steps to get compile config from emulator
a. start emulator
b. adb pull /proc/config.gz config.gz
c. gunzip config.gz
d. mv this config as .config

2. Compile Command
For kernel version 2.6.25 and later
  make ARCH=arm CROSS_COMPILE=../prebuilt/Linux/toolchain-eabi-4.2.1/
bin/arm-eabi- (where the toolchain is located)
For kernel version 2.6.23
  make CROSS_COMPILE=../prebuilt/Linux/toolchain-eabi-4.2.1/bin/arm-
eabi-

3. Compile output
   arch/arm/boot/zImage

For your specific option, turn this on
CONFIG_MODULES=y

On 2月26日, 下午1时20分, Joe Petruchi petruchi.dr...@gmail.com wrote:
 Any info in this regard will be appreciated

 Regards
 Joe

 -- Forwarded message --
 From: Joe Petruchi petruchi.dr...@gmail.com
 Date: Wed, Feb 25, 2009 at 7:15 PM
 Subject: How to customize Android SDk kernel
 To: android-developers@googlegroups.com

 Hi All

 I am trying to do insmod hello.ko from the adb shell. But it always gives
 the error Function not implemented.

 I googled and found in the net that the Android SDK's kernel  has to be
 built with *dynamic loadable modules. *
 **
 Does anybody knows how can i build the SDK kernel with this particular
 option ??

 Thanks in Advance
 Joe



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



[android-developers] Getting Mobile number from phone is not working. PLEASE HELP

2009-03-09 Thread c6bro

Hi,

I am using the below to get the mobile number of the sim card which is
inserted in the phone however it will not retrieve the number except
running in the emulator.

When I look in the settings of the phone it says number unavailable so
is there a work around for this to get the users phone number ?

Is there another way of getting the mobile number from the phone ??

TelephonyManager mTelephonyMgr = (TelephonyManager)getSystemService
(Context.TELEPHONY_SERVICE);
String phoneNumber=mTelephonyMgr.getLine1Number();

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



[android-developers] storing apps in Sd card

2009-03-09 Thread Robert

Is there anyway to store the apps on the SD card?

I just bought the G1 and if i can't find a way to store the apps on
the SD within two day i'll definitely return it to the store.

My memory is already running low! This is ridiculous!

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



[android-developers] comments on market

2009-03-09 Thread daniel.benedykt

Hi

Is there a way to see all the comments I have received for an
application from the Market (without having to use the phone) ?

Thanks

Daniel

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



[android-developers] Re: Can I initialize an Array list from data specified in xml resource file?

2009-03-09 Thread mafro

Taking an example from the Dev Guide - you can do it like this:

http://d.android.com/guide/samples/ApiDemos/res/values/arrays.html

In res/values/arrays.xml:
resources
!-- Used in View/Spinner1.java --
string-array name=colors
itemred/item
itemorange/item
itemyellow/item
itemgreen/item
itemblue/item
itemviolet/item
/string-array
/resources

//java code
Resources res = this.getResources();

String[] arr = res.getStringArray(R.array.colors);
for(int i=0; iarr.length-1; i++) {
Log.i(TEST, arr[i]);
}

So R.array.colors is your reference. You can create an ArrayList and
add this array to it if necessary.

mafro


Videoguy wrote:
 Is is possible to specify data in xml resource file and initialize
 ArrayList from it?
 I am looking for a way to use the ArrayList with a SimpleAdapter to
 bind to a ListView.
 I am wondering if there is a way to specify my data in xml resource
 file and init ArrayList from it.

 Videoguy

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



[android-developers] Accessing the internet.

2009-03-09 Thread murphy

Hi all,

Was just wondering if anyone had any code samples about writing and
retrieving data from a website? I am currently creating an application
which populates its textviews by accessing information from an online
source.

Thanks, Murphy.

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



[android-developers] Is there no TCK (Technology Compatibility Kit) on Android????

2009-03-09 Thread rookiejava

Hi All!!!

Is there any TCK (Technology Compatibility Kit) on Android such like
Sun TCK??
How can i assure my android platform after changing it as own style.
Can some one help me clarify this point?
Thanks for your time.

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



[android-developers] android session veriable

2009-03-09 Thread zeeshan

Hi,

i need to store my usr and pass into user session so my activity at N
level can access it for athentication.
i tried PutExtra but dont think its a good idea to get values and then
put again in every activity.

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



[android-developers] Re: Help using Eclipse to attach to a process on the emulator...

2009-03-09 Thread Mike Collins

I have no idea what the Device panel in the DDMS pespective means.
Maybe I'm
completely missing something.

In Eclipse I have a Debug tab in one of the windows of what I think
is called the Debug
perspective.  When I run a process via the Run command it appears in
that window, I
can select processses and threads from there.  If I use the Remote
Java Application
command and point it at port 8700 and use DDMS to switch the process I
want to port
8700 then it shows up in the Debug tab and can be debugged normally.

Without using DDMS to switch the process to port 8700 it does not
appear in the Eclipse
Debug tab.

Eclipse info
Version: 3.4.0
Build id: I20080617-2000

  mike


On Mar 6, 6:50 pm, Xavier Ducrohet x...@android.com wrote:
 What do you mean Eclipse doesn't see the process of your remote application?
 It doesn't show up in the Device panel in the DDMS perspective?





 On Fri, Mar 6, 2009 at 5:48 PM, Mike Collins mike.d.coll...@gmail.com wrote:

  I am running the Eclipse ADT plugin.

  Wandering into even blacker magic, two points come up,

  If the process I want to debug was started because it's a remote
  service
  of the application I did start via Eclipse how do I attach the Eclipse/
  ADT
  debugger to it?  Eclipse certainly does not see the process.

  It does work. I was seeing the 2nd debugger failed message, that's
  what
  got me to think of shutting down Eclipse and starting DDMS first.

  I did -not- update my ADT (because the web page said not to) when I
  rolled to SDK 1.1R1, maybe I should have?

  functional but puzzled,

   mike

  On Mar 6, 5:23 pm, Xavier Ducrohet x...@android.com wrote:
  If you have installed ADT then you should not be running the
  standalone version of DDMS.

  ADT actually is set of 2 plug-ins: DDMS and ADT.

  When DDMS is running, it constantly monitors emulators that are
  running, or devices that are connected through USB. As soon as a new
  device/emulator is connected, it actually connects to each application
  running on the device/emulator as a debugger. The applications can
  only accept connection from one debugger, so the 2nd instance of DDMS
  fails to work (it sees the applications but fails to connect to them)

  (Regular Java debuggers actually connect to DDMS which then forwards
  the packets to the application back and forth.)

  Xav

  On Fri, Mar 6, 2009 at 5:18 PM, Mike Collins mike.d.coll...@gmail.com 
  wrote:

   There seems to be some magical connection between Eclipse and DDMS,
   after shutting down Eclipse and restarting DDMS and then restarting
   Eclispe it now seems to work about like I would have expected.

   It does not seem like you have to start DDMS before
   Eclipse...something
   is loose down there...

    mike

   On Mar 6, 11:13 am, Mike Collins mike.d.coll...@gmail.com wrote:
   We are using V1.1R1, does the V1.0R2 work better?

   That seems to do a bit better, the Eclipse debugger now shows a few
   of the threads in the process.  I still can't seem to set any
   breakpoints
   in the process and DDMS is still showing me nothing interesting.

   That's a pain,
     mike

   On Mar 6, 11:00 am, Videoguy puri_mall...@yahoo.com wrote:

I saw this issue with cupcake release when I was trying to attach to
one of the apps. Some times DDMS worked, sometimes it didn't. I
remember I was able to attach when I used the other port for that
process (i.e 86XX instead of 8700).

Why don't you try that?

Videoguy- Hide quoted text -

   - Show quoted text -

  --
  Xavier Ducrohet
  Android Engineer, Google.- Hide quoted text -
  - Show quoted text -

  - Show quoted text -

 --
 Xavier Ducrohet
 Android Engineer, Google.- Hide quoted text -

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



[android-developers] Re: Android 1.1_r1 SDK released and developer.android.com launched

2009-03-09 Thread JLMG

Is there still no word on when we can expect 1.1_r1 for ADP owners and
developers?

I spent good money to get a Android Dev Phone 1 because I thought that
SDK upgrades would be available on ADP1s before they would be
available on vendor locked platforms.

I could have gotten my phone much cheaper from T-Mobile and would not
be 'behind the curve' on developing for a moving target.

Also, it seems that Installation instructions leave out the proper way
to install the Android Plug-In into Eclipse when you don't have 1.1_r1
as your release level.

Much 'strum and drang' would be lifted if ADP1 devices were kept up to
the current release level. It seems foolish to NOT test on your device
because you can't communicate with it if you upgrade your Eclipse plug-
in.

Thanks for any good news, please!

JLMG

On Feb 9, 3:31 pm, Justin (Google Employee) j...@google.com wrote:
 Hey developers, today we released the new, 1.1_r1 SDK. This SDK
 includes some minor updates that you can read more about on the 
 blog,http://android-developers.blogspot.com/2009/02/android-11-sdk-release...
 . Also, we've launched the new developer site athttp://developer.android.com
 which has updated documentation for the 1.1_r1 SDK.

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



[android-developers] Re: comments on market

2009-03-09 Thread Stoyan Damov

cyrket.com

On Mon, Mar 9, 2009 at 3:14 PM, daniel.benedykt
daniel.bened...@gmail.com wrote:

 Hi

 Is there a way to see all the comments I have received for an
 application from the Market (without having to use the phone) ?

 Thanks

 Daniel

 


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



[android-developers] Re: storing apps in Sd card

2009-03-09 Thread Stoyan Damov

You can copy non-protected apps on your SD card, but you can't run
them off the SD card.
Running apps from the SD card is planned by Google but when it will
happen is unknown.

On Mon, Mar 9, 2009 at 5:35 PM, Robert centro.ga...@gmail.com wrote:

 Is there anyway to store the apps on the SD card?

 I just bought the G1 and if i can't find a way to store the apps on
 the SD within two day i'll definitely return it to the store.

 My memory is already running low! This is ridiculous!

 


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



[android-developers] Re: (OT) Is the combination of Android Market and Google Checkout a joke?

2009-03-09 Thread Stoyan Damov

Agreed Dan. We already started moving Market-related discussions to
android-discuss.

Cheers

On Mon, Mar 9, 2009 at 6:38 PM, Dan Morrill morri...@google.com wrote:
 Actually, in this case I'm going to go ahead and request that we move
 conversations of this type to android-discuss.
 Normally, for our other developer products we wouldn't make such a request:
  anything and everything related to the product is welcome.  For instance,
 discussions about this sort of thing would be fine on, say, the GWT list.
  The difference with our case, however, is that android-developers is very
 high-volume, and we do have the luxury of multiple lists.  GWT has only one
 list and (while high volume itself) it doesn't get as many messages as
 android-developers.
 So, I'd like to propose that we take discussions of Market to
 android-discuss, and keep android-developers focused on technical,
 API-related QA.  If we continue to get enough Market-related discussion on
 android-discuss, it might be an indication that we should create a list just
 for that.
 This should help people pick the lists they want to be subscribed to, and
 get the value they hope for from them.
 Thanks,
 - Dan

 On Sat, Mar 7, 2009 at 12:34 AM, Al Sutton a...@funkyandroid.com wrote:

 Justin,

 This group isn't run just for your benefit and so I'm not sure why you
 think you should be the one to decide what is and isn't on-topic.

 In the 2 days you've been part of the group I've seen two people tell
 you your posts are not welcomed, so maybe you should take the hint, sit
 back, and use the delete button instead of the reply button to topics
 you don't want to read.

 As I said before, the Google engineers speak up when we're straying from
 the beaten path, and those requests are respected, but I'm afraid you
 haven't earned the respect we show them and so I would suggest you
 accept that fact that this list isn't run the way you think it should be.

 Al.

 Justin Allen Jaynes wrote:
  Al, and all who share his sentiments,
 
  I am from Idaho and I am new to THIS list.  But it doesn't mean I
  haven't spend a lot of time READING this forum, and in other developer
  forums as well.  I understand how they work and that there are rules,
  which, when followed, significantly improve the quality of the content.
 
  I can understand your resistance to begin complying with the rules.
  Approximately half of your posts are off topic. However, if you were to
  move such conversations to the android-discuss group, your relevant and
  useful dialog there would encourage others to move to that forum as
  well, when they wish to discuss non-development subjects.  It would
  improve both forums, to separate the content by topic, would it not?
 
  You are right.  This discussion does add traffic to the group.  But if
  reminding the users of the group of it's clearly defined usages cuts
  just 20 illegitimate emails out of the list daily, a few posts like this
  are worth it.  I think the majority of this groups subscribers would
  agree.
 
  Justin
 
  Al Sutton wrote:
 
  Justin,
 
  Whilst it's nice to see new people on the list, it's probably best to
  get a feel for how the list works rather than trying to wade in with
  how you think the world should work because all you're doing at the
  moment is getting yourself on peoples auto-trash lists.
 
  The Google engineers chip in when they feel we're straying from the
  path and we all respect their views because they have a genuine
  undeniable interest in seeing this community developer. If you compare
  this to what we know of you, which is that you are a little known
  developer from Idaho whose first post was less than a day ago, you can
  hopefully see why those of us who have been trying to help build this
  community for a while now may not see your opinion as worthy of a
  similar level of respect.
 
  Now, as this has gotten off topic, I'm sure you wouldn't want to reply
  here, would you?
 
  Al.
 
  Justin Allen Jaynes wrote:
 
  Stoyan,
 
  While I thank you for informing me of two OTHER choices, I prefer to
  continue to inform people ABOUT the charter so they will read it.  It
  isn't too much to ask that people use the right forum for the right
  discussion.
 
  This IS a DEVELOPER forum:
 
  You're now an experienced Android application developer. You've
  grasped
  the basics of Android app development, you're comfortable using the
  SDK,
  now you want to move to advanced topics. Get help here with
  troubleshooting applications, advice on implementation, and strategies
  for improving your application's performance and user experience. This
  is the not the right place to discuss user issues (use android-discuss
  for that) or beginner questions with the Android SDK (use
  android-beginners for that).
 
  There IS an appropriate forum for water-cooler talk.  It is not
  here.
  It is at android-disc...@googlegroups.com
 
  http://developer.android.com/community
 
 
  Stoyan Damov wrote:
 
 
 

[android-developers] Re: Is there no TCK (Technology Compatibility Kit) on Android????

2009-03-09 Thread Dan Morrill
Hello!
We are indeed preparing the compatibility process and program for Android.
 We'll announce the details of that program when they are finalized;
 however, there are currently no resources for this.

- Dan

On Mon, Mar 9, 2009 at 4:42 AM, rookiejava rookiej...@gmail.com wrote:


 Hi All!!!

 Is there any TCK (Technology Compatibility Kit) on Android such like
 Sun TCK??
 How can i assure my android platform after changing it as own style.
 Can some one help me clarify this point?
 Thanks for your time.

 


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



[android-developers] Re: When does the canvas' onDraw function get called?

2009-03-09 Thread mcmc

I think the problem is that the onCreate() is never called. I put a
little error message in the onCreate(), and it does not show in the
output.

Is there a way to draw a canvas without using an onCreate() or an
onDraw()? This would be a lot more useful for me...

For example, can I do something like this:


public class TestDraw extends Activity {

public TestDraw() {
TestViewDraw view = new TestViewDraw(getBaseContext());
setContentView(view);
}

private class DemoView extends View{

public DemoView(Context context){
super(context);

Bitmap b = Bitmap.createBitmap(100, 100, 
Bitmap.Config.RGB_565);
Canvas canvas = new Canvas(b);
canvas.drawColor(Color.WHITE);
}
}
}


On Mar 5, 3:01 pm, Mariano Kamp mariano.k...@gmail.com wrote:
 after the state of something you are interested in changes you can call
 invalidate() on the canvas which will afaik cause the canvas to be redrawn
 as soon as the UI thread gets to it.

 On Thu, Mar 5, 2009 at 8:09 PM, mcmc manni...@gmail.com wrote:

  I have a method (let's call this methodA) and I would like the onDraw
  function to be called in the middle of method A.

  How would I do this? Right now, my onDraw is not being called at all.

  private class DemoView extends View{
                 public DemoView(Context context){
                         super(context);
                 }

                �...@override protected void onDraw(Canvas canvas) {
                         super.onDraw(canvas);
                         canvas.drawColor(Color.WHITE);
                 }

                 public void methodA(){
                         // do something

                         // i want onDraw to be called here...

                         // do something
                 }
  }



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



[android-developers] How to draw a piece of Bitmap

2009-03-09 Thread Nick

Hello!
I'm creating a simple game for Android and faced with a problem: Idea
is to have a huge map image file and re-draw only small part of it
(320*480) depending on user actions.

I didn't find a better solution than using public static Bitmap
createBitmap (Bitmap source, int x, int y, int width, int height)
method and decided to try it (expected huge performance degradation),
but actually it's appeared that this method changes source bitmap and
when i call it second time source size is significantly reduced. For
instance this code:

int bitHeight = mBackgroundImage.getHeight();
int bitWidth = mBackgroundImage.getWidth();
Bitmap curMap = Bitmap.createBitmap(mBackgroundImage,
0, mY, 320, 480);
canvas.drawBitmap(curMap, 0, 0, null);

gives 320*960 (initial source image size) size for the first time and
320*455 for the second call

I hope this is not a best solution and look forward to hearing a new
direction or at least clarification on createBitmap method.

p.s i'm not a native english speaker and i apologise for possible
mistakes.

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



[android-developers] Re: Power Vibration Wanted

2009-03-09 Thread Cian Masterson

This is indeed a developer-only forum, however someone may well be in
the mood of writing an app to do what grantlairdjr wants.  Is there a
Google app ideas forum where (s)he could post, or if not does anyone
think it would be a good idea to create one?


On Mar 7, 3:17 am, Justin Allen Jaynes jus...@ragblue.com wrote:

 While any interest in Android is good, this is a developer forum only.


 grantlairdjr wrote:

  How do I formally request Android Team or Google/TMO to look at it?

  Appreciated it.

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



  1   2   >