[android-developers] Re: Does Google supply an interface?

2010-05-12 Thread EboMike
Can you elaborate? You're trying to prevent activity B from being
accessed before the password check in activity A has been successful?
I assume that activity B is any arbitrary activity?

-Mike


On May 12, 11:41 pm, gujian  wrote:
> Hello,everyone.Recently I'm doing an application (A) about password
> verification.I don't want to add some code to the protected application
> (B).That is , befor B's activity starts I want to switch to A'activity.Does
> Google supply  that interface for developers?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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] How to tell if phone lock screen is up?

2010-05-12 Thread tomei.ninge...@gmail.com
I want to do something kind of disruptive to the user experience :-)
so I want to do it only when the phone is locked. Is there a way to
tell this?

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: Any tools for analyzing API level compatibility in my Android code?

2010-05-12 Thread Zsolt Vasvari
Doesn't just compiling against the Level 4 libraries and see what kind
of errors you are getting sufficient?

On May 13, 1:12 pm, CliveW  wrote:
> I have developed an app for my customer at API level 5 (2.0) and
> above, and set my minSDKVersion as 5. Now my customer would like to
> know if it can be made backward compatible with API level 4 (1.6). I
> have a vague idea which areas might not immediately be compatible
> without doing some conditional code, but...
>
> Does anyone know if there are any tools that can do a simple analysis
> of my code and list for me any API calls I have that and their API
> levels (preferably sorted, though I can do this if I can export the
> info)?
>
> This seems like a very useful tool if someone has it? (I'm not
> expecting a full static code analysis, just API levels of all API
> calls in a project)...
>
> Thanks in advance for your comments...
> Clive
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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] Does Google supply an interface?

2010-05-12 Thread gujian
Hello,everyone.Recently I'm doing an application (A) about password
verification.I don't want to add some code to the protected application
(B).That is , befor B's activity starts I want to switch to A'activity.Does
Google supply  that interface for developers?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Any tools for analyzing API level compatibility in my Android code?

2010-05-12 Thread EboMike
Why don't you simply compile your app against API 4? (It's a setting
in the project properties). If you use any methods or classes that
don't exist yet, you will get compile errors.

Unless you're using reflection or hard-code flags, this should be a
good enough test. SHOULD, just off the top of my head.

-Mike

On May 12, 10:12 pm, CliveW  wrote:
> I have developed an app for my customer at API level 5 (2.0) and
> above, and set my minSDKVersion as 5. Now my customer would like to
> know if it can be made backward compatible with API level 4 (1.6). I
> have a vague idea which areas might not immediately be compatible
> without doing some conditional code, but...
>
> Does anyone know if there are any tools that can do a simple analysis
> of my code and list for me any API calls I have that and their API
> levels (preferably sorted, though I can do this if I can export the
> info)?
>
> This seems like a very useful tool if someone has it? (I'm not
> expecting a full static code analysis, just API levels of all API
> calls in a project)...
>
> Thanks in advance for your comments...
> Clive
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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: How to detect orientation change in home screen widget?

2010-05-12 Thread Kamal Hasan
Hi ,

Did you get idea about the orientation change in widgets ?

Kamal

On Mar 16, 2:32 am, kknight  wrote:
> I am writing a home screenwidgetand want to update (modify) the home
> screenwidgetwhen the deviceorientationchanges from portrait to
> landscape or the other way. How can I make it?
>
> Currently, I tried to register to CONFIGURATION_CHANGED action like
> the code below, but the Android didn't allow me to do that by saying
> "IntentReceiver components are not allowed to register to receive
> intents".
> The reason that I register to CONFIGURATION_CHANGED is that, the
> Android spec said about ACTION_CONFIGURATION_CHANGED: "You can not
> receive this through components declared in manifests, only by
> explicitly registering for it with Context.registerReceiver(). "
>
> Can someone help me? Thanks.
>
> public class MyWidget extends AppWidgetProvider {
>
>     @Override
>     public void onEnabled(Context context) {
>         super.onEnabled(context);
>         this.registerReceiver(this, new
> IntentFilter(Intent.ACTION_CONFIGURATION_CHANGED));
>     }

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

2010-05-12 Thread Lance Nanek
Create an android.os.Handler subclass on the UI thread and pass that
to the renderer instead of a Runnable. It has methods for sending
messages and handling them. The renderer would send a message. The
subclass would handle it to show a dialog on the UI thread.

On May 9, 6:25 am, Dmitriy Shilonosov  wrote:
> Hi!
>
> Does anyone have expirience with opengl-ui-opengl threading
> interraction?
>
> I'am developing a small opengl application. I'am a little bit confused
> with separate opengl thread...
> Currently, my application is logically separated in two parts - the
> controlling one and the rendering one.
> The controlling part interracts with user - accepting user input,
> changing activities, dealing with files and so on.
> The rendering part - just render everything it should.
>
> Ok, so when I need to load new texture to opengl (unfortunatelly its
> large and I cant reduce its size), I'd like to show a ProgerssDialog
> dialog.
> Trying to show it from the open gl thread brings me an exception:
> "Can't create handler inside thread that has not called
> Looper.prepare()".
> Because the initiator of loading is in the ui thread (for example -
> user selected a menu option), I'am opening the dialog, adding the load
> Runnable to stack on Runnables that will be called in
> Render.onDrawFrame and passing there a callback that will be executed
> after texture is loaded.
>
> Like this:
>
> //ui
>
> public class Controller extends Activity {
>
>   ...
>
>   protected void loadTexture(InputStream aStream) {
>     final ProgressDialog dialog = new ProgressDialog(this);
>     dialog.setTitle("Please wait...");
>     dialog.setMessage("Loading texture");
>     dialog.show();
>     _renderer.loadTexture(_stream, new Runnable() {
>       @Override
>       public void run() {
>         dialog.dismiss();
>       }});
>   }
>
>   ...
>
> }
>
> //gl
>
> public class SceneRenderer implements Renderer {
>   @Override
>   public void onDrawFrame(GL10 aGL) {
>     this.runGLRunnables(aGL);
>   }
>
>   public void loadTexture(final InputStream aStream, final Runnable
> aCallback) {
>     _glRunnablesStack.push(new GLRunnable() {
>     @Override
>     public void run(GL10 aGL) {
>       SceneRenderer.this.doLoadTexture(aStream);
>       aCallback.run();
>     };});
>   }
>
> }
>
> So the question is: Is there any way to show ProgressDialog from the
> opengl thread?
> I need exactly the ProgressDialog. There is a way to show some
> picture, previously loaded, like a splashscreen using opengl renderer,
> but I'd like to avoid 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 
> 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: Neighbouring Cell info - Clarification needed

2010-05-12 Thread Vinay S
Hi Kelly,

How about the case, there are multiple operators using the same tower?

Will I be able to get the info from them?

Regards,
vinay

On May 12, 9:26 pm, Kelly  wrote:
> LAC (Local Area Code) is specific to area, like mine is 415 (San
> Francisco).
> The Cell ID is the ID of the cell tower. If only one network uses this
> tower, it's specific to that network.
>
> On May 9, 10:06 pm, Vinay S  wrote:
>
>
>
> > Hi,
>
> >  Thanks for the reply.
>
> > Actually, I am looking for a different information.
>
> > When I request for getNeighbouringCellInfo() it gives a set of values.
>
> > I would like to know, if the Cell Id and the LAC given by this
> > function is belonging to the same operator? Does the phone has the
> > capability to return the Cell Id of different operators around the
> > place..?
>
> > Regards,
> > VInay
>
> > On May 8, 7:36 am, Renam  wrote:
>
> > > take a look at:http://en.wikipedia.org/wiki/Mobile_Network_Code
> > > I think that what you need.
>
> > > Vinay S wrote:
> > > > Hi,
>
> > > > I need one clarification regarding the NeighbouringCellInfo.
>
> > > > When i query for the getNeighbouringCellInfo() method, it returns me
> > > > with 5-6 values. Sample response is below:
>
> > > > 06 05 2010 23:59:19.643  Neighbouring Cell Info :
> > > > Cell Info [1] :   Cell Id :20438  RSSI :-67  LAC :6012]
> > > > Cell Info [2] :   Cell Id :22058  RSSI :-69  LAC :6012]
> > > > Cell Info [3] :   Cell Id :22567  RSSI :-69  LAC :6010]
> > > > Cell Info [4] :   Cell Id :22259  RSSI :-69  LAC :6012]
> > > > Cell Info [5] :   Cell Id :22428  RSSI :-67  LAC :6012]
> > > > Cell Info [6] :   Cell Id :7  RSSI :85  LAC :0]
>
> > > > My Question is, where these Cell Id and LAC given are specific to the
> > > > SIM operator or is it from all providers in this area?
> > > > If it is from multiple operators.., how can I distinguish them?
>
> > > > Any kind of info regarding this will be useful.
>
> > > > Thanks and Regards,
> > > > Vinay
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to android-developers@googlegroups.com
> > > > To unsubscribe from this group, 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 
> > > 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 
> > 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 
> 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: Getting and Sending Data From the Web (URLConnection via http)

2010-05-12 Thread Vinay S
Hi,

Did you try sending the data back using the same HTTP connection?

Try opening a new HTTP connection and send the data back..

This might give you some clue, is this the problem of HTTP..

Regards,
Vinay

On May 10, 10:27 pm, strog  wrote:
> Hi Guys,
> I wanted to create a an android application that works like a remote
> control for a multimedia system. This client server dialog is done on
> the json class api. The class that I use for establishing the
> communication is the HttpURLConnection. I used the following example
> for writing my 
> programm(http://www.anddev.org/getting_data_from_the_web_urlconnection_via_htt...
> ).
> I ran wireshark to monitor the communication, and i see the data that
> is being sent from the server, but sending orders back to the server
> from my milestone doesn't happen at all.
> I turned off all my firewalls that could interfere with the
> communication.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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: Communicating between an app and a widget

2010-05-12 Thread James W
If you are talking about home screen AppWidgets, then yes it is
possible.

The place to get started is:

http://developer.android.com/guide/topics/appwidgets/index.html

Then have a look at some examples:

http://www.helloandroid.com/tutorials/days-xmas-widget-tutorial
http://nm-blog.sanid.com/2009/07/android-hellowidget-tutorial/

Basically as long as your AppWidgetProvider is part of the same
package and also declared in same Manifest of your main appilication,
then it has access to the same classes and can share its data.

I dont know if you can check whether an AppWidget is currently
visible, i.e. on the current pane of your Home Screen (e.g. because
you have 3 on vanilla android, 7 on HTC Sense, but it can certainly
know whether you have your AppWidget(s) active on at least one of your
panes.

Your widget can be updated directly by your application or via a
custom timer, or via the frameworks automatically scheduled updates.

And your widget can send info to your main application, e.g. process a
click to start the application, or access its data.

It's an interesting topic, good luck!

James


On May 11, 1:54 am, repole  wrote:
> Hi everyone,
> New developer about to get rolling on a project, and am curious as to
> whether its possible for an application and a widget to communicate
> data to each other directly? Basically I'd need the app to be able to
> check that the widget is running/visible, and would need the app to
> send information to the widget. I'm far from actually implementing
> anything yet, so I'm not really looking for any overly detailed
> explanations, just if whether or not what I'm looking to achieve is
> possible.
>
> Apologies if this is common knowledge, or if this topic has been
> talked about before (I tried a few searches and didn't really get a
> clear answer).
>
> Thanks for the help,
> Repole
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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] Any tools for analyzing API level compatibility in my Android code?

2010-05-12 Thread CliveW
I have developed an app for my customer at API level 5 (2.0) and
above, and set my minSDKVersion as 5. Now my customer would like to
know if it can be made backward compatible with API level 4 (1.6). I
have a vague idea which areas might not immediately be compatible
without doing some conditional code, but...

Does anyone know if there are any tools that can do a simple analysis
of my code and list for me any API calls I have that and their API
levels (preferably sorted, though I can do this if I can export the
info)?

This seems like a very useful tool if someone has it? (I'm not
expecting a full static code analysis, just API levels of all API
calls in a project)...

Thanks in advance for your comments...
Clive

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

2010-05-12 Thread gjs
Hi,

Compare the timestamp from getLastKnownLocation with clock timestamp,
if greater than a few seconds ( maybe up to 15 seconds ) then display
(post) a Toast message.

This may not work well if clock is not auto synchronzed from network
provider.

Regards

On May 12, 8:56 am, mcvetyty  wrote:
> Hello -
>
> I am creating an app that uses GPS coodinates. Can anyone help me with
> the following?
>
> 1) I want to ensure I am using a current 'fixed' location and not a
> previously stored one, so I am trying to avoid using
> getLastKnownLocation, but cannot seem to figure out the alternate to
> this?
>
> 2) What is the best way to display a "please wait" message or
> something along those lines while the GPS service is attempting to get
> a fix (and ideally periodically allow the user to cancel out)?
>
> 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 
> athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Android 2.1 WebKit and applicationCache

2010-05-12 Thread hansamann
Hi all,

I am trying to use the Android 2.1 WebKit applicationCache but I
notice several differences to the iPhone 3/4(beta) implementation. Can
anyone tell me what the current status is and if it is in a usable
state?

Here are  my observations that I can share:

- initial caching works, but instead of sending a checking event first
as on the iPhone, it will just send out the progress events and then
the final cache event
- once you reload the page, it just shows the noupdate event. no
checking before that
- even if you update the manifest, it will not notice that. It seems
webkit on android does not check the manifest after the initial
caching.
- forcing an update with applicationCache.update() also does not work.

That leaves the current implementation in a pretty unusable state,
your users would presumably never get an updated cache once the inital
caching has run.

Has anyone else experience with this or knows when applicationCache is
supposed to be fixed/working?

Thanx a lot!
Sven

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


[android-developers] samsung app store

2010-05-12 Thread schwiz
I have been receiving some emails from someone claiming to be a rep
for samsung and they are opening a new app store selling android
apps.  They have asked that I publish one of my apps they found on the
android market on their store. Just wondering if anyone else has been
getting emails like that and if it is legit?  I am a little weary to
give them my bank info to say the least.  The website looks legit but
I dunno...
http://seller.samsungapps.com/login/signIn.as?returnURL=/main/sellerMain.as

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Twitter app's popup aligned with ListView item - how did they do it?

2010-05-12 Thread Adam
Is there a way to get that same popup layout like they have on twitter
or in the quick contacts popup? Do we just combine the top, middle,
bottom image resources as backgrounds in some sort of layout, or is
there a simpler way?

On May 10, 5:16 pm, skink  wrote:
> Mark Murphy wrote:
> > westmeadboy wrote:
> > > Anyone any ideas?
>
> > Ummm...figure out where the item is positioned on screen, then use some
> > margin tricks to position theirpopupto match, I suppose.
>
> if you use PopupWindow you don't have to use margins at all - you can
> position yourpopupin any (x,y) location
>
> moreover: using showAsDropDown you don't even have to locate anchor
> view position
>
> pskink
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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] nexus one auto shutdown after i make a call

2010-05-12 Thread Ryan, Nguyen
Hi all,

My Nexus One always shutdown automatically when I finish a call
(incoming/outcoming call).
Anyone knows about this error. Please help me fix.

Thanks a lot.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Looking for advice into best way to store images within app

2010-05-12 Thread r...@thelogicbox
Jimmy

In our case we handled the User Management of the photo's by creating
a custom gallery view within our app.
Hence no need for a content provider, but yes they are viewable by the
stock gallery viewer (as effectively they're just JPG's in a folder on
the SDcard like any others).

Regards
Rich

On May 7, 7:19 pm, JimmyHoffa  wrote:
> Hi Rich,
>
> Yes your situation sounds very similar to mine. I can imagine it's a
> very common requirement.
>
> Can I ask if you had to write your own content provider or were you
> able to use the Media content provider to obtain cursor over your
> images?
>
> And are your images only visible through your app or would they appear
> in your phones stock 'Gallery' app also?
>
> Thanks,
>
> On May 6, 10:45 pm, "r...@thelogicbox"  wrote:
>
>
>
>
>
> > Jimmy
>
> > Our app has a very similar need, Neatstreets is a reporting tool which
> > can include many photo's taken for any given report.
> > Westoreall essential report data to an internal db, which includes
> > file names references to theimageson the external Sd card (under the
> > package named folder - as you mention).
>
> > This way the app can still function if the SDcard is swapped out,
> > you'll just need to handle cases whereimagescannot be found. Useful
> > if an important req is to maintain the ability to always raise new
> > jobs (and your current sd becomes full). However our importance on
> > maintaining ease of access to all previousimagesis probably less
> > than yours as we also send all reports andimagesto the server.
>
> > Rich
>
> > On May 6, 7:54 pm, JimmyHoffa  wrote:
>
> > > Thanks for reply.
>
> > > I should have stated that app will be offline and not relying on
> > > online storage so cloud is not really appropriate as the same screen
> > > will allow the user to grab a picture via the camera and thenstore
> > > the image.  I think I'll have a play with both media storage and
> > > database, and see what works best..
>
> > > On May 5, 8:00 pm, Kumar Bibek  wrote:
>
> > > > It really depends on the amount of space yourimageswould take up. If
> > > > it runs into less than 100KB, you can put them in the drawable folder.
> > > > but, anything beyond than that is not a good practice. Your final
> > > > apk's size will be huge.
>
> > > > the best way is to keep yourimagessomewhere in the cloud, and access
> > > > them through the app.
>
> > > > Thanks and Regards,
> > > > Kumar Bibek
>
> > > > On May 5, 8:45 pm, JimmyHoffa  wrote:
>
> > > > >   0  vote down  star
>
> > > > > Hi all,
>
> > > > > I'm just looking for some insight into what would be the best way for
> > > > > me tostoreimagesas part of my app.
>
> > > > > I have an activity that represents a 'Job' which has a couple of
> > > > > edittext's and underneath was planning on using the Gallery component
> > > > > to showimagesrelevant to this job.
>
> > > > > The job data is stored in a database (on the sdcard) so was also
> > > > > thinking of creating a table tostore'JobImages' and having each
> > > > > image stored as a byte array.
>
> > > > > But I'm not sure if it would be better tostoretheimagesdirectly on
> > > > > sdcard under a folder structure specific to my application and the
> > > > > job. E.g. using the job ID number as a folder name.
>
> > > > > Depending on which method I use will greatly determine the code that
> > > > > goes into an 'adapter' that allows me to bind to the gallery component
> > > > > so before I begin I was wondering if anyone has had the same design
> > > > > problem and what option they chose.
>
> > > > > 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 
> > > > > 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 
> > > > 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 
> > > athttp://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" grou

[android-developers] Re: OpenCore / Possible Issue w/ Streaming MP3 over HTTP?

2010-05-12 Thread rktb
Hi,

I was actually able to see the content length in the http response.
Here is a snippet from my log:
PVLOG:TID(0xe9bf8):Time=830:HttpParsingBasicObject::parseResponse()
file size = 5346201

But, yes, the auto-pause/auto-resume does indeed depend on whether or
not the content length is present in the header.

If you try to put the new OpenCORE code under your application, you
would need to write a new MIO [media input/output component] that
would dump the raw PCM data back to the java layer, which would then
use the AudioTrack API to render the data. But, I think that this
would be a bit involving.

I am still trying to think what other properties could be a factor.
Did you try:
- "smaller" content?
- lower bitrate content?

-Ravi

On May 12, 8:39 pm, SDS  wrote:
> Hi Ravi,
>
> Thank you kindly for your responses.
>
> I've tried MP3 streams without ID3v2, but I should point out a
> difference that may or may not be significant in the context of this
> defect.  The HTTP headers for the MP3 streams were without a Content-
> Length header.  In terms of the initial observations I reported, the
> intermittent behavior is identical but without the increasing buffer %
> callbacks.  I'm assuming this is expected, but I'll let you decide.
>
> Regarding deployment of the latest code for OpenCORE with our
> application, so that we can take advantage of your fix, what would be
> involved from a development perspective, and how would you compare
> that level of effort with us rolling our own HTTP streaming / MP3
> decoding framework using native code?
>
> On May 12, 9:33 pm, rktb  wrote:
>
>
>
> > One thing to try is to encode a clip without Id3v2, and see the
> > behavior. That would reduce the probability of "insufficient data" by
> > a bit.
>
> > -Ravi
>
> > On May 12, 5:02 pm, rktb  wrote:
>
> > > Hi,
>
> > > I was able to reproduce the problem, and it is definitely timing
> > > dependent. For the eclair codebase, I found a problem in OpenCORE's
> > > mp3 parser node. That, however, has been fixed on the latest codebase
> > > available at kernel.org.
>
> > > Now, for applications that are being written for existing Android SDK
> > > releases, I don't have a way out yet.
>
> > > -Ravi
>
> > > On May 12, 12:47 pm, SDS  wrote:
>
> > > > I’m experiencing an intermittent and very frustrating issue with
> > > > MediaPlayer on Android when streaming MP3 over HTTP.  I’ve done as
> > > > much research and debugging as I possibly can to try and find a
> > > > solution, but am coming up short.  I can’t find reference to this
> > > > issue anywhere, including b.android.com.
>
> > > > Essentially, what’s happening is MediaPlayer will not come out of the
> > > > preparing state.  The device is receiving audio data during this time,
> > > > as indicated by network sniffs and the MediaPlayer buffering callback
> > > > being invoked repeatedly with increasing percentage values, but
> > > > eventually the buffer appears to become full and stops receiving.
> > > > Because prepare() never returns, or more accurately when
> > > > prepareAsync() is used and the onPrepared callback is never invoked,
> > > > and neither the onError() nor onInfo() callbacks are invoked, the
> > > > application can neither call MediaPlayer.start() nor make any sort of
> > > > recovery.
>
> > > > Other notable observations:
>
> > > > -       The problem is intermittent, meaning that subsequent attempts to
> > > > play the exact same MP3 stream from the exact same server may exhibit
> > > > this behavior or not
> > > > -       The problem seems to be exasperated when the device is 
> > > > connected via
> > > > 3G versus wifi
> > > > -       The problem occurs on different MP3’s encoded by different 
> > > > software
> > > > -       The problem occurs when streaming from different HTTP servers
> > > > -       The problem cannot be reproduced on any of the Android SDK 
> > > > emulators
> > > > -       The problem can be reproduced on the HTC Incredible, Verizon
> > > > Motorola DROID, and HTC Touch
> > > > -       When MediaPlayer successfully returns from the preparing state,
> > > > there is an info message (what=1, extra=44) received.  This info
> > > > message is not received during the problematic case.
>
> > > > Anyone ever experienced this, or even find a solution?
>
> > > > 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 
> > > > 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

Re: [android-developers] Could not upload a new application

2010-05-12 Thread TreKing
On Wed, May 12, 2010 at 5:10 PM, AndyDev  wrote:

> It always says  "The upgraded apk's package name (com.testini) must be the
> same as the one it is replacing (null)."
>

Are you using Microsoft Internet Explorer?

If so try Firefox.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Changing text color of a substring drawed in a text view.

2010-05-12 Thread ArgBat
Well, actually what i did is:

Get the text "Hello this is a text in
black color and (COLOR_RED_BEGIN)this is a text in red color.
(COLOR_RED_END)" and replace the (COLOR_RED_BEGIN) by
 and the (COLOR_RED_END) by .
Then call the text view setText like this:
setText(Html.fromHtml(convertedString)).

String originalText =  "Hello this is a text in
black color and (COLOR_RED_BEGIN)this is a text in red color.
(COLOR_RED_END)"

String convertedText = replacePlaceHolders(originalText);
textView.setText(Html.fromHtml(convertedString)).

Thanks to all for the non help. Taking into account the bad Android
documentation
I managed to do it.

On 10 mayo, 18:04, ArgBat  wrote:
> Hi all,
>
>   I want to change the color of a substring while it is drawed in a
> text view. For example, if I have this text: "Hello this is a text in
> black color and (COLOR_RED_BEGIN)this is a text in red color.
> (COLOR_RED_END)", then when the text view draws the text the substring
> "this is a text in red color." must be drawn in red.
>
>   Is there a class that I can use for it or must be implemented?
>
> Regards.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> 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: OpenCore / Possible Issue w/ Streaming MP3 over HTTP?

2010-05-12 Thread SDS
Hi Ravi,

Thank you kindly for your responses.

I've tried MP3 streams without ID3v2, but I should point out a
difference that may or may not be significant in the context of this
defect.  The HTTP headers for the MP3 streams were without a Content-
Length header.  In terms of the initial observations I reported, the
intermittent behavior is identical but without the increasing buffer %
callbacks.  I'm assuming this is expected, but I'll let you decide.

Regarding deployment of the latest code for OpenCORE with our
application, so that we can take advantage of your fix, what would be
involved from a development perspective, and how would you compare
that level of effort with us rolling our own HTTP streaming / MP3
decoding framework using native code?

On May 12, 9:33 pm, rktb  wrote:
> One thing to try is to encode a clip without Id3v2, and see the
> behavior. That would reduce the probability of "insufficient data" by
> a bit.
>
> -Ravi
>
> On May 12, 5:02 pm, rktb  wrote:
>
>
>
> > Hi,
>
> > I was able to reproduce the problem, and it is definitely timing
> > dependent. For the eclair codebase, I found a problem in OpenCORE's
> > mp3 parser node. That, however, has been fixed on the latest codebase
> > available at kernel.org.
>
> > Now, for applications that are being written for existing Android SDK
> > releases, I don't have a way out yet.
>
> > -Ravi
>
> > On May 12, 12:47 pm, SDS  wrote:
>
> > > I’m experiencing an intermittent and very frustrating issue with
> > > MediaPlayer on Android when streaming MP3 over HTTP.  I’ve done as
> > > much research and debugging as I possibly can to try and find a
> > > solution, but am coming up short.  I can’t find reference to this
> > > issue anywhere, including b.android.com.
>
> > > Essentially, what’s happening is MediaPlayer will not come out of the
> > > preparing state.  The device is receiving audio data during this time,
> > > as indicated by network sniffs and the MediaPlayer buffering callback
> > > being invoked repeatedly with increasing percentage values, but
> > > eventually the buffer appears to become full and stops receiving.
> > > Because prepare() never returns, or more accurately when
> > > prepareAsync() is used and the onPrepared callback is never invoked,
> > > and neither the onError() nor onInfo() callbacks are invoked, the
> > > application can neither call MediaPlayer.start() nor make any sort of
> > > recovery.
>
> > > Other notable observations:
>
> > > -       The problem is intermittent, meaning that subsequent attempts to
> > > play the exact same MP3 stream from the exact same server may exhibit
> > > this behavior or not
> > > -       The problem seems to be exasperated when the device is connected 
> > > via
> > > 3G versus wifi
> > > -       The problem occurs on different MP3’s encoded by different 
> > > software
> > > -       The problem occurs when streaming from different HTTP servers
> > > -       The problem cannot be reproduced on any of the Android SDK 
> > > emulators
> > > -       The problem can be reproduced on the HTC Incredible, Verizon
> > > Motorola DROID, and HTC Touch
> > > -       When MediaPlayer successfully returns from the preparing state,
> > > there is an info message (what=1, extra=44) received.  This info
> > > message is not received during the problematic case.
>
> > > Anyone ever experienced this, or even find a solution?
>
> > > 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 
> > > 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 
> > 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 
> 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: OpenCore / Possible Issue w/ Streaming MP3 over HTTP?

2010-05-12 Thread rktb
One thing to try is to encode a clip without Id3v2, and see the
behavior. That would reduce the probability of "insufficient data" by
a bit.

-Ravi

On May 12, 5:02 pm, rktb  wrote:
> Hi,
>
> I was able to reproduce the problem, and it is definitely timing
> dependent. For the eclair codebase, I found a problem in OpenCORE's
> mp3 parser node. That, however, has been fixed on the latest codebase
> available at kernel.org.
>
> Now, for applications that are being written for existing Android SDK
> releases, I don't have a way out yet.
>
> -Ravi
>
> On May 12, 12:47 pm, SDS  wrote:
>
>
>
> > I’m experiencing an intermittent and very frustrating issue with
> > MediaPlayer on Android when streaming MP3 over HTTP.  I’ve done as
> > much research and debugging as I possibly can to try and find a
> > solution, but am coming up short.  I can’t find reference to this
> > issue anywhere, including b.android.com.
>
> > Essentially, what’s happening is MediaPlayer will not come out of the
> > preparing state.  The device is receiving audio data during this time,
> > as indicated by network sniffs and the MediaPlayer buffering callback
> > being invoked repeatedly with increasing percentage values, but
> > eventually the buffer appears to become full and stops receiving.
> > Because prepare() never returns, or more accurately when
> > prepareAsync() is used and the onPrepared callback is never invoked,
> > and neither the onError() nor onInfo() callbacks are invoked, the
> > application can neither call MediaPlayer.start() nor make any sort of
> > recovery.
>
> > Other notable observations:
>
> > -       The problem is intermittent, meaning that subsequent attempts to
> > play the exact same MP3 stream from the exact same server may exhibit
> > this behavior or not
> > -       The problem seems to be exasperated when the device is connected via
> > 3G versus wifi
> > -       The problem occurs on different MP3’s encoded by different software
> > -       The problem occurs when streaming from different HTTP servers
> > -       The problem cannot be reproduced on any of the Android SDK emulators
> > -       The problem can be reproduced on the HTC Incredible, Verizon
> > Motorola DROID, and HTC Touch
> > -       When MediaPlayer successfully returns from the preparing state,
> > there is an info message (what=1, extra=44) received.  This info
> > message is not received during the problematic case.
>
> > Anyone ever experienced this, or even find a solution?
>
> > 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 
> > 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 
> 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


Re: [android-developers] Finishing Browser

2010-05-12 Thread TreKing
On Wed, May 12, 2010 at 2:50 PM, Serkan Ozel  wrote:

> is there a way to close the Browser and the user back to the application
> programatically?
>

There's probably no way to do this. Once you open it the browser is a new,
standalone app you have no control over.

Why can't you use WebView?

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

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

[android-developers] Re: How can I know if OpenGl has drawn something?

2010-05-12 Thread Alfonso
Unreached limits, dear Robert. You were right, the problem was in the
modelview matrix. Thanks you very much.

On 11 mayo, 08:37, Robert Green  wrote:
> Hmm.. I'm sorry but this has reached the limit of what Iknowoff-
> hand.  I'd have to get into debugging your code to be able to help
> more.
>
> I have a feeling one of two things is wrong:
>
> 1)  Your projection matrix is not matching what glOrthof is doing (fix
> by using glLoadMatrix there)
> 2)  Something is happening to your modelview matrix later that I can't
> see from your code snippet and remappedRotationMatrix no longer
> matches it.
>
> Sorry I can't help more.  All Iknowis that if your "Camera" space is
> wrong from what you think it should be, you will face nothing but
> problems trying to do visibility tests or picking.  I do 3D visibility
> testing of objects by creating frustum bounds and testing against
> object bounding boxes - this is all in world space.  I actually don't
> need unproject to figure out what you touched because for me, it's
> just a matter of making a segment from the near plane to the far at
> the percentage distance from the sides in the viewport to your touch
> point used on the near/far planes.
>
> If you debug my suggestions 1 and 2 and come up with nothing, perhaps
> there is an alternative way to check without still checking for drawn
> pixels (which makes me shudder.)
>
> On May 10, 8:15 pm, Alfonso  wrote:
>
>
>
> > Robert, first of all thanks for your time and kindness. The problem
> > for me is not drawing my scene. In fact, the scene is done. I'm going
> > to try being more explicit:
>
> > First of all, I set the projection matrix with:
> >   near_height = 1;
> >   zNear = 1;
> >   zFar = 100;
> >   window_height = height;
> >   window_width = width;
>
> >   gl.glViewport(0, 0, width, height);   //Reset The Current Viewport
> >   gl.glMatrixMode(GL10.GL_PROJECTION);  //Select The Projection Matrix
> >   gl.glLoadIdentity();                                  //Reset The 
> > Projection Matrix
> >   ratio = (float) width / height;
> >   Matrix.orthoM(orthoProjectionMatrix, 0, -near_height * ratio,
> > near_height * ratio, -near_height, near_height, zNear, zFar); //I get
> > the Projection Matrix here
> >   gl.glOrthof(-near_height * ratio, near_height * ratio, -near_height,
> > near_height, zNear, zFar);
>
> > Later, I get the rotation matrix and remap it with the lines:
> >   SensorManager.getRotationMatrix(rotationMatrix, null,
> > mAccelerometerValues, mMagneticValues);
> >   SensorManager.remapCoordinateSystem(rotationMatrix,
> > SensorManager.AXIS_Y, SensorManager.AXIS_MINUS_X,
> > remappedRotationMatrix);
> >   gl.glMatrixMode(GL10.GL_MODELVIEW);
> >   gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
> >   gl.glLoadIdentity();                                  //Reset The Current 
> > Modelview Matrix
> >   gl.glLoadMatrixf(remappedRotationMatrix, 0);
>
> > Then, I draw all wich I want. Don't worry about the ray, it is well
> > done. I followed this page instructions  > resources/faq/technical/selection.htm>. I use glPushMatrix and
> > glPopMatrix, but as you can think it is not necessary. I have the
> > modelview untouched in remappedRotationMatrix.
>
> > My problem: Once I have finished drawing objects, I want toknowif
> > there is some of them painted in the screen when I point an exact
> > place with the phone. I'm OK to choose an only one object if it is so
> > easier. With the next instruction:
>
> > GLU.gluProject(pos3DdelPuntoInteres[0], pos3DdelPuntoInteres[1],
> > pos3DdelPuntoInteres[2], remappedRotationMatrix, 0,
> > orthoProjectionMatrix, 0,new int[] {0,0,window_width,window_height},
> > 0, prueba, 0);
>
> > I should get the screen coords of the pos3DdelPuntoInteres vector in
> > the prueba one. But if I see it with a Log, I can't deduce any
> > connection between this values and the screen. In the poing signed by
> > pos3DdelPuntoInteres there is an icon, if I move the phone so place
> > the icon in the upper left corner, then the first coord of prueba is
> > 0, but no one else. In fact, it is impossible get an 0,0 position in
> > prueba.
>
> > Alternatively, I've found that if I multiply the modelview by
> > pos3DdelPuntoInteres, one of the components of prueba takes values
> > from 1 to -1 if the icon is displayed on the screen and out of this
> > range if not. The problem is that this value only refers to the x axis
> > of the screen and not to the y one. The others two values of prueba
> > seems to refer the angle of the yaw. Knows someone about a way of
> > calculate the position of the y axis like with de x ones using the
> > modelview matrix, so I can control if the object is on the screen?
>
> > Thanks.
>
> > The problem
>
> > On 10 mayo, 22:13, Robert Green  wrote:
>
> > > If you're doing this to set up and draw your scene:
>
> > > gl.glMatrixMode(GL10.GL_PROJECTION);
> > > gl.glLoadIdentity();
> > > GLU.gluPerspective(gl, FOV, viewAspectRatio

[android-developers] Re: Contribute to Android

2010-05-12 Thread EboMike
I'm afraid this is the wrong mailing list. You may want to check out
android-platform, that's where all the cool kids are who can help you
getting repo and git to work.

That said, you may want to re-read the instructions on
source.android.com - typically, everything should work once you follow
them. (However, please continue the thread on android-platform!).

-Mike


On May 12, 3:05 pm, rehab mohamed  wrote:
> hi
> i am trying to contribute some changes to the Android source tree
> i did all the steps to upload the code changes
> but when i typed the command “repo upload”, i am asking for the
> password and when i type it i get:
> Permission denied, please try again.
> i hope you have a solution for me
> Thanks in advance
> Rehab
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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: Upgrading 2009 I/O device from Donut (1.6) to Eclair (2.0/2.1)?

2010-05-12 Thread Maps.Huge.Info (Maps API Guru)
I think you're out of luck for now. Hopefully, an update will be
forthcoming however, it may be the device doesn't have enough memory
or CPU to handle 2.1, perhaps 2.2 is skinnier and that one will be
able to be ported to the MyTouch/ION. I have that device as well (got
it at IO 2009). Since I have AT&T, I've just forwarded my regular
phone number to the Droid for now, when the free deal runs out, I'll
go back to the ION. It's a nice phone and I like it a lot. The Droid
is ok too, just a bit too heavy for my personal taste.

-John Coryat


On May 12, 3:55 pm, tatlar  wrote:
> Hi John,
>
> Thanks for the information. I am aware of this, and have my Droid
> device already (thanks Google!). However, my 2009 I/O device is my
> main smartphone, and I wish to update the OS on it to Eclair. My
> comment about the 2010 conference app was just a minor sideline
> irritation.
>
> Best regards.
>
> On May 11, 3:23 pm, "Maps.Huge.Info (Maps API Guru)"
>
>  wrote:
> > If you're attending IO 2010, you should have (or will receive) a new
> > device. US residents receive the Droid (by mail) and non-US residents
> > receive the N1 upon registration.
>
> > -John Coryat
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email 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 
> 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: Android Browser debug question

2010-05-12 Thread Maps.Huge.Info (Maps API Guru)
What I would do first is try loading the page on a desktop with
Firefox and Firebug to make sure you have no obvious errors. If it
passes this test then try the next suggestion on your device.

I believe JavaScript errors from the browser will still show up in the
log. All you need is to dump your logs using the adb method as
described previously or one of the market apps like "Sendlog" (send
the log to yourself). Try that.

-John Coryat

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

2010-05-12 Thread bera
My friend's address was wrong, the phone was returned by Fedex, Google
does not respond to my mail, I am very very sad...

On 5月11日, 下午6时11分, Mark Gjøl  wrote:
> Fed-ex came, and delivered. For some reason they had been trying to
> deliver the phone to 21, 5B instead of 215B on the same road,
> resulting in a two week delay I finally got it, though, and am filled
> with joy! Thank you Google overlords! :D
>
> On May 9, 1:15 am, TreKing  wrote:
>
>
>
>
>
> > On Thu, May 6, 2010 at 2:28 AM, Lorents  wrote:
> > > @TreKing - Wow, this thread is really bugging you...
>
> > Ha! The thread itself is not the problem - it's the flood of "me too"
> > comments that were artificially inflating my RSS feed. I just can't help
> > commenting on the absurdity of it all - or responding to comments directed
> > at me =P
>
> > BTW, I have had my phone a few days now and its awesome. Everyone else happy
>
> > > with theirs?
>
> > > (lol)
>
> > Jerk. =P
>
> > --- 
> > --
> > TreKing - Chicago transit tracking app for Android-powered 
> > deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email 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 
> 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


Re: [android-developers] Re: Auto-Process Email Attachments

2010-05-12 Thread Mark Murphy
seguetester wrote:
>> So, how can I build the functionality to monitor all incoming mail and
>> if I receive a message with a specifically named attachment that has
>> the expected MIME type, automatically save the attachment so that my
>> app can process it?

That's not possible, for patently obvious security reasons.

You can arrange to be the handler of a specific MIME type, but the user
will have to open the attachment manually, using whatever mail client
they are using. Or, if the user is willing to dedicate a separate email
account to you, you could fetch the messages yourself using a POP3/IMAP
client library (e.g., JavaMail).

> 1) Ideally, I would like every email scanned and the attachments
> automatically picked up when they arrive if the meet the name and MIME
> conditions

That will only be possible if you are retrieving the email yourself via
a POP3/IMAP client library.

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

_Android Programming Tutorials_ Version 2.0 Available!

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

2010-05-12 Thread seguetester
To be a little more clear, I would actually like 1 of the following
features:

1) Ideally, I would like every email scanned and the attachments
automatically picked up when they arrive if the meet the name and MIME
conditions
2) As a backup option, when reading an email I would like a menu item
that says "Send Attachments to AppName" or something like that.



On May 12, 10:58 am, seguetester  wrote:
> I have an Android app that I am working on that needs to get regular
> data updates.  However, the only way that I will ever be able to
> receive the data is via csv files arriving as email attachments.  I
> wish that I could use a web service or something else more reliable;
> however, this is the constraint that I am working with.
>
> So, how can I build the functionality to monitor all incoming mail and
> if I receive a message with a specifically named attachment that has
> the expected MIME type, automatically save the attachment so that my
> app can process it?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> 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


Re: [android-developers] Redirect User to HomeScreen after Activity Finishes

2010-05-12 Thread Mark Murphy
robl2e wrote:
> Hi,
> I'm trying to implement similar behavior as the native phone app.
> When a User is in the applications menu/drawer (place that lists all
> applications) and receives and incoming call, after the call has ended
> the User is returned to the Android Homescreen.  

That is not what happens on a call. The user is taken to whatever
activity they were in before the call. That could be the home screen,
but that could be something else.

> How do I redirect
> activity to the android homescreen like the phone app for that
> specific case.

Call finish() in your activity to return control to whatever activity is
prior to it on the stack.

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

_Android Programming Tutorials_ Version 2.0 Available!

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


[android-developers] Contribute to Android

2010-05-12 Thread rehab mohamed
hi
i am trying to contribute some changes to the Android source tree
i did all the steps to upload the code changes
but when i typed the command “repo upload”, i am asking for the
password and when i type it i get:
Permission denied, please try again.
i hope you have a solution for me
Thanks in advance
Rehab

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


[android-developers] Saving State of Media Player

2010-05-12 Thread Andrew
I wish to make an mp3 file play and loop. This works fine, but when
people hit home or back, after it finishes playing, it stops. I do
have setLooping(true). My other problem is that when I run the app
again while the music is still playing, a new instance of the app is
opened and it overlaps the music, how would I restore the running
state?

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


[android-developers] Working on a Mobile or Embedded Device/System? Tell VDC about your experiences for a chance to WIN!

2010-05-12 Thread OnTargetEmbedded
VDC is conducting its annual survey of mobile and embedded engineers
so if you are involved in the engineering of mobile or embedded
systems/software, this is your chance to influence key solution
suppliers.

The research covers embedded software, hardware, tools, and
development practices. Your thoughts will improve our insights into
the engineering community and help to influence next generation
solutions.

In addition, VDC will provide all respondents who complete the
survey:

* Instant access to a summary of VDC's 2009 survey findings;
* Entry into a prize drawing for one of five $100 Amazon.com gift
certificates (drawing to be held August 15th, 2010); and
* A summary of the 2010 survey findings once the survey is complete
later this year


To begin the survey, go to: http://bit.ly/a4cgtb


Thank you very much for your assistance.


Best Regards,

The VDC Embedded Software and Tools Research Team

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


[android-developers] Could not upload a new application

2010-05-12 Thread AndyDev
Hi,
I have an application, and am trying to upload a new application from
Developer console.

It always says  "The upgraded apk's package name (com.testini) must be
the same as the one it is replacing (null)."

I even tried created just a HelloWorld apk file, and still the same
error.

Can anyone suggest, where am going wrong.

Thanks,
AndyDev

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


[android-developers] Redirect User to HomeScreen after Activity Finishes

2010-05-12 Thread robl2e
Hi,
I'm trying to implement similar behavior as the native phone app.
When a User is in the applications menu/drawer (place that lists all
applications) and receives and incoming call, after the call has ended
the User is returned to the Android Homescreen.  How do I redirect
activity to the android homescreen like the phone app for that
specific case.

Thanks

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


[android-developers] Re: How to fix hit area after scaling

2010-05-12 Thread Jonathan
Just in case anybody else wants to accomplish this, all you have to do
is override your child view's getHitRect method to account for your
parent view's scale transformation.

I'm not sure why the base view class doesn't do this automatically,
but I'm sure there is a reason.

On May 12, 2:03 pm, Jonathan  wrote:
> Right, thats what I am trying to figure out how to do. I currently
> don't know how to separate a hit area from an actual view.
>
> It would make sense to me if there was some function needed to be
> called that would then figure out the new bounds of the views and
> change their hit areas appropriately. I am calling invalidate on the
> parent layout, but that doesn't seem to do anything to the views
> themselves. I'll try calling it on each child and see if that makes a
> difference.
>
> On May 12, 8:54 am, Jason Tomlinson  wrote:
>
>
>
>
>
> > You need to scale your hit areas to match the canvas scaling.  If you
> > zoom in 2x on the canvas your hit area is now twice the size likewise
> > if you zoomed out 2x then your hit area is half the size.
>
> > On May 11, 2:52 pm, Jonathan  wrote:
>
> > > I am scaling the canvas of a linear layout on draw, but this throws
> > > off all the hit areas of my views inside of this layout. They respond
> > > as if there was no scaling taking place. What do I have to do to get
> > > themselves to re-register their hit areas?
>
> > > Thanks
>
> > > Jonathan
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email 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 
> > 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 
> 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: Sqllite database join query

2010-05-12 Thread brucko
Have a look at the SQLite website.

SQLite does have support for joining separate databases, but I am not
sure how it is done.

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


[android-developers] Contribute to Android

2010-05-12 Thread rehab mohamed
Hi all
I am trying to contribute some changes to the Android source tree
I did all steps but when i typed the command repo upload and typed the password 
i get the error message:
Permission denied, please try again.
any suggestions?
Thanks in advance
Rehab



  

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

[android-developers] Re: Using same sqlite database from multiple Activities and Services

2010-05-12 Thread brucko
This all sounds like a local Service to me. Open the db in onBind if
its not open. Let the service take care of how many Activities/
Services are bound and close the db in onUnbind.

Easy, simple everything you need is already there.

Or you can complicate things and reinvent singletons and counting how
many Activities and Services have references to your db object   ;P

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: method.getAnnotation( ) or method.isAnnotationPresent( ) not working

2010-05-12 Thread Nehal
Just wanted to add that I get false for following line even if I have
annotation added.
if (methodList[i].isAnnotationPresent(MethodInfo.class))

On May 12, 5:05 pm, Nehal  wrote:
> Hello,
> I am trying to use annotation - method.getAnnotation( ) or
> method.isAnnotationPresent( ) and it is not working.
>
> I am using eclipse emulator for 2.1 OS version with JDK 1.6. Following
> is information about what I did. Please advise if I am doing something
> wrong.
>
> 1) Added annotation type
> public static final int METHOD_UNDEFINED = -1;
>
>         public @interface MethodInfo {
>                 int id() default METHOD_UNDEFINED;
>         }
>
> 2) Added annotation for my method
> final public static int METHOD_TESTMSG = 1;
>
> @MethodInfo(id=METHOD_TESTMSG)
> public void testMsg(String msg, int data1, boolean bool1) {
> // code here
>
> }
>
> 3) Now I am trying to find this method using annotation.
> Method [] methodList = instanceClass.getDeclaredMethods();
>                 for(int i=0; i< methodList.length; i++) {
>                         if 
> (methodList[i].isAnnotationPresent(MethodInfo.class)) {
>                                 // stuff here
>                         }
>                 }
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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] method.getAnnotation( ) or method.isAnnotationPresent( ) not working

2010-05-12 Thread Nehal
Hello,
I am trying to use annotation - method.getAnnotation( ) or
method.isAnnotationPresent( ) and it is not working.

I am using eclipse emulator for 2.1 OS version with JDK 1.6. Following
is information about what I did. Please advise if I am doing something
wrong.

1) Added annotation type
public static final int METHOD_UNDEFINED = -1;

public @interface MethodInfo {
int id() default METHOD_UNDEFINED;
}

2) Added annotation for my method
final public static int METHOD_TESTMSG = 1;

@MethodInfo(id=METHOD_TESTMSG)
public void testMsg(String msg, int data1, boolean bool1) {
// code here
}

3) Now I am trying to find this method using annotation.
Method [] methodList = instanceClass.getDeclaredMethods();
for(int i=0; i< methodList.length; i++) {
if 
(methodList[i].isAnnotationPresent(MethodInfo.class)) {
// stuff here
}
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: OpenCore / Possible Issue w/ Streaming MP3 over HTTP?

2010-05-12 Thread rktb
Hi,

I was able to reproduce the problem, and it is definitely timing
dependent. For the eclair codebase, I found a problem in OpenCORE's
mp3 parser node. That, however, has been fixed on the latest codebase
available at kernel.org.

Now, for applications that are being written for existing Android SDK
releases, I don't have a way out yet.

-Ravi

On May 12, 12:47 pm, SDS  wrote:
> I’m experiencing an intermittent and very frustrating issue with
> MediaPlayer on Android when streaming MP3 over HTTP.  I’ve done as
> much research and debugging as I possibly can to try and find a
> solution, but am coming up short.  I can’t find reference to this
> issue anywhere, including b.android.com.
>
> Essentially, what’s happening is MediaPlayer will not come out of the
> preparing state.  The device is receiving audio data during this time,
> as indicated by network sniffs and the MediaPlayer buffering callback
> being invoked repeatedly with increasing percentage values, but
> eventually the buffer appears to become full and stops receiving.
> Because prepare() never returns, or more accurately when
> prepareAsync() is used and the onPrepared callback is never invoked,
> and neither the onError() nor onInfo() callbacks are invoked, the
> application can neither call MediaPlayer.start() nor make any sort of
> recovery.
>
> Other notable observations:
>
> -       The problem is intermittent, meaning that subsequent attempts to
> play the exact same MP3 stream from the exact same server may exhibit
> this behavior or not
> -       The problem seems to be exasperated when the device is connected via
> 3G versus wifi
> -       The problem occurs on different MP3’s encoded by different software
> -       The problem occurs when streaming from different HTTP servers
> -       The problem cannot be reproduced on any of the Android SDK emulators
> -       The problem can be reproduced on the HTC Incredible, Verizon
> Motorola DROID, and HTC Touch
> -       When MediaPlayer successfully returns from the preparing state,
> there is an info message (what=1, extra=44) received.  This info
> message is not received during the problematic case.
>
> Anyone ever experienced this, or even find a solution?
>
> 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 
> 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: Android Browser debug question

2010-05-12 Thread ຄຳ
hi

Thanks for answer

> > How can I debug that?
>
> Turn on USB debugging on the phone, set it to allow external apps, plug it
> in via USB, install the proper drivers, the run your app from Elipse - your
> phone should be a target. Deploy it to your phone and debug as usual.

I don't use Eclipse for developing. It's only a webage with javascript
code.
To install Eclipse with Android and drivers takes a working day for me
because I
never worked with eclipse.

For me that looks like buying a tool shop but needing only a screw.

Is there no easier way to see javascript errors?

Bernhard



>
> --- 
> --
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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] new interpreter for Android

2010-05-12 Thread Andrei
I am writing pure Java interpreter for Android
The language itself looks similar to JavaScript
The goal is to be able to write majority of apps on the Market
using scripts
It is in Alpha stage
The interpreter jar right now is 62 Kb
If you are interested to see how it works,
install apk from link below, it has examples of scripts and the src
Long press entry to see it's source
Please let me know what you think.
Thanks

http://gmlvsk.appspot.com/apk/IProgram.apk


This is just one of the examples.
It places 2 buttons on screen and changes text when you click them
-


var layout;
var button1, button2;
var cb1[], cb2[];
var counter1 = 0;
var counter2 = 0;

layout = LinearLayout.newObj();
layout.setMainView();

button1 = Button.newObj( "button1" );
button2 = Button.newObj( "button2" );

cb1["onClick"] = {
  counter1++;
  button1.setText( "clicked " + counter1 + " times" );
};
button1.setCallback( cb1 );

cb2["onClick"] = {
  counter2++;
  button2.setText( "clicked " + counter2 + " times" );
};
button2.setCallback( cb2 );

layout.addView( button1, LinearLayout.FILL, LinearLayout.WRAP );
layout.addView( button2, LinearLayout.FILL, LinearLayout.WRAP );

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

2010-05-12 Thread HanWriting
Rooting isn't practical for many ordinary users.
Google have to provide us an easy way to do this without rooting.

-
H漢W書ing
(CJK+English Handwriting Recognition)


On May 12, 4:08 pm, alexk-il  wrote:
> Hi Ilan,
>
> You may trying installing Hebrew fonts by yourself.
> 1. You need to get root access on your phone
> 2. Install Hebrew fonts
>
> Should be easy to find relevant instructions on Google search.
>
> Good luck
> Alex
>
> On May 10, 10:36 am, Lanpazi  wrote:
>
> > I love my new HTC Incredible, but it is frustrating to not be able to
> > read and respond to emails and Facebook content on a daily basis.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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] Credential Permission Error with HTC Sense

2010-05-12 Thread polyclefsoftware
I've released an app that uses the new AccountManager API to handle
authentication to Google App Engine as described in this thread:

http://groups.google.com/group/android-developers/browse_thread/thread/be16e3903442931b/63f01206f719effd

The first time the user attempts to log in, Android prompts them with
a system notification which reads:

"The listed applications are requesting permission to
access the Google App Engine login credentials for account
x...@gmail.com.  Do you wish to grant this permission?"

There are Allow/Deny buttons. Once the user presses "Allow", the
system setting is remembered, and login is seamless.

This works great on my Nexus and Droid, but upon release I'm getting
feedback from users on the HTC Desire and Incredible (both running HTC
Sense) that they get a force close when they hit "Allow", and the
Sense UI reboots. This is apparently not an exception occurring within
my app, because attempts to handle it from with the app and store the
stack trace for reporting are not working.

This sounds like a bug in the HTC Sense UI related to allowing access
to login credentials. Any advice on how to proceed? Is there a venue
for reporting bugs in HTC Sense?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Upgrading 2009 I/O device from Donut (1.6) to Eclair (2.0/2.1)?

2010-05-12 Thread tatlar
Hi John,

Thanks for the information. I am aware of this, and have my Droid
device already (thanks Google!). However, my 2009 I/O device is my
main smartphone, and I wish to update the OS on it to Eclair. My
comment about the 2010 conference app was just a minor sideline
irritation.

Best regards.

On May 11, 3:23 pm, "Maps.Huge.Info (Maps API Guru)"
 wrote:
> If you're attending IO 2010, you should have (or will receive) a new
> device. US residents receive the Droid (by mail) and non-US residents
> receive the N1 upon registration.
>
> -John Coryat
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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: accessing sqlite db

2010-05-12 Thread Christine
1. where you open and close depends on your app. You can keep the db
open, and close and re-open in onResume and onPause, or you can open
and close before and after you access the db.

3. just retrieve the data that you need in the getView of your list
adapter, don't retrieve complete tables if you don't need them. Of
course, it depends on your app and on the size of the table whether
you want to keep the table in memory or not.

On May 9, 4:22 pm, kamiseq  wrote:
> hi,
> Im starting with android and have few questions about database access.
>
> 1. Every tutorial I ve read (ie Notepad) that uses sqlite creates and
> opens connection via SQLiteOpenHelper in onCreate callback. but I
> really have never seen that the connection is closed (androids throws
> exceptions that there is a leak as connection is never closed). So I
> assume that onSaveInstanceState is the best bet to close as onCreate
> opens the connection. but maybe it should be sooner - something like
> onResume (for open) and onPause (for close). or maybe those tutorials
> are too trivial and I should create another layer for accessing data
> in services, so that data could be shared between activities and
> wouldn't suffer from activity life cycle.
>
> the only thing is that the exception is thrown after a while - not
> immediately after destroying activity
> D/MyMainActivity :(  305): on Pause.
> D/MyMainActivity :(  305): on Stop.
> D/MyMainActivity :(  305): on Destroy.
> D/dalvikvm(  101): GC freed 408 objects / 18416 bytes in 78ms
> I/ActivityManager(   55): Starting activity: Intent
> { act=android.intent.action.MAIN
> cat=[android.intent.category.LAUNCHER] flg=0x1020 cmp=info.kami
> D/MyMainActivity :(  305): on create.
> D/MyMainActivity :(  305): on Start.
> D/MyMainActivity :(  305): on Resume.
> I/ActivityManager(   55): Displayed activity
> my.app.android/.MainActivity: 664 ms (total 664 ms)
> I/ActivityManager(   55): Starting activity: Intent
> { act=android.intent.action.MAIN cat=[android.intent.category.HOME]
> flg=0x1020 cmp=com.android.l
> D/MyMainActivity :(  305): on Pause.
> D/MyMainActivity :(  305): on Stop.
> I/ActivityManager(   55): Starting activity: Intent
> { act=android.intent.action.MAIN
> cat=[android.intent.category.LAUNCHER] flg=0x1020 cmp=info.kami
> D/MyMainActivity :(  305): on Restar.
> D/MyMainActivity :(  305): on Start.
> D/MyMainActivity :(  305): on Resume.
> D/dalvikvm(  305): GC freed 5465 objects / 347528 bytes in 95ms
> E/Database(  305): Leak found
> E/Database(  305): java.lang.IllegalStateException: mPrograms size 1
> E/Database(  305):      at
> android.database.sqlite.SQLiteDatabase.finalize(SQLiteDatabase.java:
> 1668)
> E/Database(  305):      at dalvik.system.NativeStart.run(Native
> Method)
> E/Database(  305): Caused by: java.lang.IllegalStateException: /data/
> data/my.app.android/databases/data SQLiteDatabase created and never
> closed
> E/Database(  305):      at
> android.database.sqlite.SQLiteDatabase.(SQLiteDatabase.java:
> 1694)
> E/Database(  305):      at
> android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:
> 738)
> E/Database(  305):      at
> android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:
> 760)
> E/Database(  305):      at
> android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:
> 753)
> E/Database(  305):      at
> android.app.ApplicationContext.openOrCreateDatabase(ApplicationContext.java:
> 473)
> E/Database(  305):      at
> android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:
> 193)
> E/Database(  305):      at
> android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:
> 98)
> E/Database(  305):      at
> my.app.android.dao.SQLiteTemplate.openToReadWrite(SQLiteTemplate.java:
> 60)
> E/Database(  305):      at
> my.app.android.dao.SQLiteCallDao.open(SQLiteCallDao.java:54)
> E/Database(  305):      at
> my.app.android.MainActivity.getDao(MainActivity.java:102)
> E/Database(  305):      at
> my.app.android.MainActivity.onCreate(MainActivity.java:53)
> E/Database(  305):      at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1047)
> E/Database(  305):      at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2459)
> E/Database(  305):      at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 2512)
> E/Database(  305):      at android.app.ActivityThread.access
> $2200(ActivityThread.java:119)
> E/Database(  305):      at android.app.ActivityThread
> $H.handleMessage(ActivityThread.java:1863)
> E/Database(  305):      at
> android.os.Handler.dispatchMessage(Handler.java:99)
> E/Database(  305):      at android.os.Looper.loop(Looper.java:123)
> E/Database(  305):      at
> android.app.ActivityThread.main(ActivityThread.java:4363)
> E/Database(  305):      at
> java.lang.reflect.Method.invokeNative(Native Method)
> E/Database(  305):      at java.lang.reflect.Method.in

[android-developers] Re: Finishing Browser

2010-05-12 Thread Serkan Ozel
Setting the FLAG_ACTIVITY_CLEAR_TOP flag didn't work, Gyan.

I'm looking at other flags see if they work, an/or change the behavior
of the back button.

Back button does take me back to my application and ends the browser
only if I have one page to show but the reality is that I do have few
html pages, and back only works to take user back in the history.

Any more suggestions anyone?

I'll be working on it, I'll also post if I find anything new.

thanks

On May 12, 3:58 pm, Gyan  wrote:
> I think back button would work depends on how you launch the intent.
> must be part of the current task... FLAG_ACTIVITY_CLEAR_TOP
>
> would do the trick I hope... If not, check on other flags, I'm not sure
> about the flag - but I'm pretty sure you can make use of back button to come
> back to ur app from the browser
>
> Gyan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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: how can i set up my Nexus one as external device to develop under Debian 5.0?

2010-05-12 Thread Christine
Did you update your rules.d file? dit you put in the right vendor
code? The vendor code is different from the one for other HTC devices.

On May 11, 1:33 pm, Luis Clemente Morera
 wrote:
> Hello,
>
> I'm trying to set up my Nexus One under Debian 5.0 to use it as
> testing device but I can't. I followed the ubuntu steps but it doesn't
> work. Can you help me?
>
> Regards
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> 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: Finishing Browser

2010-05-12 Thread Serkan Ozel
Hello Kostya,

Yes I tried the same thing, javascript to close the browser, I thought
it would at least ask me if I want to close it - and that didn't work.

On May 12, 3:58 pm, Kostya Vasilyev  wrote:
> 12.05.2010 23:50, Serkan Ozel ?:> I hopped that a button in the HTML 
> displayed would close the browser
> > but it seems like the Android seems to ignore that.
>
> You mean you've tried something like:
>
> |Close this Window |
>
> --
> Kostya Vasilyev ~ WiFi Manager + pretty widget 
> ~http://kmansoft.wordpress.com/sw
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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: how can i set up my Nexus one as external device to develop under Debian 5.0?

2010-05-12 Thread Christine
Did you update your rules.d file? dit you put in the right vendor
code? The vendor code is different from the one for other HTC devices.

On May 11, 1:33 pm, Luis Clemente Morera
 wrote:
> Hello,
>
> I'm trying to set up my Nexus One under Debian 5.0 to use it as
> testing device but I can't. I followed the ubuntu steps but it doesn't
> work. Can you help me?
>
> Regards
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> 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


Re: [android-developers] auto stop of app when capture the picture with camera

2010-05-12 Thread TreKing
On Wed, May 12, 2010 at 2:52 PM, Wenjing  wrote:

> does anyone know why?


Not based on what you posted - it could be any of 1,000 different things.
And I doubt anyone's going to sift through that much unformatted code to
find your answer for you.

At the very least post the stack trace of the problem, provide more details,
and explain what you've already tried thus far.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

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

2010-05-12 Thread Yahel
First, please don't hijack other posts and change their subject.

As for your problem, it is probably very slow because of the size of
the image you are using(ie a photo from the gallery (2-5mpx) )
Since you are on a mobile device with a limited screen, you could
scale down the image to the display size say 320*480 using a
bitmapfactory and a matrix and postscale or any other method.

Then your code would have a lot less pixels to scramble.

Side note, but when you are trying to get speed any optimization
helps : make a variable out of  pixels.length - 1, that way the device
doesn't have to compute that number for the 5 millions pixels your
scrambling :)

Yahel


On 9 mai, 16:20, "John Woods"  wrote:
> I have been asked to write an function to scramble a bitmap image. A user
> can then enter a password and the image will unscramble.
>
> I have managed to write the following code that works but takes way to long
> to execute due to the setPixels call.
>
> I was thinking of an alternate solution of just drawing the original
> unscrambled image and then making some sort of transparent overlay bitmap
> with some sort of distortion effect. When the user enters the correct
> password the overlay fades away.
>
> Please help!
>
> @Override
>
> protected void onDraw(Canvas canvas)
>
> {
>
>       //Some of the variables are global but I left out that code. This
> successfully runs.
>
>                 int w = bitmap.getWidth();
>
>       int h = bitmap.getHeight();
>
>       Bitmap scrambled = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_);
>
>       int[]pixels = new int[w*h];
>
>       bitmap.getPixels(pixels, 0, w, 0, 0, w, h);
>
>       int color = 0;
>
>       Random random = new Random();
>
>       Paint paint = new Paint();
>
>       for (int i = 0; i < pixels.length; i++)
>
>       {
>
>             pixels[i] = pixels[random.nextInt(pixels.length - 1)];
>
>       }
>
>       scrambled.setPixels(pixels, 0, w, 0, 0, w, h);
>
>       canvas.drawBitmap(scrambled, 0, 0, paint); }
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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: Hebrew Fonts on Android 2.1

2010-05-12 Thread alexk-il
Hi Ilan,

You may trying installing Hebrew fonts by yourself.
1. You need to get root access on your phone
2. Install Hebrew fonts

Should be easy to find relevant instructions on Google search.

Good luck
Alex



On May 10, 10:36 am, Lanpazi  wrote:
> I love my new HTC Incredible, but it is frustrating to not be able to
> read and respond to emails and Facebook content on a daily basis.

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


Re: [android-developers] How to communicate from Javascript back to an app?

2010-05-12 Thread James Moore
On Wed, May 12, 2010 at 11:54 AM, Mark Murphy  wrote:
>> But what's the right way to get data from Javascript back to the
>> application?  It's simple to have javascript call app methods, but any
>> parameters specified in the call on the javascript side don't survive
>> the trip (I just get null in the app).
>
> It worked for me, if you choose primitive data values. I don't have any
> examples handy, as the last time I did that was for a consulting gig.

You're right, but it looks like it cares about how you declare the
method.  If it looks like this:

public void callThisJavaMethod(Object x) { ...

I get null.  If it looks like this:

public void callThisJavaMethod(String x) { ...

I can get a string.  I'll just turn everything I care about into json,
works well enough.

-- 
James Moore
ja...@restphone.com
http://jamesmoorecode.blogspot.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] Slow connection with Java NIO

2010-05-12 Thread Kostya Vasilyev

Hi,

I am experiencing slowness connecting to a Java NIO server running in my 
Android app.


The server code is fairly boilerplate:

- Create a listening server socket like this:

   ServerSocketChannel channel = ServerSocketChannel.open();
   channel.configureBlocking(false);
   ServerSocket socket = channel.socket();
   socket.setReuseAddress(true);
   socket.bind(isa);


- Register it with a selector

   mMainSelector = Selector.open();
   mMainAcceptKey = mServerChannel.register(mMainSelector,
   SelectionKey.OP_ACCEPT);

- Enter a processing loop

   while (mMainSelector.select(SELECTOR_TIMEOUT) {
 stuff getting the selected keys 
SocketChannel socketChannel = channel.accept();

Problem is, it takes about 1-3 seconds from the time the client begins 
to connect to when the above code gets to the last line (channel.accept()).


For read/write operations, the select() call returns immediately, which 
is expected.


Has anyone else seen this slowness in select() when accepting new 
connections?


--
Kostya Vasilyev ~ WiFi Manager + pretty widget ~ 
http://kmansoft.wordpress.com/sw

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

2010-05-12 Thread social hub
ImageView myImage = findViewById(r.id.image)
myimage.setOnClickListener()

setOnClickListener is what you need


On Wed, May 12, 2010 at 2:20 AM, Narendar wrote:

> Hi,
> I have developed a Custom ListView with following pattern
>
> Name   |-|
> Age | My Tiny Image  |
> Email   | ---|
>
> Now I want to know after clicking on my Tiny Image some function
> should be called. How to attach listener to this Image which is part
> of Custom ListView row.
>
> Please provide me any needful
>
> Regards,
> Narendar
> Software Engineer
> INDIA
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Finishing Browser

2010-05-12 Thread Gyan
I think back button would work depends on how you launch the intent.
must be part of the current task... FLAG_ACTIVITY_CLEAR_TOP

would do the trick I hope... If not, check on other flags, I'm not sure
about the flag - but I'm pretty sure you can make use of back button to come
back to ur app from the browser

Gyan

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

2010-05-12 Thread Kostya Vasilyev

12.05.2010 23:50, Serkan Ozel ?:

I hopped that a button in the HTML displayed would close the browser
but it seems like the Android seems to ignore that.
   

You mean you've tried something like:

|Close this Window |

--
Kostya Vasilyev ~ WiFi Manager + pretty widget ~ 
http://kmansoft.wordpress.com/sw

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

[android-developers] auto stop of app when capture the picture with camera

2010-05-12 Thread Wenjing
Dear everyone:

I am facing a problem; when I try to save the picture, the app will
auto stop. but it does not happen everytime.

does anyone know why? Thank you so much.

next is the sourcecode

/**
 * Copyright (c) 2007, Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
 * See the License for the specific language governing permissions
and
 * limitations under the License.
 */

package com.android.cameraapitest;


import java.io.File;

import java.io.IOException;
import java.io.OutputStream;

import android.app.Activity;
import android.content.ContentValues;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.net.Uri;
import android.os.Environment;

import android.os.Bundle;
import android.provider.MediaStore;
import android.provider.MediaStore.Images;

import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.SurfaceHolder;
import android.view.SurfaceView;

import android.view.Window;
import android.view.WindowManager;
import android.widget.Toast;
import android.hardware.Camera;

import android.text.format.DateFormat;
import android.util.Log;

public class CameraApiTest extends Activity implements
SurfaceHolder.Callback
{
private static final String TAG = "CameraApiTest";
Camera mCamera;
boolean mPreviewRunning = false;


public void onCreate(Bundle icicle)
{
super.onCreate(icicle);

Log.e(TAG, "onCreate");
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.
FLAG_FULLSCREEN ,
WindowManager.LayoutParams. FLAG_FULLSCREEN);
 //   getWindow().setFormat(PixelFormat.TRANSLUCENT);
String status=Environment.getExternalStorageState();
if (status.equals(Environment.MEDIA_MOUNTED)){

setContentView(R.layout.camera_api_test);
mSurfaceView = (SurfaceView)findViewById(R.id.surface);

mSurfaceHolder = mSurfaceView.getHolder();
mSurfaceHolder.addCallback(this);
 
mSurfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
}
else{
Toast.makeText(getApplicationContext(), "PLease insert 
an SD card
before using the camera!", Toast.LENGTH_LONG).show();
}

}

public boolean onCreateOptionsMenu(android.view.Menu menu) {
MenuItem item = menu.add(0, 0, 0, "goto gallery");
item.setOnMenuItemClickListener(new
MenuItem.OnMenuItemClickListener() {
public boolean onMenuItemClick(MenuItem item) {
Uri target = Uri.parse("content://media/external/
images/media");
Intent intent = new Intent(Intent.ACTION_VIEW,
target);
startActivity(intent);
return true;
}
});
return true;
}

@Override
protected void onRestoreInstanceState(Bundle savedInstanceState)
{
super.onRestoreInstanceState(savedInstanceState);
}

Camera.PictureCallback mPictureCallback = new
Camera.PictureCallback() {
public void onPictureTaken(byte[] data, Camera camera) {
 ContentValues values = new ContentValues(8);
 String newname = DateFormat.format("-MM-dd kk.mm.ss",
System.currentTimeMillis()).toString();
 values.put(MediaStore.Images.Media.TITLE, newname);
 values.put(MediaStore.Images.Media.DISPLAY_NAME,
newname);
 values.put(MediaStore.Images.Media.DESCRIPTION,
"test");//
 values.put(MediaStore.Images.Media.DATE_TAKEN,
System.currentTimeMillis());//
 values.put(MediaStore.Images.Media.MIME_TYPE, "image/
jpeg");//
 values.put(MediaStore.Images.Media.ORIENTATION, 0);//
 final String CAMERA_IMAGE_BUCKET_NAME = "/sdcard/dcim/
camera";
 final String CAMERA_IMAGE_BUCKET_ID =
String.valueOf(CAMERA_IMAGE_BUCKET_NAME.hashCode());
 File parentFile = new File(CAMERA_IMAGE_BUCKET_NAME);
 String name = parentFile.getName().toLowerCase();
 values.put(Images.ImageColumns.BUCKET_ID,
CAMERA_IMAGE_BUCKET_ID);//id
 values.put(Images.ImageColumns.BUCKET_DISPLAY_NAME,
name);
 Uri uri =
getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
values);
 BitmapFactory.Options options=new
BitmapFactory.Options();
options.inSampleSize = 2;
  

[android-developers] How to determine current screen brightness?

2010-05-12 Thread Markus
I try to find a way to determine the current screen brightness.

Currently I use Settings.System.getInt(getContentResolver(),
Settings.System.SCREEN_BRIGHTNESS) but unfortunately the result is not
accurate when the phone is set to automatic brightness.

Thanks,
Markus

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


[android-developers] Finishing Browser

2010-05-12 Thread Serkan Ozel
Hello Guys,

I need to launch the Browser from my application (cannot do the
WebView - it has to be browser), and once I'm done with the browser,
is there a way to close the Browser and the user back to the
application programatically?

The problem is that user will probably press back or home keys to get
out of the browser - back key will not work, and home key will put
Browser and my app in the background.

I hopped that a button in the HTML displayed would close the browser
but it seems like the Android seems to ignore that.

Can anyone help?

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] JetPlayer help

2010-05-12 Thread Justin
I've just started looking at JetPlayer and have (I think) created the
appropriate files needed in JetCreator (*.zip and *.jet files).  When
I test an implementation out, I get the following error in the logcat:

E/JET_JNI ( 1869): android_media_JetPlayer_queueSegment(): failed with
EAS error code -13

Any ideas what this means?

I followed the JetBoy example in the SDK.

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


Re: [android-developers] Re: Gallery elasticity at the ends

2010-05-12 Thread Gyan
Hey Nik... I got what you are trying to implement. If I'm not wrong its
called inertial scrolling. You can see google scoreboard app in the
market which has this already not exactly though. When that app came out
first I tried implementing the feel through layout animation.

The page contained empty space on either ends of the list as list items
without the ListSeperator which "onLoad"  scrolls back to the top or bottom
of the list - smooth and quick - as you let go of the touch. I had
implemented that through layout animation I bet there would be other
ways of doing it...

Gyan

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

2010-05-12 Thread Nik Bhattacharya
I don't think I understand your suggestion Gyan.  I think you are
guiding me towards a Layout Animation which is not really what my
requirement is.

I am trying to signal to the user that they have reached the end of
the gallery via the fact that they try to drag past the first or last
item and instead of the gallery not moving at all, I want to have an
"elastic" feel at the end.  Again, very similar to the iPhone home
screen in which there is a little elastic effect when you go to the
last screen that you have it it has a little elasticity.

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


Re: [android-developers] Re: How to get selected items in a ListView (multi selection check boxes)? - URGENT PLZ

2010-05-12 Thread Gyan
Have experienced this myself. implement a ListAdapter for the same and
handle ur items from there...

Additionally u can use onDataSetChanged to check for the multiple check and
uncheck options.i mean to say you can actually debug this at this
overridden method!

Gyan

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

Re: [android-developers] Re: Getting contact photos from Facebook only contacts

2010-05-12 Thread Gyan
Not sure if google exposes this... but you can very well use ur facebook
account and implement this urself and expose the name/photo/other data as a
content and use it... wont be any different; just that you will be using
your own sqlite DB for this and entropy will be less as its the contact book
contacts only

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

Re: [android-developers] Android Browser debug question

2010-05-12 Thread TreKing
2010/5/12 ຄຳ 

> How can I debug that?


Turn on USB debugging on the phone, set it to allow external apps, plug it
in via USB, install the proper drivers, the run your app from Elipse - your
phone should be a target. Deploy it to your phone and debug as usual.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

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

2010-05-12 Thread Nik Bhattacharya
I can't find the thread, but I read somewhere that the Facebook photos
and info are only available to Google apps and are not exposed via the
SDK.  Can anybody from Google comment on 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: How to get selected items in a ListView (multi selection check boxes)? - URGENT PLZ

2010-05-12 Thread dillipk
I do not get correct selected items...

One more thing,  being on the screen, when I select one item and then
deselect, it still gives me that the item as selected...



On May 11, 5:34 pm, TreKing  wrote:
> On Mon, May 10, 2010 at 5:34 PM, dillipk  wrote:
> > The following code doesn't work correctly...
>
> What does "doesn't work correctly..." mean?
>
> -
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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


Re: [android-developers] How to communicate from Javascript back to an app?

2010-05-12 Thread Mark Murphy
James Moore wrote:
> I'm loading up a webview with some locally generated html and
> javascript.  It makes calls to app methods just fine.
> 
> But what's the right way to get data from Javascript back to the
> application?  It's simple to have javascript call app methods, but any
> parameters specified in the call on the javascript side don't survive
> the trip (I just get null in the app).

It worked for me, if you choose primitive data values. I don't have any
examples handy, as the last time I did that was for a consulting gig.

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

Android Consulting: http://commonsware.com/consulting

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

2010-05-12 Thread James Moore
I'm loading up a webview with some locally generated html and
javascript.  It makes calls to app methods just fine.

But what's the right way to get data from Javascript back to the
application?  It's simple to have javascript call app methods, but any
parameters specified in the call on the javascript side don't survive
the trip (I just get null in the app).  Gross hacks seem obvious (open
a url and encode the data in the url), but that can't be right.

-- 
James Moore
ja...@restphone.com
http://jamesmoorecode.blogspot.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


Re: [android-developers] Get URL from Android Browser

2010-05-12 Thread TreKing
On Wed, May 12, 2010 at 2:26 AM, Narendar Singh Saini <
narendardisco...@gmail.com> wrote:

> Call your browser activity with startActivityForResult() method for getting
> back results


Um ... unless the browser is programmed to put it's current URL in a result
and send it back, this isn't going to work.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

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

2010-05-12 Thread DonFrench
Yes, SPP is supported.  In the BluetoothChat example, change to the
UUID to 1101--1000-8000-00805F9B34FB and it communicates with
devices using SPP.

On May 10, 6:57 am, Pobudzio  wrote:
> Hello,
>
> I'm a little bit confused about supporting SPP by Android API(from
> level 5).
>
> As I understand it wasn't supported in versions before API level 5
> what we can read in discussion below.(First Nick's post)
>
> http://groups.google.com/group/android-developers/browse_thread/threa...
>
> But it was in October and after that we have APi from 5 to 7 now
> released.
>
> And my question is do all these API's support SPP?
>
> As I read in other discussions some phones makes more difficulties
> than others. Which mobile phone you can recommend?
>
> In API reference we can read that: "The most common type of Bluetooth
> socket is RFCOMM, which is the type supported by the Android APIs.
> RFCOMM is a connection-oriented, streaming transport over Bluetooth.
> It is also known as the Serial Port Profile (SPP). "
>
> As I know RFCOMM is not the same as SPP. What is the difference
> between RFCOMM and SPP and it's configuration in Android API?
>
> Thanks,
> Pobudziohttp://d.android.com/reference/android/bluetooth/BluetoothSocket.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 
> 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: (Bug?) Back button triggers several times in different tasks

2010-05-12 Thread Streets Of Boston
Read this on the blog of developer.android.com:

http://android-developers.blogspot.com/2009/12/back-and-other-hard-keys-three-stories.html

It'll tell you how to custom-handle back-key presses (and such) on 1.6
and have them compatible with 1.5 and earlier as well.


On May 5, 11:48 am, inbrain  wrote:
> I found behavior which I can not understand related to event handling.
> I have task one with activity A on top of it:
>
> public class A extends Activity {
>     private static final String MMS_PACKAGE = "com.android.mms";
>     private static final String SMS_INTENT_EXTRA_NAME = "sms_body";
>     private static final String SMS_INTENT_TYPE = "vnd.android-dir/mms-
> sms";
>
>     @Override
>     protected void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.main);
>
>         Button checkSmsBtn = (Button)findViewById(R.id.sms_start_btn);
>
>         checkSmsBtn.setOnClickListener(new OnClickListener() {
>
>             public void onClick(View v) {
>                 startActivity(createSmsIntent());
>             }
>         });
>     }
>
>     private Intent createSmsIntent() {
>         String normalizedQuery = "";
>
>         Intent intent = new Intent(Intent.ACTION_VIEW);
>         intent.setComponent(new ComponentName(MMS_PACKAGE,
>                 "com.android.mms.ui.ComposeMessageActivity"));
>         intent.putExtra(SMS_INTENT_EXTRA_NAME, normalizedQuery);
>         intent.setType(SMS_INTENT_TYPE);
>
>         return intent;
>
>     }
>
>     @Override
>     public boolean onKeyUp(int keyCode, KeyEvent event) {
>         if(keyCode == KeyEvent.KEYCODE_BACK) {
>             Context context = getApplicationContext();
>             CharSequence text = "Back button triggered";
>             int duration = Toast.LENGTH_SHORT;
>
>             Toast toast = Toast.makeText(context, text, duration);
>             toast.show();
>         }
>         return super.onKeyUp(keyCode, event);
>     }
>
> }
>
> I have listener on my button creating intent for showing compose
> message window (and passing empty message to it). Then if I press back
> button (on emulator) ComposeMessageActivity will be close AND Toast in
> activity A will trigger which seems very strange to me. Can anybody
> explain what's going on?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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


Re: [android-developers] how can I get the complete android documentation?

2010-05-12 Thread Xavier Ducrohet
You can also download the SDK and install the docs component to have
an offline version. It's the same as the online version minus the
download pages I think.

Xav

On Wed, May 12, 2010 at 10:25 AM, Mark Murphy  wrote:
> Psyhclo wrote:
>> Hi, I am Graduating in Computing Science, and my final project is a
>> complete research in Android's Platform, with a development of an
>> application. I would like to know how can I get the complete
>> documentation, beacause my research is very thorough, and I relly on
>> books and documentation. The current site I am reading about methods
>> and activities, etc is the Dev Guide on developer.android.com. I don't
>> know if is it complete there. But if you know, could you please show
>> me the link, or tell me how to get it?
>
> http://developer.android.com is the official SDK documentation. It is
> not complete, but it is as complete as it gets.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android 2.x 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
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


[android-developers] accessing sqlite db

2010-05-12 Thread EboMike
Leigh, you can't just hijack an existing discussion thread and post a
completely unrelated question.
Please open a new thread with your question.


On May 12, 11:04 am, Leigh McRae 
wrote:
> Hello,
>
> I am having a problem with what some of the triangles in my static
> meshes not being drawn.  The static meshes are created once and never
> touched again.  The class and all the data are marked final.  The
> triangles disappear based on view point.  The code all works on the
> BlackBerry and I have checked the data a couple of times.  I have
> managed to get a missing triangle on the screen and make a save game.  
> This at least allows me to reload the game with the problem and try
> different things.
>
> So I have disabled all 3d rendering except this mesh and the UI.  Here
> is what I have tried.
> - switched to vbo
> - switch to interlaced vertex buffers
> - tried float instead of fixed.
> - removed IntBuffer and used ByteBuffer
> - disabled pretty much every state I could just before the rendering.  
> Oddly enough disabling culling made one of two triangles appear.
>
> Really at a lose here.  The game takes about 10min to load on the
> emulator and then it renders about half of everything but there are no
> errors.
>
> I am using the following:
>
> Android 2.0.1
> Milestone/Droid
>
> Here is my config that I use:
>
> EGL_BUFFER_SIZE: 16
> EGL_RED_SIZE: 5
> EGL_GREEN_SIZE: 6
> EGL_BLUE_SIZE: 5
> EGL_ALPHA_SIZE: 0
> EGL_DEPTH_SIZE: 24
> EGL_STENCIL_SIZE: 8
> EGL_NATIVE_RENDERABLE: 0
> EGL_CONFIG_CAVEAT: EGL_NONE
> EGL_LEVEL: 0
> EGL_NATIVE_VISUAL_TYPE: unknown
> EGL_SURFACE_TYPE: EGL_WINDOW_BIT EGL_PBUFFER_BIT
> EGL_TRANSPARENT_TYPE: EGL_NONE
> EGL_MAX_PBUFFER_WIDTH: 2048
> EGL_MAX_PBUFFER_HEIGHT: 2048
> EGL_MAX_PBUFFER_PIXELS: 4194304
> EGL_SAMPLES: 0
> EGL_SAMPLE_BUFFERS: 0
>
> --
>
> Leigh McRaewww.lonedwarfgames.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 
> 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] How to access/call IBinder interface from ASE?

2010-05-12 Thread Saravanan Bala
I’m in the process of developing Lua/Python based Test harness automation
test suite for testing IBinder based message interaction.

How to achieve this? Is there any Lua/Python or any scripting sample or
examples provided?



Any help or pointers would be appreciated.



Regards

Saravanan

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

[android-developers] Auto-Process Email Attachments

2010-05-12 Thread seguetester
I have an Android app that I am working on that needs to get regular
data updates.  However, the only way that I will ever be able to
receive the data is via csv files arriving as email attachments.  I
wish that I could use a web service or something else more reliable;
however, this is the constraint that I am working with.

So, how can I build the functionality to monitor all incoming mail and
if I receive a message with a specifically named attachment that has
the expected MIME type, automatically save the attachment so that my
app can process it?

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


[android-developers] Re: Complete Newbie - Looking for some help :)

2010-05-12 Thread kamiseq
read this
http://developer.android.com/guide/topics/fundamentals.html

hello and notepad tutorial
http://developer.android.com/resources/samples/index.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] OpenGL drops triangles

2010-05-12 Thread Leigh McRae

Hello,

I am having a problem with what some of the triangles in my static 
meshes not being drawn.  The static meshes are created once and never 
touched again.  The class and all the data are marked final.  The 
triangles disappear based on view point.  The code all works on the 
BlackBerry and I have checked the data a couple of times.  I have 
managed to get a missing triangle on the screen and make a save game.  
This at least allows me to reload the game with the problem and try 
different things.


So I have disabled all 3d rendering except this mesh and the UI.  Here 
is what I have tried.

- switched to vbo
- switch to interlaced vertex buffers
- tried float instead of fixed.
- removed IntBuffer and used ByteBuffer
- disabled pretty much every state I could just before the rendering.  
Oddly enough disabling culling made one of two triangles appear.


Really at a lose here.  The game takes about 10min to load on the 
emulator and then it renders about half of everything but there are no 
errors.


I am using the following:

Android 2.0.1
Milestone/Droid

Here is my config that I use:

EGL_BUFFER_SIZE: 16
EGL_RED_SIZE: 5
EGL_GREEN_SIZE: 6
EGL_BLUE_SIZE: 5
EGL_ALPHA_SIZE: 0
EGL_DEPTH_SIZE: 24
EGL_STENCIL_SIZE: 8
EGL_NATIVE_RENDERABLE: 0
EGL_CONFIG_CAVEAT: EGL_NONE
EGL_LEVEL: 0
EGL_NATIVE_VISUAL_TYPE: unknown
EGL_SURFACE_TYPE: EGL_WINDOW_BIT EGL_PBUFFER_BIT
EGL_TRANSPARENT_TYPE: EGL_NONE
EGL_MAX_PBUFFER_WIDTH: 2048
EGL_MAX_PBUFFER_HEIGHT: 2048
EGL_MAX_PBUFFER_PIXELS: 4194304
EGL_SAMPLES: 0
EGL_SAMPLE_BUFFERS: 0


--

Leigh McRae
www.lonedwarfgames.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: How to fix hit area after scaling

2010-05-12 Thread Jonathan
Right, thats what I am trying to figure out how to do. I currently
don't know how to separate a hit area from an actual view.

It would make sense to me if there was some function needed to be
called that would then figure out the new bounds of the views and
change their hit areas appropriately. I am calling invalidate on the
parent layout, but that doesn't seem to do anything to the views
themselves. I'll try calling it on each child and see if that makes a
difference.

On May 12, 8:54 am, Jason Tomlinson  wrote:
> You need to scale your hit areas to match the canvas scaling.  If you
> zoom in 2x on the canvas your hit area is now twice the size likewise
> if you zoomed out 2x then your hit area is half the size.
>
> On May 11, 2:52 pm, Jonathan  wrote:
>
>
>
>
>
> > I am scaling the canvas of a linear layout on draw, but this throws
> > off all the hit areas of my views inside of this layout. They respond
> > as if there was no scaling taking place. What do I have to do to get
> > themselves to re-register their hit areas?
>
> > Thanks
>
> > Jonathan
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email 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 
> 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: How to create uses-library

2010-05-12 Thread wurp
On May 11, 1:44 am, Vinay S  wrote:
> Hi Karteek,
>
> As Mr. Mark Murphy has suggested create a new project for your
> reusable set of code.
>
> Export the same as Jar and include where ever you need them.
>
> Regards,
> Vinay

I prefer instead something I saw recommended earlier on this list:
Create your library in its own Android project in Eclipse, but link
the library source directly into any other projects where you want to
use it.  On Windows, you have to use Eclipse's "link to source" option
in the Build Path.  On other platforms you can use a symlink to the
root package of your library source if you like.

With the export as jar option, you build the jar project, export it,
and then supposedly the other projects will use the new jar.
Unfortunately, what happens is that the other projects don't recognize
that the jar is updated, and won't until you: refresh the project,
remove the jar from the build path, and re-add it to the build path.

With linked source I just compile and it all works.

HTH,
Bobby

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

2010-05-12 Thread Brion Emde
Many people have asked the very same question that you're asking. Did
you try searching for SQL Server in the Search box? It works and there
are answers here about the very thing that you are asking. This very
same question was asked just last week.


On May 10, 10:07 am, Mark  wrote:
> Hello everyone.
>    I am kinda new to android development. I just got my new droid phone
> about 3 weeks ago. I hade a Windows Mobile phone before. My question is how
> can I connect to my sql server to get and add data to it using my droid.
> I've searched everything I can think of can not find any info.
>
> Please Help
>      Mark
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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


Re: [android-developers] how can i set up my Nexus one as external device to develop under Debian 5.0?

2010-05-12 Thread TreKing
On Tue, May 11, 2010 at 6:33 AM, Luis Clemente Morera <
luisclementemor...@gmail.com> wrote:

> Can you help me?


Can you explain what "it doesn't work" means?

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

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

2010-05-12 Thread Dmitri Plotnikov
Hi Nthalk,

Restricted contacts are created by the Facebook sync adapter.  These
contacts are accessible to a whitelist of applications, which is specified
and enforced by Facebook.

The restricted contact API is private and I haven't heard of any plans to
open it up, which means that nobody (with the exception of Facebook) should
be using it at this point. In any case, the way it is implemented only
allows for a single restricted account.

Thank you,
- Dmitri

On Mon, May 10, 2010 at 5:00 PM, Nthalk  wrote:

> I've been trying to wrap my head around Android's contact system
> because I like to fully understand something before I start working
> with it.
>
> How is "is_restricted" set on raw_contacts and how is
> "single_is_restricted" set and read on contacts?
>
> I've heard from other threads that it means that other apps cannot
> access it other than Facebook and Google.
>
> It would be nice if my contact sync adapter could create restricted
> contacts and limit 3rd party access.
>
> Any hints on how to do 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
>

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

[android-developers] Re: accessing sqlite db

2010-05-12 Thread kamiseq
blup

On 9 Maj, 16:22, kamiseq  wrote:
> hi,
> Im starting with android and have few questions about database access.
>
> 1. Every tutorial I ve read (ie Notepad) that uses sqlite creates and
> opens connection via SQLiteOpenHelper in onCreate callback. but I
> really have never seen that the connection is closed (androids throws
> exceptions that there is a leak as connection is never closed). So I
> assume that onSaveInstanceState is the best bet to close as onCreate
> opens the connection. but maybe it should be sooner - something like
> onResume (for open) and onPause (for close). or maybe those tutorials
> are too trivial and I should create another layer for accessing data
> in services, so that data could be shared between activities and
> wouldn't suffer from activity life cycle.
>
> the only thing is that the exception is thrown after a while - not
> immediately after destroying activity
> D/MyMainActivity :(  305): on Pause.
> D/MyMainActivity :(  305): on Stop.
> D/MyMainActivity :(  305): on Destroy.
> D/dalvikvm(  101): GC freed 408 objects / 18416 bytes in 78ms
> I/ActivityManager(   55): Starting activity: Intent
> { act=android.intent.action.MAIN
> cat=[android.intent.category.LAUNCHER] flg=0x1020 cmp=info.kami
> D/MyMainActivity :(  305): on create.
> D/MyMainActivity :(  305): on Start.
> D/MyMainActivity :(  305): on Resume.
> I/ActivityManager(   55): Displayed activity
> my.app.android/.MainActivity: 664 ms (total 664 ms)
> I/ActivityManager(   55): Starting activity: Intent
> { act=android.intent.action.MAIN cat=[android.intent.category.HOME]
> flg=0x1020 cmp=com.android.l
> D/MyMainActivity :(  305): on Pause.
> D/MyMainActivity :(  305): on Stop.
> I/ActivityManager(   55): Starting activity: Intent
> { act=android.intent.action.MAIN
> cat=[android.intent.category.LAUNCHER] flg=0x1020 cmp=info.kami
> D/MyMainActivity :(  305): on Restar.
> D/MyMainActivity :(  305): on Start.
> D/MyMainActivity :(  305): on Resume.
> D/dalvikvm(  305): GC freed 5465 objects / 347528 bytes in 95ms
> E/Database(  305): Leak found
> E/Database(  305): java.lang.IllegalStateException: mPrograms size 1
> E/Database(  305):      at
> android.database.sqlite.SQLiteDatabase.finalize(SQLiteDatabase.java:
> 1668)
> E/Database(  305):      at dalvik.system.NativeStart.run(Native
> Method)
> E/Database(  305): Caused by: java.lang.IllegalStateException: /data/
> data/my.app.android/databases/data SQLiteDatabase created and never
> closed
> E/Database(  305):      at
> android.database.sqlite.SQLiteDatabase.(SQLiteDatabase.java:
> 1694)
> E/Database(  305):      at
> android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:
> 738)
> E/Database(  305):      at
> android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase. 
> java:
> 760)
> E/Database(  305):      at
> android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase. 
> java:
> 753)
> E/Database(  305):      at
> android.app.ApplicationContext.openOrCreateDatabase(ApplicationContext.java :
> 473)
> E/Database(  305):      at
> android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:
> 193)
> E/Database(  305):      at
> android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelp 
> er.java:
> 98)
> E/Database(  305):      at
> my.app.android.dao.SQLiteTemplate.openToReadWrite(SQLiteTemplate.java:
> 60)
> E/Database(  305):      at
> my.app.android.dao.SQLiteCallDao.open(SQLiteCallDao.java:54)
> E/Database(  305):      at
> my.app.android.MainActivity.getDao(MainActivity.java:102)
> E/Database(  305):      at
> my.app.android.MainActivity.onCreate(MainActivity.java:53)
> E/Database(  305):      at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1047)
> E/Database(  305):      at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2459)
> E/Database(  305):      at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 2512)
> E/Database(  305):      at android.app.ActivityThread.access
> $2200(ActivityThread.java:119)
> E/Database(  305):      at android.app.ActivityThread
> $H.handleMessage(ActivityThread.java:1863)
> E/Database(  305):      at
> android.os.Handler.dispatchMessage(Handler.java:99)
> E/Database(  305):      at android.os.Looper.loop(Looper.java:123)
> E/Database(  305):      at
> android.app.ActivityThread.main(ActivityThread.java:4363)
> E/Database(  305):      at
> java.lang.reflect.Method.invokeNative(Native Method)
> E/Database(  305):      at java.lang.reflect.Method.invoke(Method.java:
> 521)
> E/Database(  305):      at com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:860)
> E/Database(  305):      at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
> E/Database(  305):      at dalvik.system.NativeStart.main(Native
> Method)
> E/Database(  305): Leak found
>
> 2. Is it really that important (from performance point of view) to use
> cu

[android-developers] OpenCore / Possible Issue w/ Streaming MP3 over HTTP?

2010-05-12 Thread SDS
I’m experiencing an intermittent and very frustrating issue with
MediaPlayer on Android when streaming MP3 over HTTP.  I’ve done as
much research and debugging as I possibly can to try and find a
solution, but am coming up short.  I can’t find reference to this
issue anywhere, including b.android.com.

Essentially, what’s happening is MediaPlayer will not come out of the
preparing state.  The device is receiving audio data during this time,
as indicated by network sniffs and the MediaPlayer buffering callback
being invoked repeatedly with increasing percentage values, but
eventually the buffer appears to become full and stops receiving.
Because prepare() never returns, or more accurately when
prepareAsync() is used and the onPrepared callback is never invoked,
and neither the onError() nor onInfo() callbacks are invoked, the
application can neither call MediaPlayer.start() nor make any sort of
recovery.

Other notable observations:

-   The problem is intermittent, meaning that subsequent attempts to
play the exact same MP3 stream from the exact same server may exhibit
this behavior or not
-   The problem seems to be exasperated when the device is connected via
3G versus wifi
-   The problem occurs on different MP3’s encoded by different software
-   The problem occurs when streaming from different HTTP servers
-   The problem cannot be reproduced on any of the Android SDK emulators
-   The problem can be reproduced on the HTC Incredible, Verizon
Motorola DROID, and HTC Touch
-   When MediaPlayer successfully returns from the preparing state,
there is an info message (what=1, extra=44) received.  This info
message is not received during the problematic case.

Anyone ever experienced this, or even find a solution?

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] Synchronous Display Calls

2010-05-12 Thread karthik r
Hi,

I'm new to android development. I'm developing an graphics application
and want to see the performance. I have a few questions in this regard
-

1) Is invalidate() called on a View after regular intervals by the
system itself? I mean does the display get updated on its own? Or are
we explicitly required to call invalidate()?
2) Is invalidate() an asynchronous call? If not, do we have any
synchronous display calls?

Please let me know in case anybody has any information regarding these
questions.

Thanks in advance!

Karthik R
Graduate Student
Computer Science Department
UCLA

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

2010-05-12 Thread blackbitshi...@googlemail.com
Hi!

I want to integrate a SMS application in android into the OS so that
sends them through data connections (HTTP) instead of the standard
GSM, but without remaking all the client stuff.

I need to stop from being sent the SMS messages. ¿ How do I do it ?

Thanks in advance,
Ricardo

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

2010-05-12 Thread wurp
On May 11, 11:00 am, Nathan  wrote:
> I don't know, but I find the summary of it interesting. .
>

>
> Baloney. Reengineering itself is an illegal use. There is no GOOD
> purpose it should be used for. It is a piracy tool pure and simple.
>
> Nathan

I disagree.

Reverse engineering could let me implement a fix for a bug in an
application I bought legally when the original authors can't or won't
support it in the ways I need.
Reverse engineering can let me read their code to see if a security
hole exists, like them sharing my credit card information in
unapproved ways or calling a 1-900 number in the middle of the night.
Reverse engineering can let programmers read and learn from examples
of production quality code.

There are plenty of moral (as distinct from legal) uses for reverse
engineering.

I believe reverse engineering is still legal in the US under the DMCA,
but I also believe distributing tools whose primary purpose is to
enable removal of data obfuscation is illegal.  I don't know how that
law would apply to this example in the US, and of course local law
would apply for other parts of the world.

Bobby

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

2010-05-12 Thread TAKEphONE
Hi,

Facing the same problem.

What do you see in the debug log ?

On Apr 14, 9:57 pm, RogerL  wrote:
> The standard way of getting contact photos/uris from
> ContactsContracts.Contacts.CONTENT_URI does not work for any photo
> that is not of GOOGLE descent! meaning, if the contact does not have a
> Google contact with a photo, then I cannot pull a contact photo.
>
> This is not only my problem. I see that no one has really answered
> this question.
>
> I know that the Android Incoming Call Screen displays a Facebook photo
> just fine, so I am not sure why I would need to do something
> different!
>
> Is there someone out there, from Google/Android, who can tell me what
> I need to do?
>
> Specifically I am doing this
>
> Uri uri = Contacts.CONTENT_URI;
>         Cursor c_contact = this.getContentResolver()
>             .query(uri,
>                    new String[] { BaseColumns._ID,
> Contacts.DISPLAY_NAME },
>                    Contacts.DISPLAY_NAME + "=?",
>                    new String[] { displayName }, null);
>         try {
>             if (c_contact.moveToFirst()) {
>                 do {
>                     Log.v(Globals.Tag, c_contact.getString(0) + "-"
>                         + c_contact.getString(1));
>
>                     Uri contact_uri = ContentUris
>                         .withAppendedId(Contacts.CONTENT_URI,
> c_contact
>                             .getLong(0));
>
>                     InputStream image_stream = Contacts
>                         
> .openContactPhotoInputStream(this.getContentResolver(),
>                                                      contact_uri);
>                     if (image_stream == null) {
>                         continue;
>                     }
>                     Bitmap bm =
> BitmapFactory.decodeStream(image_stream);
>                     ImageView iv = (ImageView) this
>                         .findViewById(R.id.ImageView);
>                     iv.setImageBitmap(bm);
>
>                 } while (c_contact.moveToNext());
>             }
>         } finally {
>             c_contact.close();
>         }
>
> I can see in the contacts database, Contacts table that there is a
> photo_id that matches with a record in the Data table
> but i get nothing!!
> ARGH!

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


Re: [android-developers] how get notified for Date changed in android

2010-05-12 Thread Mark Murphy
V S Balaji wrote:
> Do any have idea about how do i get notification when the day changes
> from 23:59:50 to 00 .

Use AlarmManager and schedule an alarm for midnight.

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

Android 2.x 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


Re: [android-developers] how can I get the complete android documentation?

2010-05-12 Thread Mark Murphy
Psyhclo wrote:
> Hi, I am Graduating in Computing Science, and my final project is a
> complete research in Android's Platform, with a development of an
> application. I would like to know how can I get the complete
> documentation, beacause my research is very thorough, and I relly on
> books and documentation. The current site I am reading about methods
> and activities, etc is the Dev Guide on developer.android.com. I don't
> know if is it complete there. But if you know, could you please show
> me the link, or tell me how to get it?

http://developer.android.com is the official SDK documentation. It is
not complete, but it is as complete as it gets.

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

Android 2.x 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


Re: [android-developers] Re: (Bug?) Back button triggers several times in different tasks

2010-05-12 Thread Mark Murphy
顾健 wrote:
> Android v1.6 hasn't the method of onKeyDown() and onBackPressed() .

onKeyDown() has existed for over two years, the same length of time as
the onKeyUp() that your re presently using. onKeyDown() exists in
Android 1.6.

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

Android 2.x 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


[android-developers] Re: How to activate Droid received from Google w/ my own number

2010-05-12 Thread EboMike
Haha... I went through the same process, and it took the Verizon guys
over an hour to figure it out!

They need to give you a phone number for the Verizon employee number
services (you need a number based on which part of the US you're in).
Basically, the phone number you have is the kind that Verizon
employees get, and only certain tech support guys can touch them.

Once you call that number and explain your situation, it will take
them less than a minute to unhook your phone from that number. Then
you go back to the normal retail store and port your number.

(Of course, the retail guys could call that number for you - I had to
call myself since I went to the retail store when the employee number
services department was closed already, they have pretty lazy business
hours.)

-Mike


On May 12, 2:23 am, Stephen Skalamera  wrote:
> My friend recently received a Motorola Droid from Google. He gave it
> to me as a gift and when I tried activating it and putting my number
> on it, Verizon said that it already has an active business account. I
> assume this is google's account. I heard that google gives you 30 days
> free service, but my question is how/can I bypass the 30 days and just
> put it on my account, or do I have to wait until the 30 days are up to
> put my own number on it?
>
> Any help would be appreciated
>
> Thanks in advance,
> Steve
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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] how can I get the complete android documentation?

2010-05-12 Thread Psyhclo
Hi, I am Graduating in Computing Science, and my final project is a
complete research in Android's Platform, with a development of an
application. I would like to know how can I get the complete
documentation, beacause my research is very thorough, and I relly on
books and documentation. The current site I am reading about methods
and activities, etc is the Dev Guide on developer.android.com. I don't
know if is it complete there. But if you know, could you please show
me the link, or tell me how to get it?

Thank you very much.

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


[android-developers] how get notified for Date changed in android

2010-05-12 Thread V S Balaji
Do any have idea about how do i get notification when the day changes
from 23:59:50 to 00 .

There in intent broad casted as DATE_CHANGED by android  but this
intent is to get notified only if the date is changed by user it
seems.

I have basically have my  function to run on the event.

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


  1   2   3   >