[android-developers] Live Wallpaper Crashing

2010-03-28 Thread Ryan
When I click my live wallpaper, it crashes. I can't see what is wrong.
Here is my code.

package com.puinyuu.umasaka;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.content.res.Resources;
import android.os.Handler;
import android.service.wallpaper.WallpaperService;
import android.view.SurfaceHolder;

public class UmasakaWallpaper extends WallpaperService {

private final Handler mHandler = new Handler();

@Override
public void onCreate() {
super.onCreate();
}

@Override
public void onDestroy() {
super.onDestroy();
}

@Override
public Engine onCreateEngine() {
return new UmasakaEngine();
}

class UmasakaEngine extends Engine {

private Resources res;
private Bitmap mUmasakaFrame0;
private Bitmap mUmasakaFrame1;
private Bitmap mUmasakaFrame2;
private Bitmap mUmasakaFrame3;
private Bitmap mUmasakaFrame4;
private Bitmap mUmasakaFrame5;
private Bitmap mUmasakaFrame6;
private Bitmap mUmasakaFrame7;
private int mFrameNum = 0;

private final Runnable mGetFrame = new Runnable() {
public void run() {
drawFrame();
}
};
private boolean mVisible;

UmasakaEngine() {
mUmasakaFrame0 = BitmapFactory.decodeResource(res,
R.drawable.umasaka0);
mUmasakaFrame1 = BitmapFactory.decodeResource(res,
R.drawable.umasaka1);
mUmasakaFrame2 = BitmapFactory.decodeResource(res,
R.drawable.umasaka2);
mUmasakaFrame3 = BitmapFactory.decodeResource(res,
R.drawable.umasaka3);
mUmasakaFrame4 = BitmapFactory.decodeResource(res,
R.drawable.umasaka4);
mUmasakaFrame5 = BitmapFactory.decodeResource(res,
R.drawable.umasaka5);
mUmasakaFrame6 = BitmapFactory.decodeResource(res,
R.drawable.umasaka6);
mUmasakaFrame7 = BitmapFactory.decodeResource(res,
R.drawable.umasaka7);
mUmasakaFrame0 = Bitmap.createBitmap(mUmasakaFrame0);
mUmasakaFrame1 = Bitmap.createBitmap(mUmasakaFrame1);
mUmasakaFrame2 = Bitmap.createBitmap(mUmasakaFrame2);
mUmasakaFrame3 = Bitmap.createBitmap(mUmasakaFrame3);
mUmasakaFrame4 = Bitmap.createBitmap(mUmasakaFrame4);
mUmasakaFrame5 = Bitmap.createBitmap(mUmasakaFrame5);
mUmasakaFrame6 = Bitmap.createBitmap(mUmasakaFrame6);
mUmasakaFrame7 = Bitmap.createBitmap(mUmasakaFrame7);
}

@Override
public void onCreate(SurfaceHolder surfaceHolder) {
super.onCreate(surfaceHolder);
}

@Override
public void onDestroy() {
super.onDestroy();
mHandler.removeCallbacks(mGetFrame);
}

@Override
public void onVisibilityChanged(boolean visible) {
mVisible = visible;
if (visible) {
drawFrame();
} else {
mHandler.removeCallbacks(mGetFrame);
}
}

@Override
public void onSurfaceChanged(SurfaceHolder holder, int format,
int width, int height) {
super.onSurfaceChanged(holder, format, width, height);
drawFrame();
}

@Override
public void onSurfaceCreated(SurfaceHolder holder) {
super.onSurfaceCreated(holder);
}

@Override
public void onSurfaceDestroyed(SurfaceHolder holder) {
super.onSurfaceDestroyed(holder);
mVisible = false;
mHandler.removeCallbacks(mGetFrame);
}

void drawFrame() {
final SurfaceHolder holder = getSurfaceHolder();

Canvas c = null;
try {
c = holder.lockCanvas();
if (c != null) {
getFrame(c);
}
} finally {
if (c != null) holder.unlockCanvasAndPost(c);
}

// Reschedule the next redraw
mHandler.removeCallbacks(mGetFrame);
if (mVisible && mFrameNum == 0) {
mHandler.postDelayed(mGetFrame, 90);
}
if (mVisible && mFrameNum == 1) {
mHandler.postDelayed(mGetFrame, 60);
}
if (mVisible && mFrameNum == 2) {
mHandler.postDelayed(mGetFrame, 140);
}
if (mVisible && mFrameNum == 3) {
mHandler.postDelayed(mGetFrame, 60);
}
if (mVisible && mFrameNum == 4) {
mHandler.postDelayed(mGetFrame, 90);
}
if (mVisible && mFrameNum == 5) {
mHandler.postDelayed(mGetFrame, 60);
}
if (mVisible && mFrameNum == 6) {
mHandler.postDelayed(mGetFrame, 130);
}
if (mVisible && mFrameNum == 7) {
mHandler

[android-developers] Re: A way to search 2 applications in market?

2009-03-16 Thread Ryan

You can limit your search to just your applications like this:-

market://search?q=pub:

Not sure how you'd limit to just a subset of your app's though? Could
try and see if you can OR two package names together?


On Mar 15, 9:49 pm, Wah  wrote:
> I know I can search one application from Android market by viewing the
> following URL:
>
> market://search?q=pname:
>
> I actually have a few application published, but want to limit my
> query to return 2 applications. How do I do that?
>
> Wah
--~--~-~--~~~---~--~~
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] List View setTextFilterEnabled(true) and returned id

2009-03-16 Thread Ryan


Hi,

Is there a way to use a List View with setTextFilterEnabled(true) and
get the position into the unfiltered list returned to onItemClick?

E.G.

If I have a list:-

 - Zero
 - One
 - Two
 - Three

And a user types "T" o filter the list to:-

 - Two
 - Three

When a user clicks on "Two" in the filtered list, I would like the id
or position returned to onItemClick to be "2". But instead it returns
0, which is expected as it is the first item in the filtered list. But
what's the best way to get the position in the unfiltered list?

Thanks a lot,

Ryan

FYI My code is as follows:-

 

List list;
ArrayAdapter array;

list.add("Zero");
list.add("One");
list.add("Two");
list.add("Three");
array = new ArrayAdapter
(this,android.R.layout.simple_list_item_1, list);

setListAdapter(array);
this.getListView().setOnItemClickListener(this);
this.getListView().setTextFilterEnabled(true);
 
--
--~--~-~--~~~---~--~~
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] Failed to parse the output of 'adb version'

2009-11-09 Thread Ryan
I am running Windows 7 Professional 64 bit. I have Eclipse 3.5
installed with the Android SDK installed.

Everytime I open Eclipse, I get the error:
Failed to parse the output of 'adb version'

When I try to run a program, I get:
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
Please ensure that adb is correctly located at 'C:\Development Tools
\Android-SDK-Windows\tools\adb.exe' and can be executed.

I have tried to restart adb and Eclipse several times with no luck.

-- 
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] setImageURI() Problem

2009-11-28 Thread Ryan
This is a pretty basic thing but I couldn't get it to work in a more
complex routine so I tried to reduce it to the simplest possible thing
and it still won't work and it is driving me up a wall!

I am trying to set an image on an ImageView using the function
setImageURI(), the program compiles however the ImageView is blank and
never gets set. And in the logcat it gives the error:

11-27 22:23:51.405: INFO/System.out(18614): resolveUri failed on bad
bitmap uri: file:///sdcard/icon.png

However I know this is a good URI because I can get the gallery to
show the image using an intent with the same URI.

What am I missing??!


*** images.java ***

public class images extends Activity {

 private ImageView iv;

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

  // make file reference
  File file = new File("/sdcard/icon.png");
  Log.d("here", "Does this exist? " + String.valueOf
(file.exists()));

  // create uri for file
  Uri uri = Uri.fromFile(file);

  //reference the imageview
  iv = (ImageView) findViewById(R.id.photo);
  iv.setImageURI(uri);

  Log.d("here",uri.getPath());

  // call an android image viewer
//Intent intent = new Intent
(android.content.Intent.ACTION_VIEW);
//intent.setDataAndType(uri, "image/png");
//startActivity(intent);

}
}


 main.xml - layout 


http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >



-- 
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] appwidget Image on Orientation Change Issue

2009-11-28 Thread Ryan
I am building an appwidget that is displaying images from the sdcard.
I am investigating how to get the appwidget to perform correctly on an
orientation change. Currently I am setting the image on an image
button in the remoteview from a Bitmap I created in the program.
However it seems that when the orientation changes this bitmap is
destroyed and the image won't display unless I update the remoteview
of the appwidget after the orientation change.

What should I do so that when the appwidget is remade after
orientation change the image is able to be redisplayed automatically?
The only thing I can think of is using a setImageViewURI() to point
the remoteview to the image file itself using a URI (I am having
issues getting this to work correctly thus far).

It seems that none of my code is excecuted on this orientation change
as it is only rebuilding the remoteview. Is there an accepted practice
here? Thanks,

- Ryan

-- 
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: appwidget Image on Orientation Change Issue

2009-11-29 Thread Ryan
Ok I think I figured it out. In certain cases when the widget is
clicked i updated the RemoteViews to hide some on screen controls/
views using setViewVisibility on the remoteview, however I did not re-
set the setImageURI. When the screen rotated the Image dissappeared.
However this is odd because I would expect the image to dissappear on
updating the RemoteView without the ImageURI even without rotating the
screen. But it would only dissappear after rotating. When I did not go
through the routine that hid the controls/ did not set the
setViewVisibility, the image did not dissappear on rotation.

I am curious as to what happens to the RemoteView on orientation
change and why sometimes it seems to retain the ImageURI and others it
loses it.

In any case I have my workaround.

- Ryan

On Nov 28, 12:12 am, Ryan  wrote:
> I am building an appwidget that is displaying images from the sdcard.
> I am investigating how to get the appwidget to perform correctly on an
> orientation change. Currently I am setting the image on an image
> button in the remoteview from a Bitmap I created in the program.
> However it seems that when the orientation changes this bitmap is
> destroyed and the image won't display unless I update the remoteview
> of the appwidget after the orientation change.
>
> What should I do so that when the appwidget is remade after
> orientation change the image is able to be redisplayed automatically?
> The only thing I can think of is using a setImageViewURI() to point
> the remoteview to the image file itself using a URI (I am having
> issues getting this to work correctly thus far).
>
> It seems that none of my code is excecuted on this orientation change
> as it is only rebuilding the remoteview. Is there an accepted practice
> here? Thanks,
>
> - Ryan

-- 
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 get custom parameter from custom ui tag

2009-09-17 Thread Ryan

dear all,

I try to implement a custom button(OnPressButton), and the code is in
below.
In LogCat, I can see the two parameters (btn_up/btn_down) value are
below:

btn_...@drawable/btn_up
btn_do...@drawable/btn_up

But how can I convert this to point to R.drowable.btn_up and
R.drowable.btn_down ?

Thank you.

Ryan

#
In res/layout/main.xml
#
http://schemas.android.com/apk/res/android";
xmlns:app="http://www.mydomain.test/apk/res/mydomain..tools.ui";
android:id="@+id/btn_opb"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
app:btn_up="@drawable/btn_up"
app:btn_down="@drawable/btn_up"
/>

#
In my Activity class
#
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

OnPressButton opb = (OnPressButton) findViewById
(R.id.btn_opb);
}
#
In my custom button class: OnPressButton.java
#
Properties params = null;

public OnPressButton(Context context, AttributeSet attrs) {
super(context, attrs);

// get all params in layout xml
params =  new Properties();

for(int i=0; ihttp://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How does the HTC Battery Widget animate?

2010-02-03 Thread Ryan
HTC has written their own home screen replacement app that allows
widget animation. This is why none of their widgets would work on
other nonHTC phones.

- Ryan

On Feb 3, 4:56 pm, westmeadboy  wrote:
> I installed the HTC Battery widget (downloaded from the Android
> Market) and notice that while the battery is being charged, there is a
> visually effective animation that continuously runs.
>
> I always though such animations in widgets were not supported in the
> SDK.
>
> How is this technically possible?

-- 
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 change widget layout background or hide it dynamically?

2009-12-21 Thread Ryan
I am having this same issue have you found a solution? My current
workaround is to make a new XML layout file for each background that I
want in the imageview. But I can't believe that there isn't a way to
do this in code. Thanks,

- Ryan


On Dec 9, 2:58 pm, pcm2a  wrote:
> I have a simple layout:
> http://schemas.android.com/apk/res/
> android"
>                 android:background="@drawable/background"
>         android:layout_height="fill_parent"
>         android:layout_width="wrap_content"
>         android:orientation="vertical">
>
> In my method onUpdate I can get theremoteview:
>
> RemoteViews remoteView = new RemoteViews(context.getPackageName(),
> R.layout.somelayout");
>
> I cannot find any information on how to change or hide thebackground
> image.

-- 
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] onActivityResult is called immediately after startActivityForResult

2009-12-23 Thread ryan
Hello,

Im trying to do a basic startActivityForResult, but onActivityResult
is being called before the subactivity has a chance to call setResult.


main activity's menu handler for a specific button-press:
startActivityForResult(new Intent(this, SubActivity.class), someInt);

main activity's onActivityResult(int reqestCode, int resultCode,
Intent data) {
alert(Integer.toString(resultCode)); // always 0 (RESULT_CANCELED?)
alert(Integer.toString(requestCode)); // always someInt
if (data == null) { alert("returned null"); } // SEE BELOW

SubActivity extends listactivity:
onListItemClick(ListView l, View v, int i, long id) {
result = new Intent();
result.putExtra("key","value);
setResult(RESULT_OK, result);
finish();
}
-

the activity and subactivity execute fine, the result is where my
problem comes in.

from "SEE BELOW" above:
this line will always alert "returned null", however if i change this
line to:
if (data.equals(null)) { alert("returned null"); }
i get a NullPointerException before the subactivity can visibly start.
the subactivity's onCreate normally logs to the debugger, but nothing
appears if I cause a NullPointerException, which leads me to believe
that onActivityResult is being called before the subactivity is
created.

i've taken a look at the notepad examples along other examples on the
web and my code appears consistent with them.

plz halp

-- 
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: onActivityResult is called immediately after startActivityForResult

2009-12-23 Thread ryan
Yeah I just found this out myself and came to post. Thanks for the
added input!

On Dec 23, 6:35 am, Lance Nanek  wrote:
> I've seen onActivityResult get called immediately once before as well.
> The activity getting started by startActivityForResult had launchMode
> set to singleTask in the manifest. There was a message in the logs
> from the ActivityManager saying:
> "Activity is launching as a new task, so cancelling activity result."
>
> Changing the launch mode fixed it.
>
> On Dec 23, 8:35 am, ryan  wrote:
>
> > Hello,
>
> > Im trying to do a basic startActivityForResult, but onActivityResult
> > is being called before the subactivity has a chance to call setResult.
>
> > 
> > main activity's menu handler for a specific button-press:
> > startActivityForResult(new Intent(this, SubActivity.class), someInt);
>
> > main activity's onActivityResult(int reqestCode, int resultCode,
> > Intent data) {
> > alert(Integer.toString(resultCode)); // always 0 (RESULT_CANCELED?)
> > alert(Integer.toString(requestCode)); // always someInt
> > if (data == null) { alert("returned null"); } // SEE BELOW
>
> > SubActivity extends listactivity:
> > onListItemClick(ListView l, View v, int i, long id) {
> > result = new Intent();
> > result.putExtra("key","value);
> > setResult(RESULT_OK, result);
> > finish();}
>
> > -
>
> > the activity and subactivity execute fine, the result is where my
> > problem comes in.
>
> > from "SEE BELOW" above:
> > this line will always alert "returned null", however if i change this
> > line to:
> > if (data.equals(null)) { alert("returned null"); }
> > i get a NullPointerException before the subactivity can visibly start.
> > the subactivity's onCreate normally logs to the debugger, but nothing
> > appears if I cause a NullPointerException, which leads me to believe
> > that onActivityResult is being called before the subactivity is
> > created.
>
> > i've taken a look at the notepad examples along other examples on the
> > web and my code appears consistent with them.
>
> > plz halp

-- 
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] AppWidget Update on Orientation Change

2009-12-29 Thread Ryan
I am developing a photo frame widget, all works except on an
orientation change to landscape mode my appwidget doesn't display
correctly as I have it set to portrait dimensions and it is too large
for the display. I would like to run some code to resize the image so
that everything displays correctly and it uses all the space that I
allot.
What is the correct way to do this?
I can think of 2 methods however both seem inefficient. The first
would be to register a broadcast reciever to take orientation changes,
however I don't want to redo my appwidget everytime the phone is
turned on its side as the majority of the time the homescreen is not
showing when the orientation is changed (ie other apps are used, and I
don't need my code running in the background). I only need it to run
when the home screen is shown.
The second would be to setup a service to manage my appwidget but that
also seems inefficient to be always running in the background.

What is correct method to do this?

Thanks,

- Ryan

-- 
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: AppWidget Update on Orientation Change

2009-12-29 Thread Ryan
Thanks, but I don't want a different layout. I want to use the same
layout. I just want to change the picture size that i use in the
imageview in the layout. I need to scale/crop the image so that it
fills the correct size in the screen, going from portrait to landscape
should make the image change aspect ratio, however I can only do that
by running my code again, but I am just trying to find the best way to
call my code.

- Ryan

On Dec 29, 9:46 pm, Guru  wrote:
> there is a thread whch explains how to do this.I could'nt google it easily.
>
> You need to specify a different id for each of the layout.that is for
> example:
>
> sample.xml
> http://schemas.android.com/apk/res/android";
>     android:orientation="vertical" *android:id="landscape"    *
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>     >.
>
> sample.xml
> http://schemas.android.com/apk/res/android";
>     android:orientation="vertical" *android:id="portrait"    *
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>     >.
>
>
>
>
>
> On Wed, Dec 30, 2009 at 8:59 AM, Ryan  wrote:
> > I am developing a photo frame widget, all works except on an
> > orientation change to landscape mode my appwidget doesn't display
> > correctly as I have it set to portrait dimensions and it is too large
> > for the display. I would like to run some code to resize the image so
> > that everything displays correctly and it uses all the space that I
> > allot.
> > What is the correct way to do this?
> > I can think of 2 methods however both seem inefficient. The first
> > would be to register a broadcast reciever to take orientation changes,
> > however I don't want to redo my appwidget everytime the phone is
> > turned on its side as the majority of the time the homescreen is not
> > showing when the orientation is changed (ie other apps are used, and I
> > don't need my code running in the background). I only need it to run
> > when the home screen is shown.
> > The second would be to setup a service to manage my appwidget but that
> > also seems inefficient to be always running in the background.
>
> > What is correct method to do this?
>
> > Thanks,
>
> > - Ryan
>
> > --
> > 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 > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Thanks and Regards
> Gurudutt P.S.

-- 
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: AppWidget Update on Orientation Change

2009-12-29 Thread Ryan
Frank I can see this working. However as my code is now, I use an
imageView in the xml layout files to display my photo, however I don't
point the xml file to the photo. I process the user selected photo,
then save it to the SD card and then in code point the imageView to
the file I just made. I save the photo file on the SD card using the
widgetID in the name so that I know what photo belongs to what widget
if there are multiple instances of the widget running. This prevents
me from pointing the xml layout file to the photo as I don't know what
it will be named until I get the widgetID at runtime. Any ideas?

- Ryan

On Dec 29, 10:53 pm, Frank Weiss  wrote:
> Clearly, you need two images, one or both scaled and cropped from the
> original. I think your question may be when is the best time to do that.
> That would depend on how you are storing the images, in res, on the file
> system, DB, where?
>
>
>
> On Tue, Dec 29, 2009 at 7:54 PM, Ryan  wrote:
> > Thanks, but I don't want a different layout. I want to use the same
> > layout. I just want to change the picture size that i use in the
> > imageview in the layout. I need to scale/crop the image so that it
> > fills the correct size in the screen, going from portrait to landscape
> > should make the image change aspect ratio, however I can only do that
> > by running my code again, but I am just trying to find the best way to
> > call my code.
>
> > - Ryan
>
> > On Dec 29, 9:46 pm, Guru  wrote:
> > > there is a thread whch explains how to do this.I could'nt google it
> > easily.
>
> > > You need to specify a different id for each of the layout.that is for
> > > example:
>
> > > sample.xml
> > > http://schemas.android.com/apk/res/android";
> > >     android:orientation="vertical" *android:id="landscape"    *
> > >     android:layout_width="fill_parent"
> > >     android:layout_height="fill_parent"
> > >     >.
>
> > > sample.xml
> > > http://schemas.android.com/apk/res/android";
> > >     android:orientation="vertical" *android:id="portrait"    *
> > >     android:layout_width="fill_parent"
> > >     android:layout_height="fill_parent"
> > >     >.
>
> > > On Wed, Dec 30, 2009 at 8:59 AM, Ryan  wrote:
> > > > I am developing a photo frame widget, all works except on an
> > > > orientation change to landscape mode my appwidget doesn't display
> > > > correctly as I have it set to portrait dimensions and it is too large
> > > > for the display. I would like to run some code to resize the image so
> > > > that everything displays correctly and it uses all the space that I
> > > > allot.
> > > > What is the correct way to do this?
> > > > I can think of 2 methods however both seem inefficient. The first
> > > > would be to register a broadcast reciever to take orientation changes,
> > > > however I don't want to redo my appwidget everytime the phone is
> > > > turned on its side as the majority of the time the homescreen is not
> > > > showing when the orientation is changed (ie other apps are used, and I
> > > > don't need my code running in the background). I only need it to run
> > > > when the home screen is shown.
> > > > The second would be to setup a service to manage my appwidget but that
> > > > also seems inefficient to be always running in the background.
>
> > > > What is correct method to do this?
>
> > > > Thanks,
>
> > > > - Ryan
>
> > > > --
> > > > 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 > > >  cr...@googlegroups.com> > cr...@googlegroups.com>
> >  > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > Thanks and Regards
> > > Gurudutt P.S.
>
> > --
> > 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 > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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: AppWidget Update on Orientation Change

2009-12-30 Thread Ryan
Jeff, what did you do as a workaround? I think am going to always
process 2 photos one for portrait size and one for landscape. But I
feel like that is double the work needed. I should only have to
process this when needed (ie on orientation change on the homescreen),
this method will only slow down my app.

- Ryan


On Dec 30, 11:57 am, Jeffrey Blattman 
wrote:
> I asked the same question some time back and the answer I received was that
> there is no way to detect if your widget is visible, or currently shown on
> the home screen.
>
> On Dec 29, 2009 7:29 PM, "Ryan"  wrote:
>
> I am developing a photo frame widget, all works except on an
> orientation change to landscape mode my appwidget doesn't display
> correctly as I have it set to portrait dimensions and it is too large
> for the display. I would like to run some code to resize the image so
> that everything displays correctly and it uses all the space that I
> allot.
> What is the correct way to do this?
> I can think of 2 methods however both seem inefficient. The first
> would be to register a broadcast reciever to take orientation changes,
> however I don't want to redo my appwidget everytime the phone is
> turned on its side as the majority of the time the homescreen is not
> showing when the orientation is changed (ie other apps are used, and I
> don't need my code running in the background). I only need it to run
> when the home screen is shown.
> The second would be to setup a service to manage my appwidget but that
> also seems inefficient to be always running in the background.
>
> What is correct method to do this?
>
> Thanks,
>
> - Ryan
>
> --
> 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 cr...@googlegroups.com>
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
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] Dueling Activities Over the Intent's Hand in Marriage

2009-06-24 Thread Ryan

There have been many posts concerning developers attempting to extend
or overwrite Android's default applications: contacts, home, etc.
These often end in an explanation of the user prompt that allows the
user to decide upon the default activity to handle the intent. I
understand and agree with the reasoning behind protecting these
essential applications and alerting the user to any changes, but I
believe there are so many questions about this topic because the
system in place for setting a new default activity seems rigid and
unfinished. It makes sense to have a user select from a list of
similar activities when opening up something like an image editing/
viewing app, and perhaps selecting a favorite default, but to prompt a
user for every activity in a larger application, such as user-
interface overhaul, would be cumbersome for a user; in addition, it
could have unintended consequences if a user only accepted some of the
application's activities, but not others.

Something like a default activity list that could be selected or
rejected upon installation of the application would seem to be a
better solution. This sort of bundling could also be used when
switching back to the initial default applications (e.g. if one is
reverted, the rest are reverted, and the application itself is
notified of this activity in some way). So, I guess my question is
whether or not something similar to this solution is being developed
or if there's another answer to this problem?

--~--~-~--~~~---~--~~
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] Dueling Activities Over the Intent's Hand in Marriage

2009-06-24 Thread Ryan

There have been many posts concerning developers attempting to extend
or overwrite Android's default applications: contacts, home, etc.
These often end in an explanation of the user prompt that allows the
user to decide upon the default activity to handle the intent. I
understand and agree with the reasoning behind protecting these
essential applications and alerting the user to any changes, but I
believe there are so many questions about this topic because the
system in place for setting a new default activity seems rigid and
unfinished. It makes sense to have a user select from a list of
similar activities when opening up something like an image editing/
viewing app, and perhaps selecting a favorite default, but to prompt a
user for every activity in a larger application, such as user-
interface overhaul, would be cumbersome for a user; in addition, it
could have unintended consequences if a user only accepted some of the
application's activities, but not others.

Something like a default activity list that could be selected or
rejected upon installation of the application would seem to be a
better solution. This sort of bundling could also be used when
switching back to the initial default applications (e.g. if one is
reverted, the rest are reverted, and the application itself is
notified of this activity in some way). So, I guess my question is
whether or not something similar to this solution is being developed
or if there's another answer to this problem?

--~--~-~--~~~---~--~~
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] Displaying Percentage Text inside Android Progressbar

2011-11-07 Thread Ryan
In order to display a percentage text inside Android's progressbar,
you will need to set up a .  Give the RelativeLayout
parameters followed below:

android:layout_width="200dip"
android:layout_height="30dip"
android:padding="0dip"

Then close your RelativeLayout.  Inside your layout, insert your
 with following parameters:

android:id="@+id/youridgoeshere"
android:layout_width="200dip"
android:layout_height="30dip"
android:layout_centerInParent="true"
style="?android:attr/progressBarStyleHorizontal"
android:indeterminateOnly="false"
android:max="100"

That's all for the progressbar, now on to the percentage text.  Create
a  inside your layout and give it the following parameters:

android:"@+id/youridgoeshere"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:textColor="#00"
android:textStyle="bold"

Close your TextView and there you have it!!! Your text should be
centered horizontally and vertically inside your progressbar.  The key
is to set up a relative layout while keeping it the same width as the
progress bar. Then using the parameter "centerInParent" keeps both the
progress bar and textview in the center of the relative parent.  Hope
this helps out. Enjoy!

-- 
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 Wi-Fi and 3G establish network connections individually and simutaneously on a single android?

2011-07-14 Thread Ryan
Hi ,
can Wi-Fi and 3G establish network connections individually and
simutaneously on a single android?
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: Fwd: SwfVideo file in webview overlapping StatusBar. Can someone help me

2011-08-24 Thread Ryan
Vivek Tamrakar  gmail.com> writes:

> 
> 
> -- Forwarded message --From: Vivek Tamrakar  gmail.com>
> Date: Tue, May 31, 2011 at 6:36 PMSubject: SwfVideo file in webview
overlapping StatusBar. Can someone help meTo: android-developers 
googlegroups.comHi ,
> I have swf video's inside my webview. But the problems is whenever i
> scroll up the page, the video  ( frame) is overlapping with the status
> bar.
> Can anyone help me??
> Iam sending the screenshot of that layout view..Please find in
attachment-Thanks &  Regards,Vivek Tamrakar
> 
> -- -Thanks &  Regards,Vivek Tamrakar
> 


Vivek,

I'm having the same issue, where you able to resolve it? 

Ryan


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

2008-12-08 Thread Ryan

I plan on putting 4-6 gigs of music on my G1.  I then want to stream
that music using bluetooth or wi-fi to my stereo system.  I figured
the best way to do this would be to use the bluetooth/ wi-fi abilities
of the PS3.  The idea is to control the music heard throughout the
house using the G1.  I can see that it's possible.  But, my question
is does an application(s) or software exist to make this happen?
Thanks and cheers, Ryan

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Animations Persistance

2009-01-05 Thread Ryan

Hi,

I am looking for a way for animations to persist in my application.
For example, if I user clicks one button I want to run a scale
animation on a view, to scale the view 200%. Then if a user clicks
another button I may want to run a tanslate animation to slide the
view 50px's to the left.

I can set up both of these animations to run in isolation, and to
persist afterwards by setting fillAfter to true. But each time a
button is pressed the view goes back to it's original position and
scale, before the animation is run. E.G. I cannot get my scaled view
to move 50px's o the left. It always reverts to an unscaled view, and
then slides this left.

Any advice, to get the transformations to persist for the lifetime of
the views would be much appreciated.

Thanks,

Ryan

--~--~-~--~~~---~--~~
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] Scale a View's Frame

2009-01-06 Thread Ryan

Hi,

I'm looking for a way to scale a view's frame. E.G. I would like to
apply the same effect to a view as running a scale animation. However,
without having to run the animation.

I have discovered how to scale the view's canvas. But this doesn't
seem to increase the views frame size, like a scale animation does.
Maybe I'm missing something obvious?

Many thanks,

Ryan
--~--~-~--~~~---~--~~
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 loadData and XML Parsing Question

2009-01-12 Thread Ryan


Hi,

When I use the WebView.loadData function from a sring returned from
XMLPullParser.nextText, the WebView always displays the following
error message:-

Web page not available
The Web page at data:text/html;utf-8...
might be temporarily down..

However, if I hard code the same text into the loadData function all
appears fine.

My code for parsing the XML is very similar to the api example, which
I have copied below:-

public String getHTMLDescription(InputStream xmlData) throws
XmlPullParserException, IOException {
String html = new String();
InputStreamReader reader = new InputStreamReader(xmlData, "UTF-8");
BufferedReader buffer = new BufferedReader(reader);

XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
factory.setNamespaceAware(true);
XmlPullParser xpp = factory.newPullParser();

xpp.setInput(buffer);
int eventType = xpp.getEventType();
while (eventType != XmlPullParser.END_DOCUMENT) {
   if(eventType == XmlPullParser.START_TAG) {
 if(xpp.getName().compareTo("description") == 0) {
 html = xpp.nextText();
 }
 eventType = xpp.next();
}

return html;
}


Any ideas?

Thanks,

Ryan
--~--~-~--~~~---~--~~
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: WebView loadData and XML Parsing Question

2009-01-12 Thread Ryan

Thanks for your reply Fred. The debug log shows the follwing line for
getting the text out with the xpp.next() function.

01-12 21:53:48.705: INFO/System.out(549): Text Tonight's
weather in LondonA few evening showers Min 6C(43F )
Probability of rain: 89%Minimum Temperature: 6C(43F )Wind
force Beaufort: 4Wind description: Moderate BreezeWind
direction: SSWSunset at: 4:17 pm

The log then shows:-

01-12 21:53:49.544: INFO/ActivityManager(51): Displayed activity
com.mycom.myapp/.MyWebViewActivity: 5050 ms

It is this activity that has a WebView that calls the loadData
function with the string above.

There are no errors as such. It's as if the WebView takes the string
as a URL and try's to request data from the URL, instead of just
displaying the string. Does that make sense?




On Jan 12, 9:34 pm, "Fred Grott(shareme)" 
wrote:
> Ryan launch app run using debugger in Eclipse and post the debug
> log..
>
> Several of us are developing apps using Webview, I am and several
> others so the better feedback we can give each other via this list and
> others helps lift all  our webview skills at once :)
>
> On Jan 12, 3:19 pm, Ryan  wrote:
>
>
>
> > Hi,
>
> > When I use the WebView.loadData function from a sring returned from
> > XMLPullParser.nextText, the WebView always displays the following
> > error message:-
>
> > Web page not available
> > The Web page at data:text/html;utf-8...
> > might be temporarily down..
>
> > However, if I hard code the same text into the loadData function all
> > appears fine.
>
> > My code for parsing the XML is very similar to the api example, which
> > I have copied below:-
>
> > public String getHTMLDescription(InputStream xmlData) throws
> > XmlPullParserException, IOException {
> > String html = new String();
> > InputStreamReader reader = new InputStreamReader(xmlData, "UTF-8");
> > BufferedReader buffer = new BufferedReader(reader);
>
> > XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
> > factory.setNamespaceAware(true);
> > XmlPullParser xpp = factory.newPullParser();
>
> > xpp.setInput(buffer);
> > int eventType = xpp.getEventType();
> > while (eventType != XmlPullParser.END_DOCUMENT) {
> >            if(eventType == XmlPullParser.START_TAG) {
> >              if(xpp.getName().compareTo("description") == 0) {
> >                  html = xpp.nextText();
> >              }
> >          eventType = xpp.next();
>
> > }
>
> > return html;
>
> > }
>
> > Any ideas?
>
> > Thanks,
>
> > Ryan- 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: WebView loadData and XML Parsing Question

2009-01-12 Thread Ryan

Actually, I think I am confusing the issue. I just tried the following
code inside my WebView:-

final String mimeType = "text/html";
final String encoding = "utf-8";
html = "Tonight's weather in LondonA few evening
showers Min 6C(43F )Probability of rain: 89%Minimum
Temperature: 6C(43F )Wind force Beaufort: 4Wind description:
Moderate BreezeWind direction: SSWSunset at: 4:17 pm";
this.loadData(html, mimeType, encoding);


This does not do wha I expect. This displays a WebView with the
following error message:-

Web page not available
The Web page at data:text/html;utf-8...
might be temporarily down..

I was expecting the WebView to use my string as the HTML content. This
is how it works for simpler strings.


On Jan 12, 9:59 pm, Ryan  wrote:
> Thanks for your reply Fred. The debug log shows the follwing line for
> getting the text out with the xpp.next() function.
>
> 01-12 21:53:48.705: INFO/System.out(549): Text Tonight's
> weather in LondonA few evening showers Min 6C(43F )
> Probability of rain: 89%Minimum Temperature: 6C(43F )Wind
> force Beaufort: 4Wind description: Moderate BreezeWind
> direction: SSWSunset at: 4:17 pm
>
> The log then shows:-
>
> 01-12 21:53:49.544: INFO/ActivityManager(51): Displayed activity
> com.mycom.myapp/.MyWebViewActivity: 5050 ms
>
> It is this activity that has a WebView that calls the loadData
> function with the string above.
>
> There are no errors as such. It's as if the WebView takes the string
> as a URL and try's to request data from the URL, instead of just
> displaying the string. Does that make sense?
>
> On Jan 12, 9:34 pm, "Fred Grott(shareme)" 
> wrote:
>
>
>
> > Ryan launch app run using debugger in Eclipse and post the debug
> > log..
>
> > Several of us are developing apps using Webview, I am and several
> > others so the better feedback we can give each other via this list and
> > others helps lift all  our webview skills at once :)
>
> > On Jan 12, 3:19 pm, Ryan  wrote:
>
> > > Hi,
>
> > > When I use the WebView.loadData function from a sring returned from
> > > XMLPullParser.nextText, the WebView always displays the following
> > > error message:-
>
> > > Web page not available
> > > The Web page at data:text/html;utf-8...
> > > might be temporarily down..
>
> > > However, if I hard code the same text into the loadData function all
> > > appears fine.
>
> > > My code for parsing the XML is very similar to the api example, which
> > > I have copied below:-
>
> > > public String getHTMLDescription(InputStream xmlData) throws
> > > XmlPullParserException, IOException {
> > > String html = new String();
> > > InputStreamReader reader = new InputStreamReader(xmlData, "UTF-8");
> > > BufferedReader buffer = new BufferedReader(reader);
>
> > > XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
> > > factory.setNamespaceAware(true);
> > > XmlPullParser xpp = factory.newPullParser();
>
> > > xpp.setInput(buffer);
> > > int eventType = xpp.getEventType();
> > > while (eventType != XmlPullParser.END_DOCUMENT) {
> > >            if(eventType == XmlPullParser.START_TAG) {
> > >              if(xpp.getName().compareTo("description") == 0) {
> > >                  html = xpp.nextText();
> > >              }
> > >          eventType = xpp.next();
>
> > > }
>
> > > return html;
>
> > > }
>
> > > Any ideas?
>
> > > Thanks,
>
> > > Ryan- Hide quoted text -
>
> > - Show quoted text -- 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: WebView loadData and XML Parsing Question

2009-01-12 Thread Ryan

Wow.. thanks Mark, that fixed it!

Do you know why that works, seems an odd way to get it to work??

On Jan 12, 10:10 pm, Mark Murphy  wrote:
> Ryan wrote:
> > Actually, I think I am confusing the issue. I just tried the following
> > code inside my WebView:-
>
> > final String mimeType = "text/html";
> > final String encoding = "utf-8";
> > html = "Tonight's weather in LondonA few evening
> > showers Min 6C(43F )Probability of rain: 89%Minimum
> > Temperature: 6C(43F )Wind force Beaufort: 4Wind description:
> > Moderate BreezeWind direction: SSWSunset at: 4:17 pm";
> > this.loadData(html, mimeType, encoding);
>
> > This does not do wha I expect. This displays a WebView with the
> > following error message:-
>
> > Web page not available
> > The Web page at data:text/html;utf-8...
> > might be temporarily down..
>
> > I was expecting the WebView to use my string as the HTML content. This
> > is how it works for simpler strings.
>
> Try loadDataWithBaseURL(), even if you have to supply a garbage URL as
> the base (e.g., fake://oh.this.is.so.not.real).
>
> Also, try "UTF-8" instead of "utf-8".
>
> Also also, the html variable is a String, and not something else, right?
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Published!- 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: WebView loadData and XML Parsing Question

2009-01-13 Thread Ryan


> I'm guessing it was the first suggestion, not the other two.

Actually, they were such simple changes I made both at once. E.G. I
used "UTF-8", instead of "utf-8". And I switched to the
loadDataWithBaseURL function. The variable html was always a String so
no change there.

I'm guessing it's the loadDataWithBaseURL function that did the trick,
but I will try both suggestions in isolation just to make sure.

I'd rather not use the loadDataWithBaseURL to load local data if I can
help it, so I'll continue researching a fix for the loadData function.

Thanks for your help.

On Jan 12, 10:42 pm, Mark Murphy  wrote:
> Ryan wrote:
> > Wow.. thanks Mark, that fixed it!
>
> I'm guessing it was the first suggestion, not the other two.
>
> > Do you know why that works, seems an odd way to get it to work??
>
> It is definitely odd. However, it seems to cure a lot of ills, ills that
> I presume come from some issues with the implementation of the simpler
> loadData() method. I need to look at the source for that sometime...
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Published!
--~--~-~--~~~---~--~~
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] SharedPreferences getting lost on device power off / on

2009-01-19 Thread Ryan


Hi,

I'm finding if I save pref's and then turn my G1 off and back on, they
have been erased. Is that the expected behaviour? I've seen similar
reports from a search, but cannot find a solution.

My code to save and restore is as follows:-

public void save() {
SharedPreferences activityPreferences = myActivity.getPreferences
(Activity.MODE_PRIVATE);
SharedPreferences.Editor editor = activityPreferences.edit();
editor.putString("PrefName", "My String");
editor.commit();
}


public String load() {
SharedPreferences activityPreferences = myActivity.getPreferences
(Activity.MODE_PRIVATE);
return activityPreferences.getString("PrefName", "Default String");
}

Thanks a lot for any advice.

Ryan
--~--~-~--~~~---~--~~
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] Comunication between Google MapView and LocationListener

2008-11-23 Thread Ryan

Hi all,

I've implemented a Mapview in the main activity and used
LocationListener to monitor the location. If the location changes,
method "public void onLocationChanged(Location location)" will be
called.

But then how can I transfer the location data from Listener to the
main activity where my mapview located? 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Upload Error (corrupt manifest)

2009-02-03 Thread ryan

After using apkbuilder to make an apk file and then jarsigning it with
a certificate good for 100 years, I'm getting this strange error when
attempting to upload:

The file is invalid: W/ResourceType(29469): Bad XML block: header size
28024 or total size 1702240364 is larger than data size 973 ERROR:
AndroidManifest.xml is corrupt

This is the same error I get if I let apkbuilder sign it.

The application builds and runs just fine on my phone via ABD/DDMS in
Eclipse. Couldn't find anything relating to this error out on the web.

Here is my manifest:


http://schemas.android.com/apk/res/android";
android:versionCode="1" android:versionName="1.0.0"
package="info.yoosefi.android.scout">















--~--~-~--~~~---~--~~
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] What's holding up UK paid app's

2009-02-23 Thread Ryan

Hi,

Do we know why UK end users can't get paid app's yet? Is it just a
case of waiting for T-Mobile to release the latest update, or do
Google still need to do some more work to make this live?

Anyone got any rumours of a timeline?

Thanks a lot,

Ryan
--~--~-~--~~~---~--~~
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: Update UK G1 not showing paid apps

2009-03-05 Thread Ryan

I can confirm this is the same on my UK G1.

The market is no longer Beta, but no paid app's yet. My guess is the
update means UK G1's can now support paid app's, but we're still
waiting on Google to flick the switch and make them available.

Hopefully, not too much longer to wait.

On Mar 5, 8:13 am, Al Sutton  wrote:
> I've been playing with a UK G1 which has received the 1.1 firmware
> update (TC9), but it would seem that it can't access paid for apps.
>
> I'd appreciate someone else verifying this on another update UK G1, but
> when I switched the view to show paid apps only all the categories just
> have a message saying;
>
> "No matching content in Android Market".
>
> If someone could check this I'd appreciate it because at the moment I'm
> not sure if it is something wrong with the G1 I was using (signal
> strength, etc.), or does the UK TC9 update not bring paid-apps to UK users?
>
> Al.
>
> --
>
> * Written an Android App? - List it athttp://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: Update UK G1 not showing paid apps

2009-03-05 Thread Ryan

> But I don't think Google are ready to flick the switch. They still
> want to sort out any teething issues they had from opening the paid
> market in the US.

Looks like we're in for a long wait then...

On Mar 5, 11:22 am, Stoyan Damov  wrote:
> On Thu, Mar 5, 2009 at 1:17 PM, admin.androidsl...@googlemail.com
>
>
>
>  wrote:
>
> > My theory is that RC9 means that all Google now needs to do is flick a
> > switch and the UK will see paid apps without needing e.g. RC10.
>
> > But I don't think Google are ready to flick the switch. They still
> > want to sort out any teething issues they had from opening the paid
> > market in the US.
>
> > My paid app available US only has had several Google issues, including
> > users not being able to download updates, users not being able to get
> > refunds within 24 hours, users not being able to transfer apps to new
> > phone, etc.
>
> > Google will want to sort out these issues before they open up the
> > market too widely so I can understand why they are not giving any
> > definite dates.
>
> Which is great. I've said it already and can't stress enough that
> perfectly working Market application is billions of times more
> important than meeting *any* deadline.
>
> Cheers
--~--~-~--~~~---~--~~
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] HttpConnection Intermittent Poblems

2009-03-05 Thread Ryan

Hi,

My app uses a simple HttpConnection to download and parse some XML
that I host. The important code is as follows:-

URL url = new URL(urlStr);
URLConnection connection = url.openConnection();
HttpURLConnection httpConnection = (HttpURLConnection)
connection;
int responseCode = httpConnection.getResponseCode();

if(responseCode == HttpURLConnection.HTTP_OK) {
// do useful stuff here
}
else {
   // display connection
failed error message here
}

This works all the time on my G1 (based in UK), but a number of my
users are complaing they always see the connection failed message.
This is even though they have 3G connections and can browse the
internet, use google maps etc.

Can you see that I'm doing something obviously wrong?

Is there a more robust way to connect?

Any advice greatly appreciated,

Ryan


--~--~-~--~~~---~--~~
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] Ajax in Webview

2010-05-04 Thread Ryan
I've seen this questions posted elsewhere but I haven't seen anyone
find some of them same odd issues I have.
The app I'm working on opens a Webview to a page that requires Ajax.
On platforms before 2.0 this worked no problem, now suddenly nothing.
It simply stops at the loading clock. I don't see any reason why it
would work before but not on newer versions.
Even a proper reason why it's failing would be helpful.

-- 
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: from FRF50 to FRF91

2010-07-07 Thread Ryan
Got the OTA as well but frf 91 will not install over my frf50. Can I
attribute this to having a custom recovery? I'm not rooted. Also, all
attempts to flash up from 50 (to 72, 82 etc) have failed. Tried
renaming files to upgrade.zip too, though ere to frf 50 flashing did
not require a file rename. Any ideas? Thanks a bunch!

On Jul 3, 9:14 am, JP  wrote:
> I am runningFRF50. For only a few more minutes, as I just got the OTA
> update notice. No need to go back to 2.1 it would seem.
>  <... five minutes later ...>
> Up and running onFRF91now.
>
> On Jul 2, 4:47 pm, Ken H  wrote:
>
>
>
> > Anyone know where (or if) I can manually update fromFRF50toFRF91?
> > I've got files for going fromFRF50to FRF83, and from FRF85B to
> >FRF91, but nothing in between.
>
> > Ken

-- 
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: from FRF50 to FRF91

2010-07-07 Thread Ryan
How did you go from FRF50 to 91 with the OTA? I'm trying to do the
same thing but with no success. Is it because of my custom recovery?

Flashed from ere to frf50 with no trouble, but all signed passion.zip
files (50 to 72, 50 to 82) dont work.

I was surprised to see your comment that the OTA designed for stock
2.1 worked on your phone.

I feel like I'm missing a step somewhere, but I'm not sure where. Any
ideas?

Build FRF50
Kernel: 2.6.32.9-27220-g328f560
android-bu...@apa26#1



On Jul 3, 9:14 am, JP  wrote:
> I am runningFRF50. For only a few more minutes, as I just got the OTA
> update notice. No need to go back to 2.1 it would seem.
>  <... five minutes later ...>
> Up and running onFRF91now.
>
> On Jul 2, 4:47 pm, Ken H  wrote:
>
>
>
> > Anyone know where (or if) I can manually update fromFRF50toFRF91?
> > I've got files for going fromFRF50to FRF83, and from FRF85B to
> >FRF91, but nothing in between.
>
> > Ken- 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: from FRF50 to FRF91

2010-07-07 Thread Ryan
Update: Turns out I am rooted, blame the noobiness.

Waiting for Cyan 6.0. Tried the latest Cyanogen MOD but the market
didn't load and wifi-tether didn't work like it does in frf50... that
is, it didn't work at all.

The trouble started when I unlocked the bootloader and put in the
package that included Amon RA and super-user. I failed to notice I
wasn't exactly going to be running stock frf50. Hence the failure each
time I tried to flash a new OS from frf50. Now if only I could get rid
of the FRF91 OTA update reminder...

On Jul 3, 5:01 pm, Ryan  wrote:
> Got the OTA as well but frf 91 will not install over my frf50. Can I
> attribute this to having a custom recovery? I'm not rooted. Also, all
> attempts to flash up from 50 (to 72, 82 etc) have failed. Tried
> renaming files to upgrade.zip too, though ere to frf 50 flashing did
> not require a file rename. Any ideas? Thanks a bunch!
>
> On Jul 3, 9:14 am, JP  wrote:> I am runningFRF50. 
> For only a few more minutes, as I just got the OTA
> > update notice. No need to go back to 2.1 it would seem.
> >  <... five minutes later ...>
> > Up and running onFRF91now.
>
> > On Jul 2, 4:47 pm, Ken H  wrote:
>
> > > Anyone know where (or if) I can manually update fromFRF50toFRF91?
> > > I've got files for going fromFRF50to FRF83, and from FRF85B to
> > >FRF91, but nothing in between.
>
> > > Ken

-- 
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 2.2 and 3 stencil set

2010-08-03 Thread Ryan
Hello,

I've got some great ideas and i wonder what tools are people using to
develop wire frames for android applications?

I've found this:
http://www.graffletopia.com/stencils/578

And obviously the source is available to make my own stencil but i was
wondering what google uses internally and whether it could be
released?

I'm looking for a stencil set that works with google docs.

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] loadDataWithBaseURL stopped working on Nexus 1 2.2

2010-08-09 Thread Ryan
Hi,

I have been using loadDataWithBaseURL to display dynamic HTML with no
issues, and today I get a force close everytime on my Nexus 1 running
2.2. Although it did work fine last week after the update.

Has anything changed that will stop this working?

Example code:-

 final String mimeType = "text/html";
 final String encoding = "UTF-8";
 wbvInfo.loadDataWithBaseURL("fake://this/is/not/real", "Test",
mimeType, encoding, null);

As mentioned, this used to work fine, and still does on the G1, but is
now crashing the Nexus 1 everytime.

Thanks a lot,

Ryan

-- 
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] Creating "Sale" Icon in Marketplace

2010-11-23 Thread Ryan
Hi,

I'm a relatively new developer and I wondered if someone can help me.
I have successfully submitted an application to the Android
Marketplace and now I would like to change the icon that appears to
advertise a sale on my product for a limited amount of time.  Is it
possible to upload a new icon image without having to recompile and
submit a new version of my application?  I appreciate the help

Thanks
Ryan

-- 
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] API's available for configuring email settings

2011-04-21 Thread Ryan
What API's are available for configuring the native android email
client's mail profiles?  I'd like to build an application to
automatically distribute out email settings to a group of devices so
the user does not have to do anything manually to configure email.
Ideally, I could also remove the email settings programatically when
desired, which would in turn get rid of the email associated with that
account.  As an added bonus, setting some of the things not available
thru the configuration wizard would be ideal as well, such as the
ActiveSync device ID in the case of an ActiveSync account.

Thanks in advance for any API help you can provide,
Ryan

-- 
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] Eclipse Android XML Editor Errors

2009-04-04 Thread Ryan Loebs

Hey folks,

I'm trying to setup the development environment on my Linux laptop and
Mac PC but I'm having issues with both environments.  When I try
setting it up in Windows it goes down without a hitch.  When I try to
do it in both Linux and Mac it all works up to opening any of the XML
editors.

I have not touched the XML files after generating the project using
the eclipse plugin's wizard so the error doesn't make much sense, but
when I try it produces the following information:

org.eclipse.core.runtime.CoreException: Error opening the Android XML
editor. Is the document an XML file?
at com.android.ide.eclipse.editors.AndroidEditor.createTextEditor
(Unknown Source)
at com.android.ide.eclipse.editors.AndroidEditor.createAndroidPages
(Unknown Source)
at com.android.ide.eclipse.editors.AndroidEditor.addPages(Unknown
Source)
at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:
146)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl
(MultiPageEditorPart.java:310)
at org.eclipse.ui.internal.EditorReference.createPartHelper
(EditorReference.java:661)
at org.eclipse.ui.internal.EditorReference.createPart
(EditorReference.java:428)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart
(WorkbenchPartReference.java:594)
at org.eclipse.ui.internal.EditorReference.getEditor
(EditorReference.java:266)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched
(WorkbenchPage.java:2820)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
(WorkbenchPage.java:2729)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:
2721)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:
2673)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2668)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2652)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2643)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor
(EditorUtility.java:318)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor
(EditorUtility.java:160)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:207)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun
(SelectionDispatchAction.java:274)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run
(SelectionDispatchAction.java:250)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen
(PackageExplorerActionGroup.java:363)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$5.open
(PackageExplorerPart.java:603)
at org.eclipse.jface.viewers.StructuredViewer$2.run
(StructuredViewer.java:820)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen
(StructuredViewer.java:818)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen
(StructuredViewer.java:1079)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen
(StructuredViewer.java:1183)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent
(OpenStrategy.java:263)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:
257)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent
(OpenStrategy.java:297)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
3482)
at org.eclipse.swt.widgets.Control.sendTrackEvents(Control.java:3024)
at org.eclipse.swt.widgets.Control.kEventControlTrack(Control.java:
2104)
at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:375)
at org.eclipse.swt.widgets.Display.controlProc(Display.java:862)
at org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(Native
Method)
at org.eclipse.swt.widgets.Tree.kEventMouseDown(Tree.java:2599)
at org.eclipse.swt.widgets.Widget.mouseProc(Widget.java:1326)
at org.eclipse.swt.widgets.Display.mouseProc(Display.java:2929)
at org.eclipse.swt.

RE: [android-developers] Re: Multiple add-ons for multiple apps in one apk

2009-12-02 Thread Ryan Beesley
I would think so. An APK is basically a zip file with a manifest that has been 
signed.  Seems like you should be able to pin a manifest that installs those 
additional apps in your pack.  The biggest issue that I see is that the APK 
won't have been installed through Market and may have trouble updating as a 
result.  I'm not sure you want to go down this path, but I think you might be 
able to.

/Ryan

-Original Message-
From: Andrew Huff [mailto:702reco...@gmail.com] 
Sent: Tuesday, December 01, 2009 7:50 AM
To: Android Developers
Subject: [android-developers] Re: Multiple add-ons for multiple apps in one apk

Still trying to figure this out if it's possible so if anyone has any
suggestions it'd be great.

On Nov 28, 3:47 pm, Andrew Huff <702reco...@gmail.com> wrote:
> Hopefully someone can shed some light on this for me as I'm really
> needing to figure this out.
>
> On Nov 27, 3:36 pm, Andrew Huff <702reco...@gmail.com> wrote:
>
> > I've been trying to figure this out or if it's even possible. I have a
> > few 'add-ons' I'd like to package up into one .apk, sorta like a
> > widget pack. The issue though is I'm trying to package these into one
> > pack but they are actually for a group of apps. Is it possible to have
> > one .apk with multiple add-ons for different apps and be able to
> > actually install them so each particular app can use the add-on for
> > it?
>
> > Not sure if I'm explaining this well.
>
> > Basically, one .apk has 5 add-ons for 5 apps, 1 add-on per app. Is it
> > possible for the one .apk to install the add-ons even though it's for
> > various apps?

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

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


RE: [android-developers] Repo Init for Eclair

2009-12-02 Thread Ryan Beesley
-b elcair is more stable for me.  Not sure what the differences are between 
builds.  There is certainly some difference, but I think trying to pair it to 
the specific branch is the correct way to go as master might get other 
incompatible things thrown in from time to time as it continues to evolve.

/Ryan

-Original Message-
From: Nick [mailto:ladn...@gmail.com] 
Sent: Monday, November 30, 2009 10:26 AM
To: Android Developers
Subject: [android-developers] Repo Init for Eclair

Hi ,
I was just wondering if I want to sync to the latest Eclair repo which
one of the following would be the correct command?


mkdir mydroid
cd mydroid
repo init -u git://android.git.kernel.org/platform/manifest.git
repo sync

. build/envsetup.sh

 lunch generic-eng

make


OR


mkdir mydroid
cd mydroid
repo init -u git://android.git.kernel.org/platform/manifest.git -b
eclair
repo sync

. build/envsetup.sh

 lunch generic-eng

make


What is the difference between them?
Currently I am using cupcake version and wanted to move up to eclair.
Would I need to do any thing else as far as syncing and building the
eclair branch? Currently I am using "Ubuntu 9.04 (Jaunty Jackalope)"
and java version "1.6.0_16".

Thanks,
Nick

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

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


RE: [android-developers] Google Finance doing "credit checks"?

2009-12-04 Thread Ryan Beesley
Well, my initial thought is that this isn't really android-developers related.  
I expect there are better forums to have this answered in.

/Ryan

-Original Message-
From: Courtney Dev [mailto:cba...@gmail.com] 
Sent: Thursday, December 03, 2009 7:11 AM
To: Android Developers
Subject: [android-developers] Google Finance doing "credit checks"?

For those who applied to get your payout limit removed, Google Finance
required personal information (like SSN) with the understanding that
they "may" be performing routine credit history verifications.

Does this concern you?  I understand each credit check run on you by
any institution (bank, mortgage, etc) lowers your credit score.  I
can't understand how (or why) Google finance needs to do this.

Also, does anyone know how often they do these credit checks?

Any insight or thoughts would be appreciated!

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

-- 
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] Connectivity Manager - CONNECTIVITY_CHANGE

2009-10-08 Thread Ryan Berti

Hello,

I'm very new to the boards, and I have a question about the
connectivity manager but didn't see it discussed in my searches. I am
doing research on the possibility of producing a background
application that is woken up when an ad-hoc wifi network is in range.
I understand how to create a network of this type, but my problem lies
in the acknowledgment of a network of this type without busy waiting.

I have recently discovered that applications have to ability to be
woken up by "broadcast intents," where the app is declared as a
received in the manifest file. The one that interests me is the
ConnectiviyManager.CONNECTIVITY_ACTION. From what I understand, this
event is broadcasts when the device switches networks. I am wondering
if this functionality can be modified so that the event is sent out
when new wireless (preferably ad-hoc) networks are in range.

It seems like I could accomplish this by having my phone connect to
these type of networks automatically, but I'm not sure how to go about
this either. I am very interested in what everyone has to say. Thanks!

-Ryan Berti

--~--~-~--~~~---~--~~
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: Connectivity Manager - CONNECTIVITY_CHANGE

2009-10-12 Thread Ryan Berti

Seems that this would work, but I am trying to get around the phone
waking up every time it receives a state changed event. Can this be
done, ie create a user defined event that I can listen for? Thanks for
the response.

-Ryan

On Oct 8, 9:39 pm, "Roman ( T-Mobile USA)"  wrote:
> Try to implement the following
>
> + use the NetworkInfo on your connection to find out about your
> current connection (whether it's Wifi or Mobile)
> + implement a broadcast receiver and listen to
> NETWORK_STATE_CHANGED_ACTION events
>
> When you receive the network state change event and you have a valid
> IP address, send an intent to your application.
>
> The function above should be implemented as a service.
>
> --
> Roman Baumgaertner
> Sr. SW Engineer-OSDC
> ·T· · ·Mobile· stick together
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Oct 8, 12:13 am,RyanBerti wrote:
>
> > Hello,
>
> > I'm very new to the boards, and I have a question about the
> > connectivity manager but didn't see it discussed in my searches. I am
> > doing research on the possibility of producing a background
> > application that is woken up when an ad-hoc wifi network is in range.
> > I understand how to create a network of this type, but my problem lies
> > in the acknowledgment of a network of this type without busy waiting.
>
> > I have recently discovered that applications have to ability to be
> > woken up by "broadcast intents," where the app is declared as a
> > received in the manifest file. The one that interests me is the
> > ConnectiviyManager.CONNECTIVITY_ACTION. From what I understand, this
> > event is broadcasts when the device switches networks. I am wondering
> > if this functionality can be modified so that the event is sent out
> > when new wireless (preferably ad-hoc) networks are in range.
>
> > It seems like I could accomplish this by having my phone connect to
> > these type of networks automatically, but I'm not sure how to go about
> > this either. I am very interested in what everyone has to say. Thanks!
>
> > -RyanBerti
--~--~-~--~~~---~--~~
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] Defining a UI subtree in xml, but instantiating it more than once. Possible?

2010-02-01 Thread Ryan Moulton
Hi everyone. Just getting started with developing for Android, so
apologies if there's an obvious answer.

I'm working on an application in which it's necessary to
programmatically change the entire structure of the UI. What I would
like to be able to do is specify a subtree of the UI in xml, and then
instantiate that multiple times as required throughout the tree. For
instance, if I need the user to set a numerical value, I'd like to use
xml to define all the widgets involved, increment and decrement
buttons for instance, and then reference this same file whenever I
need a UI of that sort.

Unfortunately, When I inflate the xml multiple times, I get the
following exception.

IllegalStateException
"The specified child already has a parent. You must call removeView()
on the child's parent first."

This I'm assuming is because Inflating isn't creating a new object
each time, but rather creating a static singleton. Is there a good way
to do what I'm hoping to do, or should I abandon trying to use the xml
interface?

-Ryan

-- 
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: Defining a UI subtree in xml, but instantiating it more than once. Possible?

2010-02-01 Thread Ryan Moulton
Thanks for the quick response! If I'd known I could get an answer so
quickly here I'd have posted _last_ week. :)
I can debug it from here then.

Is the best way to do this View.inflate(activity,
R.layout.what_id_like_to_inflate, null)?



On Feb 1, 11:07 pm, Romain Guy  wrote:
> Inflating a views tree always creates new instances of views, there's
> no singleton. Without seeing your code, I cannot tell you what you are
> doing wrong unfortunately.
>
>
>
>
>
> On Mon, Feb 1, 2010 at 11:04 PM, Ryan Moulton  wrote:
> > Hi everyone. Just getting started with developing for Android, so
> > apologies if there's an obvious answer.
>
> > I'm working on an application in which it's necessary to
> > programmatically change the entire structure of the UI. What I would
> > like to be able to do is specify a subtree of the UI in xml, and then
> > instantiate that multiple times as required throughout the tree. For
> > instance, if I need the user to set a numerical value, I'd like to use
> > xml to define all the widgets involved, increment and decrement
> > buttons for instance, and then reference this same file whenever I
> > need a UI of that sort.
>
> > Unfortunately, When I inflate the xml multiple times, I get the
> > following exception.
>
> > IllegalStateException
> > "The specified child already has a parent. You must call removeView()
> > on the child's parent first."
>
> > This I'm assuming is because Inflating isn't creating a new object
> > each time, but rather creating a static singleton. Is there a good way
> > to do what I'm hoping to do, or should I abandon trying to use the xml
> > interface?
>
> > -Ryan
>
> > --
> > 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
>
> --
> 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] MMS != RTSP

2010-02-21 Thread Ryan Gardner
MMS is not the same as RTSP. RTSP is supported in android, MMS is
not.

I was looking into building an app that would play an MMS stream as
well. The easiest route that I can see would be using the ndk and
wrapping around libmms to do the legwork - but it's going to be way
more work than it would be if you had an rtsp:// stream

Ryan

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


RE: [android-developers] Re: Google Finance doing "credit checks"?

2009-12-07 Thread Ryan Beesley
I'm not disputing that this might be a topic worthy of discussion, but I still 
feel like you'll get a better response on one of the discuss groups than you 
will from here.  Most folks here are going to be looking for answers to 
specific development questions, not something like this.  Try android-discuss 
and see if you don't get hear something from there.

/Ryan

-Original Message-
From: Courtney Dev [mailto:cba...@gmail.com] 
Sent: Monday, December 07, 2009 6:21 AM
To: Android Developers
Subject: [android-developers] Re: Google Finance doing "credit checks"?

I've searched, and figured all (or at least most) android developers
are dealing with google checkout in some capacity.  Hence this might
be a common concern.



On Dec 4, 12:40 pm, Ryan Beesley  wrote:
> Well, my initial thought is that this isn't really android-developers 
> related.  I expect there are better forums to have this answered in.
>
> /Ryan
>
> -Original Message-
> From: Courtney Dev [mailto:cba...@gmail.com]
> Sent: Thursday, December 03, 2009 7:11 AM
> To: Android Developers
> Subject: [android-developers] Google Finance doing "creditchecks"?
>
> For those who applied to get your payout limit removed, Google Finance
> required personal information (like SSN) with the understanding that
> they "may" be performing routinecredithistory verifications.
>
> Does this concern you?  I understand eachcreditcheckrun on you by
> any institution (bank, mortgage, etc) lowers yourcreditscore.  I
> can't understand how (or why) Google finance needs to do this.
>
> Also, does anyone know how often they do thesecreditchecks?
>
> Any insight or thoughts would be appreciated!
>
> --
> 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 
> athttp://groups.google.com/group/android-developers?hl=en

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

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


RE: [android-developers] Re: DatePicker: years before 2000

2009-12-07 Thread Ryan Beesley
What happens when you go the other way?  2098 -> 2099 -> ???

/Ryan

-Original Message-
From: Thomas [mailto:kuenne...@googlemail.com] 
Sent: Monday, December 07, 2009 12:03 PM
To: Android Developers
Subject: [android-developers] Re: DatePicker: years before 2000

Hello.

Thank you very much for verifying this.

Still, I cannot see why Samsung would want to prevent someone from
selecting years prior to 2000?

I have not read of any limitations in the DatePicker /
DatePickerDialog docs from Google. Why would anyone alter the
behaviour of a gui component?

Can anybody shed some light on this? Perhaps some kind folks from
Google, please??

Regards
Thomas


On 7 Dez., 18:43, dan raaka  wrote:
> yes that is correct.
> -Dan
>
>
>
> On Sun, Dec 6, 2009 at 1:05 AM, Thomas  wrote:
> > My app (TKBirthdayreminder) is heavily relying on DatePicker and
> > DatePickerDialog. A few users have reported problems while entering
> > the birthday date, specifically years prior to 2000. I was told by one
> > user that on a Samsung Moment hitting the minus button below the year
> > field will lead to 2002 -> 2001 -> 2000 -> 2099. Can a Samsung Moment
> > owner please verify this assumption?
>
> > The DevGuide contains a small sample app:
> >http://developer.android.com/guide/tutorials/views/hello-datepicker.html
>
> > Thank you very much.
>
> > Regards
> > Thomas
>
> > --
> > 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 > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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

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


RE: [android-developers] Where are the HTC dev phone 1 image package links?

2009-12-08 Thread Ryan Beesley
lbcoder posted this on one of the other groups:

On Dec 7, 7:41 pm, lbcoder  wrote:
> The page is just broken. The files are still there to download.
>
> http://member.america.htc.com/download/RomCode/ADP/{filename}
> You can find the filename in the link that you provided in the 
> "download" column.
>
> Note: The website requires that you set the Referer: header to 
> "http:// developer.htc.com" (or some subpath of that), so you won't be 
> able to pull it with your web browser.
>
> You can use wget like this:
> wget --referer="http://developer.htc.com"; PATH
>
> And that will get the file you're after.
>
> Note: All files you pull from there are subject to this 
> license:http://developer.htc.com/io_device_license.htm-- so don't claim that 
> you didn't know about it.
>

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of Tom Opgenorth
Sent: Tuesday, December 08, 2009 6:06 PM
To: android-developers@googlegroups.com
Subject: Re: [android-developers] Where are the HTC dev phone 1 image package 
links?

Woops, my bad.  Those aren't for the ADP1, but for the Magic.  Does
anybody know where a guy can get the 1.6 images for the Dream?  The
links on HTC's page are still dead.

On Tue, Dec 8, 2009 at 18:04, Tom Opgenorth  wrote:
> It seems that you can download the 1.6 images from here:
> http://developer.htc.com/google-io-device.html#s3
>
> On Thu, Dec 3, 2009 at 22:25, Chris Sokol  wrote:
>> The instructions for setting up the ADP1 direct me to the HTC
>> Developer Center to download system images.  That page, at
>> http://developer.htc.com/adp.html, does not have any links to system
>> images - it says it does, but it does not.
>>
>> Does anyone know where I can find 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
>
>
>
> --
> http://www.opgenorth.net
>



-- 
http://www.opgenorth.net

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

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


RE: [android-developers] How to update G1 firmware version to 2.0?

2009-12-09 Thread Ryan Beesley
I don't think we're waiting on Google.  Seems like the issue is more likely 
with HTC since we don't have an ADP release yet and the 2.0 source has been 
released.  Even once ADP devices have been updated, then the next step is with 
T-Moble.  It's not just a question of when, but also if.

If you need 2.0 for testing purposes, you can run hobbled versions built on 
AOSP, but they need updated drivers to function fully.

/Ryan

From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of Disconnect
Sent: Wednesday, December 09, 2009 6:50 AM
To: android-developers@googlegroups.com
Subject: Re: [android-developers] How to update G1 firmware version to 2.0?

The word is the same as it was for 1.5 - it might come someday, it might not. 
1.5 and 1.6 came (with some hacks, like offloading text-to-speech to an 
installable app) but only google knows right now and they're about as open as a 
lead wall. (And only slightly less toxic ;) ..)

You can get some of the community builds that have bits and pieces of the new 
OS embedded, such as cyanogenmod, but there is nothing official and no eta.
On Tue, Dec 8, 2009 at 7:38 PM, Tom Opgenorth 
mailto:opgeno...@gmail.com>> wrote:
On Fri, Nov 27, 2009 at 18:35, Mark Murphy 
mailto:mmur...@commonsware.com>> wrote:
> Android 2.0 has not been officially released for the T-Mobile G1.
Have we had any word of when Android 2.0 will be release for the T-Mobile G1?


--
http://www.opgenorth.net

--
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<mailto:android-developers@googlegroups.com>
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com<mailto:android-developers%2bunsubscr...@googlegroups.com>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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

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

RE: [android-developers] Re: How to select/install a locale other than English ?

2009-12-11 Thread Ryan Beesley
Similarly, how do I build an AOSP phone with the all the different locales?

/Ryan

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of shomari
Sent: Friday, December 11, 2009 4:03 PM
To: Android Developers
Subject: [android-developers] Re: How to select/install a locale other than 
English ?

If you just need to test your "individual" activities, here is some
code that you can insert in onCreate:

Locale locale = new Locale("fr");
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
getBaseContext().getResources().updateConfiguration(config,
getBaseContext().getResources().getDisplayMetrics());

This should activate your French resources

BUT! be warned that this code has stopped working for me since Android
2.0.
Seems others are also experiencing problems since the new SDK.
Note sure how to fix it yet (so I'd suggest compiling against Android
1.6, if possible)

S.


On Dec 11, 4:27 am, Syl  wrote:
> My application has resources files in English and French and works on
> Android 1.5 and >.
>
> Inside the emulator, in Settings > Locale & Text > Select Locale, I
> can choose English or French. This updates the language of my
> application.
>
> However, when I use the Android Dev Phone 1, only English is available
> in the "Select Locale" screen...
>
> Is it possible to install french locale on Android Dev Phone 1 ?
> If so, how can I do this ?
>
> Thanks 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

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


RE: [android-developers] application name change

2009-12-13 Thread Ryan Beesley
I've seen other apps do this before, so I don't think it would be a problem... 
but if someone searches for your app by name that could be a problem.  If this 
is a paid app, the following won't be all that useful, but if not you could 
possibly leave a tombstone that points to your new app temporarily; in effect 
another app that does a market search for the new one. At least this way if 
someone is searching for the old app they will find a pointer to the new one.

This makes upgrade scenarios a little ugly, but it may help you retain users.

/Ryan

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of Peter Jeffe
Sent: Sunday, December 13, 2009 11:32 AM
To: Android Developers
Subject: [android-developers] application name change

We're having to change our app's name due to it being somewhat close
to a mark owned by a large company that believes consumers are easily
confused.  I had been assuming that this was simply a matter of
changing the name listed in our Market description when we publish an
update, but has anyone done this before?  I don't want any nasty
surprises, like the Market preventing a display name change on an
existing app.

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

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


RE: [android-developers] zipalign command not found

2009-12-15 Thread Ryan Beesley
./zipalign if it is in your current directory.  Try "$ 
android-sdk/tools/zipalign" to see if you can access run it.  You may also want 
to use "which zipalign" to verify the path.

/Ryan

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of ajaxgeek
Sent: Monday, December 14, 2009 10:42 PM
To: Android Developers
Subject: [android-developers] zipalign command not found

when I do "zipalign -c -v 4 myapp.apk" or "zipalign -v 4 myapp.apk
myapps.apk"
I am always getting "zipalign command not found".

but when I launch zipalign tool, I am getting bellow messages
"Last login: Mon Dec 14 22:12:04 on ttys001
/Users/willie/Desktop/willie/android-sdk/tools/zipalign ; exit;
willie-shis-MacBook-Pro:~ willie$ /Users/willie/Desktop/willie/android-
sdk/tools/zipalign ; exit;
Zip alignment utility
Copyright (C) 2009 The Android Open Source Project

Usage: zipalign [-f] [-v]  infile.zip outfile.zip
   zipalign -c [-v]  infile.zip

  : alignment in bytes, e.g. '4' provides 32-bit alignment
  -c: check alignment only (does not modify file)
  -f: overwrite existing outfile.zip
  -v: verbose output
logout

[Process completed]
"

I can't type anything on this screen.

what could be wrong?
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

-- 
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 with getting a listener on my listview checkbox

2009-12-28 Thread Ryan Bowman
Hello,
I've been hitting a wall with how to get a listener on the checkbox in
my listview. Could someone give me an example of how to do it in this
case? When this screen is displayed it pulls the data from the
database and displays in in a listview. The checkbox status is set in
filldata based on values from the database. I want to be able to
select/deselect checkboxes in the list and write the changes back to
the database as the end result. SO I'm thinking the first step is to
get a listener on the checkboxes. At this point I can't even click on
the list, but can click the checkbox on and off.  Here are my xml
layouts and java code. Thanks, Ryan.

createlist.xml


http://schemas.android.com/apk/res/
android"
  android:layout_width="fill_parent"
android:layout_height="fill_parent">










  


__

list_row.xml

http://schemas.android.com/apk/res/
android"
 android:layout_width="wrap_content"
android:layout_height="wrap_content">

http://schemas.android.com/apk/res/android";
android:id="@+id/checkItem"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:text="">-->







_

UpdateList.java
package shop.grocery.com;

import android.app.ListActivity;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.view.View;
import android.widget.CheckBox;
import android.widget.ListView;
import android.widget.SimpleCursorAdapter;
import android.widget.Toast;


public class CreateList extends ListActivity{
 private DbHelper mDbHelper;
 private static final int ACTIVITY_CREATE=0;

{}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.setContentView(R.layout.createlist);
mDbHelper = new DbHelper(this);
mDbHelper.open();
fillData();
registerForContextMenu(getListView());

}//end onCreate


private void fillData() {
Toast.makeText(CreateList.this, "fillData called",
Toast.LENGTH_SHORT).show();
Cursor createCursor = mDbHelper.fetchAllNotes();
startManagingCursor(createCursor);

// Create an array to specify the fields we want to display
in the list
String[] from = new String[]{DbHelper.KEY_DESCRIPTION,
DbHelper.KEY_LOCATOR, DbHelper.KEY_CHECKED};

// and an array of the fields we want to bind those fields to
int[] to = new int[]{R.id.desc, R.id.locat, R.id.checkItem};

 // Now create an array adapter and set it to display using our
row
SimpleCursorAdapter item = new SimpleCursorAdapter(this,
R.layout.list_row, createCursor, from, to);
item.setViewBinder(new SimpleCursorAdapter.ViewBinder()
{
public boolean setViewValue(View view, Cursor cursor, int
columnIndex) {
int nCheckedIndex = cursor.getColumnIndexOrThrow
(DbHelper.KEY_CHECKED);
if (columnIndex == nCheckedIndex) {
CheckBox cb = (CheckBox) view;
boolean bChecked = 
(cursor.getInt(nCheckedIndex) !=
0);
cb.setChecked(bChecked);
return true;}
return false;  }});
setListAdapter(item);

}//end fill data


   private void createNote() {
Intent i = new Intent(this, ItemEdit.class);
startActivityForResult(i, ACTIVITY_CREATE);
}

@Override  //clicks not recognized
protected void onListItemClick(ListView l, View v, int position,
long id){
super.onListItemClick((ListView) l.findViewById(R.id.checkItem),
v, position, id);
Toast.makeText(CreateList.this, "onlistitemclick",
Toast.LENGTH_SHORT).show();
}


}//end class
/*code I've been experimenting with unsuccessfully
//getListView().setOnItemClickListener((OnItemClickListener) this);
//   mCheckedText = (EditText) findViewById(R.id.checked);
//   mRowId = savedInstanceState != null ?
savedInstanceState.getLong(DbHelper.KEY_ROWID)
//  : null;
//if (mRowId == null) {
//  Bundle extras = getIntent().getExtras();
//  mRowId = extras != null ? 
extras.getLong(DbHelper.KEY_ROWID)
//  

[android-developers] Geocoder backend service

2009-06-17 Thread Ryan Loebs

I was reading the documentation regarding the Geocoder class and the
description says:

"The Geocoder class requires a backend service that is not included in
the core android framework."

I assume this means that the proprietary Google Maps API's provides
this backend service which routes through the Google Maps service.  I
searched around trying to find information on constructing my own
Geocoder backend service but have come up nil.  Is there any way to
produce a custom backend for the Geocoder class?

If it helps formulate a better response I'm trying to determine
locations based on the GPS coordinates to produce areas such as
streets, cities, parks, shopping centers, etc.  If something like this
already exists then I'd be more than happy to use it, but from what
I've seen searching around no such service exists for an Android
application.

-Ryan Loebs
--~--~-~--~~~---~--~~
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] Phone locked me out. Cannot access it at all.

2009-07-23 Thread Ryan Riopel

Today I was showing my HTC Dream to a friend, how the lock screen
works. I pressed the "forgot pattern" button, thinking I could go back
or just enter my credentials. Since that moment, I haven't been able
to access my phone at all. I can't go back to the pattern screen and I
can't log in. It just says Invalid username or password, no matter
what I do. My e-mail is ryanrio...@gmail.com and I've tried
ryanrio...@googlemail.com and just ryanriopel and none of it works. I
know the password is correct, but I can't login. I tried this on both
WiFi and Edge, and I've soft reset the phone several times now.

PLEASE 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] Re: android locked me out

2009-07-23 Thread Ryan Riopel

Same problem here. Tried gmail.com, googlemail.com and just my user
name. Cannot access my phone at all.

On Jun 22, 9:50 am, navarin  wrote:
> i just gotlockedoutby my g1. i shall enter my google login username
> and password, but they are not accepted, though they are correct (just
> logged in with them to write this). is this a known bug or how can i
> login again?

--~--~-~--~~~---~--~~
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] Phone locked me out. Cannot access it at all.

2009-07-23 Thread Ryan Riopel

Today I was showing my HTC Dream to a friend, how the lock screen
works. I pressed the "forgot pattern" button, thinking I could go back
or just enter my credentials. Since that moment, I haven't been able
to access my phone at all. I can't go back to the pattern screen and I
can't log in. It just says Invalid username or password, no matter
what I do. My e-mail is ryanrio...@gmail.com and I've tried
ryanrio...@googlemail.com and just ryanriopel and none of it works. I
know the password is correct, but I can't login. I tried this on both
WiFi and Edge, and I've soft reset the phone several times now.

PLEASE 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] In-App Billing

2011-06-20 Thread Ryan Mattison
Hello,

I'm currently looking at using the in-app billing process, and a few
things worry me.

On - http://developer.android.com/guide/market/billing/billing_overview.html

If your device is running Android 3.0, in-app billing requires version
5.0.12 (or higher) of the MyApps application. If your device is
running any other version of Android, in-app billing requires version
2.3.4 (or higher) of the Android Market application.

I'm running a relatively new Droid Incredible -- version of the Market
Place (2.2.6).  This doesn't appear to meet the requirements for In-
App billing.

On - 
https://www.google.com/support/androidmarket/developer/bin/answer.py?answer=190860

Selecting the upgrade Android Market link, it leads me to Page Not
Available.


...

This looks like a huge issue for people that are attempting to use the
InApp billing process.  It says that my Market is supposed to be
automatically keeping itself up-to-date -
https://market.android.com/support/bin/answer.py?answer=190860

My question being, what percent of Android Phones actually support the
InApp billing process?

Thanks,

Ryan

-- 
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] RemoteControlClient MetadataEditor and Bluetooth Metadata

2013-03-12 Thread Ryan Scodari
I am developing an android app for music playback,  I have implemented all 
the necessary components including Audio Focus management, Media Button 
Controls, as well as RemoteControlClient and MetadataEditor for the lock 
screen controls.  As I understand it, 
the RemoteControlClient.MetadataEditor should also provide Media Metadata 
to Bluetooth A2DP Audio Sink devices.  I have a car with a sound system 
that supports Bluetooth Media Metadata and it works with other apps on my 
phone, however it does not work with my app.  The lock screen controls 
function perfectly, and i have even tried using the 
RemoteControlClientCompat and RemoteControlHelper Classes from the Random 
Music Player Google Sample code.

Can anyone confirm that the RemoteControlClient.MetadataEditor is in fact 
how the Bluetooth Media Metadata is supposed to work?  If so, any ideas why 
the lock screen controls would function but the Bluetooth Media Metadata 
would not function?

thanks for the help.
-Ryan

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Android PDK

2013-03-18 Thread Ryan Loebs
I've been able to find the Android PDK 
on http://www.kandroid.org/online-pdk/guide/index.html but would like to 
know where I can find it directly from Google?  I've searched around and 
was able to find news articles talking about the PDK but apparently 
kandroid is the only place that actually hosts it.

Cheers,
-Ryan

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Android PDK

2013-03-18 Thread Ryan Loebs
Ah, nice find.  I wonder if they canned the idea or if it's become a 
private offering for OEM's?

On Monday, March 18, 2013 7:42:11 PM UTC-7, RichardC wrote:
>
> I can find:
>
> https://android.googlesource.com/platform/development/+/ics-mr1-release/pdk/
>
> but it's gone from:
> https://android.googlesource.com/platform/development/+/jb-mr0-release
>
> On Monday, March 18, 2013 9:46:39 PM UTC, Ryan Loebs wrote:
>>
>> I've been able to find the Android PDK on 
>> http://www.kandroid.org/online-pdk/guide/index.html but would like to 
>> know where I can find it directly from Google?  I've searched around and 
>> was able to find news articles talking about the PDK but apparently 
>> kandroid is the only place that actually hosts it.
>>
>> Cheers,
>> -Ryan
>>
>

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] How to make a screenshot with google map api v2 ????

2013-04-29 Thread Ryan Lee
Hi All,

i want to give a map image to another user via bluetooth.

so i'm done that displayed the map on my application using google map api 
v2.

but i can't get a screenshot it. :-(


according to i did google it, it's impossible to get it because api v2 is 
based on GL...

Are there anybody who know the way to get screenshot???


i also tried to use 'Surface.screenshot(int, int)' api.. but i faced the 
below error..

   The method screenshot(int, int) is undefined for the type 
Surface.

How can i get the screenshot??? please help me..

Thank you in advance.

Ryan.

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Same permission defined in multiple applications

2012-03-18 Thread Ryan Reeves
I am developing two applications that will share functionality via their 
activities. I would like to only allow applications signed with the same 
certificate to start these activities.

My plan is to create a custom permission with protection level of signature 
and apply that permission to exported activities in both applications. 
Either application can be installed first, so I will define the permission 
in both application manifests. 

Are there problems with defining the same permission in multiple 
applications?  I plan to release both applications on the Android market. 

Thank you,
Ryan

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

Re: [android-developers] Read Heap from DDMS

2012-07-10 Thread Ryan Hanna
Seems like I am getting the same thing on my Phonegap / JQM app. Mine is 
taking up 5.5MB which is killing my heap size and eventually as my app runs 
it will stop allowing sounds. 

Did anyone find any clues on this particular heap hog?

On Thursday, May 17, 2012 12:00:43 AM UTC-4, Ashwin Suresh wrote:
>
> Hi, 
>
> I have the same problem and a similar dominator tree.Did you guys find 
> a solution ??? 
>
> On Thursday, 2 February 2012 22:27:31 UTC-5, Dmitrij wrote:
>>
>> I have the same problem
>
>
> 
>  
>
> On Thursday, 2 February 2012 22:27:31 UTC-5, Dmitrij wrote:
>>
>> I have the same problem
>>
>>
>> 
>>
>

-- 
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] My Keystore has a blank password

2012-08-23 Thread Dylan Ryan
Hello, When I first released my application I used the built in android 
developer tools to generate a keystore with a blank password.  I now want 
to update my application, but the newer tools will not let me use a blank 
password.  Is there anything I can do about this?  I have tried to export 
my cert into a new keystore, but it still wants me to enter a password for 
the certificate.  I also tried changing the password, but the keytool.exe 
wont let me change the password if the previous password is under 6 chars.

Does anyone have any ideas?

Thank you,
Dylan

-- 
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] Lazy Loading

2011-12-15 Thread Ryan Mattison
Quality Image Lazy Loading Strategy -

http://www.ryangmattison.com/post/2011/12/15/AsynchronousImageProvider.aspx

-- 
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: Problem about passing intent between two activities

2011-12-15 Thread Ryan Mattison
Ditto.

On Dec 13, 5:01 am, Abhishek Chaudhari  wrote:
> unsubscribe my email id from this group please.
>
> 
>  From: SH 
> To: Android Developers 
> Sent: Monday, 12 December 2011 10:22 AM
> Subject: [android-developers] Problem about passing intent between two 
> activities
>
> Hi all.
>
> I have an app and fixing errors/bugs. But I have problem when
> NewPictureNote.java calls PhotoTaker.java using
> startActivityForResult() to take a photo and save. My code uses
> callback and put binary data into Intent to return to previous
> activity. Here is the code:
>
> //PhotoTaker.java
> public class PhotoTaker extends BetterDefaultActivity implements
> SurfaceHolder.Callback{
>
> //..
>
>    public void clickHandler(view v){
>         //.
>         Intent returningIntent = new Intent();
>         returningIntent.putExtra(EXTRA_IMAGE_DATA, jpegPictureData);
>         setResult(RESULT_OK,returningIntent);
>         finish();
>         break;
>     }
>
> }
>
> //NewPictureNote.java
> public class NewPictureNote extends BetterDefaultActivity {
> //
>
> protected void onActivityResult(int requestCode, int resultCode,
> Intent data) {
>         super.onActivityResult(requestCode, resultCode, data);
>
> try
>         {
>             //If we are getting a response from our picture taking activity
>             if(requestCode ==REQUEST_CODE_TAKE_IMAGE)
>             {
>                 //If it was successful
>                 if(resultCode == Activity.RESULT_OK)
>                 {
>                     //do something
>                 }
>                 else
>                 {
>                     //The user cancelled or an error occured
>                     setResult(Activity.RESULT_CANCELED);
>                     finish();
>                 }
>             } else {
>                               //...
>             }
>         }
>         catch (Throwable e) {
>                       //...
>         }
>
> }
>
> When I debug code, clickHandler() method in  PhotoTaker.java works
> well. It calls till the end of the clickHanlder() but the Activity
> won't close and onActivityResult() does not work. Please let me know
> what problem is? Thanks 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 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
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] Code Gen the 45 boring minutes after writing a layout.

2011-09-02 Thread Ryan Mattison
I wrote a eclipse plugin that recursively parses a selected XML file
and keeps track of all the nodes with IDs, then adds variable
declarations to your clipboard, so you can paste them into your
class.  I've type findViewById too many times and I'm sure others have
as well, so I'm looking for places to share.

To get the full picture: http://youtu.be/2t0c-x7HFJw

If you would like to use it: 
http://www.ryangmattison.com/post/2011/09/01/Lazy-Android.aspx

I feel like it is a tool that should have been integrated from the
beginning.

Ryan

-- 
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] Cure your android cancer

2011-09-08 Thread Ryan Mattison
Hi,

I'm surprised, I wrote a snippet tool to cure one of the 5,000 Android
cancer cells running through your veins.  Only a 50-100 downloaders.

http://marketplace.eclipse.org/node/113218

This should should feel like heroin.  Once a brilliant idea for an OS
now a garbage dump, get whatever you have to do done and get paid.   I
was a sandwich artist once, I made good sandwiches.

Ryan

-- 
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 maintain session in Android

2011-09-12 Thread Ryan Mattison
Hey Christopher,

There are a lot of ways.   Simplest is to extend application, set this
as your application in the manifest.   Then initialize a class with
getters setters to a
 hashlist.   Create an accessor in your application class.   When you
want to access this cast getApplication from an Activity or
Context.

Just typed this whole message in the Sense UI.   I want to throw this
phone at a  wall.


On Sep 12, 11:59 pm, christopher  wrote:
> hi
>
> I want to maintain user details using session in Android, Please tell
> me how to maintain session 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: How to use LocationListener without “implements LocationListener”?

2011-09-26 Thread Ryan Mattison
Nothing to see here...

On Sep 25, 12:16 pm, TreKing  wrote:
> On Sun, Sep 25, 2011 at 12:08 PM, saex  wrote:
> > i need to do it without implementing it, because i have to do a class
> > that doesn't implement methods.
>
> Um ... why?
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

-- 
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: standalone popup: UI question

2011-09-26 Thread Ryan Mattison
on)twoButtonDialog.findViewById(R.id.twobuttondialog_button_one);
 buttonTwo =
(Button)twoButtonDialog.findViewById(R.id.twobuttondialog_button_two);
 message =
(TextView)twoButtonDialog.findViewById(R.id.twobuttondialog_title);
}

public void showTwoButtonDialog(String buttonOneMessage, String
buttonTwoMessage, String Message, boolean linkify,
final onTwoButtonDialogShow commands)
{
buttonOne.setText(buttonOneMessage);
buttonTwo.setText(buttonTwoMessage);
message.setText(Message);
twoButtonDialog.show();


buttonOne.setOnClickListener(new OnClickListener()
{
public void onClick(View arg0)
{
if (commands != null) commands.onButtonOneClicked();
twoButtonDialog.dismiss();
}
});

buttonTwo.setOnClickListener(new OnClickListener()
{
public void onClick(View arg0)
{
if (commands != null) commands.onButtonTwoClicked();
twoButtonDialog.dismiss();
}
});

if(linkify)
{
Linkify.addLinks(message, Linkify.WEB_URLS);
}
}

public interface onTwoButtonDialogShow
{
void onButtonOneClicked();
void onButtonTwoClicked();
}


}
Now, to tie it all together whenever you want to use the popup you can
call the show snippet in the following snippet. This activity
TransparentDialogActivity was also setup to be transparent in the
Android Manifest, so it'll appear see through as the alarm activity
does.


public class TransparentDialogActivity extends Activity {
/** Called when the activity is first created. */

Context _context;

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

_context = this;


TwoButtonDialog tbd = new TwoButtonDialog(this);

tbd.showTwoButtonDialog("Off", "Snooze", "Take Alarm Action",
false, new onTwoButtonDialogShow(){

@Override
public void onButtonOneClicked() {
Toast.makeText(_context, "Off Button Pressed",
Toast.LENGTH_LONG).show();
finish();
}

    @Override
public void onButtonTwoClicked() {
Toast.makeText(_context, "Snooze Button Pressed",
Toast.LENGTH_LONG).show();
finish();
}});


}
Thanks for reading, if you found this helpful - please follow one of
the social networks above for future original tutorials.

To those that have been stealing my tutorials & open source and
posting it as their own, please don't follow!


Be the first to rate this post
12345
Tags: Alarm Dialog, Transparent Popup, Custom Dialog, Android, Ryan
Mattison, UX, User Interface, Learning Android, Android Tutorials

Thanks,

Ryan Mattison

On Sep 26, 1:37 pm, John Goche  wrote:
> Hello,
>
> I would like to know whether it is somehow possible
> to create a popup window which does not take up the
> whole display area. I am asking because I need to display
> a message when an alarm expires but do not want to resort
> to notifications because they seem to be squished in the top
> right corner of the phone and I think would make it hard to turn
> an alarm off it it were a notification. On the other hand bringing
> up an entire window could obfuscate other applications. I guess
> there is nothing like HP/Palm webOS's notification mechanism
> on android (there you can pop up a window and the users can
> still keep on interacting with whatever app they were using or
> close the popup window)???
>
> Regards,
>
> John Goche

-- 
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: standalone popup: UI question

2011-09-26 Thread Ryan Mattison
These forums have mad lag:

http://www.ryangmattison.com/post/2011/09/26/Android-Custom-Transparent-Dialog-Alarm-Style-.aspx

If it didn't go through before ... I made a post for you.

On Sep 26, 3:00 pm, Mark Murphy  wrote:
> On Mon, Sep 26, 2011 at 3:50 PM, John Goche  
> wrote:
> > This must indeed be what is happening in my case. When I setContentView()
> > there is a
> > TextVIew to hold the message which is empty. When I setText() on the message
> > view
> > it must push the button out of view. What I would need is to know how to
> > reset the
> > size of the window so that the message can fit inside it. Any ideas on what
> > methods
> > I can call to achieve such a purpose?
>
> I would suggest that perhaps instead you focus on designing a layout
> that provides more room for the text in the first place, then use
> android:ellipsize to handle cases where the text is too long.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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: standalone popup: UI question

2011-09-26 Thread Ryan Mattison
Sorry Mark,

Not sure what is up with Blog Engine .NET .. when I link the URL it
works locally, but seems to break when I put it on forums.  If you
navigate to
http://www.ryangmattison.com  and go to the first post, Android Custom
Transparent Dialog Alarm Style it should have all the information Mark
needs.

Thanks,

Ryan Mattison
http://www.ryangmattison.com

On Sep 26, 3:51 pm, Mark Murphy  wrote:
> On Mon, Sep 26, 2011 at 4:47 PM, Ryan Mattison  wrote:
> > These forums have mad lag:
>
> >http://www.ryangmattison.com/post/2011/09/26/Android-Custom-Transpare...
>
> > If it didn't go through before ... I made a post for you.
>
> I'm getting a 404 on that URL.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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: standalone popup: UI question

2011-09-26 Thread Ryan Mattison
Is there moderation time or something on these forums, why do posts
appear, go invisible, appear again.  Honestly, worlds greatest search
engine fails at forums.

http://www.ryangmattison.com/post/2011/09/26/Android-Custom-Transparent-Dialog-Alarm-Style-.aspx

Ryan Mattison

On Sep 26, 1:37 pm, John Goche  wrote:
> Hello,
>
> I would like to know whether it is somehow possible
> to create a popup window which does not take up the
> whole display area. I am asking because I need to display
> a message when an alarm expires but do not want to resort
> to notifications because they seem to be squished in the top
> right corner of the phone and I think would make it hard to turn
> an alarm off it it were a notification. On the other hand bringing
> up an entire window could obfuscate other applications. I guess
> there is nothing like HP/Palm webOS's notification mechanism
> on android (there you can pop up a window and the users can
> still keep on interacting with whatever app they were using or
> close the popup window)???
>
> Regards,
>
> John Goche

-- 
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: standalone popup: UI question

2011-09-26 Thread Ryan Mattison
Hey John,

The only way to learn a lot of stuff is to browse the Android source
tree (http://source.android.com/source/index.html)  I think the tree
is down right now.  This source code should be easily adaptable into a
ListView, I actually have an implementation of it in a project
ListViewDialog, but it isn't on this PC.

To me, it feels exactly like CSS doesn't work the same on all phones &
99% of the time it feels like a hack job getting something working
correctly :P.

If you're early into Android development, my tool is clutch in saving
your wrists:  
http://www.ryangmattison.com/page/Lazy-Android-Code-Gen-Android-findViewById-carpal-tunnel-syndrome-eclipse.aspx

All you need to do is drag and drop the eclipse install button into
your environment.  It has a youtube video explaining what to do.  This
will save you a lot of trial and error time.

Thanks,

Ryan

On Sep 26, 4:19 pm, John Goche  wrote:
> Hi Ryan,
>
> Thanks for posting the tutorial. I was indeed looking for something like
> that. Just
> that since I have one to N messages to display inside the popup I will have
> to
> include a listview in there and am not sure this will be possible (I don't
> know
> how long or how many messages I will have, even though this may sound
> somewhat odd.) I think your tutorial is going to be very helpful, by the
> looks
> of it it seems very well done.
>
> Thanks,
>
> John Goche
>
> P.S. Where did you learn about all the styling bits besides in the android
> developer docs
> and how far can this be taken when compared to an HTML/CSS solution like on
> webOS?
>
> On Mon, Sep 26, 2011 at 11:03 PM, Ryan Mattison wrote:
>
>
>
>
>
>
>
> > Is there moderation time or something on these forums, why do posts
> > appear, go invisible, appear again.  Honestly, worlds greatest search
> > engine fails at forums.
>
> >http://www.ryangmattison.com/post/2011/09/26/Android-Custom-Transpare...
>
> > Ryan Mattison
>
> > On Sep 26, 1:37 pm, John Goche  wrote:
> > > Hello,
>
> > > I would like to know whether it is somehow possible
> > > to create a popup window which does not take up the
> > > whole display area. I am asking because I need to display
> > > a message when an alarm expires but do not want to resort
> > > to notifications because they seem to be squished in the top
> > > right corner of the phone and I think would make it hard to turn
> > > an alarm off it it were a notification. On the other hand bringing
> > > up an entire window could obfuscate other applications. I guess
> > > there is nothing like HP/Palm webOS's notification mechanism
> > > on android (there you can pop up a window and the users can
> > > still keep on interacting with whatever app they were using or
> > > close the popup window)???
>
> > > Regards,
>
> > > John Goche
>
> > --
> > 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

-- 
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 do a Thread that only executes itself one time? (but continues alive)

2011-09-27 Thread Ryan Mattison
I think saex is looking for a producer / consumer model using a
LinkedBlockingQueue with Weak references, so he can read the settings
into a queue when they're available, but his application may not need
them until slightly later, and needs to aggregate the results.  Weak
reference would allow this stack to grow and garbage collect itself
for memory as needed - keeping as much relevant sensor history as
possible?

http://download.oracle.com/javase/6/docs/api/java/util/concurrent/LinkedBlockingQueue.html

This isn't a good start ...

new Thread()
{
   public void run()
   {
  sensorMan = (SensorManager)
getSystemService(Context.SENSOR_SERVICE);
 
sensorMan.registerListener(SensorListener,
sensorMan.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD),
SensorManager.SENSOR_DELAY_UI);
 
sensorMan.registerListener(SensorListener,
sensorMan.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
SensorManager.SENSOR_DELAY_UI);
   }
}.start();

On Sep 26, 10:41 am, Kristopher Micinski 
wrote:
> In most reality, using bare threads in Android also seems a bit
> contrived, there are a few more system appropriate utilities you might
> look into..
>
> Kris
>
>
>
>
>
>
>
> On Mon, Sep 26, 2011 at 11:35 AM, TreKing  wrote:
> > On Mon, Sep 26, 2011 at 10:25 AM, saex  wrote:
>
> >> It is for Augmented Reality App, i really need to use Threads for this, or
> >> the camera doesn't works properly
>
> > No, you really don't.
> > If you need help with the camera, try explaining what "doesn't works
> > properly" means, and why you think this "one off" thread is the solution.
>
> > --- 
> > --
> > TreKing - Chicago transit tracking app for Android-powered devices
>
> > --
> > 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

-- 
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 do a Thread that only executes itself one time? (but continues alive)

2011-09-27 Thread Ryan Mattison
:P :P :P

On Sep 26, 8:03 am, saex  wrote:
> Hi
>
> i need to put some listeners on a Thread (to optimize my app), then,
> the Thread should be executed one time, but it needs to continue
> alive, because the listeners have to be alive to listen for events.
>
> I tryed with this code, but this code gives me an EXCEPTION
> (java.lang.RuntimeException: Can't create handler inside thread that
> has not called Looper.prepare())
>
> new Thread()
> {
>    public void run()
>    {
>       sensorMan = (SensorManager)
> getSystemService(Context.SENSOR_SERVICE);
>                                    sensorMan.registerListener(SensorListener,
> sensorMan.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD),
> SensorManager.SENSOR_DELAY_UI);
>                                sensorMan.registerListener(SensorListener,
> sensorMan.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
> SensorManager.SENSOR_DELAY_UI);
>
>    }
>
> }.start();
>
> Then, i tryed adding Looper.prepare() and Looper.loop(), and it gives
> not exception, but it iterates, and i dont want to get the Thread
> iterating.
>
> How can i do a thread that only executes itself one time but continues
> alive?

-- 
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: Silence Alarms Based on Ringer Mode

2011-09-27 Thread Ryan Mattison
Hey Sycobob,

This varies a lot depending on weather you're using the 1.6, 2.1, or
2.2 SDK.  It is possible to use the 1.6 SDK and have successful
results on every phone, but it is very tedious.   If I could take it
all back, I'd wrote a different version for 1.6,2.1,2.2 and then
allowed anything 2.2+ fall into the 2.2 category when stability was
achieved.

I'd suggest looking into: 
http://developer.android.com/resources/articles/backward-compatibility.html
section - using a wrapper class.

This may only be true if you want to support 1.6 phones and beyond.  I
haven't approached testing 2.2 audio control build on a 1.6 phone, I'm
guessing it doesn't work 100%

Ryan Mattison
http://www.ryangmattison.com

On Sep 25, 2:00 pm, Sycobob  wrote:
> I'm writing a small application to silence alarms when the phone's
> ringer mode is set to vibrate or silent. Some phones have an option in
> the Clock app to enable or disable alarms when the phone is set to
> silent, but my Samsung Epic 4G Touch does not.
>
> I've tried using the AudioManager class to mute STREAM_ALARM when the
> ringer mode is changed, but it doesn't actually mute my alarms. I used
> both
>
> setStreamMute(int streamType, boolean state)
> setStreamVolume(int streamType, int index, int flags)
>
> and neither did the job. I'm wondering if someone can point me in the
> correct direction for muting alarms (preferably still allowing them to
> vibrate if they are set to). Can I maybe access the 'alarm in silent
> mode' setting that (I think) is built into Android, even if Samsung
> has hidden 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] Re: Do I need license for print screen from google maps (earth) ?

2012-05-02 Thread Ryan Groten
Try this page:

http://www.google.com/permissions/geoguidelines.html 

On Tuesday, May 1, 2012 1:32:46 AM UTC-6, Dusan wrote:
>
> I need use print screen from maps (earth) of some area and I need this 
> for public and comercial use. 
> Where I can buy license or rights for this part of map? 
> Who I should contact?

-- 
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 link Android project to another project within Eclipse

2012-05-02 Thread Ryan Groten
Hi there,

First off I'd better say I'm very new to this...So I have an Android 
project in Eclipse and I want to use a java object class from another 
project in it (this object class is shared between multiple projects). 
 From Eclipse I created a link to the .class file of the other project into 
the bin/classes/... folder in the android project.  Then I configured the 
other project in the java build path of my Android project.  I thought that 
was all there is to it, but seems like I'm missing something else.  I get 
"dalvik: Could not find class abc.example.common.DataBean', referenced from 
method..." error.
I'm pretty sure the link is setup properly.  

Is there a step I'm missing?

Thanks for your help,
Ryan

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

Re: [android-developers] How to link Android project to another project within Eclipse

2012-05-03 Thread Ryan Groten
Thanks for the response Jason.  Before I tried manual linking I did add the 
"Libraries" project from the Java Build Path -> Project tab.  After doing 
that the class imports properly and there are no errors when building my 
working project.  However when running the working project (and trying to 
call the "Library" class) I get a runtime exception:
java.lang.NoClassDefFoundError: com.example.common.DataBean


On Thursday, May 3, 2012 1:23:11 AM UTC-6, JTeagle wrote:
>
> >From Eclipse I created a link to the .class file of the other project 
> into 
> >the bin/classes/... 
> >folder in the android project.  Then I configured the other project in 
> the 
> >java build path 
> >of my Android project. 
>
> You shouldn't need to do any manual linking. Assuming the shareable class 
> is 
> in a project of its own (for example, called 'Libraries') and both that 
> project and your working project that needs to use the class are open in 
> the 
> same workspace, if you go to the Java Build Path and the Projects tab, 
> then 
> click Add, it should list your other project - check the Libraries project 
> and that should be it. 
>
> In fact, on the Windows version of Eclipse at least, if I simply refer to 
> the shared class in my project then Eclipse usually offers 'Fix project 
> setup' as an option for Red Wavy Line resolution - and it seems to know 
> the 
> Libraries project is the right project to include. 
>
>
>

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

Re: [android-developers] How to link Android project to another project within Eclipse

2012-05-03 Thread Ryan Groten
Maybe I should clarify what I'm trying to do here in case I'm going about 
it wrong...

I have a standard java server listening for connections from "clients"...in 
this case a client could be a straight java web client OR a android device 
client.  Because of this I have two separate projects (one for the java 
client, one for the android client).  Clients use sockets to pass java 
objects back and forth with the server...I want to be sending the SAME 
object to the server regardless of which client it comes from.  So I built 
an object class and attempted to link both client projects to it.  The java 
client works fine, but I can't figure out how to make the android client 
work with the object.  If I take that class and put it in the android 
project then the android client works...but the server then doesn't know 
what the object is and it dies.

Maybe I shouldn't be sending objects in the first place?

On Thursday, May 3, 2012 8:47:41 AM UTC-6, Ryan Groten wrote:
>
> Thanks for the response Jason.  Before I tried manual linking I did add 
> the "Libraries" project from the Java Build Path -> Project tab.  After 
> doing that the class imports properly and there are no errors when building 
> my working project.  However when running the working project (and trying 
> to call the "Library" class) I get a runtime exception:
> java.lang.NoClassDefFoundError: com.example.common.DataBean
>
>
> On Thursday, May 3, 2012 1:23:11 AM UTC-6, JTeagle wrote:
>>
>> >From Eclipse I created a link to the .class file of the other project 
>> into 
>> >the bin/classes/... 
>> >folder in the android project.  Then I configured the other project in 
>> the 
>> >java build path 
>> >of my Android project. 
>>
>> You shouldn't need to do any manual linking. Assuming the shareable class 
>> is 
>> in a project of its own (for example, called 'Libraries') and both that 
>> project and your working project that needs to use the class are open in 
>> the 
>> same workspace, if you go to the Java Build Path and the Projects tab, 
>> then 
>> click Add, it should list your other project - check the Libraries 
>> project 
>> and that should be it. 
>>
>> In fact, on the Windows version of Eclipse at least, if I simply refer to 
>> the shared class in my project then Eclipse usually offers 'Fix project 
>> setup' as an option for Red Wavy Line resolution - and it seems to know 
>> the 
>> Libraries project is the right project to include. 
>>
>>
>>

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

Re: [android-developers] How to link Android project to another project within Eclipse

2012-05-03 Thread Ryan Groten
Thanks Mark, this info (and the posts Jason sent) are very useful.

Originally I considered sending XML strings and building the objects on 
each end...however that still left me with the some issues:

1. Building an XML parser on each platform (unless I can link my android 
project to my already built java one somehow...doubtful)
2. Managing object classes in multiple locations

I think I will pursue this now though.

Now I know this is a dumb question but I'll ask anyways...but how do I put 
my object class into a separate JAR file?  I'm assuming there's no 
mechanism in Eclipse for this, I need to use ant?

Ryan

On Thursday, May 3, 2012 9:26:56 AM UTC-6, Mark Murphy (a Commons Guy) 
wrote:
>
> On Thu, May 3, 2012 at 11:20 AM, Ryan Groten wrote: 
> > I have a standard java server listening for connections from 
> "clients"...in 
> > this case a client could be a straight java web client OR a android 
> device 
> > client.  Because of this I have two separate projects (one for the java 
> > client, one for the android client).  Clients use sockets to pass java 
> > objects back and forth with the server...I want to be sending the SAME 
> > object to the server regardless of which client it comes from.  So I 
> built 
> > an object class and attempted to link both client projects to it.  The 
> java 
> > client works fine, but I can't figure out how to make the android client 
> > work with the object.  If I take that class and put it in the android 
> > project then the android client works...but the server then doesn't know 
> > what the object is and it dies. 
>
> Put the "object class" in a separate JAR, and use that JAR on both 
> your client and your server. 
>
> > Maybe I shouldn't be sending objects in the first place? 
>
> I would recommend you choose a platform-and-language-neutral, 
> easier-to-debug, easier-to-version on-wire encoding, such as JSON or 
> XML. Or, if you insist that it has to be binary, choose Apache Thrift 
> or Protocol Buffers. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Android Training...At Your Office: http://commonsware.com/training 
>

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

Re: [android-developers] How to link Android project to another project within Eclipse

2012-05-03 Thread Ryan Groten
Thanks Mark with your help I managed to get it running with an 
exported/imported jar.  Works like a charm!

On Thursday, May 3, 2012 10:18:15 AM UTC-6, Mark Murphy (a Commons Guy) 
wrote:
>
> On Thu, May 3, 2012 at 11:41 AM, Ryan Groten wrote: 
> > Now I know this is a dumb question but I'll ask anyways...but how do I 
> put 
> > my object class into a separate JAR file?  I'm assuming there's no 
> mechanism 
> > in Eclipse for this, I need to use ant? 
>
> You can export JARs from Eclipse: 
>
>
> http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftasks-33.htm
>  
>
> Or, if you are always going to use Eclipse, there's some mechanism of 
> creating dependent source projects -- I have never used that. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Android Training...At Your Office: http://commonsware.com/training 
>

-- 
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] Google Nexus loses battery while powered off

2012-06-04 Thread Ryan Schwartz
Hello,

In the past few weeks, and especially since the most recent system
update, I've had problems with my phone's battery. It will lose nearly
all of its charge when I power it off at night. Last night, I powered
it off at 90% charged and this morning when I turned it on, it was at
30%. This is now a typical problem, occurring every night.

Any thoughts to what might be causing this? Is there a process that
keeps running that I need to turn off? Or is possible that it is just
an issue with the battery?

-- 
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] Unlocking Bootloader for CDMA Xperia Play

2011-07-16 Thread Ryan A
Hello, Im sure you have been asked this question many times already
but like a lot of other Verizon CDMA Xperia Play owners, I am checking
the web, forums, and other places each day in hopes to finally see an
unlock for our bootloaders so root can be acheived. I am on my 3rd
Xperia Play and am having a very hard time enjoying this phone. My
first 2 went defective with different issues after a week or so. While
the current "Play" that I am using doesnt have any hardware issues
like the others, the software glitches, spotty wifi, and horrible lag
makes it such a dissapointment and I truly see so much potential.
Without being able to unlock bootloader soon I see no reason to keep
this phone much longer. Im not alone. Please tell me I can look
forward to a solution soon?? Thanks, Ryan

-- 
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: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.

2011-07-16 Thread Ryan A
Hello, Im sure you have been asked this question many times already but like 
a lot of other Verizon CDMA Xperia Play owners, I am checking the web, 
forums, and other places each day in hopes to finally see an unlock for our 
bootloaders so root can be acheived. I am on my 3rd Xperia Play and am 
having a very hard time enjoying this phone. My first 2 went defective with 
different issues after a week or so. While the current "Play" that I am 
using doesnt have any hardware issues like the others, the software 
glitches, spotty wifi, and horrible lag makes it such a dissapointment and I 
truly see so much potential. Without being able to unlock bootloader soon I 
see no reason to keep this phone much longer. Im not alone. Please tell me I 
can look forward to a solution soon?? Thanks, Ryan

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

Re: [android-developers] displaying internal PDF assets

2011-07-19 Thread Ryan Bastic
How can I reference these assets then using a file:// or similar syntax, so
that when starting them as an intent it will safely expose it to a PDF
viewer already installed on the device?

For instance, let's assume that I've got a Moto Droid 1 with Quickoffice
preinstalled. I'm using code like:

Uri path = Uri.parse("... what goes here???");

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(path, "application/pdf");


this.ctx.startActivity(intent);

It continuously has problems loading the file, claiming the file does not
exist.

On Tue, Jul 19, 2011 at 8:29 AM, Mark Murphy wrote:

> If they are "packaged in the app" (i.e., assets or raw resources),
> they are already exposed, as all such things are read-only to all
> applications on the device.
>
> On Mon, Jul 18, 2011 at 11:15 AM, rbastic  wrote:
> > I need to display a set of PDF files from within my Android
> > application. I'm trying to figure out the Android security system and
> > whether or not content providers will work. It seems that calling
> > grantUriPermission() would be a good idea, but I'm having problems
> > figuring that out.
> >
> > Do I need to get the list of available intents using something like
> > queryIntentActivities()? If so, how can I pull package names out of
> > the ResolveInfo object for passing to grantUriPermission()?
> >
> > Everything works fine if I push the PDF files to the sdcard, but that
> > is not desirable for security purposes. I would like to keep the PDFs
> > packaged inside the app and only expose access to them when necessary.
> >
> > --
> > 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
> >
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!
>
> --
> 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




-- 
Ryan Bastic
IT Specialist
Allen Resources, Inc.
http://www.AllenResources.com
1130 Ten Rod Road
Building E, Suite 101
North Kingstown, RI 02852
phone: 401-667-0487
fax: 401-667-0488

-- 
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] using the to hide DLC

2011-08-16 Thread Ryan Routon
Hey Guys,

1.  Quick question.  Our company is exploring different ways to
implement DLC and I see that there are basically two ways, using the
in app purchase model with our own server pushing the "content" as is
described here:

http://developer.android.com/guide/market/billing/billing_overview.html

2.  Or having the DLC offered as a separate app sold in the
marketplace that we then use from our main app.

My question is this,  if we pick the second option can we use the
 filter to prevent the user from seeing the add-ons
until they have the "main app" which would be the shared library we
use to filter against?  Are there any examples out there of others
implementing DLC in their apps?

thanks for any insight you might be able to offer,
Ryan

-- 
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: using the to hide DLC

2011-08-17 Thread Ryan Routon
Also, if anyone has a better solution for DLC your feedback would be
appreciated =).  This is a major issue for us since our main app is
more or less just a framework for adding additional content and games.

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


Re: [android-developers] using the to hide DLC

2011-08-17 Thread Ryan Routon
Thank you Mark, that is what I was worried about...

Does anyone know of any way to hide the downloadable content apps until the
main app is installed?  Some form of app dependency is what we were hoping
for, but it looks like there might be no way of actually implementing this
using filters.  We are worried that the user will try to get the
downloadable content before they have the Engine app adding to confusion
down the line.  Any ideas?

Kristopher, I found this other thread:

http://groups.google.com/group/android-developers/browse_thread/thread/1b78381b76bec33a/3b004c7ed2c2577a?lnk=gst&q=dlc#3b004c7ed2c2577a

where Dianne Hackborn said to "Just look for the other package by name with
the package manager.  Ensure
its cert is the one you expect to it can't be spoofed.  If you want it to
cary data about what features you are enabling or whatever, you can use
 tags under the application to supply whatever you want. "



On Wed, Aug 17, 2011 at 10:26 AM, Kristopher Micinski <
krismicin...@gmail.com> wrote:

> On Tue, Aug 16, 2011 at 6:50 PM, Ryan Routon  wrote:
> > Hey Guys,
> >
> > 1.  Quick question.  Our company is exploring different ways to
> > implement DLC and I see that there are basically two ways, using the
> > in app purchase model with our own server pushing the "content" as is
> > described here:
> >
> > http://developer.android.com/guide/market/billing/billing_overview.html
> >
> > 2.  Or having the DLC offered as a separate app sold in the
> > marketplace that we then use from our main app.
> >
> > My question is this,  if we pick the second option can we use the
> >  filter to prevent the user from seeing the add-ons
> > until they have the "main app" which would be the shared library we
> > use to filter against?  Are there any examples out there of others
> > implementing DLC in their apps?
> >
> > thanks for any insight you might be able to offer,
> > Ryan
> >
>
> Ryan,
>
> If I understand correctly, you're implementing a main app which is a
> framework for driving the other apps in your games.  So your main app
> is the game engine (or at least, something in that spirit), and the
> other apps are the things that use the engine, is this correct?
>
> If this is true and you went wit the second option -- that level of
> process separation, at least -- how do you intend for your game apps
> to hook up to your main app?  aidl?
>
> Kris
>
> --
> 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
>

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