[android-developers] Fast Scroll drag handle similar to Contacts ListView

2008-12-02 Thread Will Ryan

I have a ListView which contains over a thousand entries (sorted from
A to Z) and want to know how to scroll this quickly similar to how the
Contacts list can be scrolled quickly (by dragging the handle that
appears on the right hand side of the screen).

How can this be achieved? Is it an option for the view, or do I have
to implement it? Alternatively, is it possible to see the source of
the Contacts ListView as I could probably reuse that.

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] Re: ListActivity and progressbars?

2008-12-02 Thread Will Ryan

I also experienced a similar problem. This was resolved when I made
sure that the root activity was calling

 setProgressBarIndeterminateVisibility(true);

If you try to call this from Activities that have been loaded into
tabs for example (where the tabs are created as a separate Activity),
I found that it had no effect.

Maybe this will resolve the problem.

Will

On Nov 17, 1:06 pm, Guillaume Perrot [EMAIL PROTECTED]
wrote:
 Your code is quite strange because when you perform UI operations, it has to
 be on the main thread, so you normally have to use an Handler to post
 actions on the UI thread when you are in another thread.
 I am surprised it works.
 Plus I checked your CategoryList.java at google code, I didn't find any line
 related to the progress bar.

 2008/11/17 Randy McEoin [EMAIL PROTECTED]



  When I implemented a progress bar I had to place the processing I
  needed within a thread.  It looked something like the following:

        setProgressBarIndeterminateVisibility(true);

         myThread = new Thread(new Runnable() {
                 public void run() {
                         doProcessing();
                         setProgressBarIndeterminateVisibility(false);
                         }
                 });
         myThread.start();

  For full sourcehttp://code.google.com/p/android-passwordsafe/and
  look at CategoryList.java

  If I understand this all correctly, the reason your progress bar
  wasn't displayed was because your program was too busy doing the
  processing.  Thus the need for a thread.

  Randy



--~--~-~--~~~---~--~~
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] 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 BRBTonight's
weather in London/BBRA few evening showers Min 6C(43F )
BRProbability of rain: 89%BRMinimum Temperature: 6C(43F )BRWind
force Beaufort: 4BRWind description: Moderate BreezeBRWind
direction: SSWBRSunset 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) fred.gr...@gmail.com
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 ryankelly...@hotmail.com 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 = BRBTonight's weather in London/BBRA few evening
showers Min 6C(43F )BRProbability of rain: 89%BRMinimum
Temperature: 6C(43F )BRWind force Beaufort: 4BRWind description:
Moderate BreezeBRWind direction: SSWBRSunset 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 ryankelly...@hotmail.com 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 BRBTonight's
 weather in London/BBRA few evening showers Min 6C(43F )
 BRProbability of rain: 89%BRMinimum Temperature: 6C(43F )BRWind
 force Beaufort: 4BRWind description: Moderate BreezeBRWind
 direction: SSWBRSunset 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) fred.gr...@gmail.com
 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 ryankelly...@hotmail.com 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 mmur...@commonsware.com 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 = BRBTonight's weather in London/BBRA few evening
  showers Min 6C(43F )BRProbability of rain: 89%BRMinimum
  Temperature: 6C(43F )BRWind force Beaufort: 4BRWind description:
  Moderate BreezeBRWind direction: SSWBRSunset 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 mmur...@commonsware.com 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] 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:publisher

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 mobic...@gmail.com wrote:
 I know I can search one application from Android market by viewing the
 following URL:

 market://search?q=pname:package

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

 

ListString list;
ArrayAdapterString array;

list.add(Zero);
list.add(One);
list.add(Two);
list.add(Three);
array = new ArrayAdapterString
(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] 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:

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
android:versionCode=1 android:versionName=1.0.0
package=info.yoosefi.android.scout
application android:debuggable=true android:label=@string/
app_name
android:persistent=true android:icon=@drawable/icon
activity android:name=.scout 
android:label=@string/app_name
intent-filter
action 
android:name=android.intent.action.MAIN /
category 
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application
uses-permission android:name=android.permission.ACCESS_WIFI_STATE /

uses-permission android:name=android.permission.CHANGE_WIFI_STATE /

uses-permission
android:name=android.permission.ACCESS_NETWORK_STATE /
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION /
uses-permission android:name=android.permission.WRITE_OWNER_DATA /

/manifest

--~--~-~--~~~---~--~~
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 a...@funkyandroid.com 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 stoyan.da...@gmail.com wrote:
 On Thu, Mar 5, 2009 at 1:17 PM, admin.androidsl...@googlemail.com



 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] 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
#
studio.hansung.mobile.tools.ui.OnPressButton
xmlns:android=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; iattrs.getAttributeCount();i++) {
Log.d(tag, attrs value= + attrs.getAttributeValue(i));
Log.d(tag, attrs name= + attrs.getAttributeName(i));

params.put(attrs.getAttributeName(i),attrs.getAttributeValue(i));
}

if(params.containsKey(btn_up)) {
btn_up = (String)params.get(btn_up);
Log.d(tag, btn_up= + btn_up);
}

if(params.containsKey(btn_down)) {
btn_down = (String) params.get(btn_down);
Log.d(tag, btn_down= + btn_down);
}
}








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

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent 
ImageView
android:layout_width=wrap_content
android:layout_height=wrap_content
android:id=@+id/photo
/
/LinearLayout

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


[android-developers] 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 rgra...@gmail.com 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] 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 westmead...@yahoo.co.uk 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 reeeye...@gmail.com wrote:
 I have a simple layout:
 LinearLayout xmlns:android=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 lna...@gmail.com 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 ryan.yoos...@gmail.com 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 gurudut...@gmail.com 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
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
     android:orientation=vertical *android:id=landscape    *
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     ./LinearLayout

 sample.xml
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
     android:orientation=vertical *android:id=portrait    *
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     ./LinearLayout





 On Wed, Dec 30, 2009 at 8:59 AM, Ryan rgra...@gmail.com 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.comandroid-developers%2Bunsubs 
  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 fewe...@gmail.com 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 rgra...@gmail.com 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 gurudut...@gmail.com 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
   LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
       android:orientation=vertical *android:id=landscape    *
       android:layout_width=fill_parent
       android:layout_height=fill_parent
       ./LinearLayout

   sample.xml
   LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
       android:orientation=vertical *android:id=portrait    *
       android:layout_width=fill_parent
       android:layout_height=fill_parent
       ./LinearLayout

   On Wed, Dec 30, 2009 at 8:59 AM, Ryan rgra...@gmail.com 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.comandroid-developers%2Bunsubs
 cr...@googlegroups.comandroid-developers%2Bunsubs
  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.comandroid-developers%2Bunsubs 
  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 jeffrey.blatt...@gmail.com
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 rgra...@gmail.com 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.comandroid-developers%2Bunsubs 
 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] 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] 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 joachim.pfeif...@gmail.com 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 hunt1...@gmail.com 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 joachim.pfeif...@gmail.com 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 hunt1...@gmail.com 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 agnew...@gmail.com 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 joachim.pfeif...@gmail.com 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 hunt1...@gmail.com 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] 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] 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] 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) {

[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] 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 RelativeLayout.  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
ProgressBar 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 TextView 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] 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

[android-developers] Re: Fwd: SwfVideo file in webview overlapping StatusBar. Can someone help me

2011-08-24 Thread Ryan
Vivek Tamrakar vivek.gameshastra at gmail.com writes:

 
 
 -- Forwarded message --From: Vivek Tamrakar vivek.gameshastra
at gmail.com
 Date: Tue, May 31, 2011 at 6:36 PMSubject: SwfVideo file in webview
overlapping StatusBar. Can someone help meTo: android-developers at
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] Android using Pc's Internet over a USB connection

2008-12-13 Thread Ryan Hugo

Is it possible to use a USB connection to provide Android with
internet?
Can't seem to find a way on the web =\

--~--~-~--~~~---~--~~
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] Suggestions for Image Libraries to use on Android.

2009-01-09 Thread Ryan Moulton

I'm looking to develop an application for which I need to do
convolutions and the like on an image. I haven't done image processing
in Java before however, and stumbled upon the Java Advanced Image api.
The documentation for that however says that it isn't officially
supported on chipsets other than those for which there is an optimized
version which does not include the G1 or any phone processors that I'm
aware of. It's also a 3 mb jar which seems a bit thick for bundling
with something people will be downloading on their phone.

Does anyone have suggestions for what to use? If I can be reasonably
certain the JAI would work I'd be fine with using it, but is there a
better option? Has anyone tried doing something similar yet?

--~--~-~--~~~---~--~~
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: Suggestions for Image Libraries to use on Android.

2009-01-10 Thread Ryan Moulton

Thanks a ton, that's exactly the sort of thing I'm looking for.

On Jan 10, 2:32 am, ams163 shahbaz.kha...@gmail.com wrote:
 Maybe:

 http://code.google.com/p/jjil/

 http://code.google.com/p/jjil/wiki/SequencesAndLadders

 On Jan 9, 5:37 am, Ryan Moulton ryanmoul...@gmail.com wrote:

  I'm looking to develop an application for which I need to do
  convolutions and the like on an image. I haven't done image processing
--~--~-~--~~~---~--~~
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 

[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) roman.baumgaert...@t-
mobile.com 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,RyanBertiryanbertiw...@gmail.com 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
-~--~~~~--~~--~--~---



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


[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 romain...@android.com 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 ryanmoul...@gmail.com 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] 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


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 ryan.bees...@swypeinc.com 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 danra...@gmail.com wrote:
 yes that is correct.
 -Dan



 On Sun, Dec 6, 2009 at 1:05 AM, Thomas kuenne...@googlemail.com 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.comandroid-developers%2Bunsubs 
  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 lbco...@gmail.com 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 opgeno...@gmail.com 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 adse...@slbsoftware.com 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 
opgeno...@gmail.commailto:opgeno...@gmail.com wrote:
On Fri, Nov 27, 2009 at 18:35, Mark Murphy 
mmur...@commonsware.commailto: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.commailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.commailto: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 sylvain.guyoma...@altran.com 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] align infile.zip outfile.zip
   zipalign -c [-v] align infile.zip

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

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

LinearLayout android:orientation=horizontal
android:layout_width=wrap_content
android:layout_height=wrap_content

ListView android:id=@+id/android:list
  android:layout_width=wrap_content
android:layout_height=wrap_content/

/LinearLayout

LinearLayout android:orientation=horizontal
android:layout_width=fill_parent
android:layout_height=fill_parent
TextView android:id=@+id/android:empty
  android:layout_width=fill_parent
android:layout_height=fill_parent
android:text=No Notes!/

  /LinearLayout
/LinearLayout

__

list_row.xml
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
 android:layout_width=wrap_content
android:layout_height=wrap_content

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

TextView android:id=@+id/desc xmlns:android=http://
schemas.android.com/apk/res/android
android:layout_width=fill_parent
android:layout_height=wrap_content
/TextView
TextView android:id=@+id/locat xmlns:android=http://
schemas.android.com/apk/res/android
android:layout_width=fill_parent
android:layout_height=wrap_content/TextView
/LinearLayout

_

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

[android-developers] User selectable text in WebView

2010-08-12 Thread Ryan Tan
Hi, I am using a WebView to display some text. I want to allow the
users to be able to select a word (or even a character) and take some
action on it (for example, look up the dictionary).

So far, I have only found the following code that can enable text
selection in a WebView:

KeyEvent shiftPressEvent = new
KeyEvent(0,0,KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_SHIFT_LEFT,0,0);
shiftPressEvent.dispatch(myWebView);

The above code will trigger the text selection mode in a WebView and
copy the selected text automatically into the clipboard. However, I
have no idea how I can act on the selected text when it is copied into
the clipboard. Any ideas on how I can detect that some text is copied
into the clipboard and act on it (without user interaction)?

If not, are there any other ways that I can allow users to select a
character/word in the WebView and perform some operation on it?

Thank you for your ideas.

-- 
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: User selectable text in WebView

2010-08-12 Thread Ryan Tan
Dear Sarwar,

Thanks for your reply.

The problem I have is I don't know when the text is selected and
copied into the clipboard after firing the KeyEvent.

Thanks.

On Aug 12, 4:12 pm, Sarwar Erfan erfanonl...@gmail.com wrote:
 Use the ClipboardManager to get/set/manipulate the content in the
 clipboard.http://developer.android.com/reference/android/text/ClipboardManager

 Regards
 Sarwar Erfan

 On Aug 12, 12:13 pm, Ryan Tan ryantan...@gmail.com wrote:



  Hi, I am using a WebView to display some text. I want to allow the
  users to be able to select a word (or even a character) and take some
  action on it (for example, look up the dictionary).

  So far, I have only found the following code that can enable text
  selection in a WebView:

  KeyEvent shiftPressEvent = new
  KeyEvent(0,0,KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_SHIFT_LEFT,0,0);
  shiftPressEvent.dispatch(myWebView);

  The above code will trigger the text selection mode in a WebView and
  copy the selected text automatically into the clipboard. However, I
  have no idea how I can act on the selected text when it is copied into
  the clipboard. Any ideas on how I can detect that some text is copied
  into the clipboard and act on it (without user interaction)?

  If not, are there any other ways that I can allow users to select a
  character/word in the WebView and perform some operation on it?

  Thank you for your ideas.- 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: Subscription to HorizontalScrollView

2010-08-12 Thread Ryan Tan
Hi, maybe you can attach a simple SimpleOnGestureListener to the
HorizontalScrollView and override the onScroll method to act when
scrolling happens.

Sample (untested coding):

//Assuming that you have horizontalScrollView1 and
horizontalScrollView2 defined.

gestureDetector = new GestureDetector(new MyGestureDetector());
gestureListener = new View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
if (gestureDetector.onTouchEvent(event)) {
return true;
}
return false;
}
};

horizontalScrollView1.setOnTouchListener(gestureListener);

//Inside your activity, define a custom SimpleGestureListener
class MyGestureDetector extends SimpleOnGestureListener {

// Override the onScroll event to capture the coordinate
@Override
public abstract boolean onScroll (MotionEvent e1, MotionEvent e2,
float distanceX, float distanceY)
try {

// Capture the current positing of scrollView1
int scrollX = horizontalScrollView1.getScrollX;
int scrollY = horizontalScrollView1.getScrollY;

// Scroll scrollView2 to the same position
horizontalScrollView2.post(new Runnable() {
public void run() {
horizontalScrollView2.scrollTo(scrollX, 
scrollY);
}
});

} catch (Exception e) {
// nothing
}
return false;
}

}

On Aug 11, 10:10 pm, Thibaut aar...@gmail.com wrote:
 Hello,

 I'm trying to develop a scrollable dot chart to represent temporal
 events.

 There are 2 HorizontalScrollViews in my layout.
 I want the one above updates his position if the user changes the
 position of the one below.
 Is there any listener or anything else that can help me? I didn't find
 anything about that...

 Thanks in advance,

 Thibaut

-- 
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] Htc Legend as developer?

2010-08-25 Thread Ryan Curran
Hi, I recently got accepted to try out the app inventor but I was
wondering about the driver I will need to use my HTC legend as a test
phone. I have downloaded and installed htc sync which a lot of pages
on the web have suggested, but I was wondering if that is sufficient?
any help would be greatly appreciated, thank you

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


[android-developers] Bluetooth listening to the RFCOMM connection failed.

2010-08-26 Thread Ryan Wang
I am working on HTC Hero with 2.1 SDK on it. And a Bluetooth adapter
on PC only support OPP(Object Push Protocol), which I queried by my
blackberry. The adapter's program is written in VC 6.0. It only do
connect and send a file through the adapter.
I write something to listen the connection with the code below:
_server = BluetoothAdapter.listenUsingRfcommWithServiceRecord(OBEX,
MY_UUID);
_socket = _server.accept();

When the PC side connect and send the file. The accept method blocked
and got nothing. But the low level system get the file receive
indication which is displayed on the status bar. Why my listening
process don't work? Is it because of the wrong UUID?

I have changed the UUID with below values, but nothing better.
0008--1000-8000-00805F9B34FB (OBEX_PROTOCOL_UUID)
1105--1000-8000-00805F9B34FB (OBEXObjectPushServiceClass_UUID)
FF646F81-8DEF-1125-9449-00105A075F6D (which is written in the VC code
of the PC side)

I am a newbie of bluetooth part. Please give me some advice. Any
advice and try would be benefit. Thank you.

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


[android-developers] Re: Bluetooth listening to the RFCOMM connection failed.

2010-08-27 Thread Ryan Wang
One more thing. I am working for java app. The only api for bluetooth
is list in the SDK. I cannot call the internal package. and cannot use
javax.obex things.

-- 
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: Bluetooth listening to the RFCOMM connection failed.

2010-08-29 Thread Ryan Wang
The whole code I am using to implement the Obex protocol.
The bluetooth adapter on the PC side will connect to the phone. But
program is blocked in the accept() method. And I got nothing to
receive. Why??

_server =
BluetoothAdapter.getDefaultAdapter().listenUsingRfcommWithServiceRecord(HTC
Hero, MY_UUID);
_socket = _server.accept();
_server.close();
InputStream inputStream =
_socket.getInputStream();
OutputStream outputStream =
_socket.getOutputStream();
int read = -1;
byte[] bytes = new byte[2048];
ByteArrayOutputStream baos = new
ByteArrayOutputStream(bytes.length);
while ((read = inputStream.read(bytes)) != -1) {
baos.write(bytes, 0, read);
byte[] req = baos.toByteArray();
int op = req[0]  BIT_MASK;
switch (op) {
case OBEX_CONNECT:
outputStream.write(new byte[]
{(byte) OBEX_RESPONSE_OK, 0, 7, 16, 0, 4, 0 });
break;

case OBEX_DISCONNECT:
outputStream.write(new byte[]
{(byte) OBEX_RESPONSE_OK, 0, 3, 0 });
break;

case OBEX_PUT:
outputStream.write(new byte[]
{(byte) OBEX_RESPONSE_CONTINUE, 0, 3, 0 });
break;

case OBEX_PUT_END:
outputStream.write(new byte[]
{(byte) OBEX_RESPONSE_OK, 0, 3, 0 });
break;

default:
outputStream.write(new byte[]
{(byte) OBEX_RESPONSE_OK, 0, 3, 0 });
}
baos = new
ByteArrayOutputStream(bytes.length);
}

-- 
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] generating keypress

2010-04-27 Thread Ryan, Nguyen
I developed an application to generate keypress. I find out that we
can use Instrumentation object to generate. However, when I run the
following code, I got these errors.

04-27 16:12:16.720: ERROR/AndroidRuntime(4406): Caused by:
java.lang.RuntimeException: This method can not be called from the
main application thread
04-27 16:12:16.720: ERROR/AndroidRuntime(4406): at
android.app.Instrumentation.validateNotAppThread(Instrumentation.java:
1427)
04-27 16:12:16.720: ERROR/AndroidRuntime(4406): at
android.app.Instrumentation.sendKeySync(Instrumentation.java:857)
04-27 16:12:16.720: ERROR/AndroidRuntime(4406): at
android.app.Instrumentation.sendKeyDownUpSync(Instrumentation.java:
871)

Please help. All answers are appreciated.

@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}

@Override
protected void onStart() {
// TODO Auto-generated method stub
super.onStart();

//press key
Instrumentation inst = new Instrumentation();
inst.sendKeyDownUpSync(KeyEvent.KEYCODE_1);

}

@Override
protected void onStop() {
// TODO Auto-generated method stub
super.onStop();
}

-- 
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: bluetooth - IOException: Connection refused

2010-04-28 Thread Ryan DeVore
I'm working with off the shelf SPP device (bluetooth 2.1), and am
running into a similar issue.  When I attempt to connect, I'm getting
the same Connection refused exception.  One thing i've noticed is that
if I manually unpair and re-pair my device via the built in settings,
I'm able to connect one time, and then it gets back to the connection
refused error after that.  I'm using a Nexus One.

On Apr 21, 2:18 am, Nand nandithab...@gmail.com wrote:
 Hi,
 I'm able to discover devices which rbluetoothON from my application.
 But when i try to connect using the Bluetoothsocket's connect()
 method, I'm getting an IOException: Connection refused.
 I'm using the following UUID
 private static final UUID MY_UUID =
 UUID.fromString(1101--1000-8000-00805F9B34FB);

 Please help in solving this issue.

 Thanks in advance,
 Nand

 --
 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] Re: Bluetooth pairing request

2010-04-28 Thread Ryan DeVore
I'm interested in this topic as well.  I'm new to Android development,
but am working on an app that will connect to an off the shelf Serial
Port Profile device.

When my code attempts to connect to an unpaired device, the only thing
I see on screen is the notification at the top of the device.  I then
have to pull the menu down and click on it in order to get to the
dialog to enter the pairing code.

I hope there is a way around this, as this will make the android
solution very unusable for our users.

On Apr 21, 9:14 pm, Nand nandithab...@gmail.com wrote:
 Hi,
 Did you get the solution for your problem? Even I want to do the same.
 Please reply.

 Regards,
 Nand

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

2010-06-30 Thread Ryan Hammill
Hi, how is it that we don't have Google Chrome on android yet? And do
you know when froyo is out on HTC LEGEND?

Thanks
Ryan Hammill

-- 
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: Error in an XML file eclipse

2010-07-02 Thread Ryan Cook
I am also having this issue on multiple machines. It was working
before, and I think it stopped working (and started giving error)
after I upgraded to Helios (3.6).
I also tried removing all the strings entries from the file then
adding them through the GUI interface; it adds them with the same
format that and everything, but, if I hit save, close it, and then re-
open it, I get the same error.

My Setup
==
OS: Windows XP Pro SP3 32bit
Eclipse: Helios (3.6.0.I20100608-0911)
ADT: 0.9.7.v201005071157-36220
Android SDK Tools: r6
Platform SDK: 2.1-update1, API 7, r2
Java: 6 Update 20

Error Details
==
Problems occurred when invoking code from plug-in:
org.eclipse.jface.

java.lang.NullPointerException
at
org.eclipse.wst.xml.core.internal.document.ElementImpl.getDefaultValue(ElementImpl.java:
259)
at
org.eclipse.wst.xml.core.internal.document.ElementImpl.getAttributeNS(ElementImpl.java:
329)
at
com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.getShortDescription(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.editors.ui.tree.UiModelTreeLabelProvider.getText(Unknown
Source)
at
org.eclipse.jface.viewers.WrappedViewerLabelProvider.getText(WrappedViewerLabelProvider.java:
108)
at
org.eclipse.jface.viewers.WrappedViewerLabelProvider.update(WrappedViewerLabelProvider.java:
164)
at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:
152)
at
org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:
934)
at org.eclipse.jface.viewers.AbstractTreeViewer
$UpdateItemSafeRunnable.run(AbstractTreeViewer.java:102)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at
org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:
1014)
at org.eclipse.jface.viewers.StructuredViewer
$UpdateItemSafeRunnable.run(StructuredViewer.java:481)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at
org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:
2141)
at
org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeViewer.java:
2689)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:
1867)
at
org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:
721)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:
1842)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:
1799)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:
1785)
at org.eclipse.jface.viewers.StructuredViewer
$7.run(StructuredViewer.java:1487)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:
1422)
at
org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:
403)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:
1383)
at
org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:
1485)
at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:
537)
at
org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:
1444)
at com.android.ide.eclipse.adt.internal.editors.ui.tree.UiTreeBlock
$2.uiElementNodeUpdated(Unknown Source)
at
com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.invokeUiUpdateListeners(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.loadFromXmlNode(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.editors.resources.ResourcesEditor.xmlModelChanged(Unknown
Source)
at com.android.ide.eclipse.adt.internal.editors.AndroidEditor
$XmlModelStateListener.modelChanged(Unknown Source)
at
org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.fireModelChanged(AbstractStructuredModel.java:
553)
at
org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.internalModelChanged(AbstractStructuredModel.java:
887)
at
org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.changedModel(AbstractStructuredModel.java:
382)
at
org.eclipse.wst.xml.core.internal.document.DOMModelImpl.changedModel(DOMModelImpl.java:
167)
at org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel
$DocumentToModelNotifier.nodesReplaced(AbstractStructuredModel.java:
152)
at
org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:

[android-developers] Why FileOutputStream cannot effect immediately

2010-07-21 Thread Ryan Wang
We made a special device just look like a T-flash card. The program
need to communicate with the device by the files. If we write
something in a.txt, the COS run in the T-card like thing will write
something in b.txt to answer. Here is the problem. If I use code like:

FileOutputStream fOutputS = null;
try {
fOutputS = new FileOutputStream(hSTART);
fOutputS.write(DataTmp);
} catch (Exception e) {
errorCode = ERRORINFO.WRITE_FILE_ERROR;
DataLength = 0;
} finally {
if(fOutputS != null) {
try {
fOutputS.flush();
fOutputS.close();
} catch (Exception e) {
}
}
}

No error info return. And when I use the mobile app file explorer I
can see the file do changed. But the COS give no answer. And if I
unplug the card and connect to PC. I can see the file DIDNOT change at
all. Why this issue happens? Because the FileOutputStream is buffer in
the memory? and try to reduce the card write time?

How can I write the file phisically immediately? Please please, It's
so emergency. Otherwise we must cancel the whole project.

-- 
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: Why FileOutputStream cannot effect immediately

2010-07-21 Thread Ryan Wang
I have found the way to solve this problem.
Add a force sync after call the flush function. Now it's working
great.
Code is here:
fd = fOutputS.getFD();
fd.sync();


On 7月20日, 下午5时16分, Ryan Wang wangrm1...@gmail.com wrote:
 We made a special device just look like a T-flash card. The program
 need to communicate with the device by the files. If we write
 something in a.txt, the COS run in the T-card like thing will write
 something in b.txt to answer. Here is the problem. If I use code like:

 FileOutputStream fOutputS = null;
 try {
 fOutputS = new FileOutputStream(hSTART);
 fOutputS.write(DataTmp);} catch (Exception e) {

 errorCode = ERRORINFO.WRITE_FILE_ERROR;
 DataLength = 0;} finally {

 if(fOutputS != null) {
 try {
 fOutputS.flush();
 fOutputS.close();
 } catch (Exception e) {
 }
 }

 }

 No error info return. And when I use the mobile app file explorer I
 can see the file do changed. But the COS give no answer. And if I
 unplug the card and connect to PC. I can see the file DIDNOT change at
 all. Why this issue happens? Because the FileOutputStream is buffer in
 the memory? and try to reduce the card write time?

 How can I write the file phisically immediately? Please please, It's
 so emergency. Otherwise we must cancel the whole project.

-- 
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: PopupWindow - controlling size?

2010-07-23 Thread Ryan Tan
You can set the height and width of the PopupWindow to a non-absolute
value by referencing the anchor view's width and height.

On Jun 10, 5:32 pm, AMGG axel...@gmail.com wrote:
 I have exactly the same problem... did you finally found some
 solution?
 Thx

 On May 27, 8:17 pm, Nathan critter...@crittermap.com wrote:



  I've experimented with aPopupWindow, but don't have a very good way
  of controlling its size. It only responds to absolute pixels.

  I've tried doing this:

  popup.setWindowLayoutMode(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTE 
  NT);

  But it doesn't work. If I don't use setWidth() and setHeight(), it
  doesn't show up at all, presumably becausewidthand height are zero.
  If I do setWidthand Height, it will use those exact numbers. It
  won't size to the size of the contentView.

  Therefore, I am stuck with setting thewidthand height as absolute
  pixels, not even adjusted to resolution.

  This is using:
                  popup.showAtLocation(view,Gravity.TOP | Gravity.LEFT, 
  cornerx,
  cornery);

  I see different, but also incorrect behavior when using
                  popup.showAsDropDown();
  It actually did seem to scale properly in the vertical direction, but
  took up the entire screen in the horizontal direction.

  I can't exactly base the size on the contentView's size because this
  the contentView size is zero until it has been shown at least once.

  Can anyone who has used PopupWindows give me some hints on it's
  sizing? Google Maps seems to use them fine on my G1, but I don't know
  how they are controlling the size.

  Nathan- 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] PopupWindow and scrolling

2010-07-23 Thread Ryan Tan
Hi there,

I have a PopupWindow and on it, I have a TextView that is scrollable
(having property of android:scrollbars = vertical and
mPopupTextView.setMovementMethod(new ScrollingMovementMethod());).

The problem is when I tried scrolling the TextView, the scrollbar
moves but the text doesn't.

I tried wrapping the TextView inside a ScrollView and the same
behaviour occurs. Seems like something to do with the PopupWindow.

Anyone encountered this before and have a solution?

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


[android-developers] I would like to be able to buy an app for a friend

2010-07-27 Thread Ryan IT Lab
I know this was brought up in this post: http://goo.gl/lBwE
But I would really like to be able to buy an app for someone.

A Girl I am dating just recently purchased a droid eris on my
suggestion -
She upgraded to 2.1 a couple days ago and lost the ability to forward
certain numbers to voicemail automatically

I would like to buy her an app that does that function, but the only
way to do that is to either give her my CC info - or spend a bunch of
time with her phone, adding my CC, buying the app, then removing my CC

There really needs to be a better way of doing this.

Any ideas app people??

If you know of something, feel free to email me from my google
profile : http://www.google.com/profiles/ryanitlab

I am also on buzz if you would like to chat about app ideas.

-- 
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: Gift apps page for android

2010-07-27 Thread Ryan IT Lab
I would like to see this functionality as well.

I have someone I want to buy an app for, and I don't want to just hand
over my CC credentials.

There has to be a way to do this!!

On Jul 12, 3:40 pm, papagato das...@delartepr.com wrote:
 Exits aGiftPage to pay for apps aand sent the app to my friends??

 Iphone have this mode in the AppStore but I dont know if Android have
 it.

 Thanks for your time.

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


[android-developers] read contacts from the phone into our application

2010-07-29 Thread Ryan, Nguyen
Hi,

I got one problem when I try to read the contacts on Android phone.
If I don't sync my local contacts (local being the contacts stored
on my phone) with my gmail contacts, I cannot read any contact from
local contacts. However, if I sync my my local contacts with my
gmail account, I can read all the contacts.
Anyone know how to fix the problem. How to read my local contacts
without sync

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] Gmail Public Intent

2010-09-24 Thread Ryan Mattison
Is their a way to get at a GMail provider without screwing the user
into two different sets of pulls from the email server?   Is there a
Gmail content provider?  Are there public Intents fired by the Gmail
application.


The Gmail application is funky to use.  Instead you force a developer
to write a secondary system, doing the same work another application
is already doing.  This work consists of network connections, battery
drain.

Why can't I uninstall Facebook off my nexus without rooting, this is
sinful.  Forced Facebook, Can't uninstall the GMail application, No
Gmail Content Provider .. I'm sure there is an easy way to make this
secure !  This shows where Google is going

Option A: Allow users to delete Gmail.
Option B: Securely make the data available to outside applications.

Last, has anyone been able to get rid of Facebook without having to
root?

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: Is it possible to merge dex files?

2010-09-24 Thread Ryan Mattison
No idea, but what is the APK file size?

On Sep 24, 10:46 am, gbear chris.regni...@gmail.com wrote:
 Hello,

 I'm wondering if anyone has come up with a way to merge multiple dex
 files into one.  Or if anyone can point me in the proper direction (or
 am I just going to have to write the tool myself?)

 Use case:
 I have a very large app that I'm trying to put on android.  We're
 talking about tens of thousands of classes here.
 The app is split up into multiple components/projects/libraries.
 The build time for this is horrendous thanks to the conversion to dex!
 Anywhere from 5-10 mins on a dual core 3ghz with 4 gigs of ram.
 Debugging and one line changes are becoming a nightmare!
 There's obviously no need to build most of the libraries every time.
 So I'd like to only build the ones that have changed, and then merge
 all the separate dex files.

 Any help would be appreciated!
 Thanks

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


[android-developers] Re: How to remove a notification with flag FLAG_NO_CLEAR ?

2010-09-24 Thread Ryan Mattison
public class SuperActivity extends Activity
{

@override
public Context getApplicationContext()
{
throw new STOPIT();
}

public class STOPIT extends Exception
{
...
getMessage()
{
return WTF DUDE, we discussed this
}
}

}


public class SuperActivity extends Activity
{
 onCreate

}

On Sep 24, 11:39 pm, TreKing treking...@gmail.com wrote:
 On Wed, Sep 22, 2010 at 9:41 PM, Nikhil nik...@superfacts.org wrote:
  why is that?

 The big reason is that there are UI-related functions that take Contexts but
 really expect Activities and if you use getApplicationContext() instead of
 your Activity as the Context for, say, creating a dialog, your app breaks.
 Search this group for getApplicationContext and you will find post after
 post of people running into this problem.

 Unfortunately, people keep falling into this trap because that's what's
 shown on the documentation samples for creating dialogs even though it is
 blatantly wrong, has been brought up repeatedly on this group, and would
 take about 5 seconds to fix.

 In other places where you don't need the UI it would work but it's
 completely unnecessary and redundant since getApplicationContext() is a
 member of the Context class, so anywhere you can use it implies you are
 already in or have access to a context anyway, so there's hardly a point to
 making the extra function call.

 I pretend that function doesn't exist.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/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: How to remove a notification with flag FLAG_NO_CLEAR ?

2010-09-24 Thread Ryan Mattison
Below works to help yourself through!

public class SuperActivity extends Activity
{
@override
public Context getApplicationContext()
{
throw new STOPIT();
}

public class STOPIT extends Exception
{
...
getMessage()
{
return WTF DUDE, we discussed this
}
}
}

public class FunctionalActivity extends SuperActivity
{
 onCreate
}

On Sep 24, 11:39 pm, TreKing treking...@gmail.com wrote:
 On Wed, Sep 22, 2010 at 9:41 PM, Nikhil nik...@superfacts.org wrote:
  why is that?

 The big reason is that there are UI-related functions that take Contexts but
 really expect Activities and if you use getApplicationContext() instead of
 your Activity as the Context for, say, creating a dialog, your app breaks.
 Search this group for getApplicationContext and you will find post after
 post of people running into this problem.

 Unfortunately, people keep falling into this trap because that's what's
 shown on the documentation samples for creating dialogs even though it is
 blatantly wrong, has been brought up repeatedly on this group, and would
 take about 5 seconds to fix.

 In other places where you don't need the UI it would work but it's
 completely unnecessary and redundant since getApplicationContext() is a
 member of the Context class, so anywhere you can use it implies you are
 already in or have access to a context anyway, so there's hardly a point to
 making the extra function call.

 I pretend that function doesn't exist.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/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: Linkify and Context Menu

2010-09-25 Thread Ryan Mattison
I think I went down this road like 2 years ago and ended up doing
something crazy/dumb like using a web view.  Instead of startActivity
you could do pop ups and just feed the web view the text.   A little
css might be needed : /   If you are stuck this may work for u.  Use
the Linkify to add tel: to the front of your phone numbers.   Garbage
code, but sometimes o well.
private static final String mimetype = text/html;
private static final String encoding = UTF-8;
private string newIncoming
WebView mWebDesc =
(WebView)findViewById(R.id.webView_paragraph_termsAndConditions);
mWebDesc.loadDataWithBaseURL(fake://FAKEADDRESS/FAKE/, newIncoming,
mimetype, encoding, fake://FAKEADDRESS/FAKE/);

mWebDesc.setWebViewClient(new WebViewClient()
{
@Override
public boolean 
shouldOverrideUrlLoading(WebView view,
String url)
{
  if (url.startsWith(http))
  {

  startActivity(new 
Intent(Intent.ACTION_VIEW,
Uri.parse(url)));

  }
  else if(url.startsWith(tel:))
  {
  startActivity(new 
Intent(Intent.ACTION_DIAL,
Uri.parse(url)));
  }
  return true;
}
});

On Sep 23, 1:12 am, jithin syam ms danijanuv...@gmail.com wrote:
 As part of my project I need to create TextView that contains
 message ,in which all phone numbers are linkified.
 I could do it. But my need is to create a context menu on that
 link.That is when I hold that link I need a context menu appears with
 many options. 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: Launch application from url

2010-09-25 Thread Ryan Mattison
intent-filter
data android:scheme=lol.haha.scheme /
action android:name=android.intent.action.VIEW /
/intent-filter


a href=lol.haha.scheme://pass/here


On Sep 24, 9:50 am, AnasSamara anas86sam...@gmail.com wrote:
 Hello All
 Any one knows how to launch certain application in my android from URL
 send via email or SMS.
 I mean if I have an SMS:

 Http://GOOGLE.COM
 then I am able to click on it so the browser opened with that URL.

 the same thing I want, so when clicking a URL gotten from email or SMS
 like:
 appName://arguments.to.be.passed

 the appName application launched and those arguments passed to the
 first activity of the application.

 any help is appreciated.

 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 at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Integrating Proguard using recently posted instructions

2010-09-26 Thread Ryan Mattison
Can't for the life of me get this stuff to work.  It looks like it is
trying to combine folders or something?


 [proguard] ProGuard, version 4.5.1
 [proguard] Reading input...
 [proguard] Reading program jar [C:\Android\AndroidWorkspace
\GeoTextXandy\Die\ob
f\original.jar]
 [proguard] Reading library jar [C:\Android\AndroidWorkspace
\GeoTextXandy\Die\li
bs:C:\Android\android-sdk_r05-windows\android-sdk-windows\platforms
\android-7\an
droid.jar]

BUILD FAILED
C:\Android\AndroidWorkspace\GeoTextXandy\Die\build.xml:92: Can't read
[C:\Androi
d\AndroidWorkspace\GeoTextXandy\Die\libs:C:\Android\android-sdk_r05-
windows\andr
oid-sdk-windows\platforms\android-7\android.jar] (No such file or
directory)

Total time: 2 seconds


Any ideas?!

On Sep 23, 1:40 am, Stephen Lau st...@grommit.com wrote:
 akatka wrote:
  I am integrating Proguard obfuscation in my application using the
  recently posted instructions on the Android developers blog.
  Everything works fine as long as my project doesn't use any third
  party jars. When I use a third party jar, admob-sdk-android.jar in my
  case, the ant release step fails with this warning

    [proguard] Initializing...
    [proguard] Warning: com.pqrs.XYZ: can't find referenced class
  com.admob.android.ads.AdManager
    [proguard] Warning: com.pqrs.XYZ: can't find referenced class
  com.admob.android.ads.AdManager
    [proguard] Warning: there were 2 unresolved references to classes or
  interfaces.
    [proguard]          You may need to specify additional library jars
  (using '-libraryjars').

  BUILD FAILED
  D:\testandroid\eclipseworkspace\MyProj\add-proguard-release.xml:38:
  Please correct the above warnings first.

  Where do I specify the list of third party jars so that the proguard
  can find those while the obfuscation step?

 change the -libraryjars line in add-proguard-release.xml to look like:

      -libraryjars ${external.libs.dir}:${libraryjarpath}

 and you should be all set

 cheers,
 steve

 --
 stephen lau | st...@grommit.com |http://whacked.net| @stevel

-- 
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: Integrating Proguard using recently posted instructions

2010-09-27 Thread Ryan Mattison
I still have an issue, please help!  add-proguard-release.xml:31 is
where it occurs.   I'm eating a candy bar every hour until this is
resolved!  Please save my health 

   [echo] Signing final apk...
  [signjar] Signing JAR: C:\Android\AndroidWorkspace\GeoTextXandy\Die
\bin\Geo
t-unsigned.apk to C:\Android\AndroidWorkspace\GeoTextXandy\Die\bin
\GeoText-un
gned.apk as speaksms
 [echo] Running zip align on final apk...
 [echo] Release Package: C:\Android\AndroidWorkspace\GeoTextXandy
\Die\bin
oText-release.apk

BUILD SUCCESSFUL
Total time: 9 seconds
C:\Android\AndroidWorkspace\GeoTextXandy\Die

Without add-proguard-release;

With it,

C:\Android\AndroidWorkspace\GeoTextXandy\Dieant release
Buildfile: C:\Android\AndroidWorkspace\GeoTextXandy\Die\build.xml
[setup] Android SDK Tools Revision 7
[setup] Project Target: Google APIs
[setup] Vendor: Google Inc.
[setup] Platform Version: 2.1-update1
[setup] API level: 7
[setup]
[setup] --
[setup] Resolving library dependencies:
[setup] --
[setup] Ordered libraries:
[setup] --
[setup]
[setup]
[setup] Importing rules file: tools\ant\ant_rules_r3.xml

-set-release-mode:

-dirs:
 [echo] Creating output directories if needed...

-pre-build:

-resource-src:
 [echo] Generating R.java / Manifest.java from the resources...

-aidl:
 [echo] Compiling aidl files into Java classes...

-pre-compile:

compile:
[javac] C:\Android\android-sdk_r05-windows\android-sdk-windows
\tools\ant\an
_rules_r3.xml:336: warning: 'includeantruntime' was not set,
defaulting to buil
.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to C:\Android\AndroidWorkspace
\GeoTextXandy
Die\bin\classes

-dex-obfuscate:
   [delete] Deleting: C:\Android\AndroidWorkspace\GeoTextXandy\Die\obf
\original
jar
  [jar] Building jar: C:\Android\AndroidWorkspace\GeoTextXandy\Die
\obf\orig
nal.jar
 [proguard] ProGuard, version 4.5.1
 [proguard] Reading input...
 [proguard] Reading program jar [C:\Android\AndroidWorkspace
\GeoTextXandy\Die\o
f\original.jar]
 [proguard] Reading library jar [C:\Android\AndroidWorkspace
\GeoTextXandy\Die\l
bs:C:\Android\android-sdk_r05-windows\android-sdk-windows\platforms
\android-7\a
droid.jar]

BUILD FAILED
C:\Android\AndroidWorkspace\GeoTextXandy\Die\add-proguard-release.xml:
31: Can't
read [C:\Android\AndroidWorkspace\GeoTextXandy\Die\libs:C:\Android
\android-sdk_
05-windows\android-sdk-windows\platforms\android-7\android.jar] (No
such file o
 directory)

Total time: 2 seconds


On Sep 26, 3:25 pm, Ryan Mattison rmattis...@gmail.com wrote:
 Can't for the life of me get this stuff to work.  It looks like it is
 trying to combine folders or something?

  [proguard] ProGuard, version 4.5.1
  [proguard] Reading input...
  [proguard] Reading program jar [C:\Android\AndroidWorkspace
 \GeoTextXandy\Die\ob
 f\original.jar]
  [proguard] Reading library jar [C:\Android\AndroidWorkspace
 \GeoTextXandy\Die\li
 bs:C:\Android\android-sdk_r05-windows\android-sdk-windows\platforms
 \android-7\an
 droid.jar]

 BUILD FAILED
 C:\Android\AndroidWorkspace\GeoTextXandy\Die\build.xml:92: Can't read
 [C:\Androi
 d\AndroidWorkspace\GeoTextXandy\Die\libs:C:\Android\android-sdk_r05-
 windows\andr
 oid-sdk-windows\platforms\android-7\android.jar] (No such file or
 directory)

 Total time: 2 seconds

 Any ideas?!

 On Sep 23, 1:40 am, Stephen Lau st...@grommit.com wrote:



  akatka wrote:
   I am integrating Proguard obfuscation in my application using the
   recently posted instructions on the Android developers blog.
   Everything works fine as long as my project doesn't use any third
   party jars. When I use a third party jar, admob-sdk-android.jar in my
   case, the ant release step fails with this warning

     [proguard] Initializing...
     [proguard] Warning: com.pqrs.XYZ: can't find referenced class
   com.admob.android.ads.AdManager
     [proguard] Warning: com.pqrs.XYZ: can't find referenced class
   com.admob.android.ads.AdManager
     [proguard] Warning: there were 2 unresolved references to classes or
   interfaces.
     [proguard]          You may need to specify additional library jars
   (using '-libraryjars').

   BUILD FAILED
   D:\testandroid\eclipseworkspace\MyProj\add-proguard-release.xml:38:
   Please correct the above warnings first.

   Where do I specify the list of third party jars so that the proguard
   can find those while the obfuscation step?

  change the -libraryjars line in add-proguard-release.xml to look like:

       -libraryjars ${external.libs.dir}:${libraryjarpath}

  and you should be all set

  cheers,
  steve

  --
  stephen lau | st...@grommit.com |http://whacked.net|@stevel

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

[android-developers] Re: Integrating Proguard using recently posted instructions

2010-09-27 Thread Ryan Mattison
I'm not quite sure what you mean.  I just set up a new Android Eclipse
project.  Followed the instructions from the Android developers blog
post.   I get the same exact error.  I figured I messed with some
Android configuration along the way.

Can you be more verbose please?  Much appreciated.

C:\Android\AndroidWorkspace\LifeOrganizedant release
Buildfile: C:\Android\AndroidWorkspace\LifeOrganized\build.xml
[setup] Android SDK Tools Revision 7
[setup] Project Target: Google APIs
[setup] Vendor: Google Inc.
[setup] Platform Version: 2.1-update1
[setup] API level: 7
[setup]
[setup] --
[setup] Resolving library dependencies:
[setup] --
[setup] Ordered libraries:
[setup] --
[setup]
[setup]
[setup] Importing rules file: tools\ant\ant_rules_r3.xml

-set-release-mode:

-dirs:
 [echo] Creating output directories if needed...

-pre-build:

-resource-src:
 [echo] Generating R.java / Manifest.java from the resources...

-aidl:
 [echo] Compiling aidl files into Java classes...

-pre-compile:

compile:
[javac] C:\Android\android-sdk_r05-windows\android-sdk-windows
\tools\ant\ant
_rules_r3.xml:336: warning: 'includeantruntime' was not set,
defaulting to build
.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to C:\Android\AndroidWorkspace
\LifeOrganized
\bin\classes

-dex-obfuscate:
   [delete] Deleting: C:\Android\AndroidWorkspace\LifeOrganized\obf
\original.jar

   [delete] Deleting: C:\Android\AndroidWorkspace\LifeOrganized\obf
\postobf.jar
  [jar] Building jar: C:\Android\AndroidWorkspace\LifeOrganized\obf
\original
.jar
 [proguard] ProGuard, version 4.5.1
 [proguard] Reading input...
 [proguard] Reading program jar [C:\Android\AndroidWorkspace
\LifeOrganized\obf\o
riginal.jar]
 [proguard] Reading library jar [C:\Android\AndroidWorkspace
\LifeOrganized\libs:
C:\Android\android-sdk_r05-windows\android-sdk-windows\platforms
\android-7\andro
id.jar]

BUILD FAILED
C:\Android\AndroidWorkspace\LifeOrganized\add-proguard-release.xml:31:
Can't rea
d [C:\Android\AndroidWorkspace\LifeOrganized\libs:C:\Android\android-
sdk_r05-win
dows\android-sdk-windows\platforms\android-7\android.jar] (No such
file or direc
tory)

Total time: 2 seconds
C:\Android\AndroidWorkspace\LifeOrganized

On Sep 27, 3:40 pm, Xavier Ducrohet x...@android.com wrote:
 It looks like you have an add-on that doesn't export a library. Its
 path is added to the list of library proguard should know about but
 it's a folder not a jar file.

 Why are you compiling against an add-on that does not export a library?





 On Mon, Sep 27, 2010 at 1:37 PM, Ryan Mattison rmattis...@gmail.com wrote:
  I still have an issue, please help!  add-proguard-release.xml:31 is
  where it occurs.   I'm eating a candy bar every hour until this is
  resolved!  Please save my health 

    [echo] Signing final apk...
   [signjar] Signing JAR: C:\Android\AndroidWorkspace\GeoTextXandy\Die
  \bin\Geo
  t-unsigned.apk to C:\Android\AndroidWorkspace\GeoTextXandy\Die\bin
  \GeoText-un
  gned.apk as speaksms
      [echo] Running zip align on final apk...
      [echo] Release Package: C:\Android\AndroidWorkspace\GeoTextXandy
  \Die\bin
  oText-release.apk

  BUILD SUCCESSFUL
  Total time: 9 seconds
  C:\Android\AndroidWorkspace\GeoTextXandy\Die

  Without add-proguard-release;

  With it,

  C:\Android\AndroidWorkspace\GeoTextXandy\Dieant release
  Buildfile: C:\Android\AndroidWorkspace\GeoTextXandy\Die\build.xml
     [setup] Android SDK Tools Revision 7
     [setup] Project Target: Google APIs
     [setup] Vendor: Google Inc.
     [setup] Platform Version: 2.1-update1
     [setup] API level: 7
     [setup]
     [setup] --
     [setup] Resolving library dependencies:
     [setup] --
     [setup] Ordered libraries:
     [setup] --
     [setup]
     [setup]
     [setup] Importing rules file: tools\ant\ant_rules_r3.xml

  -set-release-mode:

  -dirs:
      [echo] Creating output directories if needed...

  -pre-build:

  -resource-src:
      [echo] Generating R.java / Manifest.java from the resources...

  -aidl:
      [echo] Compiling aidl files into Java classes...

  -pre-compile:

  compile:
     [javac] C:\Android\android-sdk_r05-windows\android-sdk-windows
  \tools\ant\an
  _rules_r3.xml:336: warning: 'includeantruntime' was not set,
  defaulting to buil
  .sysclasspath=last; set to false for repeatable builds
     [javac] Compiling 1 source file to C:\Android\AndroidWorkspace
  \GeoTextXandy
  Die\bin\classes

  -dex-obfuscate:
    [delete] Deleting: C:\Android\AndroidWorkspace\GeoTextXandy\Die\obf
  \original
  jar
       [jar] Building jar: C:\Android\AndroidWorkspace\GeoTextXandy\Die
  \obf\orig
  nal.jar
   [proguard] ProGuard, version 4.5.1
   [proguard] Reading input...
   [proguard] Reading program jar [C:\Android\AndroidWorkspace
  \GeoTextXandy\Die\o
  f

[android-developers] Re: Integrating Proguard using recently posted instructions

2010-09-27 Thread Ryan Mattison
I downloaded the latest of those two files and was unable to get it to
work.  Still eating candy bars!

Thanks,

Ryan

On Sep 27, 12:51 pm, Dan Galpin d...@android.com wrote:
 In an effort to integrate the change for external libraries, I believe
 that I broke building on Windows machines.  I believe that I've
 corrected this problem with the latest version.  Let me know if it
 works for you.

 Cheers,
 Dan
 -

 Dan Galpin
 Developer Advocate, Google
 -
 The collective minds on this forum far exceed my own, so post messages
 here, rather than my e-mail address.

 On Sep 26, 1:25 pm, Ryan Mattison rmattis...@gmail.com wrote:



  Can't for the life of me get this stuff to work.  It looks like it is
  trying to combine folders or something?

   [proguard] ProGuard, version 4.5.1
   [proguard] Reading input...
   [proguard] Reading program jar [C:\Android\AndroidWorkspace
  \GeoTextXandy\Die\ob
  f\original.jar]
   [proguard] Reading library jar [C:\Android\AndroidWorkspace
  \GeoTextXandy\Die\li
  bs:C:\Android\android-sdk_r05-windows\android-sdk-windows\platforms
  \android-7\an
  droid.jar]

  BUILD FAILED
  C:\Android\AndroidWorkspace\GeoTextXandy\Die\build.xml:92: Can't read
  [C:\Androi
  d\AndroidWorkspace\GeoTextXandy\Die\libs:C:\Android\android-sdk_r05-
  windows\andr
  oid-sdk-windows\platforms\android-7\android.jar] (No such file or
  directory)

  Total time: 2 seconds

  Any ideas?!

  On Sep 23, 1:40 am, Stephen Lau st...@grommit.com wrote: akatka wrote:
I am integrating Proguard obfuscation in my application using the
recently posted instructions on the Android developers blog.
Everything works fine as long as my project doesn't use any third
party jars. When I use a third party jar, admob-sdk-android.jar in my
case, the ant release step fails with this warning

  [proguard] Initializing...
  [proguard] Warning: com.pqrs.XYZ: can't find referenced class
com.admob.android.ads.AdManager
  [proguard] Warning: com.pqrs.XYZ: can't find referenced class
com.admob.android.ads.AdManager
  [proguard] Warning: there were 2 unresolved references to classes or
interfaces.
  [proguard]          You may need to specify additional library jars
(using '-libraryjars').

BUILD FAILED
D:\testandroid\eclipseworkspace\MyProj\add-proguard-release.xml:38:
Please correct the above warnings first.

Where do I specify the list of third party jars so that the proguard
can find those while the obfuscation step?

   change the -libraryjars line in add-proguard-release.xml to look like:

        -libraryjars ${external.libs.dir}:${libraryjarpath}

   and you should be all set

   cheers,
   steve

   --
   stephen lau | st...@grommit.com |http://whacked.net|@stevel

-- 
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: ProGuard Integration?

2010-12-07 Thread ryan cheng
I also get the same problem with the eclipse helios :

!ENTRY com.android.ide.eclipse.adt 4 0 2010-12-07 16:09:23.125
!MESSAGE Failed to export application
!STACK 0
com.android.ide.eclipse.adt.internal.build.ProguardResultException
at
com.android.ide.eclipse.adt.internal.build.BuildHelper.runProguard(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(Unknown
Source)
at com.android.ide.eclipse.adt.internal.project.ExportHelper$2.run(Unknown
Source)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


2010/12/7 Michael A. michael.aki...@gmail.com

 I'm getting an error when trying to export using Proguard:

 !MESSAGE Failed to export application
 !STACK 0
 com.android.ide.eclipse.adt.internal.build.ProguardResultException
at
 com.android.ide.eclipse.adt.internal.build.BuildHelper.runProguard(Unknown
 Source)
at

 com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(Unknown
 Source)
at

 com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.doExport(Unknown
 Source)
at
 com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.access
 $0(Unknown Source)
at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard
 $1.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext
 $ModalContextThread.run(ModalContext.java:121)

 This is a brand new, clean project in Eclipse Helios (Win7) with - as
 far as I know - the latest plugin and SDK. I'm guessing that there's
 something in my Eclipse/Windows environment that needs to be set up.
 Any tips?

 Regards,

 Michael A.



 On Dec 7, 12:18 am, Michael A. michael.aki...@gmail.com wrote:
  Thanks. I found it shortly after posting this (incidentally, the link
  in the Android market points to the wrong page).
 
  Great stuff. I love the many small things like these in 2.3 that help
  makes the lives of the developers easier. :-)
 
  Regards,
 
  Michael A.
 
  On Dec 7, 12:07 am, Xavier Ducrohet x...@android.com wrote:
 
   Doc about the integration is there:
 http://developer.android.com/guide/developing/tools/proguard.html
 
   In a nutshell:
   - it's packaged with the SDK
   - all you have to do is create a proguard config file somewhere and
   specify its location in default.properties.
   - Whenever you do a release build (ant release or export
   signed/unsigned package from Eclipse) it'll run proguard on your code.
 
   more info:
 http://developer.android.com/guide/developing/tools/proguard.html
 
   On Mon, Dec 6, 2010 at 3:01 PM, Michael A. michael.aki...@gmail.com
 wrote:
Hi,
 
The release notes for the new ADT/SDK mentions integrated ProGuard
support, which I find very interesting, as I've been holding off on
the latest release partly for this feature.
 
Unfortunately, it does not appear that easy. There are not any
 obvious
interface changes that I have been able to find, and a search of the
website does not turn up any documentation (at this moment). Has
anyone been able to find the documentation for this or been able to
figure out in what way ProGuard has been integrated?
 
Regards,
 
Michael A.
 
--
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.comandroid-developers%2bunsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en
 
   --
   Xavier Ducrohet
   Android SDK Tech Lead
   Google Inc.
 
   Please do not send me questions directly. 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.comandroid-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

Re: [android-developers] Re: ProGuard Integration?

2010-12-07 Thread ryan cheng
OK , now i found  one way to fix this problem

1, set up the  PROGUARD_HOME EVN PATH to  sdk-root\tools\proguard

2, restart eclipse

3, now it work fine!

2010/12/7 Michael A. michael.aki...@gmail.com

 I'm getting an error when trying to export using Proguard:

 !MESSAGE Failed to export application
 !STACK 0
 com.android.ide.eclipse.adt.internal.build.ProguardResultException
at
 com.android.ide.eclipse.adt.internal.build.BuildHelper.runProguard(Unknown
 Source)
at

 com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(Unknown
 Source)
at

 com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.doExport(Unknown
 Source)
at
 com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.access
 $0(Unknown Source)
at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard
 $1.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext
 $ModalContextThread.run(ModalContext.java:121)

 This is a brand new, clean project in Eclipse Helios (Win7) with - as
 far as I know - the latest plugin and SDK. I'm guessing that there's
 something in my Eclipse/Windows environment that needs to be set up.
 Any tips?

 Regards,

 Michael A.



 On Dec 7, 12:18 am, Michael A. michael.aki...@gmail.com wrote:
  Thanks. I found it shortly after posting this (incidentally, the link
  in the Android market points to the wrong page).
 
  Great stuff. I love the many small things like these in 2.3 that help
  makes the lives of the developers easier. :-)
 
  Regards,
 
  Michael A.
 
  On Dec 7, 12:07 am, Xavier Ducrohet x...@android.com wrote:
 
   Doc about the integration is there:
 http://developer.android.com/guide/developing/tools/proguard.html
 
   In a nutshell:
   - it's packaged with the SDK
   - all you have to do is create a proguard config file somewhere and
   specify its location in default.properties.
   - Whenever you do a release build (ant release or export
   signed/unsigned package from Eclipse) it'll run proguard on your code.
 
   more info:
 http://developer.android.com/guide/developing/tools/proguard.html
 
   On Mon, Dec 6, 2010 at 3:01 PM, Michael A. michael.aki...@gmail.com
 wrote:
Hi,
 
The release notes for the new ADT/SDK mentions integrated ProGuard
support, which I find very interesting, as I've been holding off on
the latest release partly for this feature.
 
Unfortunately, it does not appear that easy. There are not any
 obvious
interface changes that I have been able to find, and a search of the
website does not turn up any documentation (at this moment). Has
anyone been able to find the documentation for this or been able to
figure out in what way ProGuard has been integrated?
 
Regards,
 
Michael A.
 
--
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.comandroid-developers%2bunsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en
 
   --
   Xavier Ducrohet
   Android SDK Tech Lead
   Google Inc.
 
   Please do not send me questions directly. 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.comandroid-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

Re: [android-developers] [北京招聘]安卓联航 公司招聘Android人才

2010-12-07 Thread ryan cheng
国人的素质又一次被代表了... \(^o^)/~

在 2010年12月7日 上午10:41,何斌斌 hbbs...@gmail.com写道:

 薪资面议,如果您对我们公司感兴趣,有意加入我们,请将您的简历发至: an...@andlisoft.com

 在 2010年12月7日 上午10:17,袁堂夫 yuantangf...@gmail.com写道:

 不至于吧,都跑这里招聘了,哈哈~多少钱一个月呢?

 在 2010年12月7日 上午10:13,何斌斌 hbbs...@gmail.com 写道:
  一、企业介绍:
  安卓联航软件科技(北京)有限公司: http://www.andlisoft.com
  二、职位描述:
  从事Android相关软件的开发
  三、职位要求:
  1. Java技术扎实,同时有C++与Java开发经验优先;
  2. 半年以上Android平台开发经验,熟悉Android架构;
  3. 对研究和探索新技术有浓厚兴趣;
  4. 具备良好的职业素养和团队协作精神,以及较强的学习能力,能够承担工作压力;
  四、工作地点:北京
  五、联系方式:有意者请发简历至 an...@andlisoft.com
 
  --
  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.comandroid-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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 binbin he
 Mobile: +86-15110035996
 Msn: hbbs...@hotmail.com

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

  1   2   3   >