[android-developers] Bluetooth pair table size

2016-06-16 Thread ed
I am writing an Android phone application that will only talk to one BLE 
device at a time. It will, however, be used over a wide physical area and 
there could be many paired/bonded devices, even if only one is accessed at 
a time. Is there a size limit to the table used to store information about 
these devices?

Ed

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/8f94b7be-c50c-4b9e-8d00-7c87a6f0a8fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Installing jcifs on Android Studio

2016-01-20 Thread Ed Eyre
Hi is there any "good" Walkthrought I could use to help me get this setup. 
New to Android Studio (and Java) Have spent hours trying and googleing ??? 
 any advice would be appriceated

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/e866b67d-b507-4403-8df9-2702fa439e2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Fork/Join and JSR166 on Android

2014-05-29 Thread Ed Harned
igor:

Absolutely. I know there are quad-core machines out there but the logic 
behind the answer is still the same. I'm not even sure Android supports 
Java7. The current F/J framework is designed for massive memory processing 
of DAG structures. What possible use is that on a phone?

ed

On Wednesday, May 28, 2014 3:55:45 PM UTC-4, igor ganapolsky wrote:

 Ed,
 Being that your link is 3 years old, is it still relevant to today's 
 Android development landscape?

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


[android-developers] Re: Fork/Join and JSR166 on Android

2013-07-06 Thread Ed Harned
Ratamovic:

Why on earth would you want to use a dynamic decomposing framework in 
Android? These things only work well when there are many, many processors 
to handle the splits. Such a framework would kill a phone/tablet; you would 
process one task at the expense of everything else.

If you're looking to split work into multiple threads,  then there are 
products to do just that. I wrote this article and the software it 
expounds: Managing Threads in 
Androidhttp://coopsoft.com/ar/AndroidArticle.html

Ed

On Tuesday, July 2, 2013 6:00:35 PM UTC-4, Ratamovic wrote:

 Hi all,

 I am trying to find some information about the support of the new 
 Fork/Join framework introduced in Java7 (JSR166).
 Of course Android doesn't support Java 1.7 (yet at least) but a Java6 
 (limited) backport of Fork/Join exists (see jsr166 
 http://gee.cs.oswego.edu/dl/concurrency-interest/). I am curious to know 
 if anybody had experience with using it on Android.

 The subsidiary question would be about the use of any other concurrent 
 framework on Android (like Akka, etc.). Any feedback?

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




[android-developers] Re: It is possible to stop a thread that is connecting to URL with httpConnection.connect()?

2012-10-06 Thread Ed Harned
Do your connection in a separate thread or AsyncTask. You can time the 
thread and ignore it if it takes too long. Now you'll be getting into 
thread control which really is a whole other subject.


On Friday, October 5, 2012 7:39:55 PM UTC-4, saex wrote:

 i have a thread that is connecting to a url to obtaining some data.

 Sometimes the method httpConnection.connect(); taked too munch time to 
 get the response, and i want to limit the loading dialog of this connection 
 thread to 5 seg.

 I tryed adding timeouts into the code, *but it doesn't work*!!

 URL formattedUrl = new URL(url); 
 URLConnection connection = formattedUrl.openConnection(); 
 connection.setConnectTimeout(5000);
 connection.setReadTimeout(5000);
 HttpURLConnection httpConnection = (HttpURLConnection) connection;
 httpConnection.setAllowUserInteraction(false);
 httpConnection.setInstanceFollowRedirects(true);
 httpConnection.setRequestMethod(GET);
 httpConnection.setConnectTimeout(5000);
 httpConnection.setReadTimeout(5000);
 httpConnection.connect();

 So, i must stop the connect method and the thread when 5000 seconds have 
 passed or when the used has pressed the back key on the phone.

 How can this be achieved? i can't find info about doing this work in 
 android with a url connection thread.

 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: Is multithreading recommended for my case?

2012-06-01 Thread Ed Harned
As Nathan said -- but if you do need to separate you work into components 
and let each run independently then try out this product Managing Threads 
in Android http://coopsoft.com/ar/AndroidArticle.html

Ed

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

[android-developers] Re: Problem using Ksoap2

2012-03-18 Thread Ed
FWIW I've tried using ksoap2 with wcf and it works until you get to
complex classes and then it falls over on the namespaces. The best bet
(if you can) is enable JSON on WCF and use GSON.

Cheers,

Ed

On Mar 19, 4:03 am, g...@deanblakely.com g...@deanblakely.com
wrote:
 I'm trying to see if it is feasible to access .Net WCF SOAP services
 from an android client.  I found a post at

 http://naveenbalani.com/index.php/2011/01/invoke-webservices-from-and...

 That shows how to accomplish this using a library named Ksoap2. I'm
 pretty sure I followed all of the instructions however I end up with
 the following error:

 java.net.UnknownHostException: naveenbalani.com

 Any Idea what might be wrong?

 a jpg of my run config is athttp://dl.dropbox.com/u/39662979/run
 config.jpg
 a zip of the project is 
 athttp://dl.dropbox.com/u/39662979/AndroidClientService.zip

 The source code is pasted below along with the console log (much of
 which I don't  understand)

 thanks,
 Gary Blakely

 package org.android.webservice.client.samples;

 import org.ksoap2.SoapEnvelope;
 import org.ksoap2.serialization.SoapObject;
 import org.ksoap2.serialization.SoapSerializationEnvelope;
 import org.ksoap2.transport.HttpTransportSE;

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

 public class AndroidClientService extends Activity {

 private static final String SOAP_ACTION = http://www.naveenbalani.com/
 webservices/WassupAndroidService/todaysMessage;

 private static final String OPERATION_NAME = todaysMessage;

 private static final String WSDL_TARGET_NAMESPACE = 
 http://www.naveenbalani.com/webservices/WassupAndroidService/;;

 private static final String SOAP_ADDRESS = http://naveenbalani.com/
 WassupAndroid.asmx;

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

 TextView textView = new TextView(this);

 setContentView(textView);

 SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE,
 OPERATION_NAME);

 SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
 SoapEnvelope.VER11);
 envelope.dotNet = true;

 envelope.setOutputSoapObject(request);

 HttpTransportSE httpTransport = new HttpTransportSE(SOAP_ADDRESS);

 try

 {

 httpTransport.call(SOAP_ACTION, envelope);

 Object response = envelope.getResponse();

 textView.setText(response.toString());

 }

 catch (Exception exception)

 {

 textView.setText(exception.toString());

 }
 }
 }

 [2012-03-18 10:45:41 - AndroidClientService] Dx warning: Ignoring
 InnerClasses attribute for an anonymous inner class
 (org.ksoap2.transport.KeepAliveHttpsTransportSE$1) that doesn't come
 with an
 associated EnclosingMethod attribute. This class was probably produced
 by a
 compiler that did not target the modern .class file format. The
 recommended
 solution is to recompile the class from source, using an up-to-date
 compiler
 and without specifying any -target type options. The consequence of
 ignoring
 this warning is that reflective operations on this class will
 incorrectly
 indicate that it is *not* an inner class.
 [2012-03-18 10:45:45 - AndroidClientService]
 --
 [2012-03-18 10:45:45 - AndroidClientService] Android Launch!
 [2012-03-18 10:45:45 - AndroidClientService] adb is running normally.
 [2012-03-18 10:45:45 - AndroidClientService] Performing
 org.android.webservice.client.samples.AndroidClientService activity
 launch
 [2012-03-18 10:45:45 - AndroidClientService] Automatic Target Mode:
 Preferred AVD '233_avd' is not available. Launching new emulator.
 [2012-03-18 10:45:45 - AndroidClientService] Launching a new emulator
 with Virtual Device '233_avd'
 [2012-03-18 10:45:48 - Emulator] DNS server name 'ns15.unitechost.in'
 resolved to 69.10.57.50:55
 [2012-03-18 10:45:51 - Emulator] emulator: WARNING: Unable to create
 sensors port: Unknown error
 [2012-03-18 10:45:51 - AndroidClientService] New emulator found:
 emulator-5554
 [2012-03-18 10:45:51 - AndroidClientService] Waiting for HOME
 ('android.process.acore') to be launched...
 [2012-03-18 10:46:35 - AndroidClientService] HOME is up on device
 'emulator-5554'
 [2012-03-18 10:46:35 - AndroidClientService] Uploading
 AndroidClientService.apk onto device 'emulator-5554'
 [2012-03-18 10:46:35 - AndroidClientService] Installing
 AndroidClientService.apk...
 [2012-03-18 10:46:53 - AndroidClientService] Success!
 [2012-03-18 10:46:53 - AndroidClientService] Starting activity
 org.android.webservice.client.samples.AndroidClientService on device
 emulator-5554
 [2012-03-18 10:46:55 - AndroidClientService] ActivityManager:
 Starting: Intent { act=android.intent.action.MAIN
 cat=[android.intent.category.LAUNCHER]
 cmp=org.android.webservice.client.samples/.AndroidClientService }

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send

[android-developers] Re: Resume activity while download

2012-02-01 Thread Ed Harned
This open source project supports a general purpose multi-threading
service:
http://coopsoft.com/ar/AndroidArticle.html

Ed

On Jan 31, 10:21 am, TreKing treking...@gmail.com wrote:
 On Tue, Jan 31, 2012 at 9:10 AM, ColletJb collet...@gmail.com wrote:
  How could I handle the progress updates with a separated service ?
  With AIDL ?

 Check the Service documentation page. There is a LocalService example.

 -
 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: Hardware accleration slow down every Canvas app. Why?

2012-01-18 Thread Ed Burnette
Fps2D does not show any change when you turn on or off the setting on
a GN.

On Jan 16, 11:09 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 Holy macaroni

 What a thread.

 Let's take an anology:

 First vehicle: A bicycle. You can go reasonably fast with it by the
 power of a single human.
 Second vehicle: A Ferrari with a fifth wheel powered by a pedal.

 Which one is faster?  The point is, the Ferrari has 10,000x times the
 horsepower of human powered bicycle, but if you are not using it
 correctly, you still end up going slower.

 On Jan 17, 10:22 am, Kristopher Micinski krismicin...@gmail.com
 wrote:







  On Mon, Jan 16, 2012 at 6:57 PM, sblantipodi

  perini.dav...@dpsoftware.org wrote:
   I am not avoiding anything but you have failed to far to provide me
   with something I could use to find such a flaw and fix it.

   I have provided you three lines of code that works bad as the other
   primitives.

   Me neither, but you could be bandwidth limited for instance. Again,
   the CPU has nothing to do with performance of the GPU so this
   discussion is really not helpful. If your performance in software is
   good enough, there is no point in drawing a comparison with other
   devices that also run in software.

   Bandwidth? Have you ever thought on how much bandwidth have a feature
   phone?
   Why the software runs better on gingerbread?
   Sincerely I'm not satisfied with the performance I get on CPU neither
   because I can
   do better with other OS.
   Talking about CPU performance the software runs far better on Galaxy
   Note (Gingerbread 1280x800)
   than on Galaxy Nexus (ICS 1280x720).
   Why?

   This piece of code is exactly what I was talking about in previous
   message. Sending 640 rendering instructions to the GPU is extremely
   expensive. The CPU will perform a lot better at this. Changing this
   loop to a single drawLines() will likely fix the issue.

   A feature phone is able to do it, gingerbread is able to do it,
   why ICS do it slow?
   You know that that was only an example, in real life drawLine can't
   be
   replaced with drawLines at least not always.

   Again, the problem is that a GPU performs very differently from a CPU.
   Batching rendering operations is one of the best optimizations you can
   do when running on the GPU.

In any case on the android documentation (API Level 11) I finded that
drawLines() doesn't support antialiasing:
   http://developer.android.com/guide/topics/graphics/hardware-accel.html
why do you call this a bug?

   This documentation is out of date. Antialiasing is supported with
   drawLine() and drawLines() as of API level 12 or 13.

   Are you really asking to drop Level 11 support or double the code to
   draw some lines?

  Maybe it's not true, but I think that it seems to me (and I suspect
  many others on this list), that you fundamentally lack an
  understanding of the differences between CPUs and GPUs.

  For example, parallelizing the previous bit of code will *obviously*
  be better on a GPU because of the dispatch than multiple instances of
  drawLine(), and this isn't a point that make the perf bad: it's just
  bad coding.

  At *worst* you could argue that the compiler should somehow optimize
  this to a drawLines call and do some fancy loop transformation based
  on what it would know about the semantics of those functions and the
  trade offs you were willing to make.  But the example you make seems a
  lot like a novice saying Android is slow, I'm reading a megabyte file
  and it's taking a few hundred milliseconds when they're doing
  multiple calls to read one byte...

  kris- 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] Current mobile connection speed?

2011-12-13 Thread Ed Murphy
How do I determine the current users mobile (not wifi) connection speed?  I
know how to receive the speed link of the wifi connection (myWifiInfo.
getLinkSpeed());), but not the mobile connection.  Thanks, any help is
appreciated!

-- 
-Ed Murphy
contact.edmur...@gmail.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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] strange difference between real phone and emulator on opening/playing sound file

2011-09-26 Thread Ed Korsberg
I have ran into an anomaly with my android phone.  I have added
several mp3 and wav files to the /res/raw folder and verify the R.java
is updated correctly.  The problem is that for one mp3 file I get
different behavior between the phone and the emulator.

Given this code
MediaPlayer mpPop = MediaPlayer.create(this, R.raw.pop);

On the emulator all works as expected.  On the phone itself if pop is
pop.mp3 then MediaPlayer.create() returns null.  If I choose pop.wav,
then MediaPlayer.create() returns a non null instance but produces no
sound.

Note that I have several other mp3 and wav resources in my app that
all open and play as expected on the phone and on the emulator.  I
even tried renaming pop something else thinking pop was some sort of
keyword but still got same behavior.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: parcelable again: passing object BACK through activity stack

2011-09-26 Thread Ed Korsberg
I will throw my 2 cents into this discussion keeping in mind I am a
newbie android developer.
I was able to successfully use serialization to pass an object to and
return from another activity.
I hope this helps...

//this main activity will pass the gameParams (of type public class
GameOptionParams implements Serializable)
//to the GameOptions activity
Intent myIntent = new Intent(this, GameOptions.class);
Bundle b = new Bundle();
b.putSerializable(options, gameParams);
myIntent.putExtras(b);
startActivityForResult(myIntent,STATIC_OPTIONS_VALUE);

//in GameOoptions upon ready to return results
// prepare to send results back to invoker
Intent resultIntent = new Intent();
Bundle b = new Bundle();
b.putSerializable(options, gameParams);
resultIntent.putExtras(b);
setResult(Activity.RESULT_OK, resultIntent);
finish();

//and then back in the main to get the results
//return handler from invocation to GameOptions
@Override
public void onActivityResult(int requestCode, int resultCode,
Intent data)
{
  super.onActivityResult(requestCode, resultCode, data);
  switch(requestCode)
  {
case (STATIC_OPTIONS_VALUE) :
{
  if (resultCode == Activity.RESULT_OK)
  {
  //retrieve intended options
  Bundle b = data.getExtras();
  gameParams = (GameOptionParams)
b.getSerializable(options);


On Sep 20, 12:57 pm, TreKing treking...@gmail.com wrote:
 On Tue, Sep 20, 2011 at 6:55 AM, John Goche johngoch...@googlemail.comwrote:

  given that A is beneath B on the activity stack and will not be reopened

 What do you mean A will not be reopened ?

 You're probably looking for startActivityForResult() and onActivityResult().

 -
 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: Once again the INSTALL_FAILED_INSUFFICIENT_STORAGE error

2011-09-05 Thread Ed
If it's not a device storage issue then the first place I would start is 
running adb kill-server and adb start-server to restart adb.

Not 100% sure what your problem is - you can use the adb push command but 
cannot use the adb install command? 

Don't forget that internal memory and SD memory are different so one may 
have room while the other doesn't.

Cheers,

Ed

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 detect if a view is on screen

2011-09-05 Thread Ed
Hi Marc,

Have a look at ListView. It's probably done most of the hardwork for you if 
you just write your own adapter. Just make sure you get your getView 
correct.

Watch a couple of Romain Guy's videos from Google I/O 
e.g. http://www.youtube.com/watch?v=wDBM6wVEO70

Should help get you started in the right direction.

Cheers,

Ed

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

[android-developers] Re: Can we create two ThreadPoolExecutor running on android?

2011-09-01 Thread Ed Harned
Take a look at this article and the open source project it mentions.

http://coopsoft.com/ar/AndroidArticle.html

You can create the Tymeac service with thread pools and do anything
you want

Ed

On Aug 30, 12:30 pm, usher usher...@gmail.com wrote:
 AsyncTask is managing a thread pool with 5 core thread. Once we start
 to use AsyncTask, it will start to set up this thread pool on android
 phone.

 The reason I don't want to AsyncTask is because I am going to create a
 service, and start threads from service, which means there is not much
 UI updates from task. However, asynctask has to been created and
 execute on UI thread.

 So I am going to create another different thread pool which will be
 used to manage this kind of threads. What I am worrying about is that
 if I create another thread pool with 5 core threads, would that be too
 much threads(10 core threads) running on the android? will that slow
 it down and cause bad performance?

 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] Eclipse unresolved OpenGL functions.

2011-08-24 Thread Ed X
I'm using the NDK with Eclipse Indigo and I want to access some OpenGL
methods from C++ so I included GLES/gl.h.

I can compile the C++ code fine from within Eclipse, however Eclipse
insists that the OpenGL functions cannot be resolved. I opened GLES/
gl.h in Eclipse and noticed that declarations of the OpenGL functions
are not being parsed correctly; the function names are not in bold.
However, the OpenGL functions which do not return void are parsed
correctly. For example:

GL_API GLboolean GL_APIENTRY glIsBuffer (GLuint buffer) is OK
GL_API void GL_APIENTRY glClearColor (GLclampf red, GLclampf green,
GLclampf blue, GLclampf alpha) is not OK

As soon as I change the void to something else, the function name turn
bold and shows in the Outline view.

Anyone got an idea what's going on?

Thank you in advance.

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


[android-developers] New Application

2011-08-04 Thread Ed Harned
Today Android application developers can enjoy the benefits of fork-
join processing on Android devices.

TymeacAND is an Android application thread managing service in either
an embedded or remote (IPC) configuration. This is an open-source
project naturally.

The introductory article is here: Managing Threads in Android
http://coopsoft.com/ar/AndroidArticle.html

Ed Harned

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Generic resizable appwidgets in Android 3.1

2011-06-23 Thread Ed
Can you have a custom view inside the widget that is fill_parent and
do what you need to do in the onDraw?

Not sure on how often onDraw would get called in a widget on a 3.1
homescreen but I imagine you'll want to be careful about the
efficiency of the code or at least run some benchmarks to see how
often it fires.

Interested to hear/see your solution to this problem as it's likely to
be one that I will face when I get around to it.

Ed

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Generic resizable appwidgets in Android 3.1

2011-06-23 Thread Ed
Ahh yeah - forgot about our friend RemoteView :(

On Jun 24, 9:05 am, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Jun 23, 2011 at 6:28 PM, Ed edscha...@gmail.com wrote:
  Can you have a custom view inside the widget that is fill_parent and
  do what you need to do in the onDraw?

 No. You cannot have custom Views in app widgets, period.

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

 Android Training in London:http://bit.ly/smand1,http://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Please help me with this issue

2011-06-23 Thread Ed
you have this twice:
 activity android:name=.Login

may or may not be the issue

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


[android-developers] Re: IllegalStateException: Fragment not added in ActionBarTabs example

2011-05-20 Thread Ed Burnette
Ok, I've entered a bug report. See/vote for:
http://code.google.com/p/android/issues/detail?id=17029 . Thanks.

On May 19, 2:46 pm, Shane Isbell shane.isb...@gmail.com wrote:
 I've run into this on occasion, I surrounded it with a general Exception
 catch to handle this, which seemed to have no side affects for my
 application, as to whether this is platform bug, who knows? Without the
 source code to look at, it is anyone's guess.

 Shane

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] IllegalStateException: Fragment not added in ActionBarTabs example

2011-05-19 Thread Ed Burnette
While writing an app that uses Fragments and tabs on the Action Bar I
ran into a crash. I went back to the API Demos sample and can make the
same crash happen there. Start the program in the emulator and select
App  Action Bar  Action Bar Tabs. Click Toggle tab mode then Add
new tab twice, then click back and forth between the two tabs very
quickly until it crashes. Here's the traceback:


05-19 18:16:06.668: ERROR/AndroidRuntime(1153): FATAL EXCEPTION: main
05-19 18:16:06.668: ERROR/AndroidRuntime(1153):
java.lang.IllegalStateException: Fragment not added:
TabContentFragment{407c55a8 #0 id=0x7f08000c Tab 1}
05-19 18:16:06.668: ERROR/AndroidRuntime(1153): at
android.app.BackStackRecord.remove(BackStackRecord.java:366)
05-19 18:16:06.668: ERROR/AndroidRuntime(1153): at
com.example.android.apis.app.ActionBarTabs
$TabListener.onTabUnselected(ActionBarTabs.java:94)
05-19 18:16:06.668: ERROR/AndroidRuntime(1153): at
com.android.internal.app.ActionBarImpl.selectTab(ActionBarImpl.java:
476)
05-19 18:16:06.668: ERROR/AndroidRuntime(1153): at
com.android.internal.app.ActionBarImpl
$TabImpl.select(ActionBarImpl.java:816)
05-19 18:16:06.668: ERROR/AndroidRuntime(1153): at
com.android.internal.widget.ActionBarView
$TabClickListener.onClick(ActionBarView.java:954)
05-19 18:16:06.668: ERROR/AndroidRuntime(1153): at
android.view.View.performClick(View.java:3110)
05-19 18:16:06.668: ERROR/AndroidRuntime(1153): at
android.view.View$PerformClick.run(View.java:11928)
05-19 18:16:06.668: ERROR/AndroidRuntime(1153): at
android.os.Handler.handleCallback(Handler.java:587)
05-19 18:16:06.668: ERROR/AndroidRuntime(1153): at
android.os.Handler.dispatchMessage(Handler.java:92)
05-19 18:16:06.668: ERROR/AndroidRuntime(1153): at
android.os.Looper.loop(Looper.java:132)
05-19 18:16:06.668: ERROR/AndroidRuntime(1153): at
android.app.ActivityThread.main(ActivityThread.java:4025)
05-19 18:16:06.668: ERROR/AndroidRuntime(1153): at
java.lang.reflect.Method.invokeNative(Native Method)
05-19 18:16:06.668: ERROR/AndroidRuntime(1153): at
java.lang.reflect.Method.invoke(Method.java:491)
05-19 18:16:06.668: ERROR/AndroidRuntime(1153): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:841)
05-19 18:16:06.668: ERROR/AndroidRuntime(1153): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
05-19 18:16:06.668: ERROR/AndroidRuntime(1153): at
dalvik.system.NativeStart.main(Native Method)
05-19 18:16:06.698: WARN/ActivityManager(82):   Force finishing
activity com.example.android.apis/.app.ActionBarTabs

Is this a known problem? I tried it under SDK Platform 3.0 (rev 1) and
3.1 (rev 2).

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


[android-developers] Re: Fragment animation as in Honeycomb Gmail app - how to do that?

2011-05-19 Thread Ed Burnette
There's probably using FragmentTransaction.setTransition() or
setCustomAnimations().

On May 19, 12:14 pm, Scythe scythe...@gmail.com wrote:
 I'd like to achieve similar fragment behaviour as in the Honeycomb
 Gmail app. So I have three fragment next to each other: A, B and C.
 Initially, A and B is displayed, and when the user selects something
 from B, it triggers an sliding-animation/fragment-transaction so that
 B and C are visible. B showing the selected item, C showing the
 desired content.

 Any ideas how the Gmail app does this?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-10 Thread Ed Burnette
Sometimes I have to edit something innocuous in the xml file and in
a .java file and save it (with build automatically set) to get a clean
build. Project  Clean usually works but when it doesn't, the modify-
and-save trick usually works. Changing the Android build target
temporarily might jostle something loose too. I really wish all the
little oddities like this could be ironed out but I have no time to
try and fix it myself.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Fragment Support forward compatibility?

2011-03-10 Thread Ed Burnette
Do you think this compatibility library could be used for more than
just fragments?

For example, action bars, touch event changes, and so on? It would be
nice to cut down on the use of reflection and version checks when new
APIs are added that you'd like to use but still want to run on older
versions of Android.

On Mar 10, 8:14 pm, Dianne Hackborn hack...@android.com wrote:
 Note that in the current static library animations are broken.  I have a fix
 for this that will be available in a later update.



 On Thu, Mar 10, 2011 at 4:57 PM, davemac davemac...@gmail.com wrote:
  There are some subtle differences between the Fragment compatability
  library and the native Fragment support in Android 3.0. For example,
  the setCustomAnimations() method on FragmentTransaction can use the
  new ObjectAnimator in Android 3.0 (see android.R.animator), but must
  use the older anim transitions pre-3.0 (see android.R.anim).

  - dave

  On Mar 9, 7:54 pm, Mark Murphy mmur...@commonsware.com wrote:
   On Mon, Mar 7, 2011 at 5:35 PM, Neal Sanche thorins...@gmail.com
  wrote:
I guess I just wanted to ask if, when this compatibility library was
developed, the design intent was to allow applications to run on
Android 1.6 - Android 3.0 inclusive without needing to change the
code?

   Yes, that was the intent.

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

   Android Training Worldwide:http://commonsware.com/training

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

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

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

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


[android-developers] Re: Sudoku

2011-03-03 Thread Ed Burnette
As far as I can tell, those DEBUG/SntpClient messages are printed by
a part of the system not related to your program. Just ignore them.

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


[android-developers] Re: Garbage collector hangs OpenGL on HTC Evo

2011-02-17 Thread Ed Burnette
This may not be related to the hang, but 387K freed and a pause of
46ms in garbage collection sounds like a lot. If you can cut out some
of your larger memory allocations and deallocations it might help.
Avoiding memory allocs will help your frame rate too.


On Feb 16, 11:07 am, Bill Tschumy b...@otherwise.com wrote:
 I've been battling a hang (deadlock) in OpenGL for the past week.  I've 
 finally realized that the system hangs after the garbage collector runs.  
 Here is an example from LogCat:

 02-16 08:49:32.609: INFO/ActivityManager(98): Displayed activity 
 com.southernstars.skysafari/.SkySafariActivity: 2219 ms (total 2219 ms)
 02-16 08:49:37.369: DEBUG/dalvikvm(1863): GC_FOR_MALLOC freed 4144 objects / 
 387544 bytes in 46ms
 02-16 08:49:37.389: ERROR/Adreno200-ES20(1863): gsl_device_waittimestamp 
 failed in rb_timestamp_wait_on_timestamp
 02-16 08:49:38.516: WARN/SharedBufferStack(1863): 
 waitForCondition(LockCondition) timed out (identity=157, status=0). CPU may 
 be pegged. trying again.
 ...
 ...

 Anytime the LogCat shows a GC_FOR_MALLOC or a GC_EXTERNAL_ALLOC, the app 
 hangs with OpenGL in this LockCondition.  It appears that GC_EXPLICT, for the 
 most part, does not cause a problem (maybe these are smaller allocs, I don't 
 know).

 Searching the internet, it seems that people are reporting things like this 
 on the HTC phones.  Usually they say the problem is very sporadic and hard to 
 reproduce.  I can reproduce it easily by simply putting a System.gc() call 
 into my application flow or by doing something that allocates a chunk of 
 memory forcing the GC to run.

 I have this problem on an HTC Evo.  My development partner has a different 
 phone and is not seeing this.

 I'm totally at a loss what to do next.  Has anyone seen anything like this or 
 have a plausible explanation for what is going on?  Is there any way it could 
 be something unusual we are doing in the app?  Or is it just a bug in the HTC 
 system or drivers?

 Thanks for any help.

 --
 Bill Tschumy
 Otherwise -- Longmont, COhttp://www.otherwise.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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.3 Vs 3.0

2011-02-17 Thread Ed Burnette
The phone and tablet source trees have diverged temporarily but it's
expected that the I version of Android will bring them back
together. The version number hasn't been decided - it might become 3.1
or 3.5 or something else - just not 3.0.

So when somebody says Honeycomb is just for tablets and won't run on
phones they're just saying that a particular version of Android is
just for tablets. There will be lots of versions after Honeycomb.
Apple did something similar with iOS - they had an iPad only release
and then a few months later came back with a phone-only release and
finally they had a converged release.


On Feb 14, 11:55 pm, Sivaprakash sivaprakashshanmu...@gmail.com
wrote:
 Hi

 Read from few of the articles that Google has forked Android is it so ?
 Which means I can not use 3.0 for my Phone application but only for Tablet?

 Thanks
 Siva

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Honeycomb SDK

2011-02-17 Thread Ed Burnette
Dianne said Android 3.0 would be level 11 in the final API (http://
groups.google.com/group/android-developers/msg/dbe54b1e41663284) but I
was reading too much into that. It seems clear now it might be 11, or
12, or some other integer in that ballpark. We'll see when it comes
out.

Dianne also said Trust me, you probably don't want to try to follow
the changing world that exists before real announcements are made,
but that's exactly what I want. I've got plenty of aspirin handy
should the need arise.


On Feb 12, 10:21 am, Streets Of Boston flyingdutc...@gmail.com
wrote:
 But who says that the API level of Android 3.0=11. Who says that the next
 Android version (Ice Cream (Sandwich)) is 2.4? All rumours.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Honeycomb SDK

2011-02-10 Thread Ed Burnette
Ok, so if 2.3.3 is API level 10, and 3.0 is API level 11, where would
any future 2.x releases fit in? Will they be called API level 10, or
12, or will you start using fractional numbers somehow (currently the
level has to be an int)? The answer affects how we should write apps
that work across multiple versions.

For example, suppose I want to use a method introduced in 3.0 and I
check for Build.VERSION.SDK_INT = Build.VERSION_CODES.HONEYCOMB. Is
that always going to work? Or is it possible that the method will
exist at SDK_INT == 11 but not at SDK_INT == 12? The alternatives
would mean we'd have to start checking Build.CODENAME, INCREMENTAL,
and RELEASE as well (yuck), or that reflection would be the only
reliable way to check if a method or class exists.

An easy fix, if there are going to be more 2.x releases, would be for
you to use an API level number bigger than 11 for Android 3.0 to
provide some room to grow. If there are not going to be any more 2.x
releases then it won't matter.

On Feb 9, 1:25 pm, Xavier Ducrohet x...@android.com wrote:
 I'm not commenting on rumors, but Android 2.3.3 (API *10*) is out as an SDK.

 Xav









 On Wed, Feb 9, 2011 at 9:27 AM, Ed Burnette ed.burne...@gmail.com wrote:
  Hard info to replace the rumors would be most welcome. :)

  According to Viewsonic, there will be a release in between 2.3 and 3.0
  (http://www.pocket-lint.com/news/38311/android-2-4-april-release-
  date). That means it must be under development somewhere now, which
  means some folks (the involved devs and project leads at least) have
  an idea what will go in it. Without roadmaps or public source trees or
  development work-blogs, the rest of us are left to guess and
  speculate. I'd much rather we didn't have to.

  On Feb 8, 1:14 am, Dianne Hackborn hack...@android.com wrote:
  The Honeycomb framework APIs are introduced in 3.0.  Any platform that has
  them would be 3.0 or later.  (And more important, any platform that has 
  them
  would have an API level that is at least that of Honeycomb.)

  Rumors, so much fun. :p

  On Mon, Feb 7, 2011 at 8:43 PM, Kevin Duffey andjar...@gmail.com wrote:
   There is a 2.4 in the works if the rumor mill is correct, from my
   understanding of potentially bad sources, 2.4 will be a sort of reduced
   honeycomb for phones, hopefully giving it the same UI but perhaps a few
   different things? I am really curious how this is going to play out.
   Naturally the apple fanboys are shouting fragmentation again, but I am
   really interested in the UI differences between 3.0 and any new version 
   for
   phones that come out. Will phones go the way of tablets, no buttons, same
   UI, etc? I personally hope so, the 3.0 UI looks fantastic.

   On Mon, Feb 7, 2011 at 5:17 PM, Mark Murphy 
   mmur...@commonsware.comwrote:

   My initial reaction was that it was an homage to Spinal Tap.

   On Mon, Feb 7, 2011 at 7:47 PM, Ed Burnette ed.burne...@gmail.com
   wrote:
11? Does that mean the next 2.x release will be API level 10 and that
there will only be one more 2.x release with API changes? Or am I
reading too much into it? I was wondering how that numbering hiccup
was going to be handled.

On Feb 7, 3:01 am, Dianne Hackborn hack...@android.com wrote:
I don't know why it says that about minSdkVersion.  The value of
minSdkVersion doesn't matter; all that matters is that
targetSdkVersion=Honeycomb.  (Or 11 in the final API.)

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

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

   Android 2.3 Programming Books:http://commonsware.com/books

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to android-developers@googlegroups.com
   To unsubscribe from this group, 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

  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com

  Note: please don't send private questions to me, as I don't have time

[android-developers] Re: Honeycomb SDK

2011-02-09 Thread Ed Burnette
Hard info to replace the rumors would be most welcome. :)

According to Viewsonic, there will be a release in between 2.3 and 3.0
(http://www.pocket-lint.com/news/38311/android-2-4-april-release-
date). That means it must be under development somewhere now, which
means some folks (the involved devs and project leads at least) have
an idea what will go in it. Without roadmaps or public source trees or
development work-blogs, the rest of us are left to guess and
speculate. I'd much rather we didn't have to.


On Feb 8, 1:14 am, Dianne Hackborn hack...@android.com wrote:
 The Honeycomb framework APIs are introduced in 3.0.  Any platform that has
 them would be 3.0 or later.  (And more important, any platform that has them
 would have an API level that is at least that of Honeycomb.)

 Rumors, so much fun. :p









 On Mon, Feb 7, 2011 at 8:43 PM, Kevin Duffey andjar...@gmail.com wrote:
  There is a 2.4 in the works if the rumor mill is correct, from my
  understanding of potentially bad sources, 2.4 will be a sort of reduced
  honeycomb for phones, hopefully giving it the same UI but perhaps a few
  different things? I am really curious how this is going to play out.
  Naturally the apple fanboys are shouting fragmentation again, but I am
  really interested in the UI differences between 3.0 and any new version for
  phones that come out. Will phones go the way of tablets, no buttons, same
  UI, etc? I personally hope so, the 3.0 UI looks fantastic.

  On Mon, Feb 7, 2011 at 5:17 PM, Mark Murphy mmur...@commonsware.comwrote:

  My initial reaction was that it was an homage to Spinal Tap.

  On Mon, Feb 7, 2011 at 7:47 PM, Ed Burnette ed.burne...@gmail.com
  wrote:
   11? Does that mean the next 2.x release will be API level 10 and that
   there will only be one more 2.x release with API changes? Or am I
   reading too much into it? I was wondering how that numbering hiccup
   was going to be handled.

   On Feb 7, 3:01 am, Dianne Hackborn hack...@android.com wrote:
   I don't know why it says that about minSdkVersion.  The value of
   minSdkVersion doesn't matter; all that matters is that
   targetSdkVersion=Honeycomb.  (Or 11 in the final API.)

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

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

  Android 2.3 Programming Books:http://commonsware.com/books

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

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

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


[android-developers] Re: Honeycomb SDK

2011-02-07 Thread Ed Burnette
11? Does that mean the next 2.x release will be API level 10 and that
there will only be one more 2.x release with API changes? Or am I
reading too much into it? I was wondering how that numbering hiccup
was going to be handled.

On Feb 7, 3:01 am, Dianne Hackborn hack...@android.com wrote:
 I don't know why it says that about minSdkVersion.  The value of
 minSdkVersion doesn't matter; all that matters is that
 targetSdkVersion=Honeycomb.  (Or 11 in the final API.)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Dual mode (Honeycomb Gingerbread) is the same APK.

2011-02-04 Thread Ed Burnette
They could have a wrapper class that detects and uses the 3.0 API if
it's there, and otherwise does some fall back behavior that looks good
on older versions.

On Feb 3, 6:20 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
 I read this on android-developers.blogspot.com, from 
 Dianna:http://android-developers.blogspot.com/2011/02/android-30-fragments-a...

 Quote:
 To address this, we plan to have the same fragment APIs (and the new
 LoaderManager as well) described here available as a static library
 for use with older versions of Android

 ... where this is the issue you're asking about.

 One thing i'm not quite understanding:
 Our goal is to make these APIs nearly identical, so you can start
 using them now and, at whatever point in the future you switch to
 Android 3.0 as your minimum version, move to the platform’s native
 implementation with few changes in your app.

 What happens before our app's minimum version is set to Android 3.0?
 We would ship the app with the static library. This would mean that
 even Android 3.0 (and higher) devices would run this static library
 instead of its 'native' implementation. Or will there be some 'magic'
 compatibility code that kicks in making use of the 'native'
 imlementation?

 On Jan 28, 6:32 pm, Zsolt Vasvari zvasv...@gmail.com wrote:







  What are the best practices to maintain an app that would run on both
  Honeycomb and pre-Honeycomb?  I do want to make use of Fragments and
  the other goodies, but I have a feeling this will be a major
  P.i.t.A.   I certainly don't want to maintain 2 separate 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


[android-developers] Re: Tutor for project

2010-10-09 Thread Ed
Hit youtube. There's heaps of good tutorials/presentations on there
ranging from hello world to Romain Guy's List View lectures.

Ed

On Oct 8, 5:31 am, Mike karl mike.d.k...@gmail.com wrote:
 Looking for some teaching on a simple calculator app please send rates to
 mike.d.k...@gmail.com should only be a couple hour job I'm a fast leaner

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


[android-developers] Re: Can android support more than one sdcard?

2010-09-11 Thread Ed
 U...  I'll only support one touch screen!  Okay.  I'll only support one
 DPAD!  Okay.  I'll only support one CPU!  Okay.  I'll only support one
 graphics accelerator!  Okay.  I'll only support one SIM!  Okay.  I'll only
 support one headphone output!  Okay.  I'll only support one camera!  Okay.

you forgot I'll only support one carrier in the US. oh no - that's
that other phone OS...

I think it would be wonderful to have an OS that supports multiple
everything but as Dianne said it would never get shipped. Worse than
that it would be slow and painful to develop for and use. Let's just
be thankful we have multitasking (not forgetting all the other
awesomeness that is Android).

One way around it would have classes of files e.g. Media, Cache,
Applications, Settings The user could setup a shared set of
settings to say Media goes on this SD card, Settings go on this SD
card Then apps could say this file is of class Media.

Even with this approach you'll always find things that don't fall
neatly into one category or things that don't fall into any.

It's a huge challenge to come up with a solution that is good for
users and developers alike. A challenge that is probably in capable
hands with Google.

Ed

On Sep 11, 11:04 am, Dianne Hackborn hack...@android.com wrote:
 On Fri, Sep 10, 2010 at 2:33 PM, Doug Gordon gordo...@gmail.com wrote:
  I am really surprised that the Android design would only account for
  one of anything. In my experience, any time you say we're only going
  to support one of feature X, the marketing or engineering departments
  decide to add another X. In any case, having support for more than
  one is the same as having support for any quantity.

 U...  I'll only support one touch screen!  Okay.  I'll only support one
 DPAD!  Okay.  I'll only support one CPU!  Okay.  I'll only support one
 graphics accelerator!  Okay.  I'll only support one SIM!  Okay.  I'll only
 support one headphone output!  Okay.  I'll only support one camera!  Okay.

 A marketing or engineering department that can't accept limitations is an
 organization that will never ship a product.

 (And you don't note all of the complexity that comes from going from 1 to 2
 -- how is this reflecting in the UI?  How does the user decide where they
 want their stuff to go?  How about telling them how much space is where?
  And now you've got to let them move stuff around.  I can make a good
 argument that multiple SD cards is just intrinsically a crummy user
 experience and should be avoided.  Heck even one SD card significantly
 complicates the UX.)

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

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

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


[android-developers] Re: Drawable.mutate().setAlpha() not working pre 2.2?

2010-09-08 Thread Ed
Hi Mark,

It sounds similar to the weirdness I noticed in the post below. Maybe
try using the code from my second comment and see if that helps.

http://groups.google.com/group/android-developers/browse_thread/thread/761504bde4573d3e/4a68b54298dd4418#4a68b54298dd4418

Ed

On Sep 9, 1:03 am, Mark Carter mjc1...@googlemail.com wrote:
 I have an ImageView and do this:

 Drawable d = getResources().getDrawable(R.drawable.my_image);
 d.mutate().setAlpha(50);
 myImageView.setImageDrawable(d);

 This works fine on 2.2 but on 1.6 and 2.1 (the only other ones I've
 tested on) the alpha has not been changed.

 Is this a bug or am I doing something wrong?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Android determine whether to move the layout up when showing the softkeyboard?

2010-09-06 Thread Ed
Instead of View.INVISIBLE try View.GONE.

Invisible = This view is invisible, but it still takes up space for
layout purposes.

http://developer.android.com/reference/android/view/View.html

Also in your scroll view layout try setting
android:fillViewport=true on the scroll view.

Ed

On Sep 7, 12:03 am, Mathias Lin m...@mathiaslin.com wrote:
 Interestingly though: when I set my ListView visibility to
 View.INVISIBLE in my first activity, then the layout doesn not get
 moved up anymore!

 This is my layout/xml:

 1)http://pastebin.com/5zzVxjbK
 ListView where layouts is been moved up by the softkeyboard

 2)http://pastebin.com/KFtPuHvP
 ScrollView/LinearLayout, where layout remains fix by the softkeyboard

 On Sep 6, 8:48 pm, Mathias Lin m...@mathiaslin.com wrote:



  How does Android determine whether to move the layout up when showing
  the softkeyboard?

  Note: I am aware that the activity property
  android:windowSoftInputMode=adjustResize|adjustResize|
  adjustUnspecified exists, as described 
  herehttp://developer.android.com/guide/topics/manifest/activity-element.h...
  , but in my case it doesn't seem to have any effect. This is my
  problem:

  I have two activities, pretty much the same layout, but the first one
  is using a ListView that holds a list of buttons. The second activity
  holds a scrollview with buttons. The rest is the same, same number of
  buttons, same height of elements, etc. (All elements fit on the
  screen, so actually the user doesn't need to scroll in the scrollview
  or listview.)
  Please see my screenshot to get an idea:http://i.imgur.com/UNXPz.png

  Now, when I press the search button to open the search input bar, in
  my first activity, the entire layouts gets moved up. While on the
  second activity, the layout is not being moved up but the softkeyboard
  just displays on top of it. This is actually how I want it to behave.
  How can I achieve the same with my activity that's using the ListView?

  In my manifest, initially I didn't specify any
  android:windowSoftInputMode attribute, but even if I do, it doesn't
  make any difference; I tried all three values (adjustPan,
  adjustResize, adjustUndefined, without any difference).

  This is my layout:http://i.imgur.com/UNXPz.png

  (I'm not posting any code here for now, I'm more interested generally
  how it's been exactly determined whether Android moves the layout up
  or just displays they softkeyboard right on top of the existing layout
  without moving it.)

  I couldn't find a specific logic that's been followed. When I reduce
  the number of buttons, when I even wrap the listView in a ScrollView
  (just for the sake of trying to see what's happening), the layout just
  won't stay fix.
  On the other hand then, I have activities in my app that contain only
  one large ListView, and on that one the layout also remains fixed.
  First I thought it's related to ListViews, but it seems not to.

  btw: nowhere in my manifest am I explicitly specifying the
  windowSoftInputMode attribute.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Bitmap mutability dependent on location

2010-08-30 Thread Ed
Hi all,

Found a bit of a weird one which might be related to this post -
http://groups.google.com/group/android-developers/browse_thread/thread/b0e2048495d61e0c

I've check the public issue tracker for android and can't see anything
related to this.

Basically I'm setting an icon in a menu, getting a mutable copy of the
icon, drawing some text on it to create a menu item that reflects the
current state of the thing the menu item links to.

This works all well and good when I use a resource that is in /
drawble/ but if I put the same resource into /drawable/hdpi/ (with
relevant resizes in ldpi and mdpi) it blows up saying that it is not
mutable... even though it's using the same code and the same image
format (exactly the same file):

Drawable d = mi.getIcon().mutate();
Canvas c = new Canvas(((BitmapDrawable) d).getBitmap());
//draw on canvas
d.draw(c);

I wish to use the different dpi graphics as appropriate rather than
scaling at runtime or implementing my own dpi image selector. Is this
a known limitation? If so is there documentation about it?

Cheers,

Ed

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Scrolling like a spreadsheet

2010-08-30 Thread Ed
Ok... so I was bored so

Uses spreadsheet.xml which contains a LinearLayout with the id
layout_spreadsheet. There are some tweaks that could be made like
making the top left cell outside the left scroll but I'm sure you can
figure that out. Allowing for dynamic sized cols/rows might be an
interesting challenge for you.

But other than that - here is a working implementation of a
spreadsheet view. Enjoy.

import java.text.DecimalFormat;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.widget.HorizontalScrollView;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TableLayout;
import android.widget.TableRow;
import android.widget.TextView;

public class Launcher extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.spreadsheet);

final int ROW_HEIGHT = 50;
final int COL_WIDTH = 80;
final int NUM_COLS_AND_ROWS = 15; //keeping it square just
because i'm lazy

String[] cols = new String[NUM_COLS_AND_ROWS];
String[] rows = new String[NUM_COLS_AND_ROWS];
String[][] data = new String[NUM_COLS_AND_ROWS]
[NUM_COLS_AND_ROWS];
DecimalFormat twoPlaces = new DecimalFormat(0.00);
for(int i = 0; i  NUM_COLS_AND_ROWS; i++)
{
  cols[i] = Col + i;
  rows[i] = Row + i;
  for(int j = 0; j  NUM_COLS_AND_ROWS; j++)
  {
data[i][j] = twoPlaces.format(Math.random() * 1000);
  }
}


LinearLayout layout =
(LinearLayout)findViewById(R.id.layout_spreadsheet);

//setup left column with row labels
LinkedScrollView lsvLeftCol = new LinkedScrollView(this);
lsvLeftCol.setVerticalScrollBarEnabled(false); //this one will
look wrong
TableLayout tlLeftCol = new TableLayout(this);
TableLayout.LayoutParams tlLeftColParams = new
TableLayout.LayoutParams();
tlLeftColParams.width= COL_WIDTH;
tlLeftCol.setLayoutParams(tlLeftColParams);
for(int i = -1; i  rows.length; i++)
{
  TableRow tr = new TableRow(this);
  TextView tv = new TextView(this);
  if(i = 0) //-1 is the blank top left cell - this should
really be outside the scroll to look right
  {
tv.setText(rows[i]);
  }
  tr.addView(tv);
  tr.setMinimumHeight(ROW_HEIGHT);
  tlLeftCol.addView(tr);
}
lsvLeftCol.addView(tlLeftCol);

//add the main horizontal scroll
HorizontalScrollView hsvMainContent = new
HorizontalScrollView(this);
hsvMainContent.setHorizontalScrollBarEnabled(false); //you
could probably leave this one enabled if you want

LinearLayout llMainContent = new LinearLayout(this); //Scroll
view needs a single child
llMainContent.setOrientation(LinearLayout.VERTICAL);

//add the headings
TableLayout tlColHeadings = new TableLayout(this);
TableRow trHeading = new TableRow(this);
trHeading.setMinimumHeight(ROW_HEIGHT);
for(int i = 0; i  cols.length; i++)
{
  TextView tv = new TextView(this);
  tv.setText(rows[i]);
  tv.setMinWidth(COL_WIDTH);
  trHeading.addView(tv);
}

tlColHeadings.addView(trHeading);
llMainContent.addView(tlColHeadings);

//now lets add the main content
LinkedScrollView lsvMainVertical = new LinkedScrollView(this);
lsvMainVertical.setVerticalScrollBarEnabled(false); //this
will not be visible most of the time anyway

TableLayout tlMainContent = new TableLayout(this);

for(int i = 0; i  rows.length; i++)
{
  TableRow tr = new TableRow(this);
  tr.setMinimumHeight(ROW_HEIGHT);
  for(int j = 0; j  cols.length; j++)
  {
TextView tv = new TextView(this);
tv.setText(data[i][j]);
tv.setMinWidth(COL_WIDTH);
tr.addView(tv);
  }
  tlMainContent.addView(tr);
}

lsvMainVertical.addView(tlMainContent);

llMainContent.addView(lsvMainVertical);

hsvMainContent.addView(llMainContent);

layout.addView(lsvLeftCol);
layout.addView(hsvMainContent);

//the magic
lsvMainVertical.others.add(lsvLeftCol);
lsvLeftCol.others.add(lsvMainVertical);
}

private class LinkedScrollView extends ScrollView
{
  public boolean cascadeScroll = true;
  public ArrayListLinkedScrollView others = new
ArrayListLinkedScrollView();

  public LinkedScrollView(Context context)
  {
super(context);
  }

  @Override
  protected void onScrollChanged(int l, int t, int oldl, int oldt)
  {
super.onScrollChanged(l, t, oldl, oldt);


[android-developers] Re: Bitmap mutability dependent on location

2010-08-30 Thread Ed
Thanks Romain,

Never thought I'd be worthy of a response from the man himself.

The thing that had me stumped was it was working on some drawables but
not others.

I now have another issue with it... the reason I was having trouble
was trying to use the ldpi/mdpi/hdpi assets. It now uses these assests
and selects the correct one however it scales it as if it is an mdpi
image. See this image: http://edschache.com/ldpi_hdpi_issue.png  This
was done by marking each png with it's size, creating a menuicon2 from
the mdpi version and putting it in /drawable/. As you can see using
the mdpi version results in the same size icon as the hdpi and ldpi
icons. The same brush width was used for marking all 3 images.

images:
http://edschache.com/ldpi_menuicon.png
http://edschache.com/mdpi_menuicon.png
http://edschache.com/hdpi_menuicon.png

Does this mean that I need to scale the images manually anyway? I was
hoping that getResources().getDrawable(R.drawable.menuicon) would
automatically get the correct drawable at the correct scale per the
info icon next to it. It selects the correct image but gets the scale
wrong. The images in the various dpi folders are the correct
resolution and .png format.

For anyone else stuck on this here's the code that I got working to
make the images drawable (still has the scaling issue):

Drawable d = getResources().getDrawable(R.drawable.menuicon);
Bitmap bOriginal = ((BitmapDrawable) d).getBitmap();
Bitmap bMutable = bOriginal.copy(Bitmap.Config.ARGB_, true);
BitmapDrawable dMutable = new BitmapDrawable(bMutable);
Canvas c = new Canvas(bMutable);
//draw on canvas
d.draw(c);
mi.setIcon(dMutable);

On Aug 30, 7:05 pm, Romain Guy romain...@android.com wrote:
 Mutating a drawable does not making the Bitmap it may contain mutable.
 You have to check whether the Bitmap you get is mutable. Bitmaps
 loaded from resources are never mutable, you must create a mutable
 copy first (see the Bitmap.create/copy documentation.)





 On Mon, Aug 30, 2010 at 12:53 AM, Ed edscha...@gmail.com wrote:
  Hi all,

  Found a bit of a weird one which might be related to this post -
 http://groups.google.com/group/android-developers/browse_thread/threa...

  I've check the public issue tracker for android and can't see anything
  related to this.

  Basically I'm setting an icon in a menu, getting a mutable copy of the
  icon, drawing some text on it to create a menu item that reflects the
  current state of the thing the menu item links to.

  This works all well and good when I use a resource that is in /
  drawble/ but if I put the same resource into /drawable/hdpi/ (with
  relevant resizes in ldpi and mdpi) it blows up saying that it is not
  mutable... even though it's using the same code and the same image
  format (exactly the same file):

  Drawable d = mi.getIcon().mutate();
  Canvas c = new Canvas(((BitmapDrawable) d).getBitmap());
  //draw on canvas
  d.draw(c);

  I wish to use the different dpi graphics as appropriate rather than
  scaling at runtime or implementing my own dpi image selector. Is this
  a known limitation? If so is there documentation about it?

  Cheers,

  Ed

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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] Re: Optimizing list view scroll

2010-08-28 Thread Ed
IMHO having a worker process is definitely worth the effort. It is a
little daunting at first but once you get your head around it it's
great fun to work on.

If you write your image loader worker process in a well structured way
then you will be able to reuse it from project to project. One day
mine might reach a state where I'm happy to release it but I would
want to use it on a few more projects first to ensure it's generic
enough. Plus if I just gave you the code you wouldn't learn anything
and you'd miss out on the feeling of success when it finally works at
3 o'clock in the morning.

I suggest you read this short thread where I commented on
SoftReference: 
http://groups.google.com/group/android-developers/browse_thread/thread/614281daa12a3fd8

I would also suggest watching:
http://www.youtube.com/watch?v=N6YdwzAvwOA
http://www.youtube.com/watch?v=wDBM6wVEO70

Once you've done all that come up with a plan for handling a queue of
requests (I used a PriorityQueue so I can fast track important
images), caching images, returning the images to the caller...etc...
Lots of fun to be had.

Ed

On Aug 28, 10:44 am, Dianne Hackborn hack...@android.com wrote:
 This is an API demo for dealing with data that is slow to load:

 http://developer.android.com/resources/samples/ApiDemos/src/com/examp...

 You'll of course want to do this a little differently, filling in as much of
 each item as you can when binding, and having a background thread loading
 images to populate later when they are ready.  (Instead of the stuff this
 demo does with the scroll state changing.)





 On Fri, Aug 27, 2010 at 2:59 PM, ls02 agal...@audible.com wrote:
  I did some profiling and it turned out significant time is spent on
  loading images. Each listview item has a distinctive image. i have
  thousands of items in my listview so I cannot cache them. I tried to
  create an image on card folder cache of either PNG or JPEG image files
  of exactly the same dimension as the images I render in listview item
  ImageView. It helped but still not ideal.

  I thought about saving uncompressed bitmap data to a an image cache
  file with hope it will be faster to load and render since the image
  won't need to be decompressed. But i didn't find any class or method
  to save and load uncompressed bitmaps. The only way I see to save the
  image to a disk file is Bitmap.compress which can be either JPEG or
  PNG (BTW, which one from these two is faster to load and render?).

  I also thought about loading images in worker thread but this appears
  to be very complicated and I am not sure it will help and won't create
  other problems. I would have to create a queue if currently visible
  items and have to load images inside that thread. I worry that while I
  load a title image it is already scrolled out and becomes invisible.

  On Aug 26, 11:26 pm, Dianne Hackborn hack...@android.com wrote:
  http://developer.android.com/guide/developing/tools/traceview.html

   http://developer.android.com/guide/developing/tools/traceview.htmlThis
  may
   not be documented, but in newer versions you can use the am command to
   start and stop profiling.  Use adb shell am to get help for the
  command.

   On Thu, Aug 26, 2010 at 7:59 PM, ls02 agal...@audible.com wrote:
How do I profile the code? I do recycle bitmaps since each list item
displays its own bitmap image and without recycling I quickly run out
of memory.

On Aug 26, 10:50 pm, Dianne Hackborn hack...@android.com wrote:
 Run your code in a profiler.

 Make sure you aren't thrashing through temporary objects.  If the GC
  is
 running much while scrolling, optimize to reduce temp objects.

 On Thu, Aug 26, 2010 at 6:18 PM, ls02 agal...@audible.com wrote:
  I have list view with fairly complex list view items consisting of
  several image views, several text views, progress bars, etc.
  Depending
  on the state of the item some of these elements can be show and
  some
  are hidden. I understand that listview recycles views. Right now I
  am
  dealing with slow listview scrolling especially on lower powered
  devices. What's the best way to deal with this problem?

  I already optimized each list item view as much as I could. Now I
  am
  facing with what's the best? Use one single view with many children
  for all items and hide and show various children depending on the
  item
  state. This way I do not inflate each item view as list is being
  scrolled but need to show and hide constantly various child views.

  Another approach is to build item view dynamically each time view
  is
  requested in the adapter getView method. In this case I can only
  add
  at run time those elements that are truly needed for current item
  state but this requires inflating item view every time.

  Finally  the third approach is most extreme is to have one custom
  view
  and draw everything myself. This of cause

[android-developers] Re: Strange Issue with Return String from Web Service

2010-08-15 Thread Ed
Please see:
http://groups.google.com/group/android-developers/browse_thread/thread/d25a94dc3b92cd84/b4bbf23336c44341#b4bbf23336c44341


On Aug 14, 2:39 am, Tommy droi...@gmail.com wrote:
 Hi everyone,

   I have a strange issue. I am using KSOAP2 to create a soap request
 to a .net webservice. I do this in a few other places and everything
 works fine.

 The webservice basically queries a data base and takes the values from
 the data reader and creates a string. This string is then returned.
 When I run the webservice on my local machine(Without using android)
 it works fine. When I run it from the webserver (still not android) it
 works fine. When I call it from my phone however the line:

 String hazards = (String)envelope.getResponse().toString(); //Get
 response from .net Web service

 Simply is filled with anyType{}.

 Now if I go to the webservice and I manually type in the contents from
 the database to represent what the string concatenation should be it
 works perfectly. The line:

 String hazards = (String)envelope.getResponse().toString(); //Get
 response from .net Web service

 Now returns the string value i need.

 Does anyone have any idea why this is happening or know a better place
 to ask this question?

 As always thanks for your time and 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 
 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: Largest Android application?

2010-08-06 Thread Ed Burnette
Your best option is to try a higher compression rate on your mp3s.
Most people are not going to listen to it through studio quality
headphones, but rather through a crappy 1cm wide speaker on the back
of the phone.

Android also supports Ogg Vorbis, AMR-NB, and AMR-WB which might work
better than mp3 for your speech. Or you could include your own codec
(perhaps as native code) like Speex or iLBC. At 12kbits/second you
could record 3.7 hours of fairly good quality speech in 20MB. Take a
look (er, listen) at the samples at http://www.speex.org/samples/ .

On Aug 5, 7:16 pm, EwanG ewan.grant...@gmail.com wrote:
 Appreciate this discussion as it is in an area I'm having a problem
 with. Y'all may remember that I am working on an Android VN, and I'm
 having a devil of a time coming up with a program that is reasonably
 sized. I have background graphics with foreground character graphics,
 so that's not a problem. But I want to have it be fully voiced, and
 anything that sounds halfway decent ends up being huge. Maybe I
 should use an Android voice synthesizer (though I suspect the lower
 quality would negatively impact purchases)? With all the different
 paths, you are talking several hours worth of voice files, not to
 mention some background music.

 So if I don't want to have a 100 meg app, what SHOULD I do?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Socket Timout in a simple HttpGet

2010-08-04 Thread Ed
I've had similar issues.

I guess the most obvious place to start is check that whatever you're
calling is responding. It's surprising how often the simple things can
trip you up.

One of the issues was having was as a result of using a proxy to route
all traffic so I could monitor network traffic. At one point I forgot
to start the proxy and of course the connection didn't work. After
about 2 hours I realized what the problem was and told myself I'd
never work on stuff late at night again until the following night
obviously - it's what geeks do.

The other flakiness I've noticed with network requests seems to be
related to having multiple network cards (real and virtual) and the
way AVD's _apparently_ choose a connection at random. I'm not sure if
this claim is true but disabling all my other network cards appears to
have helped the situation.

One final thing to check, if you're using Eclipse, is in Run
Configurations where you can set a limited network speed for testing.
It's easy to limit it to test something and then forget to remove the
limit later.

Ed

On Aug 4, 10:58 pm, Martins Streņģis martin...@draugiem.lv wrote:
 btw on gprs it's working fine

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 create new page / form

2010-08-02 Thread Ed
I think we're possibly overlooking the simplicity of the question (I
may be wrong).

My assumption is that the page you are referring to is the first
screen you see (main.xml).

In your code at the moment you have a Class that extends Activity. In
this class you will have a method called onCreate that is calling
something like: setContentView(R.layout.main);

If you want another screen:
1. create a new layout in /res/layout  (e.g. myLayout.xml)
2. create a new class that extends Activity (e.g. MyActivity)
3. in the onCreate of MyActivity add
setContentView(R.layout.myLayout);
4. in AndroidManifest.xml inside the application node add activity
android:name=.MyActivity/activity   (NB: there is a full-stop
before the class name)
5. in the onClick of your button in your original activity (the one
that calls setContentView(R.layout.main); and has the button)  call
startActivity(new Intent(this, MyActivity.class));
6. run it and hopefully it will work.

Cheers,

Ed

On Aug 3, 5:47 am, Bob Kerns r...@acm.org wrote:
 Also -- have you tried using the debugger to debug your problem?

 It doesn't sound like it. Had you done this basic step, I think:

 1) You might have found the solution to your problem yourself
 2) If not, you would be able to ask a much more specific question.

 On Aug 2, 11:50 am, TreKing treking...@gmail.com wrote:



  On Mon, Aug 2, 2010 at 6:56 AM, titleist tadej.ore...@gmail.com wrote:
   I want to open / create new page (just like first page / default page but
   with other functionalities) on button click.

  What is a new page, first page, and default page?

   I've tried to create custom dialog like on this page:
  http://developer.android.com/guide/topics/ui/dialogs.html#AlertDialog
   but when i clicked the button my application always crashed.

  What is the stack trace for the crash? How are we supposed to help without
  that key information?

  Although I can probably guess since you're using getApplicationContext() ...
  don't use that function. Use this.

    Is Custom dialog solution to my problem or should I create new layout?

  Depends on what your problem is, which I don't really understand. You should
  clarify what you're trying to do.

  --- 
  --
  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: problem regarding starting of emulator

2010-08-01 Thread Ed
Yep - that's normal. Start the emulator, get a cup of coffee, leave
the emulator running while you're developing. It's slow (a few
minutes) on a fast quad core ddr3 machine. If you want to test quickly
I find the 1.6 emulator loads faster but obviously it depends what
version your app requires and if you are doing cross platform testing.

Ed

On Jul 31, 2:01 pm, Neeraj Sinha iamneerajsi...@gmail.com wrote:
 Hi All,

 I am so new in android developement.  I am facing a problem regarding
 AVD. Whenever i am trying to run my program it does take a lot of time
 to start AVD emulator. Once its started and i am chaning my code and
 trying run that, it's fine. But in the begining it does take a lot of
 time to start emulator. I am using currently platform 1.5. But getting
 same problem on 2.2 as well.

 Please help me out :)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Retrieving XML Document from web service

2010-08-01 Thread Ed
Add this for all the classes you're using. This will let KSoap2 know
what java classes handle the each response element.

envelope.addMapping(request.getNamespace(),
MyDotNetClassName,
MyAndroidClass.class);

For others trying to help this is the KSoap2 toString() once KSoap2
has parsed the XML response.

Ed

On Jul 31, 9:28 am, beacon indiantalkiedhi...@gmail.com wrote:
 Hello Frank,

 This is what I am doing on the client side

 SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
 request.addProperty(token,WebPage.token);
 SoapSerializationEnvelope envelope = new
 SoapSerializationEnvelope(SoapEnvelope.VER11);
 envelope.dotNet = true;
 envelope.setOutputSoapObject(request);
 HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
 androidHttpTransport.setXmlVersionTag(?xml version=\1.0\ encoding=
 \UTF-8\?);
 androidHttpTransport.call(SOAP_ACTION, envelope);
 SoapObject result = (SoapObject) envelope.bodyIn;
 String strResult = result.toString();

 I am getting all the fields that I am supposed to get, but I am not
 getting it in the XML format.That's my problem.

 On Jul 30, 7:05 pm, Frank Weiss fewe...@gmail.com wrote:



  I don't recognize what data format that is, but I would guess that
  your code has an error or is not sending the right HTTP headers. What
  client side code are you using?

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


[android-developers] Re: Problem

2010-08-01 Thread Ed
It sounds like you're trying to dynamically inflate an xml layout and
run dynamic code.

XML Layout:
 Android doesn't support the use of dynamic xml layouts:
“The view hierarchy inflation (and many other things that use XML
resources) relies on
 the preprocessing performed by the resource compiler when
building the application.
 They can not be used with plain XML files.

 It would certainly be nice to be able to inflate from raw XML
files, but there is no
 plan to do this any time soon due to the effort involved and that
it is questionable
 whether the performance would be acceptable.”

Code:
  Android is using compiled java. As it is not an interpreted language
you will not be able to use approaches available in other languages
e.g. Javascript's exec()

I've spent a fair bit of time looking at this problem myself and
basically the most viable solution is to come up with your own
simplified subset of layout commands and use these to dynamically add
views to a placeholder. As for the running of code again you need to
come up with a simplified set of changes you might want to make on the
fly e.g. what method to call onClick for button X.

I have considered writing a generic reusable solution to this very
problem but I think the subset of language components for both views
and code would be hard to define for unknown applications.

Ed

On Aug 1, 10:26 pm, { Devdroid } webnet.andr...@gmail.com wrote:
 On 30 July 2010 11:49, prateek tuli censor...@yahoo.co.in wrote:

  Hi,
  I want to create an application in android which at runtime calls an
  xml file from some path of the system.And make that contents of the
  xml file run in the same application.Could i get a feasible code
  because at runtime the bytecode of the activity is already created.how
  do i compile and run the activity and runtime.Also i was facing
  problem reading the xml file.Need some suggestions asap..
  Thanx in advance!!

 XML files are not executables so they cannot be run. Please be more
 specific on what your are really want to achieve as it's hard to advice
 on some unnamed problems

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: get favicon from sites

2010-08-01 Thread Ed
String url = http://blah.com/favicon.ico;;
DefaultHttpClient client = new DefaultHttpClient();
HttpGet httpGet = new HttpGet(request.url);
HttpResponse httpResponse = client.execute(httpGet);
InputStream is = (java.io.InputStream)
httpResponse.getEntity().getContent();
Drawable image = Drawable.createFromStream(is,src);

use the Drawable as you see fit.

NB: this is a blocking request and ideally should not be executed on
the UI thread. If you're just mucking around with ideas then blocking
the UI thread probably isn't a concern though.

Ed

On Jul 31, 7:52 pm, aye thwe ayethw...@gmail.com wrote:
 Hi everybody!
 I m now studying NewsDroid Rss Feed project. I want to get favicon
 from Feed Url also.
 But i don't know how to get it. Please help.
 Thank you all.

 with regards,
 ayethwe

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: What is the best way to handle Images?

2010-07-30 Thread Ed
if you are hanging onto a copy of the images have a look at
SoftReference e.g.

SoftReferenceBitmap myImage;

This will automatically handle releasing the Bitmap if it's not in use
or is taking up too much room.

If you have a set of images the best approach is a hash map where the
url of the image is the key.

This might help -
http://code.google.com/p/android-pinch/source/browse/trunk/src/com/nikkoaiello/mobile/android/WebImageView.java?r=7

Also try some housekeeping things like closing any streams.

Ed

On Jul 30, 12:42 am, Sohan badaya sohan.bad...@gmail.com wrote:
 Hi All,

 I wrote a application that load images from facebook and i show in
 lmageview, using this below code.

                                 InputStream object = myDataFromServer;
                                 Bitmap 
 bmpImage=BitmapFactory.decodeStream(object);
                                 imageView.setImageBitmap(bmpImage);

 it works fine for me. But the trouble is when i run my application for
 a longer time, it gives me error,
 OutofMemoryError, and becuse of this error my application crash.

       so want to know is there any better way to handling
 images.please help me.

 Thanks,
 Sohan Badaya

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Inflate view from XMLPullParser or other external source

2010-07-27 Thread Ed
I want to dynamically pull in a layout from an external source.

As discussed in this thread from September 2009 -
http://groups.google.com/group/android-developers/browse_thread/thread/bfec246d0537ec6b/6c31a85779d86a3e?lnk=gstq=inflate+from+xmlpullparser#6c31a85779d86a3e

I am wondering if the situation has changed since this discussion or
if it is likely to change.

I understand the need to use pre-compiled xml layouts so if there is
an option to dynamically pull in a layout that is already compiled
that would be fine.

Basically I want a setup where I can change a view layout without an
app update. The elements within the view would be fairly static (e.g.
there will be 2 buttons call foo and bar that fire fooOnClick and
barOnClick).

The only work around I can think of is a custom scripting language
that allows the definition of views that are created from code.
Ideally this would parse the same xml as a standard layout. Obviously
this would involve a lot of code and probably be fairly slow.

Button btnFoo = new Button();
btnFoo.setText(foo);
dynamicLayout.addView(btnFoo);

If this is the only option at least the EdsMagicLayoutInflater class
would be reusable across projects.

Cheers,

Ed

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] location.getTime() returns strange result

2010-07-26 Thread Ed Lebeau
It doesn't appear to be the conversion.  It's the (long) value being
returned that is way off.  With the Date() function, I'm getting back Jan 29
12013.  The time is off by two minutes, but I can't tell if that is just the
time of the last valid fix, a random number that happens to be close to the
current time or what.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Custom namespace using .Net webservice and ksoap.

2010-06-09 Thread Ed
Hi All,

I believe I'm having the same problem as Rahul.

Basically I have a .Net webservice that I am trying to call. The
request contains a complex data type which I have been able to
replicate and use with KSoap2. Using a proxy I can see the request is
almost the same as a working call from a flash UI. The difference
between the working flash call and the failing KSoap2 call is the
request tag from KSoap is request i:type=d:anyType and .Net is
refusing to parse this.

Please note that I cannot change the webservice in anyway. The
solution to this problem has to be via a change to the Android app.

Cheers,

Ed

On Jun 1, 10:25 pm, rrohilla rohill...@gmail.com wrote:
 Hi,

 I am calling a web service which has the following request format.

 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/
 envelope/ xmlns:ns=http://test.com/2009/08; xmlns:dat=http://
 test.com/2009/08/DataContracts
    soapenv:Header/
    soapenv:Body
       ns:ProcessData
          ns:data
             dat:InFields
                dat:ExServiceDataField
                   dat:FieldDataSample Field Data/ns:FieldData
                   dat:ServiceField
                   dat:ServiceField
                      dat:DisplaynameBooks/ns:Displayname
                      dat:FieldTypeBoth/ns:FieldType
                      dat:GroupTypeMyInfo/ns:GroupType
                      dat:Id2/ns:Id
                      dat:Requiredtrue/ns:Required
                   /dat:ServiceField
                /dat:ExServiceDataField

                dat:ExServiceDataField
                   dat:FieldDataSample Field Data/ns:FieldData
                   dat:ServiceField
                   dat:ServiceField
                      dat:DisplaynameClothes/ns:Displayname
                      dat:FieldTypeBoth/ns:FieldType
                      dat:GroupTypeMyInfo/ns:GroupType
                      dat:Id2/ns:Id
                      dat:Requiredtrue/ns:Required
                   /dat:ServiceField
                /dat:ExServiceDataField
             /dat:InFields
          /ns:data
       /ns:ProcessData
    /soapenv:Body
 /soapenv:Envelope

 Now when I call the web service I get the following error
 SoapFault - faultcode: 'a:DeserializationFailed' faultstring: 'The
 formatter threw an exception while trying to deserialize the message:
 There was an error while trying to deserialize 
 parameterhttp://test.com/2009/08:data. The InnerException message was 'Error 
 in
 line 1 position 463. Element 'http://test.com/2009/08/
 DataContracts:InFields' contains data of the 'http://test.com/2009/08/
 DataContracts:anyType' data contract. The deserializer has no
 knowledge of any type that maps to this contract. Add the type
 corresponding to 'anyType' to the list of known types - for example,
 by using the KnownTypeAttribute attributre or by adding it to the list
 of known types passed to DataContractSerializer.'.  Please see
 InnerException for more details.' faultactor: 'null' detail:
 org.kxml2.kdom.n...@43bcb040

 The Request sent is has  i:type=n0:anytype in each tag which is
 creating an error in server side. How do T remove the attribute from
 the XML tag of the request XML for example
 n0:ExServiceDataField i:type=n0:anyType should be as
 n0:ExServiceDataField

 Thanks,
 Rahul

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Custom namespace using .Net webservice and ksoap.

2010-06-09 Thread Ed
Hi All,

I eventually solved this. What I was missing was the mapping on the
envelope. I had seen this in examples but mistakingly assumed that
this was for handling the response and that it wouldn't effect the
request. The below line of code solved my problem and now all is well.

envelope.addMapping(request.getNamespace(), MyRequestClass,
MyRequestClass.class);

No doubt I'll have move questions as soon as I have more time to work
on the app.

Ed


On Jun 8, 11:15 am, Ed edscha...@gmail.com wrote:
 Hi All,

 I believe I'm having the same problem as Rahul.

 Basically I have a .Net webservice that I am trying to call. The
 request contains a complex data type which I have been able to
 replicate and use with KSoap2. Using a proxy I can see the request is
 almost the same as a working call from a flash UI. The difference
 between the working flash call and the failing KSoap2 call is the
 request tag from KSoap is request i:type=d:anyType and .Net is
 refusing to parse this.

 Please note that I cannot change the webservice in anyway. The
 solution to this problem has to be via a change to the Android app.

 Cheers,

 Ed

 On Jun 1, 10:25 pm, rrohilla rohill...@gmail.com wrote: Hi,

  I am calling a web service which has the following request format.

  soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/
  envelope/ xmlns:ns=http://test.com/2009/08; xmlns:dat=http://
  test.com/2009/08/DataContracts
     soapenv:Header/
     soapenv:Body
        ns:ProcessData
           ns:data
              dat:InFields
                 dat:ExServiceDataField
                    dat:FieldDataSample Field Data/ns:FieldData
                    dat:ServiceField
                    dat:ServiceField
                       dat:DisplaynameBooks/ns:Displayname
                       dat:FieldTypeBoth/ns:FieldType
                       dat:GroupTypeMyInfo/ns:GroupType
                       dat:Id2/ns:Id
                       dat:Requiredtrue/ns:Required
                    /dat:ServiceField
                 /dat:ExServiceDataField

                 dat:ExServiceDataField
                    dat:FieldDataSample Field Data/ns:FieldData
                    dat:ServiceField
                    dat:ServiceField
                       dat:DisplaynameClothes/ns:Displayname
                       dat:FieldTypeBoth/ns:FieldType
                       dat:GroupTypeMyInfo/ns:GroupType
                       dat:Id2/ns:Id
                       dat:Requiredtrue/ns:Required
                    /dat:ServiceField
                 /dat:ExServiceDataField
              /dat:InFields
           /ns:data
        /ns:ProcessData
     /soapenv:Body
  /soapenv:Envelope

  Now when I call the web service I get the following error
  SoapFault - faultcode: 'a:DeserializationFailed' faultstring: 'The
  formatter threw an exception while trying to deserialize the message:
  There was an error while trying to deserialize 
  parameterhttp://test.com/2009/08:data. The InnerException message was 
  'Error in
  line 1 position 463. Element 'http://test.com/2009/08/
  DataContracts:InFields' contains data of the 'http://test.com/2009/08/
  DataContracts:anyType' data contract. The deserializer has no
  knowledge of any type that maps to this contract. Add the type
  corresponding to 'anyType' to the list of known types - for example,
  by using the KnownTypeAttribute attributre or by adding it to the list
  of known types passed to DataContractSerializer.'.  Please see
  InnerException for more details.' faultactor: 'null' detail:
  org.kxml2.kdom.n...@43bcb040

  The Request sent is has  i:type=n0:anytype in each tag which is
  creating an error in server side. How do T remove the attribute from
  the XML tag of the request XML for example
  n0:ExServiceDataField i:type=n0:anyType should be as
  n0:ExServiceDataField

  Thanks,
  Rahul

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Motorola Droid (possible android) multi-touch bug and how to reproduce

2010-03-12 Thread Ed Burnette
Please read and vote for this bug:

   http://code.google.com/p/android/issues/detail?id=6297

And also see some commentary about it on my blog here:

   http://blogs.zdnet.com/Burnette/?p=1747

--Ed
Editor, Planet Android -- http://www.planetandroid.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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Mulit-Touch Problems

2010-03-12 Thread Ed Burnette
Please read and vote for this bug:

   http://code.google.com/p/android/issues/detail?id=6297

And also see some commentary about it on my blog here:

   http://blogs.zdnet.com/Burnette/?p=1747

--Ed
Editor, Planet Android -- http://www.planetandroid.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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Updating the UI in response to a received broadcast.

2010-03-11 Thread Ed Greenberg
I have an app with an activity and a service.  The service schedules a
function to run using timer.scheduleAtFixedRate. When the timer task
runs, I want to update some TextView objects in the Activity's UI, so
that the user knows that the service has run, and the last thing it
did.

So in the timer task I do:
Intent intent = new
Intent(com.edgreenberg.TextMessageServer.UPDATE_SCREEN);
SimpleDateFormat dateFormat = new SimpleDateFormat(/MM/dd
HH:mm:ss);
Date date = new Date();
intent.putExtra(time, dateFormat.format(date));
intent.putExtra(numberMsgs,numberMsgs);
sendBroadcast(intent);

Then, in the activity, I created:

private int numMsgs1;
private String dateTime1;

public class CustomBroadCast extends BroadcastReceiver {
public CustomBroadCast(){
}
/**
 * @see
android.content.BroadcastReceiver#onReceive(Context,Intent)
 */
//public static final String TAG = CustomBroadCast;

@Override
public void onReceive(Context context, Intent intent) {

if(intent.getAction().equals(com.edgreenberg.TextMessageServer.UPDATE_SCREEN))
{
Log.i(INFORMATION,Broadcasting message);
dateTime1 = intent.getStringExtra(time);
numMsgs1 = intent.getIntExtra(numberMsgs, 0);
// gotta get this to the gui thread somehow.
handler.sendEmptyMessage(0);


}
}

}

Now, where it says gotta get this to the gui thread somehow is where
I previously did dateTime.setText(dateTime1), but according to what I
read, that shouldn't work. And it doesn't :)

So I sent the empty message using the handler, as shown below:

private Handler handler = new Handler() {
@Override
public void handleMessage(Message msg) {
final TextView dateTime,numMsgs;
dateTime = (TextView) findViewById(R.id.datetime);
numMsgs = (TextView) findViewById(R.id.numMsgs);
dateTime.setText(dateTime1);
numMsgs.setText(numMsgs1);
}

};
 Now this, I expect to work. It doesn't. The screen stays mute.  In
fact, the debugger tells me that:
Thread [3 main] (Suspended (exception Resources$NotFoundException))
Resources.getText(int) line: 205
TextView.setText(int) line: 2809
TextMessageControlPanel$1.handleMessage(Message) line: 38
TextMessageControlPanel$1(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 123
ActivityThread.main(String[]) line: 4203
Method.invokeNative(Object, Object[], Class, Class[], Class, int,
boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 521
ZygoteInit$MethodAndArgsCaller.run() line: 791
ZygoteInit.main(String[]) line: 549
NativeStart.main(String[]) line: not available [native method]

It feels like something is out of scope, but I'm not java-literate
enough to tell what.

My handler,  CustomBroadCast class, onCreate, onStart are all at the
same level inside my main activity class (extends activity.)

Can somebody shed some light?

Thanks,
/edg

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Calendar application issues-

2009-11-22 Thread Ed Gatzke

I submitted a handful of different issues for enhancement to the
buglist (Items 4919-4924).

I think these are reasonable issues and not too difficult to do.  I
would even take a stab, but it is not obvious to me yet how to grab
the applications package and get running.  Is there a separate
applications group?  Are there specific managers for each
application?

Summary of issues-
  Start of day
  Event time changing by 5 rather than 1 minute
  Show some text in month view
  Goto date feature
  Month mode navigation (LR instead of UD)
  Calendar font/#hours in 1 day mode

Some things may be due to low resolution of previous phones.  I can
see limiting the number of hours shown in 1 day view or not having
text on month view, but the Droid changes things a bit.

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: Android WVGA support

2009-09-09 Thread Ed Burnette

Did you mean uses-sdk?

On Sep 9, 12:37 pm, Dianne Hackborn hack...@android.com wrote:
 You'd do supports-sdk android:minSdkVersion=3
 android:targetSdkVersion=4 / and then configure the rest of the manifest
 as desired.



 On Wed, Sep 9, 2009 at 2:12 AM, Al Sutton a...@funkyandroid.com wrote:

  Dianne,

  In the blog post can you cover how to produce one app which will run
  on cupcake and donut and support multiple resolutions.

  As I understand things at the moment developers will need at least two
  versions of the same app listed in Market to cover both bases; One
  with minSDK=4 and the supports-screens manifest tag and a separate
  one for cupcake devices because cupcake won't run apps with minSDK 
  3. If there is also a lite  paid for version you're then into 4 app
  listings for the same app (lite, paid-for, multi-resolution lite,
  multi-resolution paid-for), which seems like its' going to be a it of
  a pain.

  Thanks,

  Al.

  On Sep 9, 7:35 am, Dianne Hackborn hack...@android.com wrote:
   Supporting a wider variety of hardware has been an ongoing processes, and
   was already started with 1.5 with the introduction of soft keyboards and
   corresponding mechanisms for applications to declare they require hard
   keyboards etc.  This will continue after Donut as well.

   We are not going to drop a hardware requirement without having a
  mechanism
   for applications to specify that they need the hardware and a strategy
  for
   grand-fathering existing applications into the filtering.

   On Tue, Sep 8, 2009 at 11:26 PM, gasolin gaso...@gmail.com wrote:

Hello,

I was thinking there are plenty of hardware constrains in upcoming
android devices,
not only the screen resolution. There will be some devices without
compass, wifi, g-sensor... ,etc.

It will be nice that developer could pre-claimed the app requirement
and user could be notified before they install the app and feel bad
while the app hang (mostly without notice).

Donut's  'supports-screens' tag could be easily extend to this
suggested architecture if google guys think its helpful.
   http://code.google.com/p/android/issues/detail?id=3693

Please 'Star' this issue in the above link if you think it's good for
android ecosystem.

regards
--
gasolin

   --
   Dianne Hackborn
   Android framework engineer
   hack...@android.com

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

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

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



[android-developers] Re: Broken OpenGL texture output after resuming the app

2009-08-25 Thread Ed Burnette

Could someone on the Android graphics team comment on whether people
should code around this or if people should ignore it because it has a
good chance of being changed in a 1.5 update? I'm asking because I
need to know what to tell developers in the next edition of Hello,
Android. The 1.5 version of the OpenGL example at
http://www.pragprog.com/titles/eband/source_code exhibits this issue,
but I hate to put in hacks for short-term problems because they cloud
the examples and may be inefficient or even stop working in the
future.

Thanks,
--Ed

On Aug 21, 4:58 pm, Ed Burnette ed.burne...@gmail.com wrote:
 I have opened Issue 3623 for this 
 problem.http://code.google.com/p/android/issues/detail?id=3623
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Broken OpenGL texture output after resuming the app

2009-08-21 Thread Ed Burnette

You can easily demonstrate the problem by pressing the Phone button
while the app is running, then pressing the Back button. The texture
will be corrupted 9 times out of 10.

The problem does NOT occur if you change the screen orientation, or
press the power button and then press menu to unlock the phone. It
also does NOT occur if you launch the app from the Home screen, press
Back, and then relaunch. However it DOES occur if you launch the app
from the Home screen, press Home to bring the Home screen up again
(instead of pressing Back), and then relaunch.

Interestingly, onSurfaceChanged() is called twice. In between the two
calls, the texture draws correctly as you observed.

It looks like an OpenGL bug to me, what do you think?

Workaround:
I've found that if you add this before your Image.draw() call in your
onDrawFrame() method it will magically start working:

// Once more with feeling
gl.glEnable   ( GL10.GL_TEXTURE_2D );

It shouldn't be necessary, because you already did this earlier, but
it works. In fact, there are a variety of statements you can put there
that will inexplicably cause the app to work, including:

//  gl.glEnable(GL10.GL_TEXTURE_2D);
//  gl.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S,
GL10.GL_REPEAT);
//  gl.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T,
GL10.GL_REPEAT);
//  gl.glTexParameterx(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_LINEAR);
//  gl.glTexParameterx(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);

but strangely enough this one has no effect:

//gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);

If you don't like putting something extra in onDrawFrame(), it seems
to work in onSurfaceChanged() as well.

So why, you might ask, do all the samples from Google work ok? Because
they happen to make these calls in their onDrawFrame() method. For
example, from the API demos, in TriangleRenderer.java, the onDrawFrame
() method does:

gl.glActiveTexture(GL10.GL_TEXTURE0);
gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);
gl.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S,
GL10.GL_REPEAT);
gl.glTexParameterx(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_WRAP_T,  GL10.GL_REPEAT);
...
mTriangle.draw(gl);

Therefore the examples didn't run into the bug, if that's what it is.

--Ed Burnette
Author of Hello, Android -- http://pragprog.com/titles/eband


On Jul 28, 9:02 pm, Michael Angel obliviousau...@gmail.com wrote:
 I've run into a very strange problem regardingOpenGLtextureoutputs,
 which only occurs when the app is resumed (particularly when leaving
 after pressing Home, and going back into the app).

 I'm not sure how or why, but it appears to be that it's reading
 bitrate of the pixels incorrect, or something else entirely.
 Furthermore, this issue only occurs on the device itself (testing on
 my G1/Dream), not on the emulator.

 Code as well as example screenshots in the zip file show exactly what
 I'm talking about. And to completely replicate the issue I've included
 the 2D sprite object framework I've developed forOpenGLso the
 situation is exactly the same as what I've run across when developing
 my game, so if it's somehow an issue in my framework you may be able
 to spot it.

 Here is the link to a test example project with included 
 screenshots:http://a.imagehost.org/download/0828/BrokenTexture.zip

 I've been told this may be a bug in the device'sopenGLdriver, but we
 can't be sure until further testing and analysis is done.

 Another important thing to note (with extensive debugging on my part,
 and visually noticeable) is after resuming the app, thetexturedraws
 correctly on the first frame; after that thetextureis 'broken'. Any
 thoughts on this would be greatly appreciated.

 Also, this has been tested on multiple ROMs, including HTC ADP 1.5,
 first T-Mobile OTA 1.5, and latest T-Mobile OTA 1.5.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Broken OpenGL texture output after resuming the app

2009-08-21 Thread Ed Burnette

I have opened Issue 3623 for this problem.
http://code.google.com/p/android/issues/detail?id=3623

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



[android-developers] Getting content in browser launched activity

2009-08-04 Thread Ed

  Hello,
I have an activity which is launched to process a file which is
downloaded from a website.  The site requires a login and maintains
the session via cookies.  The activity has an intent filter defined
and it is started but I do not understand how it can get the document
that was originally requested in the browser.  The intent object has
the correct scheme and uri but retrieving the file from the activity
would require a new http session and login to the web site.  Does the
browser store the file in a temporary area that can be accessed by the
activity?

  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: problems with Phone.apk built from source

2009-07-26 Thread Ed

Hi Dianne,

Thanks for replying, and sorry if I posted to the wrong forum. I
actually got the app working on my phone--the solution was right here:
http://source.android.com/documentation/building-for-dream

I am so happy. I changed the Phone app to get rid of the 5-second
screen timeout during a phone call, and extended the subsequent
timeouts to default instead of medium (15 seconds). This makes calling
phone menus MUCH easier.

Thanks again,
--Ed

On Jul 25, 6:02 pm, Dianne Hackborn hack...@android.com wrote:
 Hi, this should probably be posted in android-platform, since I think we are
 outside the bounds of the SDK here.  Also fwiw I don't think the high-level
 phone app is carrier-dependent at all -- that is more in the realm of the
 radio and RIL.



 On Sat, Jul 25, 2009 at 8:43 AM, Ed edmundcl...@gmail.com wrote:

  Hello,

  I built Phone.apk from the source code, and the resulting application
  could not find a carrier. I suspect that there are specific target
  builds required here (note that I DID add TARGET_PRODUCT :=
  htc_dream as required to the Makefile), but there are no other
  vendors available under the Vendor folder in the source (i.e., T-
  Mobile, etc).

  Am I off base? Should Phone.apk be able to work on our HTC dream
  phones without additional modifications?

  Thanks very much for your help,
  --Ed

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  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] problems with Phone.apk built from source

2009-07-25 Thread Ed

Hello,

I built Phone.apk from the source code, and the resulting application
could not find a carrier. I suspect that there are specific target
builds required here (note that I DID add TARGET_PRODUCT :=
htc_dream as required to the Makefile), but there are no other
vendors available under the Vendor folder in the source (i.e., T-
Mobile, etc).

Am I off base? Should Phone.apk be able to work on our HTC dream
phones without additional modifications?

Thanks very much for your help,
--Ed
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2009-07-24 Thread Ed

On Jul 24, 6:01 am, Kaj Bjurman kaj.bjur...@gmail.com wrote:

 Crackers don't think about if a program is expensive or not. They only
 want to get known for their talents, and they crack all popular
 applications, even if they are almost for free. So all popular
 applications get cracked, regardless of price, and time isn't an issue
 for the cracker. He doesn't think in economical terms.

This is exactly why it is a waste of time for developers to focus too
much on preventing piracy when there is no proof that the piracy rate
is higher than that of the general rate.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2009-07-23 Thread Ed

Is the rate of piracy on Android significantly different from that of
any other platform? I would guess not--it might even be less. In other
words, don't spend countless hours and dollars chasing a goal that has
been already proven many times over to be unattainable. Doing so would
impact a developer's potential profits. The solution to go free with
ads is a good one, and using something like a prebuilt solution at
the andapp store is great too. Think too much about it, and you WILL
have lost time and money.

--Ed
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2009-07-23 Thread Ed

Good point about the Market in other countries. However, I was not
only referring to cell phones, but all platforms and software in
general.

My wild guess that Android software is less pirated is simply because
of the installed base. Since there are so many more users of other
platforms and devices, Android pirate sites are less appealing and
less likely to pop up. (As opposed to iPhone, for example.) This makes
tracking of piracy a bit easier, and perhaps enforcement as well.




On Jul 23, 8:16 am, Zsolt Váradi karma...@gmail.com wrote:
 On Thu, Jul 23, 2009 at 3:07 PM, Ededmundcl...@gmail.com wrote:

  Is the rate of piracy on Android significantly different from that of
  any other platform?

 I'd guess otherwise: with the paid Market only available in a few
 countries, others will have to resort to using the MarketEnabler (as I
 did) or to piracy. The latter is cheaper and easier, works even
 without rooting, and is permanent for sure.

 Zsolt
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2009-07-23 Thread Ed

In fact, using the pirating site listed previously as an example, here
is what I found for each cell phone platform:

Symbian OS9: 39 pages of apps, 24 pages of games

Symbian OS6-8: 41 pages of apps, 34 pages of games

Nokia S40: 9 pages total of apps and games

PocketPC/Palm: 19 pages of apps, 7 pages of games

SonyEricsson: 16 pages total of apps and games

Symbian UIQ: 7 pages of apps, 2 pages of games

iPhone: 7 pages total of apps and games

Android: 2 pages total of apps and games

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



[android-developers] location and usage of Screen Time Out

2009-07-23 Thread Ed

Hi,

I am trying to change the default screen time out for phone calls. I
have looked through PhoneApp.java and see that there are calls to
PowerManager and LocalPowerManager, which are located in the
frameworks. Unfortunately,  I am only able to find references to
default durations, for example:

(from PhoneApp.java)

case MEDIUM:
// Set the poke lock to timeout the display after a
medium
// timeout (15s). This ensures that the screen goes to
sleep
// as soon as acceptably possible after we the wake
lock
// has been released.
pokeLockSetting |=
LocalPowerManager.POKE_LOCK_MEDIUM_TIMEOUT;
break;

(In LocalPowerManager)

public static final int POKE_LOCK_MEDIUM_TIMEOUT = 0x4;

Is the final 0x4 in POKE_LOCK_MEDIUM_TIMEOUT = 0x4 some reference
to the duration of the timeout? If not, what is it?

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: AndCooper Build Tool Release

2009-06-02 Thread Ed Burnette

I think he meant:

http://mobilebytes.wordpress.com

with an r.

On Jun 1, 9:13 pm, Mark Murphy mmur...@commonsware.com wrote:
 Fred Grott(shareme) wrote:
  The link to the project pages can be found at the MobileBytes blog
  under the FOSS page:

 http://mobilebytes.wordpess.com

 Um...

 I get a Welcome to your source for Message Boards page at that URL
 that doesn't seem to have anything to do with you or your work. For
 example, there's no FOSS on the home page, the Blog tab leads to a bunch
 of AdSense ads for blogging, etc.

 Got a better link?

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

 Android App Developer Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 get more sales on the Android Market

2009-03-03 Thread Ed Burnette

Here's a progress report: 57% of the poll respondents said lower the
price so I cut it temporarily from $2.99 to $0.99 (1/3rd the
original). In the short time since then, sales increased (2x), but not
enough to make up for the price difference. See 
http://blogs.zdnet.com/Burnette/?p=824
.

In economics class we had these nice graphs that would tell us the
perfect price to maximize profit. Here it's more trial and error, with
long delays before seeing results, and there are a lot more variables
than just price.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to get more sales on the Android Market

2009-02-27 Thread Ed Burnette

What do you do when you put an application on the Android Market and
nobody buys it? That’s the subject of today’s installation of Market
Moves (http://blogs.zdnet.com/Burnette/?p=816). At the end there is a
poll asking for your input on what to try next. Should I get rid of
the free version? Reduce the price on the paid one? Add some more
features? These are questions that every Android developer will face.
Please have a look, add your vote for the best approach, and share
your experiences in marketing your own apps in the talkback section.

Thanks,
-- Ed Burnette
Author, Hello, Android, http://www.pragprog.com/titles/eband
Webmaster, Planet Android blog aggregator, http://www.planetandroid.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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Having multiple versions of the same app in the market

2009-02-19 Thread Ed Burnette

I suggest you treat them as two different applications. Set the name
of the free one to include the word Lite or Free, and then upload
your fancier version with a slightly different package name and a non-
zero price, calling that one your Pro version (or just leave off the
suffix). That's what I did with Re-Translate, see 
http://blogs.zdnet.com/Burnette/?p=776
for more details.

Given the 24-hour return policy, though, another option for Android
programs that you don't have for iPhone apps is to *only* have a paid
version. To try it, users would have to first pay for it, and then
they'd have 24 hours to decide whether or not to keep it.

-- Ed Burnette
Hello, Android: Introducing Google's Mobile Development Platform -
now available
http://www.pragprog.com/titles/eband/hello-android


On Feb 19, 8:42 am, jarkman jark...@gmail.com wrote:
 I'd love to get a definitive answer to the same question. I was askign
 something similar 
 yesterday:http://groups.google.com/group/android-developers/browse_thread/threa...

 Experiment suggests that the Market won't let you upload two different
 APKs with the same package name as different apps, so I think the
 scenario you describe won't work.

 It would be very helpful to hear Google's take on this problem, since
 they have presumably thought out how the Market should work for light
  full builds of the same app.

 R.

 On Feb 19, 12:13 pm, fry bender...@gmail.com wrote:

  Hello,

  I am planning to have two versions of the same app available in the
  market - let's say App-Lite and App-Advanced. They both almost the
  same core functionality, but App-Advanced has a bit more specific
  features, than the App-Lite has.

  Now I am thinking what would be the strategy of deploying those two
  apps in the market.

  The simple way is to provide different namespace in
  AndroidManifest.xml for both apps, so App-Lite and App-Advanced
  would show up as two completely different applications and could be
  installed parallel on the same device.

  But I'm also thinking about another way of installing the App-Advanced
  version - like an upgrade to the App-Lite which might be already
  installed. To do this, I can just set the same namespace for both app
  in AndroidManifest.xml, so after installing one app would replace the
  other one - I can do this from adb command line, but I'm not sure how
  android market would behave in this case. Will it show them as two
  different apps, will it show them as two different versions of the
  same app with the ability to upgrade from one version to another, or
  it just will not allow to publish two apps with the same namespace? Is
  this scenario doable with Android Market?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] MediaPlayer seeking back

2009-01-29 Thread ed

I've been using androids MediaPlayer to stream from an http url and
have a question about seeking.  Currently, our urls expire after they
have been used once or a certain time out has expired to dissuade
scraping content.  Now, this obviously makes progressive streaming
past the buffer impossible with the exact same url as you need to open
a new http connection with the same mangled key, which we
intentionally don't allow.

However, MediaPlayer seems to do this when seeking before the current
position (i.e. seeking from 1:00 in the audio to 0:30).  As the file
has already been downloaded up to the current position I'm confused as
to why MediaPlayer is still trying to initate a new http connection in
this case?  The only thing I can think of is that MediaPlayer is
getting rid of audio its already played up to the current position,
and hence needs to restart the connection if you try to seek back on
the stream.  Is this correct, or is there something else going on?

Thanks,
Ed

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Question on recovering deleted pictures and wallpaper

2009-01-06 Thread Ed Burnette

I USB-mounted my G1 phone and was trying to use Windows to clean up
the /sdcard/dcim/Camera directory in preparation to making a copy.
Unfortunately Windows reported a bunch of read/write errors and then
deleted the whole directory from the sdcard. Any advice on recovering
the lost data (I already looked in the Windows trashcan)?

One of the pictures that I really want to save is set as my current
Android wallpaper. I can still see it even though the original picture
is gone. I poked around a bit but it's not obvious where the home
application keeps that file. I want to make a copy of it. Any ideas?

Thanks,
--Ed
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 a SIM Required for Dev 1?

2008-12-15 Thread Ed Anuff

Wish I'd known that, although it was pretty cheap to get a second sim
from ATT that shares minutes from my iPhone plan.  The main gotcha is
that I needed to enter the ASN info into the G1 myself for it to
connect to the data network, it didn't just work.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Wifi Ip Address

2008-12-01 Thread Ed

You could use the browser to access sites like http://www.showipaddress.com/

On Dec 1, 12:18 pm, Andrea [EMAIL PROTECTED] wrote:
 Yes, the ip address that the dhcp server of a wifi net assigns to my
 device.

 Xavier Mathews wrote:
  IP Address?

  Xavier A. Mathews
  Student/Browser Specialist/Developer/Web-Master
  Google Group Client Based Tech Support Specialist
  Hazel Crest Illinois
  [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
  Fear of a name, only increases fear of the thing itself.

  On Mon, Dec 1, 2008 at 4:49 AM, Andrea [EMAIL PROTECTED] wrote:

   How can I get the Ip address assigned by a WiFi network to which my
   device is connected?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Android Icon Creation Software

2008-11-05 Thread Ed Burnette

Those look nice; are the .svg versions available for use as examples/
templates?

On Nov 4, 8:50 am, Peli [EMAIL PROTECTED] wrote:
 We've created our Android icons using Inkscape.http://www.inkscape.org/

 Have a look at some icons here:http://www.openintents.org/en/
 for OI Flashlight, OI Shopping list, OI News Reader, and OI Notepad.
 (you have to scroll down a bit to see the new SDK 1.0 look icons).

 Peliwww.openintents.org

 On Nov 2, 4:14 pm, ScottG [EMAIL PROTECTED] wrote:

  Thanks for the insight, Pavel.  I was looking to duplicate look and
  feel of the Android home page icons not just a bunch of icon pixels.

  The folks at

 http://www.glyfx.com/index.html

  have some tools, some free icons and considerable expertise in this
  area.

  Cheers, Scott

  On Nov 1, 11:09 am, ScottG [EMAIL PROTECTED] wrote:

   What graphics package is recommend to create those nice Android icons?

   Thanks for any insight.

   Cheers, Scott
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: g1 keyboard missing up/down/left/right keys?

2008-10-27 Thread Ed

Hi,

I had the same problem with the Lunar Lander application. Someone on
this group told me that the D-Pad events are supposed to be handled by
the trackball, but this is definitely not happening. Please post if
you get a solution. I have been trying to find an applicable code
snippet for trackball usage.

On Oct 27, 12:01 am, g1ster [EMAIL PROTECTED] wrote:
 I set up my g1 phone to test the Snake sample came with the Android
 SDK. The application requires up/down/left/right keys, but they not
 available on the g1 keyboard - did I miss it?

 I changed the code to use I, K, J, L keys instead. It works when I
 have the device connect to to the computer with Eclipse running. But
 the app stops working when I unplugged it from the computer. Is it
 because I didn't do a release build? How?

 I know, two questions!  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: g1 keyboard missing up/down/left/right keys?

2008-10-27 Thread Ed

Dear Mark,

Thanks for your message. Are you saying that when you install
LunarLander on your G1 device, you can steer left and right using the
trackball? Because it sure doesn't work for me, or other G1 users in
my office. Please try it out and let me know.

Thanks,
--Ed

On Oct 27, 9:59 am, Mark Murphy [EMAIL PROTECTED] wrote:
 Ed wrote:
  I had the same problem with the Lunar Lander application. Someone on
  this group told me that the D-Pad events are supposed to be handled by
  the trackball, but this is definitely not happening.

 Sure it is. If nothing handles onTrackballEvent(), it translates the
 events into KeyEvent instances and calls onKeyEvent(). It works just fine.

 Well, other than the fact that I find the trackball to be less precise
 than a D-pad for things that actually try using these events.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 1.3 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: D-Pad on the emulator does not exist on G1

2008-10-25 Thread Ed

Thanks for the response hackbod. However, the trackball left and right
events are not being handled by the G1--using the same code that works
in the emulator.

It would be nice to replace

else if KeyEvent.KEYCODE_DPAD_LEFT

with onEvent.TRACKBALL_LEFT or something similar, but it doesn't
work that way. I think you have to specify using the x-axis as a
relative position, and I'm not sure how it's done.

Thanks again.


On Oct 24, 6:04 pm, hackbod [EMAIL PROTECTED] wrote:
 The system automatically converts trackballe events to dpad events if
 nobody handles the trackball events themselves.  This of course means
 very quick down and up dpad events for each trackball movement, so if
 you are depending on someone holding a button down it won't work.

 You can watch trackball events yourself with View.onTrackballEvent().

 On Oct 24, 1:32 pm, Ed [EMAIL PROTECTED] wrote:

  Just to clarify, the trackball left/right works in the emulator (using
  the G1 skin), but not in the real phone. This is the relevant code
  from the sample app:

  // center/space - fire
                      if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER
                              || keyCode == KeyEvent.KEYCODE_SPACE) {
                          setFiring(true);
                          return true;
                          // left/q - left
                      } else if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT
                              || keyCode == KeyEvent.KEYCODE_Q) {
                          mRotating = -1;
                          return true;
                          // right/w - right
                      } else if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT
                              || keyCode == KeyEvent.KEYCODE_W) {
                          mRotating = 1;
                          return true;
                          // up - pause
                      } else if (keyCode == KeyEvent.KEYCODE_DPAD_UP) {
                          pause();
                          return true;

  On Oct 24, 10:13 am, Ed [EMAIL PROTECTED] wrote:

   Hi all,

   I just installed the sample Lunar Lander app on my G1, only to
   discover that the inputs that worked on the emulator's D-Pad (left and
   right), no longer work. Is there a code snippet somewhere that can
   switch my apps that were developed with the D-Pad in mind to the
   scroll wheel thingie?

   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] Installed my APK on my G1 via my website, but app does not appear??

2008-10-24 Thread Ed

Thanks in advance to any Android demigods that can help me with this.

I wrote a small app, exported it as an APK, and put it on my website
so I could install it. It says it installed correctly, but now I can't
see the app on my phone.

Note the following:
1. The app runs fine on the emulator.
2. I have checked the setting to allow installation of non-Market apps
from Unknown Sources.

Any ideas? Thanks again.

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



[android-developers] Re: Installed my APK on my G1 via my website, but app does not appear??

2008-10-24 Thread Ed

I apologize for posting this topic, it keeps coming up and the
solution is to use the USB debugging method. Please delete.

On Oct 24, 9:38 am, Ed [EMAIL PROTECTED] wrote:
 Thanks in advance to any Android demigods that can help me with this.

 I wrote a small app, exported it as an APK, and put it on my website
 so I could install it. It says it installed correctly, but now I can't
 see the app on my phone.

 Note the following:
 1. The app runs fine on the emulator.
 2. I have checked the setting to allow installation of non-Market apps
 from Unknown Sources.

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



[android-developers] Re: ADB via USB

2008-10-23 Thread Ed Burnette

I see the doc has been changed to say Windows (32-bit only). I tried
it on a Win32 (XP) machine and it worked fine. Any tips on how to port
the driver to Win64?

On Oct 22, 4:20 pm, Ed Burnette [EMAIL PROTECTED] wrote:
 It's not working for me. The device driver won't install, and I get
 this error from Vista64:

 Description:
   Windows detected a new device attached to your computer, but could
 not find the driver software it needs to make the device usable. Each
 device manufacturer typically includes driver software of a CD that
 comes with the device, or as a download from its website. The hardware
 ID of your device is USB\VID_0BB4PID_0C02REV_0100MI_01.

 Problem signature:
   Problem Event Name:   PnPDriverNotFound
   Architecture: x64
   Hardware Id:  USB\VID_0BB4PID_0C02REV_0100MI_01
   OS Version:   6.0.6001.2.1.0.256.4
   Locale ID:    1033

 On Oct 22, 3:03 pm, Xavier Ducrohet [EMAIL PROTECTED] wrote:

  Hi Mark,

  We just updated the doc regarding developing on devices, for all platforms.

 http://code.google.com/android/intro/develop-and-debug.html#developin...

  Xav
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Market Place and Trial Software?

2008-10-23 Thread Ed Burnette

How about this idea: Call your program Beta for now and then in
February (or whenever) retire the Beta version and come out with a new
non-Beta version that has a charge. The only trick would be to prevent
people from auto-updating from Beta to the commercial version without
annoying them.

IMHO Google did the developer community a disservice by not allowing
for paid apps from day one. A lot of the developer energy on iPhone
comes from dreams of riches made in the App Store. If at all
possible, please get paid apps in place by this December at the
latest.

--Ed
Hello, Android - now in 7th beta
http://www.pragprog.com/titles/eband/hello-android

On Oct 22, 4:25 pm, atrus123 [EMAIL PROTECTED] wrote:
 Another thing I was wondering if it would be possible to simply start
 charging for the app once that becomes an option.  So we'd post our
 stuff now... free... and then go in and edit the price later on.  It
 might be a good option; by then we'd have feedback, and any popularity
 might drive future revenue.

 I'd love to hear from a Google employee about how they expect this to
 work.

 On Oct 22, 4:07 pm, cyntacks [EMAIL PROTECTED] wrote:

  Hi Al,

  Great stuuf, to be honest I'm not as adept at licensing as I should
  be, given my job description and all! But there is def. a need for
  licensing of some sort. I'm really surprised we have to wait until Q1
  (which, as we all know could mean as late as March 31!). It just
  really puts a damper on the whole thing and is going to create
  headaches for most of us.

  Time-to-Market is huge in this industry, and those of us who worked
  very long days for too long toiling in the dark will not be able to
  benefit (read $) from the vacuum created when the new store goes
  live on Monday. Just a shame, that's all... But then again, I guess we
  could use the opportunity to perfect our products, or create more
  apps.

  Keep on coding, and def. let me know about the licensing idea, very
  interested.

  Kevin

  On Oct 22, 3:57 pm, Al Sutton [EMAIL PROTECTED] wrote:

   Hi Kevin,

   I think you'll end up with two apps initially. I'm looking at working on
   a licensing solution because there seems to be a need. Do you have any
   tips as to what you'd like to see?

   Al.

   cyntacks wrote:
Hi Al,

I guess that is the question. Does Android support this type of
transaction (i.e. lite version)? I don't recall seeing anything in
the API about this. Of course I can just disable parts of the app, but
how would the user upgrade to the full version?

Am I making to much out of this, will it all make sense come Monday
morning?

Kevin

On Oct 22, 3:44 pm, Al Sutton [EMAIL PROTECTED] wrote:

Can you not ship a cut down lite version with an option to pay for a
fuller version?

Al.

atrus123 wrote:

I'm disappointed that we won't be able to charge until next quarter,
and it does put a slight dent in my plans.  I guess I'll just sigh and
deploy.

On Oct 22, 1:56 pm, cyntacks [EMAIL PROTECTED] wrote:

Ok, so the Market Place will be live on Monday, AWESOME! AWESOME!
AWESOME!

But here is a question for all you developers like us who are hoping
to make some revenue off months of hard work.

Does the API currently support a way to make our applications trial
software? That is, making them free until March 1st or some other
date, at which time the user will have to pay?

Obviously getting on the phone and receiving user reviews is 
extremely
important, but giving away all of our hard work just seems wrong. I
have read that over 1 million people have pre-ordered the phone, that
is a lot of free software giveaways..

What is everyone else doing? Waiting? Sayhing the heck with it and
deploying? Just looking for some advice.

Kevin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Android Source Code Now Available

2008-10-23 Thread Ed Burnette

+1 to a zip file version, perhaps updated nightly or weekly. I know we
can use the web interface to look at one file at a time, but it would
be nice to be able to read it all from a Windows machine.

On Oct 21, 4:59 pm, whitehexagon [EMAIL PROTECTED] wrote:
 Great news!!  Is it also available as a .zip someplace, I really don't
 fancy to install all these other tools just to browse the source code.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: ADB via USB

2008-10-22 Thread Ed Burnette

It's not working for me. The device driver won't install, and I get
this error from Vista64:

Description:
  Windows detected a new device attached to your computer, but could
not find the driver software it needs to make the device usable. Each
device manufacturer typically includes driver software of a CD that
comes with the device, or as a download from its website. The hardware
ID of your device is USB\VID_0BB4PID_0C02REV_0100MI_01.

Problem signature:
  Problem Event Name:   PnPDriverNotFound
  Architecture: x64
  Hardware Id:  USB\VID_0BB4PID_0C02REV_0100MI_01
  OS Version:   6.0.6001.2.1.0.256.4
  Locale ID:1033


On Oct 22, 3:03 pm, Xavier Ducrohet [EMAIL PROTECTED] wrote:
 Hi Mark,

 We just updated the doc regarding developing on devices, for all platforms.

 http://code.google.com/android/intro/develop-and-debug.html#developin...

 Xav


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: sqlite3?

2008-09-11 Thread Ed Burnette

I tried taking the /system/bin/sqlite3 from the M5 version and
installing it into 0.9_beta but it didn't work. I ran the M5-rc15
emulator with -wipe-data, used adb pull to get the program, ran the
0.9_beta emulator with -wipe-data, ran adb remount to make /system
read write, used adb push to upload sqlite3 to /system/bin, used adb
shell chmod 777 /system/bin/sqlite3 to make it executable, and then
tried to run it in an adb shell. Unfortunately it just returned
immediately with no errors or output.

When you say this will be fixed in the next release do you mean (a)
that the Android system image will include a working /system/bin/
sqlite3 that you can run with adb shell (like M5 had), or do you mean
(b) that there will be a Windows (or Linux or Mac) binary installed on
the development computer as part of the SDK?

Also... is there an issue number for tracking this? A quick search
didn't turn up one.

Thanks,
--Ed

On Aug 19, 11:09 pm, Megha Joshi [EMAIL PROTECTED] wrote:
 It seems windows sdk is missing tools/sqlite3 which will be fixed in the
 next release. For the time being if you use Linux, you will find
 tools/sqlite3.

 On Tue, Aug 19, 2008 at 7:31 PM, Brad Larson [EMAIL PROTECTED] wrote:

  I'm using windows, although I have access to a linux box if that is
  needed

  On Aug 19, 5:27 pm, Megha Joshi [EMAIL PROTECTED] wrote:
   Which OS are you using?

   On Tue, Aug 19, 2008 at 3:15 PM, Brad Larson [EMAIL PROTECTED] wrote:

Thank you for the reply Magha.  I can't find anything related to
sqlite in the tools directory.  Could you please provide more
information?

Thanks!
-Brad

On Aug 19, 4:52 pm, Megha Joshi [EMAIL PROTECTED] wrote:
 You cab use sqlite3 from the sdk tools directory directly...

 On Tue, Aug 19, 2008 at 2:26 PM, Brad Larson [EMAIL PROTECTED]
  wrote:

  Has the sqlite3 command line tool been removed from 0.9beta?  I
  haven't been able to find anything in the documentation, but I do
  get
  sqlite3: not found from the shell.  This was a useful debug tool...
  if
  it has been removed, is there anything to replace it?

  Thanks,
  Brad
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: WebView loadUrl does not seem to work...

2008-09-05 Thread Ed Burnette

Try the BrowserView example from 
http://www.pragprog.com/titles/eband/source_code
and see if that works for you. If it does, then compare it against
what you're doing in your layout file, your manifest, and your
Activity class.

--
Ed Burnette
http://www.pragprog.com/titles/eband/hello-android
Hello, Android: Introducing Google's Mobile Development Platform --
now updated for version 0.9_beta

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: New beta book available: Hello, Android

2008-05-03 Thread Ed Burnette

It's there now. However Amazon only has the paper version which won't
be out until later this year. Pragprog.com has both the PDF (beta) and
paper (pre-order).

On May 2, 12:02 am, j [EMAIL PROTECTED] wrote:
 Cool.

 Will thisbookbe available on amazon.com?  I can't seem to find it
 there.

 On May 1, 6:11 am, Ed Burnette [EMAIL PROTECTED] wrote:

  I hope you'll excuse this bit of self-promotion, but after months of
  work I'm excited to announce that my newbook, Hello, Android:
  Introducing Google's Mobile Development Platform, is now available as
  a Beta PDF from the Pragmatic Programmers. You can view the preface,
  table of contents, and a few excerpts at:

     http://www.pragprog.com/titles/eband/hello-android

  This is currently a betabook, which means it's a work in progress.
  The chapters in the PDF may be incomplete and, despite our best
  efforts, may contain mistakes and omissions. Please report any
  problems using our bug tracker (click Errata from the home page), and
  share your suggestions and ideas in the dedicatedbookforum (click
  Discussions).

  Special thanks go out to all the folks on Android developer forums.
  Without the great advice and information I received here, thebook
  would not have been possible.

  Thanks,
  --Ed
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: GTalk sendDataMessage from Server

2008-04-14 Thread Ed

Yup, I figured it out after reading this blog post:
   http://craigbbaker.com/2008/01/03/android-on-smack/


On Apr 14, 8:42 am, Hielko [EMAIL PROTECTED] wrote:
 This is certainly possible, you just have to use the proper xml
 message to the phone.

 On Mar 13, 7:35 pm, viktor [EMAIL PROTECTED] wrote:

  Does anyone know a way to push a custom intent to an Android phone
  from a custom server using GTalk or other method?

  The effect should be the same as calling IGTalkSession.sendDataMessage
  on another Android phone. This feature is required to initiate data
  exchange between a server and an Android application from the server
  side.

  This can be achieved by having a custom service constantly running.
  The service can keep a socket to the server open and listen to it.
  However, it is better to use higher level solution if one exists.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---