[android-developers] Re: etting SIGNAL 11 error

2011-04-25 Thread ko5tik
SIGNAL 11 means that something went wrong in native code,  and proces
was killed
because of segmentation violation - this comes from outside of davlik
- that's why you do not have stack
trace.
The question is:  what did you try to do  before this crash?

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


[android-developers] List onItemSelectedListener not working

2011-04-25 Thread Varun Tewari
Hey Guys,

While working with fragments i am trying to have one list in left panel and
detail fragment in right side of it.
I have my first item item already selected as soon as i launch app. And
"SHOULD HOLD ITS SELECTED STATE"
I tried using onItemSelectedListener with setSelection(0), but it didn't get
called. Any one knows the reason?

Reg,
Varun

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

[android-developers] Re: Honeycomb / 3.0 / OpenGL ES / Broken / Again!?!

2011-04-25 Thread MichaelEGR
http://mobile-broadband.t-mobile.com/android-tablet/g-slate

I believe it was previously called the LG Optimus Pad before release?

It could be an issue from LG perhaps with a pseudo-incomplete GL
driver and not in the court of the Android team / Google. One would
think the default Honeycomb implementation I assume from Google was
heavily tested against the Tegra 2 SoC and may exhibit the problem say
on the Xoom or other Honeycomb tablet. I have yet to test anything
beside the G-Slate.

My assumption is that without being able to test directly (IE print
out all the config profiles the GL driver returns to verify) is that
the likely optimum depth size could be 32 for the Tegra 2 devices and
that the max my config chooser currently searches for is 24 (2nd gen
devices) and this is not present on Tegra 2 devices (3rd gen).
Therefore depth 24 does not match anything and the further default
fall back searches for depth size 16 which is located as a "valid" GL
config found by TyphonRT.

So 5/6/5/16 works OK with the G2x, but fails with the G-Slate. No
EGL / GL errors are raised and 5/6/5/16 comes back as a valid config
arrangement on the G-Slate, but it's broken such that no rendering
occurs with this non-optimum config setting.

The expected behavior I believe is that some sort of rendering should
occur if a valid GL config is matched and a context obtained even if
it is not the optimum config. Of note though there are no perceived
performance problems with the G2x at this config setting.

It seems obvious that 5/6/5/16 is not the optimum configuration for a
Tegra 2 device (was the optimum setting for gen 1 devices). Once I
modify the default fall back settings and include 5/6/5/32 as the top
config to search after verifying that indeed is a valid target in
general I'm guessing things will match up with the optimum supported
config on Tegra 2 devices and things will be fine. It just happens
that things are not borked on the G2x at 5/6/5/16, but the G-Slate
fails with this setting further misleading me.

As things go I've yet to add external settings (extra XML file /
external config by exception, etc.) to configure GL config parameters,
so until I finish rebuilding my platform in ~1-2 weeks I won't get to
update the defaults or finish the external XML config mechanism. In
the future with my efforts an external XML file that can filter by
device / family as necessary can provide the GL config decision tree
and not rely on the hard coded default decision tree, so testing will
be easy in the future without recompiling.

Regards,
--Mike


On Apr 25, 10:54 pm, Romain Guy  wrote:
> What is the "G-Slate" you keep referring to??

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Honeycomb / 3.0 / OpenGL ES / Broken / Again!?!

2011-04-25 Thread Pepijn Van Eeckhoudt

On 26/04/2011 07:54, Romain Guy wrote:

What is the "G-Slate" you keep referring to??
LG's honeycomb tablet 
 I guess.


Pepijn

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

2011-04-25 Thread fr4gus
If you are using Eclipse, when you "Export" the project, you can
create your own certificated during the process. Keep in mind, that
once create the certificate, you have to keep it in a very secure
place because subsequent updates of your application must be signed
with the same certificate.

-f4

On Apr 25, 10:22 pm, Paul Spradley  wrote:
> I tried to upload my apk file on android market and got the error message
> that says " Market does not accept apks signed with the debug certificate.
>  Create a new certificate that is valid for at least 50 years.  Market
> reqires that the certificate used to sign the apk be valid until at least
> October 22, 2033.  Create a new certificate."
> How do I do this?  I used eclipse helios to write my code and it tested fine
> but I can't upload to the market.

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


Re: [android-developers] Re: How to mark touch points in an image

2011-04-25 Thread TreKing
On Mon, Apr 25, 2011 at 11:05 AM, neohacker  wrote:

> at the touch points i should get a cross mark. This cross mark will be
> fixed on tapping tap button. This can be repeated for as many times as
> the user wants.
>

http://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/ItemizedOverlay.html#onTap(com.google.android.maps.GeoPoint,
com.google.android.maps.MapView)

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: apk certificate

2011-04-25 Thread Chambras
you can read this article to find out how to do this properly
http://developer.android.com/guide/publishing/publishing.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

Re: [android-developers] Re: How do you counter repeated bogus reviews from competitors?

2011-04-25 Thread Brill Pappin
TreKing,

You might try osTicket for your support system instead of the blog... it 
doesn't have the problems your describing using the blog and its fairly 
light to run (runs fine on an AWS micro instance).

We've been using it fine for several months and even added our own hack that 
allows us to pass a non-english support request through Google Translate 
with the touch of a button (very handy).

We are currently looking at using zendesk, but its a bit pricy if you have 
more than one support agent. The advantage is that they have an Android lib 
that allows users to contact support directly from your app, which we think 
is a win/win.

Its Zendesk or we will create a UI for osTicket

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

2011-04-25 Thread Brill Pappin
Actually Pent, touching my own review and actually addressing a negative 
reviewer by changing the text is the *only* way of combating these people.
I do it routinely and even for legitimate users who need help (in which case 
I point them at support). This has the advantage that the first review a new 
customer has is a 5 star rating.

The other advantage to the "touch"  feature is that quite often a user will 
get to support and I'll help them out or fix a bug, the user then comes back 
and adds more stars and edits their comment to something more positive.

Anyway, i really hope they don't suddenly remove that "touch" feature 
because its actually one way to get the nefarious competitor reviews buried 
and/or addressed.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Honeycomb / 3.0 / OpenGL ES / Broken / Again!?!

2011-04-25 Thread Romain Guy
What is the "G-Slate" you keep referring to??

On Mon, Apr 25, 2011 at 8:09 PM, MichaelEGR  wrote:

> Romain thanks for asking all the right questions.
>
> It appears that the GL config matching system I have needs a little
> modification though it should still not fail as I'll describe below.
>
> Of interest all 2nd gen devices (Droid, N1, Nexus S, etc.)
> appropriately find the "high quality" parameters as specified in the
> default fall back scheme (a config by exception system):
> EGL_RED_SIZE: 5
> EGL_GREEN_SIZE: 6
> EGL_BLUE_SIZE: 5
> EGL_ALPHA_SIZE: 0
> EGL_DEPTH_SIZE: 24
> EGL_STENCIL_SIZE: 8
>
> On the G2x / Froyo for whatever reason the "high quality" default
> settings are not matched and the "mid quality" default config is
> chosen, but everything runs perfectly fine and fast:
> EGL_RED_SIZE: 5
> EGL_GREEN_SIZE: 6
> EGL_BLUE_SIZE: 5
> EGL_ALPHA_SIZE: 0
> EGL_DEPTH_SIZE: 16
> EGL_STENCIL_SIZE: 8
>
> With the G-Slate the same "mid quality" config is chosen and a context
> and everything succeeds in being created with no EGL/GL errors except
> no rendering / blank screen. Even the 1st thing done in the demo is to
> set ortho mode and simply draw a texture to the screen (not rocket
> science here), so nothing complex is done regarding cameras or other
> typical GL problems and there are no hard coded parameters (screen
> size, etc.) that should break any fundamental rendering. There are
> also no other errors raised while the normal execution path /
> rendering loop engages.
>
> So for the G-Slate even though those config values result in a valid
> context currently it seems the GL drivers or something of that nature
> are not liking it despite this very same config working fine on the
> G2x / Tegra 2.
>
> As mentioned I've been doing a very large refactoring of the TyphonRT
> codebase making it a fully component oriented architecture and have
> been working on it since July 22nd (last day when I compiled all the
> demos). Granted I had a 5 month full time contract in between then and
> now working part time (Sept-Feb). I'm just about to finish the full
> component rearchitecture / refactor and get 3D support back up and
> running here in 1-2 weeks when I can address any changes to the GL
> config / chooser support.  So the demo apps I've been using were last
> compiled back in July which is no problem really. I thought I had a
> robust enough of a default fall back system, but apparently not.
>
> I still think it may be a bug / issue with the G-Slate in regard to
> being able to setup a context with likely non-optimal settings causing
> a blank screen / no rendering. Something should still render
> regardless.
>
> A similar issue occurred with Android 2.0 and the Droid when the "mid
> quality"  settings (essentially depth size of 16 instead of 24) caused
> a hang in the GL driver. 2.0.1 fixed that and when depth size 16 was
> chosen things worked, but less efficiently..
>
> In my current case with the G-Slate those settings don't raise any
> errors or signs of failure except for no rendering which was the same
> symptoms surrounding the Android 2.0 failures and that got my mind
> running.
>
> Once I get the platform fully reworked here I'll examine things deeper
> and figure out the right default GL config fall back mechanism to
> support the G-Slate. I've been fairly stressed as of late with the
> remaining work I've been doing as it's complex and I'm overshooting
> desired time estimates. The last thing I need are fundamental driver
> issues. I admit I had 6 devices working with only the G-Slate failing
> and I tossed it in a proverbial tub of water and it floated and thus
> this "it's a witch" post occurred. ;P
>
> I still think there is a general error regarding GL support with the G-
> Slate especially since the G2x / Tegra 2 works fine with the same
> parameters, but this is a solvable problem and not the end of the
> world.  I think each dev working with low level stuff should get at
> least one pass for an "it's a witch" post.. ;P
>
> Regards,
> --Mike
>
> On Apr 23, 10:03 pm, Romain Guy  wrote:
> > What exactly doesn't work in your application? We have tested many OpenGL
> > applications and games from Market, found and fixed bugs. We also
> sometimes
> > found issues that were in the apps themselves but nothing as dire as what
> > you are describing (although I couldn't really parse what your problem is
> > exactly.)
> >
> > What fails? Do you see a crash? Are things not behaving as expecting? Do
> you
> > get EGL/GL errors? How exactly are you initializing your context? There
> are
> > no special "workarounds" or behaviors in GLSurfaceView btw.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google

Re: [android-developers] Re: Market sales suddenly cut in half

2011-04-25 Thread Brill Pappin
I'm not surprised your short today...
My orders stopped processing at 9:25 PM yesterday (Apr 24th).

I've got a bunch of new orders that have not been processed (which is 
unusual).
My guess is that there are a team of engineers and PR people working over 
night as we speak :)

Likely some of them are kicking themselves.

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

2011-04-25 Thread TreKing
On Tue, Apr 26, 2011 at 12:18 AM, Mark Carter wrote:

> Idle thought:
>
> Instead of comments simply being shown in reverse chronological order, I'd
> like to see them ranked according to factors like:
>
> * Which version commenter had installed when posting comment
> * Spam/abuse rating for commenter (would like to see this have a big
> influence!)
> * How similar the commenter's device & firmware is to yours
> * How similar the commenter's environment (e.g. locale, country) is to
> yours
> * When comment was posted
>

This makes sense and would improve the Android Market. Thus you can bet it
will probably never happen.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: How do you counter repeated bogus reviews from competitors?

2011-04-25 Thread TreKing
On Mon, Apr 25, 2011 at 11:00 PM, MB  wrote:

> Given how sensitive an app's quality perception is based on top reviews, I
> really wish Android market provided their vendors/ developers a way to
> respond to comments esp. to  users who frequently update/touch their
> comments.
>

If you wait around for the Android Market monkeys to do anything, you're
going to die waiting. Even if they implemented a way to respond to users, it
would be half-assed and mostly non-functional, if the statistics and error
reporting "features" are any indication of what these clowns are capable of.

I've taken matters into my own hands - I respond to comments on a blog that
my app is rigged to check for new posts. When I get a stupid comment /
rating, I post a response. When a new response is posted, users get an alert
(if they leave the option enabled). With enough luck, the user it's actually
targeted at reads the response. I've addressed many complaints this way and
makes for a fun interaction with some users. In addition, other users see
that I response and hopefully learn to ask about issues. But of course, when
I respond to all issues, I then get complaints about the alerts of me
responding to issues - even when they can be disabled. You can't win against
stupid.

In your case, I would have alerted a fairly large number of my users to
this douche competitor and very surely would have not only had a large
number of positive reviews burying their comments, but probably would have
had enough people marking it as spam to have it removed. And if I knew the
offending competitor, I could name them and let the users bombard them with
negative reviews (of their own accord, of course ;-) )

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] android set top boxes

2011-04-25 Thread kaushik p
Hi ,

Is there there anyone here who  is working on android set top boxes ? I need
some information on that .May i know the availability of the hardware ??



















-- 
Thanks&Regards
Kaushik Pendurthi

http://kaushikpendurthi.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] Re: Licensing Service

2011-04-25 Thread Andrei
Thank you

On 25 апр, 23:14, TreKing  wrote:
> On Mon, Apr 25, 2011 at 2:12 PM, Andrei  wrote:
> > I have paid the application, so I can add the service licensing.
> > Right?
>
> Right.
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


Re: [android-developers] Re: How do you counter repeated bogus reviews from competitors?

2011-04-25 Thread Mark Carter
Idle thought:

Instead of comments simply being shown in reverse chronological order, I'd
like to see them ranked according to factors like:

* Which version commenter had installed when posting comment
* Spam/abuse rating for commenter (would like to see this have a big
influence!)
* How similar the commenter's device & firmware is to yours
* How similar the commenter's environment (e.g. locale, country) is to yours
* When comment was posted

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

2011-04-25 Thread Jerry Fan
I am also experiencing sales drop these two days especially today,

On Tue, Apr 26, 2011 at 4:51 AM, Brill Pappin  wrote:

> FYI - CANCELLED would include uninstalls AND failed orders.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: what's the unit of "setStrokeWidth()" (dp or pixel)

2011-04-25 Thread Zsolt Vasvari
AFAIK, every measurement in Android is in pixels.  When you define
something in dp or whatever else in dimens.xml or in your layout, they
get converted to pixels.  The easit way to do it is to define your
measurements in dimens.xml and that way you can use whatever UOM you
want and the system will take care of the conversion for you.

On Apr 26, 11:50 am, xeagle  wrote:
> Hi,
>
> I need draw a "dotted line" in my app. I use codes below:
>         Paint paint = new Paint();
>         paint.setColor(0xff00b900);
>         paint.setStyle(Paint.Style.STROKE);
>         paint.setStrokeWidth(1);
>         paint.setPathEffect(new DashPathEffect(new float[] {5, 5, 5,
> 5}, 1));
>         canvas.drawLine(0, 50, 160, 50, paint);
>
> Now I'd like know the unit of parameter of "setStrokeWidth". Is it dp
> or pixel? If the unit is "dp", will the line seems same width in
> devices with different DPI?
> I test it on emulator and my phone, it seems that "x,y" coordinate of
> "drawLine" is "dp".
>
> 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 do you counter repeated bogus reviews from competitors?

2011-04-25 Thread Zsolt Vasvari
> Given how sensitive an app's quality perception is based on top
> reviews, I really wish Android market provided their vendors/
> developers a way to respond to comments esp. to  users who frequently
> update/touch their comments.

It's been the top requested feature of the Android Market since
probably day 1.

Obviously, if it hasn't happened already, it won't -- at least not
until there is a "regime change" in the Market 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] Audio recorder

2011-04-25 Thread cibin
Can we recommend any  lower level code in Audio recorder, maybe
accessing native functions?

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


[android-developers] Audio recorder

2011-04-25 Thread cibin
If the AudioRecord class contains the optimum methods, can it dump the
buffer often enough to meet the desired latency of 16ms?  Can we be
completely confidant that each sample will be processed?  (we cannot
miss any samples, unless we know that they were missed)

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


[android-developers] Audio recorder

2011-04-25 Thread cibin
Does the Android platform provide an API to process audio inputs in
real time, other than the methods provided by the AudioRecord class?

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

2011-04-25 Thread chamith weerasinghe
Hi,

I want that service start at phone boot up.and activity when the user click
the icon.
can i do this when the both in same project.
if so please tell me how.

thanks a lot for ur answers Mark.

Thanks.
Chamith.

On Mon, Apr 25, 2011 at 11:04 PM, Mark Murphy wrote:

> On Mon, Apr 25, 2011 at 1:13 PM, chamith weerasinghe 
> wrote:
> > Please tell me how should i do this.
>
> Step #1: Move the service and its related classes into the project
> that has the activity
>
> Step #2: Move the  element (and any other required elements)
> into the manifest of the project that has the activity
>
> Step #3: Delete the service-only project
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

2011-04-25 Thread Nathan Roy
looks like I'm gonna have 0 sales for today, not good, not good.

On Apr 25, 6:35 pm, Gregg Reno  wrote:
> Still no change.  None of the purchases have cleared for me since last
> night.
> - Gregg
>
> On Apr 25, 9:21 pm, Zsolt Vasvari  wrote:
>
>
>
>
>
>
>
> > Not only have they not cleared, the ones that had cleared earlier have
> > been uncleared...
>
> > On Apr 26, 6:09 am, String  wrote:
>
> > > Hmmm, for me it's every transaction since about 1am GMT today (April 25). 
> > > Let's hope somebody at Google notices and plugs that server back in.
>
> > > String

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


[android-developers] Gmaps keytool not found

2011-04-25 Thread kaushik p
Hi all ,

I am currently doing an app , in which to show the current location of the
user of gmap, but the problem is i am not able to get the Api key

procedure i used to get this key is exactly what is given in
http://code.google.com/android/add-ons/google-apis/mapkey.html

I always get error

 Keytool not found ,declared .

Please help me with this as with out this feature my complete project is not
useful .


-- 
Thanks&Regards
Kaushik Pendurthi

http://kaushikpendurthi.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] Re: Sending APDU Command from Nexus S

2011-04-25 Thread perumal316
Hi Michael,

I changed MiFareClassic object to IsoDep. But I am getting the
following error:

"android.nfc.TagLostException: Tag was lost"

Must I add in additional code to sustain the connection? (Am I
correct?)

Thanks In Advance,
Perumal

On Apr 25, 5:00 pm, Michael Roland  wrote:
> Hallo Wilson,
>
> > I am facing an issue with a Mifare Classic card (this is a dual
> > interface smart card; contact and contactless).
>
> Alright, then it is most likely not a MIFARE Classic card but a
> contactless (dual interface) smart card (with ISO 14443-4 interface)
> that additionally provides a MIFARE Classic emulation.
>
> > When I use transceive() to send apdu corresponding to "select AID", it 
> > always
> > return null.
>
> Right, as you write here:> 2) Create MifareClassic object using
>
> you create a MifareClassic but what you really want to do is open an
> APDU connection to the card. If your card is a real dual-interface
> smart card(*) it should also expose an IsoDep interface (ISO 14443-4 /
> ISO 7816-4). This is the interface you would want to use for APDU
> communication.
>
> br,
> Michael
>
> (*) There could also exist some hybrid cards that have a MIFARE
> Classic _contactless_ card and an APDU-based _contact_ smart card
> joined into the same plastic card. In that case the contact and
> contactless parts would be independent chips and no communication
> between them would be possible.

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


[android-developers] Re: How do you counter repeated bogus reviews from competitors?

2011-04-25 Thread MB
Hi Brill,

Thanks a lot for the response and the suggestions. I updated the app
description with a one liner indicating what our specific competitor
has been upto.

Given how sensitive an app's quality perception is based on top
reviews, I really wish Android market provided their vendors/
developers a way to respond to comments esp. to  users who frequently
update/touch their comments.

Thanks,

--MB.

On Apr 24, 9:55 pm, Brill Pappin  wrote:
> By the way, I just read your "open letter".
>
> Maybe a more impartial database needs to be set up listing these
> jokers.
> Some way we can all report this kind of thing with rules for how
> companies get on it and how they get off it.
>
> - Brill Pappin
>
> On Apr 24, 6:55 pm, MB  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I am the developer of Android app Gps Ski Maps. We are really
> > frustrated with competitor writing bogus review about our app(by
> > buying app multiple times under different accounts and repeatedly
> > touching the reviews).
>
> >  I am wondering how do you deal with this? What steps do you take to
> > prevent such abuse of Android Market?
> > We expected some bogus reviews, but not at the scale we saw in Android
> > Market.
> > Our app is available on both Android and Blackberry. The spammy review
> > problems has been really a problem only on Android. Blackberry
> > reviews( both good and bad:-)) have been mostly genuine as far as I
> > can tell.
> > The details of our particular case are written here, but I am more
> > interested in figuring out the counter steps.
>
> >  http://goo.gl/pilTF
>
> > Thanks,
>
> > --MB
> > (Developer. Gps Ski Maps)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Possible to use OpenGL in both C++ and Java?

2011-04-25 Thread Nightwolf
Calling native functions for rendering from
GLSurfaceView.onDrawFrame() works.
Texture loading goes to onSurfaceCreated().

On Apr 23, 4:54 pm, Ash McConnell  wrote:
> Hi Folks,
>
> I am new to Android coding.  I am trying to convert an iPhone app and
> would like to keep the core c++ code in tact if possible (so that bugs
> can be fixed in a cross platform way).
>
> I am currently using an extended GLSurfaceView to do rendering, I
> believe this uses a separate thread and therefore doing OpenGL stuff
> in C++ doesn't work.  I tried to load a texture in C++ and pass the id
> back to java, but it didn't work - the texture was blank.
>
> Should I be using an alternative to GLSurfaceView?  Is there a
> "normal" way of achieving what I am trying?
>
> Thanks for your help
> All the best,
> Ash

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


[android-developers] what's the unit of "setStrokeWidth()" (dp or pixel)

2011-04-25 Thread xeagle
Hi,

I need draw a "dotted line" in my app. I use codes below:
Paint paint = new Paint();
paint.setColor(0xff00b900);
paint.setStyle(Paint.Style.STROKE);
paint.setStrokeWidth(1);
paint.setPathEffect(new DashPathEffect(new float[] {5, 5, 5,
5}, 1));
canvas.drawLine(0, 50, 160, 50, paint);

Now I'd like know the unit of parameter of "setStrokeWidth". Is it dp
or pixel? If the unit is "dp", will the line seems same width in
devices with different DPI?
I test it on emulator and my phone, it seems that "x,y" coordinate of
"drawLine" is "dp".

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: Fragmentation-resistant product design

2011-04-25 Thread Zsolt Vasvari
The Atrix definetely fits into the XHDPI bucket...

On Apr 26, 11:15 am, Brill Pappin  wrote:
> I hear that they are going to crack down on that a little... and frankly i
> can't wait to be able to depend on the values I'm given :)
>
> I haven't actually done those checks myself, I'm relaying on what my partner
> was saying.
> As I understand, it looks like they made the resolution of the Atrix high
> enough that it no longer fit into the buckets available and reports values
> that make things match up... however that means that when your doing
> something like determining font sizes etc, device independent values are
> actually wrong.

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


[android-developers] Re: Fragmentation-resistant product design

2011-04-25 Thread Brill Pappin
I hear that they are going to crack down on that a little... and frankly i 
can't wait to be able to depend on the values I'm given :)

I haven't actually done those checks myself, I'm relaying on what my partner 
was saying.
As I understand, it looks like they made the resolution of the Atrix high 
enough that it no longer fit into the buckets available and reports values 
that make things match up... however that means that when your doing 
something like determining font sizes etc, device independent values are 
actually wrong.

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

[android-developers] Code an Education Revolution (@Qykno) in 54 hours! Location: San Francisco Bay Area

2011-04-25 Thread Kalimah Priforce
 

Code an Education Revolution (@Qykno) in 54 hours!

 

Location: San Francisco Bay Area (San Francisco, Oakland, Berkeley)

 

Event: Startup Weekend Education (June 3rd - 5th) 

 

On June 3rd - 5th, an event called Startup Weekend Education will gather 
hackers, hustlers, and designers together and for 54 hours, teams will be 
formed around groundbreaking ideas, and each team will be engineering their 
product on-premise for the length of the entire weekend.  There will be 
guests speakers, press, and a panel of judges who will be judging each 
product and its pitch at the end of this build-a-thon.

 

The Mission: Careerspotting 4 Kids

 

Should you choose to accept it, is to build a minimum viable product of 
Qykno, a Careerspotting for Kids platform that exposes youth ages 12-21 to 
career possibilities using video storytelling and social gaming.  There are 
two pathways to take for a MVP depending on the skillset of the team:

 

(1) Web app of Video Storytelling - A catalog of video content that features 
the stories of professionals sharing the how-tos of their journey.

 

or

 

(2) Mobile app of "roadmapping" that will be a location-based social game 
where kids receive awards and points for checking into destinations related 
to their career path.

 

Team Qykno:

 

Will consist of five core members - three uniquely talented coders and:

 

Kalimah Priforce (me): 12+ years in education, youth dev. & biz strategy | 
Co-Founder @ Qykno

Taisha Rucker: Attorney | Program Director at Pacific Educational Group

 

Taisha and I will handle content creation, be responsible for marketing the 
product, and recruiting the UI/UX design and video production talent to the 
team from those in attendance.   I'll pitch the concept to the crowd and 
draw excitement for the project.

 

Must haves:

   - Able to work with a diverse team with other programmers/developers in 
   an intensive fast-pace environment.
   - You care more about getting it done than it having to be perfect.
   - Experience with at least one modern programming language such as Ruby 
   on Rails, PHP, AJAX, ActionScript, Python, C++, C#, Objective C, or Java.
   - A love of games and gameplay.

 

Nice-to-haves:

   - Social game development experience.
   - Experience with Facebook APIs.
   - You're available to join our team full-time; must have a flexible 
   schedule.

 

The Perks:

   - We pay for your entry ticket ($75) value, plus food and transportation 
   to and from your residence.
   - If we win, $5,000 divided amongst the team, plus the recognition of 
   winning a high profile tech event.
   - Guaranteed invitation to join the co-founder/management team and join 
   us for startup seed accelerator programs in the summer.

 

Contact us: team[at]qykno[dot]com, 347-985-0365, skype/gchat: kapriforce

 

We'll be making our final decisions by mid-may.

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

[android-developers] Re: Honeycomb / 3.0 / OpenGL ES / Broken / Again!?!

2011-04-25 Thread MichaelEGR
Romain thanks for asking all the right questions.

It appears that the GL config matching system I have needs a little
modification though it should still not fail as I'll describe below.

Of interest all 2nd gen devices (Droid, N1, Nexus S, etc.)
appropriately find the "high quality" parameters as specified in the
default fall back scheme (a config by exception system):
EGL_RED_SIZE: 5
EGL_GREEN_SIZE: 6
EGL_BLUE_SIZE: 5
EGL_ALPHA_SIZE: 0
EGL_DEPTH_SIZE: 24
EGL_STENCIL_SIZE: 8

On the G2x / Froyo for whatever reason the "high quality" default
settings are not matched and the "mid quality" default config is
chosen, but everything runs perfectly fine and fast:
EGL_RED_SIZE: 5
EGL_GREEN_SIZE: 6
EGL_BLUE_SIZE: 5
EGL_ALPHA_SIZE: 0
EGL_DEPTH_SIZE: 16
EGL_STENCIL_SIZE: 8

With the G-Slate the same "mid quality" config is chosen and a context
and everything succeeds in being created with no EGL/GL errors except
no rendering / blank screen. Even the 1st thing done in the demo is to
set ortho mode and simply draw a texture to the screen (not rocket
science here), so nothing complex is done regarding cameras or other
typical GL problems and there are no hard coded parameters (screen
size, etc.) that should break any fundamental rendering. There are
also no other errors raised while the normal execution path /
rendering loop engages.

So for the G-Slate even though those config values result in a valid
context currently it seems the GL drivers or something of that nature
are not liking it despite this very same config working fine on the
G2x / Tegra 2.

As mentioned I've been doing a very large refactoring of the TyphonRT
codebase making it a fully component oriented architecture and have
been working on it since July 22nd (last day when I compiled all the
demos). Granted I had a 5 month full time contract in between then and
now working part time (Sept-Feb). I'm just about to finish the full
component rearchitecture / refactor and get 3D support back up and
running here in 1-2 weeks when I can address any changes to the GL
config / chooser support.  So the demo apps I've been using were last
compiled back in July which is no problem really. I thought I had a
robust enough of a default fall back system, but apparently not.

I still think it may be a bug / issue with the G-Slate in regard to
being able to setup a context with likely non-optimal settings causing
a blank screen / no rendering. Something should still render
regardless.

A similar issue occurred with Android 2.0 and the Droid when the "mid
quality"  settings (essentially depth size of 16 instead of 24) caused
a hang in the GL driver. 2.0.1 fixed that and when depth size 16 was
chosen things worked, but less efficiently..

In my current case with the G-Slate those settings don't raise any
errors or signs of failure except for no rendering which was the same
symptoms surrounding the Android 2.0 failures and that got my mind
running.

Once I get the platform fully reworked here I'll examine things deeper
and figure out the right default GL config fall back mechanism to
support the G-Slate. I've been fairly stressed as of late with the
remaining work I've been doing as it's complex and I'm overshooting
desired time estimates. The last thing I need are fundamental driver
issues. I admit I had 6 devices working with only the G-Slate failing
and I tossed it in a proverbial tub of water and it floated and thus
this "it's a witch" post occurred. ;P

I still think there is a general error regarding GL support with the G-
Slate especially since the G2x / Tegra 2 works fine with the same
parameters, but this is a solvable problem and not the end of the
world.  I think each dev working with low level stuff should get at
least one pass for an "it's a witch" post.. ;P

Regards,
--Mike

On Apr 23, 10:03 pm, Romain Guy  wrote:
> What exactly doesn't work in your application? We have tested many OpenGL
> applications and games from Market, found and fixed bugs. We also sometimes
> found issues that were in the apps themselves but nothing as dire as what
> you are describing (although I couldn't really parse what your problem is
> exactly.)
>
> What fails? Do you see a crash? Are things not behaving as expecting? Do you
> get EGL/GL errors? How exactly are you initializing your context? There are
> no special "workarounds" or behaviors in GLSurfaceView btw.

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

2011-04-25 Thread Diego Torres Milano
You can use something like this:

sendKeys(KeyEvent.KEYCODE_ALT_LEFT, KeyEvent.KEYCODE_9,
KeyEvent.KEYCODE_ALT_LEFT, KeyEvent.KEYCODE_0);
assertEquals("()", mTV.getText().toString());

On Apr 25, 2:38 am, Rui  wrote:
> Hello,
>
> I am trying to test my application with
> ActivityInstrumentationTestCase2. My application is for a specific
> hardware, which has a hardware keyboard including ctrl and alt key,
> and has functions which are fired by combination keys, e.g., Ctrl +
> BackSpace, Ctrl + C, Ctrl + Right, and etc.
>
> Does anybody know how to send these combination keys to Android
> applications?
>
> Thank you for advance.
> -Rui

--
Have you read my blog ?
http://dtmilano.blogspot.com
android junit tests ui linux cult thin clients

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


[android-developers] Re: Problem setting file permissions when filename has a space

2011-04-25 Thread Paul
Thanks - my implementation looks correct, so no idea why it's not
being called.  Tried tracing the call to
getContentResolver().openFileDescriptor() and it seemed to be invoking
openAssetFileDescriptor(), so intercepted openAssetFile() in my
content provider, but it too isn't being called.

On Apr 25, 10:36 pm, Dianne Hackborn  wrote:
> I don't know if it will help, but here is the source to the media provider
> which implements openFile:
>
> http://android.git.kernel.org/?p=platform/packages/providers/MediaPro...
>
> This allows for example sharing of pictures in Gallery to work.
>
>
>
> On Tue, Apr 26, 2011 at 2:04 AM, Paul  wrote:
> > On Apr 25, 8:55 pm, Dianne Hackborn  wrote:
> > > On Tue, Apr 26, 2011 at 12:46 AM, Paul  wrote:
> > > > > > share.setType(getString(R.string.note_default_mime_png));
> > > > > There is no reason for this string to come from a resource; it is not
> > > > > something that gets localized, it is just a constant.
> > > > I am storing it in the XML as a way of storing the value... any other
> > > > standard conventions that are recommended?  Store this as a static
> > > > constant in a static 'settings' class maybe?
>
> > > Just a static constant is fine.  For example:
> >http://developer.android.com/reference/android/provider/MediaStore.Au...
>
> > Ok, thanks
>
> > > > > ACTION_SEND is not specified to return anything, so if you are
> > getting
> > > > any
> > > > > result at all you can't count on what you get back being useful.
> > > > I'm not counting on it returning anything useful, just having the
> > > > functionality indicate that it has finished is enough, I am then
> > > > setting a boolean field to true when it does, so that I know I that
> > > > the app has created a temporary copy of the file in the app's cache
> > > > directory.  On exiting the program, if the field is true, I then empty
> > > > the cache directory.  Obviously don't need to do this if I am no
> > > > longer copying the file if/when I get the method you suggest using
> > > > onFile() to work.
>
> > > This may not be a safe assumption.  For example the send will often take
> > a
> > > while, so an implementation may very likely exit once the send has been
> > > confirmed and execute the operation in a background service.
>
> > Well if I can get the openFile override working, I won't need to use
> > the cache directory and won't need this at all, so this shouldn't be
> > an issue moving forward.
>
> > > > On that front, I have overriden the onFile() method in my content
> > > > provider, but it is not being triggered by the above code, any
> > > > suggestions?
> > > >  @Override
> > > > public ParcelFileDescriptor openFile(Uri uri, String mode) {
> > > >  Log.d(LOG_TAG, "openFile() called");
> > > >  return null;
> > > > }
>
> > > Have you published the content provider in your manifest and ensured you
> > > have set the authority correctly there in and the Intent's URI?  Have you
> > > tried opening it yourself to see if it works?  Is anything interested
> > > printed in the log?
>
> > The content provider is published in my manifest:
>
> >  >            android:name=".provider.MyProvider"
> >            android:authorities="package.name.here"
> >            android:exported="true" />
>
> > I am using it for all DB activity in my app, so it's working... and
> > have tried the following, and no errors are generated:
>
> > getContentResolver().openFileDescriptor(Uri.fromFile(shareFile), "r");
>
> > But... this does not trigger a call to openFile().
>
> > As I've switched over to passing the SEND the path directly to my file
> > in the app's file directory, versus the path to the one I was copying
> > to my cache directoy, the Uri for this is now:
>
> > /data/data/package.name/files/1.png
>
> > I get a permissions error now (as expected), but again, no call to
> > openFile().
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails.  All such
> > > questions should be posted on public forums, where I and others can see
> > and
> > > answer them.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

-- 
You received this message because you are subscribed to the Google
Gro

Re: [android-developers] Help in simple read/write applications.

2011-04-25 Thread TreKing
On Mon, Apr 25, 2011 at 8:13 PM, HarryP  wrote:

> But while running app B on the emulator, I get an error box which says that
> the application stopped unexpectedly.
>

Debug your app. Or at the very least post the actual error you're getting in
your LogCat.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: Problem setting file permissions when filename has a space

2011-04-25 Thread Dianne Hackborn
I don't know if it will help, but here is the source to the media provider
which implements openFile:

http://android.git.kernel.org/?p=platform/packages/providers/MediaProvider.git;a=blob;f=src/com/android/providers/media/MediaProvider.java;h=7a72e239b0291e6b2ef986c4f675d58dfcda0732;hb=HEAD

This allows for example sharing of pictures in Gallery to work.

On Tue, Apr 26, 2011 at 2:04 AM, Paul  wrote:

> On Apr 25, 8:55 pm, Dianne Hackborn  wrote:
> > On Tue, Apr 26, 2011 at 12:46 AM, Paul  wrote:
> > > > > share.setType(getString(R.string.note_default_mime_png));
> > > > There is no reason for this string to come from a resource; it is not
> > > > something that gets localized, it is just a constant.
> > > I am storing it in the XML as a way of storing the value... any other
> > > standard conventions that are recommended?  Store this as a static
> > > constant in a static 'settings' class maybe?
> >
> > Just a static constant is fine.  For example:
> http://developer.android.com/reference/android/provider/MediaStore.Au...
> >
>
> Ok, thanks
>
> > > > ACTION_SEND is not specified to return anything, so if you are
> getting
> > > any
> > > > result at all you can't count on what you get back being useful.
> > > I'm not counting on it returning anything useful, just having the
> > > functionality indicate that it has finished is enough, I am then
> > > setting a boolean field to true when it does, so that I know I that
> > > the app has created a temporary copy of the file in the app's cache
> > > directory.  On exiting the program, if the field is true, I then empty
> > > the cache directory.  Obviously don't need to do this if I am no
> > > longer copying the file if/when I get the method you suggest using
> > > onFile() to work.
> >
> > This may not be a safe assumption.  For example the send will often take
> a
> > while, so an implementation may very likely exit once the send has been
> > confirmed and execute the operation in a background service.
>
> Well if I can get the openFile override working, I won't need to use
> the cache directory and won't need this at all, so this shouldn't be
> an issue moving forward.
>
> >
> > > On that front, I have overriden the onFile() method in my content
> > > provider, but it is not being triggered by the above code, any
> > > suggestions?
> > >  @Override
> > > public ParcelFileDescriptor openFile(Uri uri, String mode) {
> > >  Log.d(LOG_TAG, "openFile() called");
> > >  return null;
> > > }
> >
> > Have you published the content provider in your manifest and ensured you
> > have set the authority correctly there in and the Intent's URI?  Have you
> > tried opening it yourself to see if it works?  Is anything interested
> > printed in the log?
>
> The content provider is published in my manifest:
>
> android:name=".provider.MyProvider"
>android:authorities="package.name.here"
>android:exported="true" />
>
> I am using it for all DB activity in my app, so it's working... and
> have tried the following, and no errors are generated:
>
> getContentResolver().openFileDescriptor(Uri.fromFile(shareFile), "r");
>
> But... this does not trigger a call to openFile().
>
> As I've switched over to passing the SEND the path directly to my file
> in the app's file directory, versus the path to the one I was copying
> to my cache directoy, the Uri for this is now:
>
> /data/data/package.name/files/1.png
>
> I get a permissions error now (as expected), but again, no call to
> openFile().
>
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] Re: In-app purchase signature verification with PHP openssl

2011-04-25 Thread Nate Totura
Thanks for the help, you were correct, the data I was using to test
everything was in a file an had an extra newline appended to the end.

On Apr 20, 7:37 pm, Nikolay Elenkov  wrote:
> On Thu, Apr 21, 2011 at 6:24 AM, Nate Totura  wrote:
>
> > Still no luck, I am pretty confident I am sending the PHP routines
> > correctly formatted data.
>
> > A followup question:
> > How can I verify the signature and data using only openssl, here is
> > what I am currently doing:
>
> >   openssl dgst -sha1 -verify public.key.ssl -signature signature.bin
> > data
>
> What you are doing is correct. Just make sure that the data file has
> no trailing newlines (use a binary editor to remove them, or save as
> binary from your Java or PHP program). I just tried it with a response from
> Market, it verifies OK.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: # downloads seems to get stuck in marketplace admin console?

2011-04-25 Thread Zsolt Vasvari
The Android Market Developer Console is the single worst software
product that I've ever had the displeasure of working with.

Even the outsoruced-to-India stuff I've had to deal with was in much
better shape and that doesn't say much.

On Apr 26, 5:17 am, Mark Wyszomierski  wrote:
> Ok thanks for confirming Tre, I saw this happen about a year ago but
> was hoping it had been resolved by now,
>
> Thanks
>
> On Apr 25, 4:49 pm, TreKing  wrote:
>
>
>
> > On Mon, Apr 25, 2011 at 3:21 PM, Mark Wyszomierski  wrote:
> > > I'm just wondering which numbers to trust here,
>
> > None of 'em.
>
> > > or why the values seem to get stuck.
>
> > Because the Android Market console is in a perpetual state of broken.
>
> > > Are they only updated once weekly or something like that?
>
> > The only people that know the answer to that are neither on this list nor
> > would answer you if they were.
>
> > --- 
> > --
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Re: Problem setting file permissions when filename has a space

2011-04-25 Thread Paul
On Apr 25, 8:55 pm, Dianne Hackborn  wrote:
> On Tue, Apr 26, 2011 at 12:46 AM, Paul  wrote:
> > > > share.setType(getString(R.string.note_default_mime_png));
> > > There is no reason for this string to come from a resource; it is not
> > > something that gets localized, it is just a constant.
> > I am storing it in the XML as a way of storing the value... any other
> > standard conventions that are recommended?  Store this as a static
> > constant in a static 'settings' class maybe?
>
> Just a static constant is fine.  For 
> example:http://developer.android.com/reference/android/provider/MediaStore.Au...
>

Ok, thanks

> > > ACTION_SEND is not specified to return anything, so if you are getting
> > any
> > > result at all you can't count on what you get back being useful.
> > I'm not counting on it returning anything useful, just having the
> > functionality indicate that it has finished is enough, I am then
> > setting a boolean field to true when it does, so that I know I that
> > the app has created a temporary copy of the file in the app's cache
> > directory.  On exiting the program, if the field is true, I then empty
> > the cache directory.  Obviously don't need to do this if I am no
> > longer copying the file if/when I get the method you suggest using
> > onFile() to work.
>
> This may not be a safe assumption.  For example the send will often take a
> while, so an implementation may very likely exit once the send has been
> confirmed and execute the operation in a background service.

Well if I can get the openFile override working, I won't need to use
the cache directory and won't need this at all, so this shouldn't be
an issue moving forward.

>
> > On that front, I have overriden the onFile() method in my content
> > provider, but it is not being triggered by the above code, any
> > suggestions?
> >  @Override
> > public ParcelFileDescriptor openFile(Uri uri, String mode) {
> >  Log.d(LOG_TAG, "openFile() called");
> >  return null;
> > }
>
> Have you published the content provider in your manifest and ensured you
> have set the authority correctly there in and the Intent's URI?  Have you
> tried opening it yourself to see if it works?  Is anything interested
> printed in the log?

The content provider is published in my manifest:



I am using it for all DB activity in my app, so it's working... and
have tried the following, and no errors are generated:

getContentResolver().openFileDescriptor(Uri.fromFile(shareFile), "r");

But... this does not trigger a call to openFile().

As I've switched over to passing the SEND the path directly to my file
in the app's file directory, versus the path to the one I was copying
to my cache directoy, the Uri for this is now:

/data/data/package.name/files/1.png

I get a permissions error now (as expected), but again, no call to
openFile().

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

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


[android-developers] gtablet apps

2011-04-25 Thread bob
Is there a special marketplace for gtablet apps, or do they just go in
Android market?

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


[android-developers] Re: Custom preference, targetSdkVersion=“11”: missing indent?

2011-04-25 Thread Zsolt Vasvari
FWIW, I have a bunch of custom Dialog preferences, but I don't see the
issue you are seeing.  They look just like the standard Honeycomb
ones.

That said, I've had a custom layout pre-Honeycomb, to support multi-
line preference titles (why is it restricted to a single line???), so
that looked like your "bad" preference on Honeycomb -- I know only set
the cusom layout if I am running on a pre-Honeycomb system.



On Apr 26, 7:57 am, Mark Murphy  wrote:
> On Mon, Apr 25, 2011 at 7:41 PM, Dianne Hackborn  wrote:
> > If you are using the Holo theme, the preference item now needs to take care
> > of the indent itself.  This is to allow items to have things like icons
> > within that area.  I believe there is a resource/attribute for the indent
> > size, though I don't recall it off-hand.
>
> But I don't provide the layout for the preference. It's a
> DialogPreference -- I'm only providing the contents of the dialog.
> Everything else is handled by existing Android classes.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in London:http://bit.ly/smand1,http://bit.ly/smand2

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


[android-developers] Re: Transactions in android market not clearing?

2011-04-25 Thread Gregg Reno
Still no change.  None of the purchases have cleared for me since last
night.
- Gregg

On Apr 25, 9:21 pm, Zsolt Vasvari  wrote:
> Not only have they not cleared, the ones that had cleared earlier have
> been uncleared...
>
> On Apr 26, 6:09 am, String  wrote:
>
>
>
> > Hmmm, for me it's every transaction since about 1am GMT today (April 25). 
> > Let's hope somebody at Google notices and plugs that server back in.
>
> > String

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


[android-developers] Re: What is the minimum hardware requirements to run the Android emulator

2011-04-25 Thread Zsolt Vasvari
I think you'd need that Chinese supercomputer to run the Honeycomb
emulator at an acceptable speed.

On Apr 25, 5:19 pm, Phuc Nguyen Dinh  wrote:
> Hi,
> I want to develop Android game for different version of Android
> platform, so I must use the Emulator. However, it turned out very slow
> even I booted it before installing the application on it relatively.
> It's really slow when running applications.
>
> Hence, I wonder if there exists a minimum hardware requirements for
> running the emulator "quickly enough".
>
> Thank you in advance!
> Phuc

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

2011-04-25 Thread Tommy
I didn't think you could access app files between apps... Why not create a
folder on the SD card and write the file there that way both apps have
access? Maybe I am wrong about apps being able to access eachothers files
other than with maybe custom providers? Maybe you could try using an Intent
from App B to call an activity on App A that passes back the data you are
looking for?

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of HarryP
Sent: Monday, April 25, 2011 9:14 PM
To: Android Developers
Subject: [android-developers] Help in simple read/write applications.

I am writing two applications A and B. A writes a string into a file and B
has to read from the same file. Both are signed by the same key and have
shared UIDs. App A runs fine, by writing a specified string into the
file(stored in internal memory). But while running app B on the emulator, I
get an error box which says that the application stopped unexpectedly. Can
anyone help me in this direction? 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

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

2011-04-25 Thread Zsolt Vasvari
Not only have they not cleared, the ones that had cleared earlier have
been uncleared...

On Apr 26, 6:09 am, String  wrote:
> Hmmm, for me it's every transaction since about 1am GMT today (April 25). 
> Let's hope somebody at Google notices and plugs that server back in.
>
> String

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


[android-developers] Help in simple read/write applications.

2011-04-25 Thread HarryP
I am writing two applications A and B. A writes a string into a file
and B has to read from the same file. Both are signed by the same key
and have shared UIDs. App A runs fine, by writing a specified string
into the file(stored in internal memory). But while running app B on
the emulator, I get an error box which says that the application
stopped unexpectedly. Can anyone help me in this direction? 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: Fragmentation-resistant product design

2011-04-25 Thread Zsolt Vasvari
This is exactly the kind of stuff why people scream about
fragmentation.  It's OK that devices are different, but they should be
determinably different.

I think this is where Google needs to step in and revoke the license
of the non-open source stuff until device firmwares are fixed and
updated to comply with the test suite and not report bogus values.



On Apr 26, 4:26 am, Brill Pappin  wrote:
> Yes, I think I'd agree :)
>
> and your right, what we're really interested in is the actual values.
>
> We noticed that the Motorola Atrix reports the wrong stuff, but not only
> that, my partner did some manual calculations on screen size/density and
> discovered that not only is it reporting the wrong stuff, but its actually
> got the wrong values for the basic dimensions that those values are based
> on.
>
> Anyway, when we get this stuff up, i'll post to the list and see if anyone
> wants to participate.
>
> - Brill Pappin

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Problem setting file permissions when filename has a space

2011-04-25 Thread Dianne Hackborn
On Tue, Apr 26, 2011 at 12:46 AM, Paul  wrote:

> > > share.setType(getString(R.string.note_default_mime_png));
> > There is no reason for this string to come from a resource; it is not
> > something that gets localized, it is just a constant.
> I am storing it in the XML as a way of storing the value... any other
> standard conventions that are recommended?  Store this as a static
> constant in a static 'settings' class maybe?
>

Just a static constant is fine.  For example:
http://developer.android.com/reference/android/provider/MediaStore.Audio.Media.html#CONTENT_TYPE


> > ACTION_SEND is not specified to return anything, so if you are getting
> any
> > result at all you can't count on what you get back being useful.
> I'm not counting on it returning anything useful, just having the
> functionality indicate that it has finished is enough, I am then
> setting a boolean field to true when it does, so that I know I that
> the app has created a temporary copy of the file in the app's cache
> directory.  On exiting the program, if the field is true, I then empty
> the cache directory.  Obviously don't need to do this if I am no
> longer copying the file if/when I get the method you suggest using
> onFile() to work.
>

This may not be a safe assumption.  For example the send will often take a
while, so an implementation may very likely exit once the send has been
confirmed and execute the operation in a background service.


> On that front, I have overriden the onFile() method in my content
> provider, but it is not being triggered by the above code, any
> suggestions?
>  @Override
> public ParcelFileDescriptor openFile(Uri uri, String mode) {
>  Log.d(LOG_TAG, "openFile() called");
>  return null;
> }
>

Have you published the content provider in your manifest and ensured you
have set the authority correctly there in and the Intent's URI?  Have you
tried opening it yourself to see if it works?  Is anything interested
printed in the log?

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

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

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

[android-developers] Re: Possible to use OpenGL in both C++ and Java?

2011-04-25 Thread Indicator Veritatis
The "normal way" is to use the NDK. There is a separate Google group
for that. But if you really need to port a large body of C++ code,
that is the way to go. Otherwise you could have to rewrite using the
Android Java OpenGL interface, which is basically JSR-239 with some
"glue code" for connecting to Android's SurfaceView, the parent class
of GLSurfaceView.

See http://developer.android.com/sdk/ndk/overview.html for more about
the NDK.

On Apr 23, 5:54 am, Ash McConnell  wrote:
> Hi Folks,
>
> I am new to Android coding.  I am trying to convert an iPhone app and
> would like to keep the core c++ code in tact if possible (so that bugs
> can be fixed in a cross platform way).
>
> I am currently using an extended GLSurfaceView to do rendering, I
> believe this uses a separate thread and therefore doing OpenGL stuff
> in C++ doesn't work.  I tried to load a texture in C++ and pass the id
> back to java, but it didn't work - the texture was blank.
>
> Should I be using an alternative to GLSurfaceView?  Is there a
> "normal" way of achieving what I am trying?
>
> Thanks for your help
> All the best,
> Ash

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

2011-04-25 Thread Dianne Hackborn
System.exit() will not necessarily fix this.  If the application has left
its activity stack in a bad state and does this in the background, the stack
is still being maintained by the system and will be restored as per its last
state when the application's process is re-created.

Also system.exit() can break the behavior of an app, so it should be
avoided.

On Tue, Apr 26, 2011 at 12:46 AM, Indicator Veritatis wrote:

> System.exit() as a feature for the paranoid user? I wish that were
> never necessary. But there is yet another case where I wish I had the
> app calling system.exit() itself: when the app has done a bad job of
> keeping track of state, and leaves the user, yes, even the
> sophisticated user, with no idea how to navigate back to a known good
> state in the menu tree. Then the only way for me to get the app back
> to the top of the tree is to kill it with SystemExit (the application,
> not the API) and start it again.
>
> One of the promised benefits of certain competing Android Application
> Markets is that the Market staff will verify the program the developer
> submits, checking for stupid errors like this one, as well as other
> failures to do Android Lifecycle management correctly before approving
> the application for distribution. But I haven't had enough experience
> with them yet to know whether they keep this promise or not. They may
> have found they bit off more than they could chew.
>
> On Apr 25, 4:49 pm, lbendlin  wrote:
> > oh yes there is. It is called "paranoid user" and that species will
> accuse
> > your program of draining the battery, heating the atmosphere, and scaring
> > little children.  No matter how often you explain to them how Android
> keeps
> > applications around "just in case" they want that EXIT button. They get
> > their button, and I can keep my sanity (well, sort of).
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Re: System.exit

2011-04-25 Thread TreKing
On Mon, Apr 25, 2011 at 7:39 PM, Indicator Veritatis wrote:

> In fact, one could believe you had answered it only if you confused the
> contrary and the contradictory of a non-null affirmative categorical
> statement.
>
> In fact, the mismatch between his question and your 'answer' is giving me
> good ideas for how to update SylloGizmo to support using the Square of
> Opposition in entering and analyzing categorical syllogisms;)
>

I'm a little slow, so I may be the only that didn't understand a word of
that. Your proficiency with a dictionary and thesaurus is impressive, but if
you have a point to make, you might want to make it in English so the rest
of us can follow along =P

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Problem setting file permissions when filename has a space

2011-04-25 Thread Paul
Ah I see, thanks.  A few notes in-line below:

On Apr 25, 6:31 pm, Dianne Hackborn  wrote:
> On Mon, Apr 25, 2011 at 2:27 PM, Paul  wrote:
> > So just to clarify (as I have no access to the other app and what it
> > calls, in this case the other app is the OS-standard 'share/send'
> > functionality),
>
> Share/send is not an app.  It is a convention for applications to interact
> with each other, that is *designed* around the approach I suggest.
>
> > I override the openFile() method in my app's content
> > provider, and then when I trigger the 'share' functionality and pass
> > it in the Uri to the file, the share functionality will then make a
> > call to openFileDescriptor() which will call my overridden
> > openFile()... correct?
>
> Yes.
>
> > Anything special I need to do to trigger this workflow, other than the
> > standard:
>
> No that is the standard way it works.
>
> Intent share = new Intent(Intent.ACTION_SEND);
>
> > share.setType(getString(R.string.note_default_mime_png));
>
> There is no reason for this string to come from a resource; it is not
> something that gets localized, it is just a constant.

I am storing it in the XML as a way of storing the value... any other
standard conventions that are recommended?  Store this as a static
constant in a static 'settings' class maybe?

>
> > share.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(shareFileCopy));
> > startActivityForResult(Intent.createChooser(share, "Share"),
> > ACTIVITY_SHARE);
>
> ACTION_SEND is not specified to return anything, so if you are getting any
> result at all you can't count on what you get back being useful.

I'm not counting on it returning anything useful, just having the
functionality indicate that it has finished is enough, I am then
setting a boolean field to true when it does, so that I know I that
the app has created a temporary copy of the file in the app's cache
directory.  On exiting the program, if the field is true, I then empty
the cache directory.  Obviously don't need to do this if I am no
longer copying the file if/when I get the method you suggest using
onFile() to work.

On that front, I have overriden the onFile() method in my content
provider, but it is not being triggered by the above code, any
suggestions?

@Override
public ParcelFileDescriptor openFile(Uri uri, String mode) {
  Log.d(LOG_TAG, "openFile() called");
  return null;
}

Paul

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

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


[android-developers] Re: System.exit

2011-04-25 Thread Indicator Veritatis
System.exit() as a feature for the paranoid user? I wish that were
never necessary. But there is yet another case where I wish I had the
app calling system.exit() itself: when the app has done a bad job of
keeping track of state, and leaves the user, yes, even the
sophisticated user, with no idea how to navigate back to a known good
state in the menu tree. Then the only way for me to get the app back
to the top of the tree is to kill it with SystemExit (the application,
not the API) and start it again.

One of the promised benefits of certain competing Android Application
Markets is that the Market staff will verify the program the developer
submits, checking for stupid errors like this one, as well as other
failures to do Android Lifecycle management correctly before approving
the application for distribution. But I haven't had enough experience
with them yet to know whether they keep this promise or not. They may
have found they bit off more than they could chew.

On Apr 25, 4:49 pm, lbendlin  wrote:
> oh yes there is. It is called "paranoid user" and that species will accuse
> your program of draining the battery, heating the atmosphere, and scaring
> little children.  No matter how often you explain to them how Android keeps
> applications around "just in case" they want that EXIT button. They get
> their button, and I can keep my sanity (well, sort of).

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

2011-04-25 Thread Indicator Veritatis
Dianne-

What you say is true, at least for those of us who accept the party
line Google has been preaching for years, but you have not answered
the question. In fact, one could believe you had answered it only if
you confused the contrary and the contradictory of a non-null
affirmative categorical statement.

In fact, the mismatch between his question and your 'answer' is giving
me good ideas for how to update SylloGizmo to support using the
Square of Opposition in entering and analyzing categorical
syllogisms;)

> There is no reason or need to call it.
>
> On Mon, Apr 25, 2011 at 3:25 PM, bob  wrote:
> > Is it okay to call System.exit(0); to end an Android app?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


Re: [android-developers] Custom preference, targetSdkVersion=“11”: missing indent?

2011-04-25 Thread Dianne Hackborn
Oh sorry I thought you said you were creating a custom preference.  I don't
know anything specifically about DialogPreference, off-hand.

On Mon, Apr 25, 2011 at 11:57 PM, Mark Murphy wrote:

> On Mon, Apr 25, 2011 at 7:41 PM, Dianne Hackborn 
> wrote:
> > If you are using the Holo theme, the preference item now needs to take
> care
> > of the indent itself.  This is to allow items to have things like icons
> > within that area.  I believe there is a resource/attribute for the indent
> > size, though I don't recall it off-hand.
>
> But I don't provide the layout for the preference. It's a
> DialogPreference -- I'm only providing the contents of the dialog.
> Everything else is handled by existing Android classes.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Fragments for Google Maps add on?

2011-04-25 Thread Streets Of Boston
You're right. That's still the same (btw, the docs say you can have multiple 
MapActivities per app, as long as they are in different processes "... *Only 
one MapActivity is supported per process* ...").
 
The post above describes how you can have a MapView in a Fragment using the 
V4 compatibility library's sources.
I was interested in this, because I'd like to use the LoaderManager getting 
data from the web to display on a map.
 

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

[android-developers] Re: What are the best 2D, 3D game engine for Android?

2011-04-25 Thread Peter Eastman
Here's a recent thread that discussed 2D game engines:

http://groups.google.com/group/android-developers/browse_thread/thread/d54d5189309bf045/ad2513731f23aebe

And this one discussed 3D game engines:

http://groups.google.com/group/android-developers/browse_thread/thread/abafebc86bf44470/6c8df881876cf742

Peter

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

2011-04-25 Thread TreKing
On Mon, Apr 25, 2011 at 6:27 PM, jotobjects  wrote:

> It does compile and tracing it with the debugger it executes without error.
>

OK, I thought you literally didn't know what you variable "parent" was,
which didn't make much sense :-P

Well, I've not used PopupWindow myself, so I don't know what to tell you.
FWIW, I tried an equally simple example (threw a textview with "Hello" in it
into a POW and tried to show it at the location of a ImageView I have in a
listview) and it did not work either.

Also tried showAsDropDown() and that didn't work either. I've seen the thing
used in plenty of other apps so I'm sure it works, but I guess it's not
as straightforward to use as it would appear.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Custom preference, targetSdkVersion=“11”: missing indent?

2011-04-25 Thread Mark Murphy
On Mon, Apr 25, 2011 at 7:41 PM, Dianne Hackborn  wrote:
> If you are using the Holo theme, the preference item now needs to take care
> of the indent itself.  This is to allow items to have things like icons
> within that area.  I believe there is a resource/attribute for the indent
> size, though I don't recall it off-hand.

But I don't provide the layout for the preference. It's a
DialogPreference -- I'm only providing the contents of the dialog.
Everything else is handled by existing Android classes.

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

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

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


Re: [android-developers] System.exit

2011-04-25 Thread lbendlin
oh yes there is. It is called "paranoid user" and that species will accuse 
your program of draining the battery, heating the atmosphere, and scaring 
little children.  No matter how often you explain to them how Android keeps 
applications around "just in case" they want that EXIT button. They get 
their button, and I can keep my sanity (well, sort of).

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Custom preference, targetSdkVersion=“11”: missing indent?

2011-04-25 Thread Dianne Hackborn
If you are using the Holo theme, the preference item now needs to take care
of the indent itself.  This is to allow items to have things like icons
within that area.  I believe there is a resource/attribute for the indent
size, though I don't recall it off-hand.

On Mon, Apr 25, 2011 at 10:40 PM, Mark Murphy wrote:

> I am not having a lot of luck on this one over on StackOverflow:
>
>
> http://stackoverflow.com/questions/5757012/custom-preference-targetsdkversion-11-missing-indent
>
> Summary: I have a custom preference that works on Honeycomb, but the
> preference itself is formatted differently than normal preferences --
> it's not indented, and the fonts appear a bit larger. This *feels*
> like a style issue, but I don't know where the style stuff would be
> changing, particularly since I'm not setting any styles, but just
> inheriting whatever the defaults are.
>
> Anyone experimented with custom preferences on Honeycomb?
>
> Thanks!
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] ViewFlipper and ScrollView animation

2011-04-25 Thread Rick
I have a scroll view that wraps a view flipper with 2 form-input
views.

I can use animations for some fancy transitions between the two but
the primary view is significantly larger than the second view.
As a result, when I am at the bottom of the primary view and I hit a
button that should transition me to the secondary view, the primary
view is forced back to the top then starts the transition.

What I really want is for the transition to start with out having to
scroll to index 0. It should transition with out moving the scroll
position.

Any ideas?

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


[android-developers] Re: System.exit

2011-04-25 Thread nation-x
I have found that Android will restart your app on occasion if you
call that. I stopped using it and just call finish() now.

On Apr 25, 6:25 pm, bob  wrote:
> Is it okay to call System.exit(0); to end an Android app?

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


Re: [android-developers] Fragments for Google Maps add on?

2011-04-25 Thread lbendlin
This would not change the limitation that an application can only have one 
MapActivity, right?

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

[android-developers] Re: PopupWindow doesn't show up

2011-04-25 Thread jotobjects


On Apr 25, 1:53 pm, TreKing  wrote:
> On Mon, Apr 25, 2011 at 2:36 PM, jotobjects  wrote:
> > I'm not clear about what "parent" in the last line is supposed to be...
>
> How is this compiling?
>
context == activity.  text=="foobar and merry christmas".
I've tried a couple of different things for parent.  Here is the full
method -

public void onClick(View v)
{
PopupWindow popup = new PopupWindow(context);
TextView contentView = new TextView(context);
popup.setContentView(contentView);
contentView.setLayoutParams(
new LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT));
contentView.setText(text);
//View window = ((Activity)context).getWindow().getDecorView();
popup.showAtLocation(v, Gravity.CENTER, 0, 0);
}

It does compile and tracing it with the debugger it executes without
error.

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

2011-04-25 Thread Streets Of Boston
The option from Valentin in stackoverflow doesn't work well with the 
*compatibility 
library*. This is what i did to make it MapActivity work with Fragments 
using the compatibility library (it is not the best solution, but it seems 
to work so far):
 

   1. Use the source of the compatibililty library (just copy android/* into 
   your project's source dir). 
   2. Rename (don't refactor!) FragmentActivity.java into 
   AFragmentActivity.java (rename file and class-name). 
   3. Create a new java file FragmentActivity.java. Make it an interface 
   (see below). 
   4. Have AFragmentActivity implement FragmentActivity. 
   *public class AFragmentActivity extends Activity implements 
   FragmentActivity ... *
1. Fix the compiler errors that will happen.
  2. instead of .mFragments, use getFragments()
  3. instead of mHandler, use getHandler()
  4. add casts that will cast FragmentActivity into Context or Activity 
  where necessary.
  5. etc.
  5. After all compiler errors have been fixed, make a copy of 
   AFragmentActivity.java and call it AFragmentMapActivity.java and have it 
   extend MapActivity
   *public abstract class AFragmentMapActivity extends MapActivity 
   implements FragmentActivity ...*
   
Now you can have a MapView in a regular fragment as long as that fragment is 
hosted inside a AFragmentMapActivity.
 
Source of the FragmentActivity interface (without the imports and such):
*package android.support.v4.app;*
*...*
*...*
*public interface FragmentActivity {
 public ClassLoader getClassLoader();
 public View findViewById(int mViewId);
 public Context getApplicationContext();
 public Resources getResources();
 public Window getWindow();  
 public LayoutInflater getLayoutInflater();
 public boolean isFinishing();
 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo 
menuInfo);*
** 
* public FragmentManagerImpl getFragments();
 public Handler getHandler();*
** 
* public LoaderManagerImpl getLoaderManager(int mIndex, boolean 
mLoadersStarted, boolean b);
 public CharSequence getText(int mBreadCrumbTitleRes);
 public void invalidateFragmentIndex(int mIndex);
 public void onAttachFragment(Fragment f);
 public void startActivityFromFragment(Fragment fragment, Intent intent, int 
i);
 public void supportInvalidateOptionsMenu();
}*
 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 determine if a file exists in a directory with FileNotFoundException

2011-04-25 Thread TreKing
On Mon, Apr 25, 2011 at 11:46 AM, Ohiotech  wrote:

> The utility works as intended, but when I type in the wrong file name, the
> application hangs.
>

Pause your debugger to see *where* it's hanging.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Custom preference, targetSdkVersion=“11”: missing indent?

2011-04-25 Thread Mark Murphy
I am not having a lot of luck on this one over on StackOverflow:

http://stackoverflow.com/questions/5757012/custom-preference-targetsdkversion-11-missing-indent

Summary: I have a custom preference that works on Honeycomb, but the
preference itself is formatted differently than normal preferences --
it's not indented, and the fonts appear a bit larger. This *feels*
like a style issue, but I don't know where the style stuff would be
changing, particularly since I'm not setting any styles, but just
inheriting whatever the defaults are.

Anyone experimented with custom preferences on Honeycomb?

Thanks!

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

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

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


Re: [android-developers] Re: Problem setting file permissions when filename has a space

2011-04-25 Thread Dianne Hackborn
On Mon, Apr 25, 2011 at 2:27 PM, Paul  wrote:

> So just to clarify (as I have no access to the other app and what it
> calls, in this case the other app is the OS-standard 'share/send'
> functionality),


Share/send is not an app.  It is a convention for applications to interact
with each other, that is *designed* around the approach I suggest.


> I override the openFile() method in my app's content
> provider, and then when I trigger the 'share' functionality and pass
> it in the Uri to the file, the share functionality will then make a
> call to openFileDescriptor() which will call my overridden
> openFile()... correct?
>

Yes.


> Anything special I need to do to trigger this workflow, other than the
> standard:
>

No that is the standard way it works.

Intent share = new Intent(Intent.ACTION_SEND);
> share.setType(getString(R.string.note_default_mime_png));
>

There is no reason for this string to come from a resource; it is not
something that gets localized, it is just a constant.


> share.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(shareFileCopy));
> startActivityForResult(Intent.createChooser(share, "Share"),
> ACTIVITY_SHARE);
>

ACTION_SEND is not specified to return anything, so if you are getting any
result at all you can't count on what you get back being useful.

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

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

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

Re: [android-developers] System.exit

2011-04-25 Thread Dianne Hackborn
There is no reason or need to call it.

On Mon, Apr 25, 2011 at 3:25 PM, bob  wrote:

> Is it okay to call System.exit(0); to end an Android app?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] System.exit

2011-04-25 Thread bob
Is it okay to call System.exit(0); to end an Android app?

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


[android-developers] Re: Transactions in android market not clearing?

2011-04-25 Thread String
Hmmm, for me it's every transaction since about 1am GMT today (April 25). Let's 
hope somebody at Google notices and plugs that server back in. 

String 

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

2011-04-25 Thread fordeveloper
What exactly is low level access?
How do I send/receive nfcA/nfcB commands then?

Am confused!

On Apr 9, 2:57 am, Michael Roland  wrote:
> Hallo Priti,
>
> > I can get aNfcAobject using the getTag(tag) method.
> >NfcAmyTag =NfcA.getTag(tag);
>
> > I then do a
> > [...]
> >     retData = myTag.transcieve(apduCmd); //where apduCmd has a Select
> > AID cmd}
>
> Right, you are supposed to get an exception with this. TheNfcAtech
> is for "low-level" access to ISO 14443 Type A tags (i.e. the
> proprietary protocol as mentioned in ISO 14443-3.) Exchanging APDUs
> happens on top of ISO 14443-4 data exchange protocol (which is
> independend of whether you use type A or B by the way). The correct
> tech for this is IsoDep.
>
> br
> Michael

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

2011-04-25 Thread nikhil
I am not sure if there is an app for twitter or facebook.

I had used push notification in one of my apps and I had used a third
party api. You can visit xtify.com for more details.

Google has also introduced push notifications I believe, the only
thing is user needs to login to gmail I think but I am not sure..

On Apr 24, 9:34 am, notifier  wrote:
> Hi,
>
> is there any app for Facebook/Twitter that fully supports push
> notifications? Is it hard to build such application using c2dm?

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


[android-developers] Re: Problem setting file permissions when filename has a space

2011-04-25 Thread Paul
So just to clarify (as I have no access to the other app and what it
calls, in this case the other app is the OS-standard 'share/send'
functionality), I override the openFile() method in my app's content
provider, and then when I trigger the 'share' functionality and pass
it in the Uri to the file, the share functionality will then make a
call to openFileDescriptor() which will call my overridden
openFile()... correct?

Anything special I need to do to trigger this workflow, other than the
standard:

Intent share = new Intent(Intent.ACTION_SEND);
share.setType(getString(R.string.note_default_mime_png));
share.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(shareFileCopy));
startActivityForResult(Intent.createChooser(share, "Share"),
ACTIVITY_SHARE);

Thanks,

Paul

On Apr 23, 12:47 pm, Dianne Hackborn  wrote:
> No shell commands are part of the SDK.  Using shell commands is likely to
> result in your app breaking randomly across devices and platform versions.
>
> The recommended way to do this is to write a content provider, which the
> other app can call ContentResolver.openFileDescriptor() etc.  It is actually
> really easy to write such a content provider -- it doesn't need a database
> or anything, just to implement ContentProvider.openFile().
>
> Every situation I have seen where MODE_WORLD_* is used it causes more
> troubles than just writing a content provider.  I regret having made that.
>
>
>
> On Sat, Apr 23, 2011 at 8:43 AM, Paul  wrote:
> > I have a question over at StackOverflow that's been sitting there for
> > over a month, and wondered if maybe someone here (or a Googlite) could
> > answer it.
>
> >http://stackoverflow.com/questions/5149739/android-problem-setting-fi...
>
> > I have an app where I store .png images in the app's cache directory,
> > and as I am sharing these files via messaging, etc, I need to make the
> > files readable temporarily by everyone (i.e. chmod 755).
>
> > As suggested in another thread, I am running Runtime.getRuntime.exec()
> > to do this:
>
> > Runtime.getRuntime().exec("setperm chmod 755 /path/to/filename.png");
>
> > This works fine, and as I am filtering / and \, any name works...
> > except a name with a space, unsurpisingly. This fails:
>
> > Runtime.getRuntime().exec("setperm chmod 755 /path/to/file name.png");
>
> > So, coming from linux, I try wrapping the file path in quotes, which
> > works on linux, but still fails to change the file perms on Android:
>
> > Runtime.getRuntime().exec("setperm chmod 755 \"/path/to/file name.png
> > \"");
> > or
> > Runtime.getRuntime().exec("setperm chmod 755 '/path/to/file
> > name.png'");
>
> > Any ideas?
>
> > Thanks,
>
> > Paul
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


[android-developers] Re: # downloads seems to get stuck in marketplace admin console?

2011-04-25 Thread Mark Wyszomierski
Ok thanks for confirming Tre, I saw this happen about a year ago but
was hoping it had been resolved by now,

Thanks

On Apr 25, 4:49 pm, TreKing  wrote:
> On Mon, Apr 25, 2011 at 3:21 PM, Mark Wyszomierski  wrote:
> > I'm just wondering which numbers to trust here,
>
> None of 'em.
>
> > or why the values seem to get stuck.
>
> Because the Android Market console is in a perpetual state of broken.
>
> > Are they only updated once weekly or something like that?
>
> The only people that know the answer to that are neither on this list nor
> would answer you if they were.
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] Re: MiFare Classic detection

2011-04-25 Thread androidom
I was able to read the tags... and I hope this blog would be usefull
for newbies stumbling on the similar

http://mifareclassicdetectiononandroid.blogspot.com/

cheers
Domnic

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

2011-04-25 Thread TreKing
On Fri, Apr 22, 2011 at 4:21 PM, Giorgio Torres wrote:

> I would like to know android's best way to do what i'm trying.


I don't think your question is very clear. However, off the bat I would say
you do not need a "MyForm" class that extends View. You just need a layout
defined in XML that lays out your form and you can set that as the content
for your view. As for "refreshing", most things are automatic (like setting
the text on a TextView) but if you need to force refresh you can look at
invalidate().

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] PopupWindow doesn't show up

2011-04-25 Thread TreKing
On Mon, Apr 25, 2011 at 2:36 PM, jotobjects  wrote:

> I'm not clear about what "parent" in the last line is supposed to be...
>

How is this compiling?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Market sales suddenly cut in half

2011-04-25 Thread Brill Pappin
FYI - CANCELLED would include uninstalls AND failed orders.

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

2011-04-25 Thread Brill Pappin
I just did some data analysis on our orders from our local database copy.
(we're in canada, so the only way we can calculate tax is by scraping the 
checkout pages).

it looks like our overall orders have actually dropped (which suggests a 
change in the market, not Checkout) but that the ratio of cancels to charged 
has also gone up (suggests a change in Checkout, not Market) after the 19th, 
until april 24th when we get a whopping 50% cancels!

It's pretty clear that there is some sort of problem...

in the interest of helping to get this resolved, here are our numbers, 
charged vs. cancelled, for the last several days, so other publishers can 
compare with their own data:

total financial_status day
26 CANCELLED 2011-04-24
26 CHARGED 2011-04-24
10 CANCELLED 2011-04-23
28 CHARGED 2011-04-23
15 CANCELLED 2011-04-22
39 CHARGED 2011-04-22
11 CANCELLED 2011-04-21
31 CHARGED 2011-04-21
14 CANCELLED 2011-04-20
34 CHARGED 2011-04-20  <== orders get mucked up here
20 CANCELLED 2011-04-19  <== Last normal day of sales
57 CHARGED 2011-04-19
24 CANCELLED 2011-04-18
45 CHARGED 2011-04-18
22 CANCELLED 2011-04-17
42 CHARGED 2011-04-17

I don't know if anyone else is seeing numbers like this, but for us this is 
a big deal as our margins are not that great.
I've already asked support if something has changed in the Market recently, 
but i haven't taken this to Checkout yet.

Maybe if one of you Google employees who have an eye on this stuff can pass 
the problem along, it would be helpful.

- Brill Pappin

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] # downloads seems to get stuck in marketplace admin console?

2011-04-25 Thread TreKing
On Mon, Apr 25, 2011 at 3:21 PM, Mark Wyszomierski  wrote:

> I'm just wondering which numbers to trust here,
>

None of 'em.


> or why the values seem to get stuck.
>

Because the Android Market console is in a perpetual state of broken.


> Are they only updated once weekly or something like that?
>

The only people that know the answer to that are neither on this list nor
would answer you if they were.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: nfc read not working

2011-04-25 Thread android user
Hello,
I can write to a MIFARE card, but i can't read from it. The following
code "intent.getParcelableExtra(NfcAdapter.EXTRA_TAG)" returns null
and therefore I can't go further with the reading process.
Could anyone help me?
Thanks in advance.
John

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

2011-04-25 Thread Tommy
I have phones with AT&T and you can use them to develop with. As long as you
push your app via Eclipse. or Whats it. ADB that eclipse automates for you.
What you CAN NOT do is copy the app to your sd card and install it that way.

 

From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of Danny Pimienta
Sent: Sunday, April 24, 2011 10:35 AM
To: android-developers@googlegroups.com
Subject: Re: [android-developers] Phone for development

 

Raghav,

 

All devices work for development use except those on AT&T because they
disable to option to allow sideloading of apps. I personally still user a
Nexus One as my developers phone since it's pure Google and it is "supposed"
to get updates faster.

On Sat, Apr 23, 2011 at 4:58 PM, Raghav Sood  wrote:

Hi,

I was thinking of buying a new phone for development and zeroed in on
Samsung Galaxy Pro B7510
 . I wanted to know if this is a
good choice and if any of you have used it how is it? Also will it be better
than my current Optimus P500? 

Thanks in advance

-- 
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/

http://www.telstop.tel/

 

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

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

2011-04-25 Thread Brill Pappin
Yup... not for every sale, but the frequency has increased a noticeable 
amount.

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

2011-04-25 Thread Brill Pappin
Yes, I think I'd agree :)

and your right, what we're really interested in is the actual values.

We noticed that the Motorola Atrix reports the wrong stuff, but not only 
that, my partner did some manual calculations on screen size/density and 
discovered that not only is it reporting the wrong stuff, but its actually 
got the wrong values for the basic dimensions that those values are based 
on.

Anyway, when we get this stuff up, i'll post to the list and see if anyone 
wants to participate.

- Brill Pappin

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Samsung Galaxy S calendar app on Sprint allows starting "Google Maps" or "Sprint Navigation" only to "Complete action using" when clicking on Location.

2011-04-25 Thread mike
No luck... :(

On Apr 24, 7:05 pm, Michael Franz  wrote:
> Hi all,
>
> Samsung Galaxy S calendar app on Sprint allows starting "Google Maps" or
> "Sprint Navigation" only to "Complete action using" when clicking on
> Location. This is a pretty serious limitation, which does not
> allow implementing proper Location processing - for example to dial
> conference bridge, typically found in this field.
>
> Note that "normally" this can be done by using the following intent-filter:
>
> 
> 
>  
> 
>         
> 
>
> Any ideas on how to overcome this limitation (while still using the built in
> calendar app) will be appreciated.
>
> Thanks,
> M.

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


[android-developers] # downloads seems to get stuck in marketplace admin console?

2011-04-25 Thread Mark Wyszomierski
Hi,

When you log into the admin console for android marketplace, we see
two numbers:

N total
N active installs (M%)

These numbers appear to get "stuck" for me quite regularly. The new
hyperlink named "stats" shows me active installs per day which seems
to really be updated daily. I am also tracking installs as a side
effect of the nature of my multiplayer game, so I'm again sure
downloads are going up.

I'm just wondering which numbers to trust here, or why the values seem
to get stuck. Are they only updated once weekly or something like
that?

Thank you

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


[android-developers] Re: Still receiving sensor events after unregisterListener

2011-04-25 Thread lbendlin
I believe this is nomal. You can use a static flag that you set when you 
unregister. Then in the sensor handler you throw away events that arrive 
with the flag set.

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

2011-04-25 Thread Miguel Morales
Plus, Java is MUCH easier than C++.  You should be able to learn it in no
time.

On Sat, Apr 23, 2011 at 12:27 AM, Ashutosh Sing  wrote:

> If you know c++ you will not take much time to learn java. Android Require
> Java to develop applications.
>
> Thanks
> Ashu
>
> On Sat, Apr 23, 2011 at 10:54 AM, hoss7  wrote:
>
>> php and c++ and c#
>>
>> On Apr 22, 7:13 pm, Mark Murphy  wrote:
>> > Possibly. What languages and environments have you worked in before?
>> >
>> > On Fri, Apr 22, 2011 at 11:09 AM, hoss7  wrote:
>> > > hi
>> > > i want start develop android app
>> > > can i develop android app if i dont know java?
>> >
>> > --
>> > Mark Murphy (a Commons Guy)http://commonsware.com|
>> http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>> >
>> > Android Training in NYC:http://marakana.com/training/android/
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

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

Re: [android-developers] Google Map Directions

2011-04-25 Thread TreKing
On Fri, Apr 22, 2011 at 10:58 PM, Virendra Patidar <
virendrapati...@gmail.com> wrote:

> I want to show the direction with arrow using google map between two
> locations in my application.
>

OK. So what's the problem?


> Please help me in getting working code/API
>

Please make an effort to solve your own problem first.

Any working code example will help..


No, there is usually not some "working code sample" magically waiting to
solve your particular problem.
Believe it or not, when programming you have to do a lot of the work
yourself.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: Opening new package to current view

2011-04-25 Thread TreKing
On Sun, Apr 24, 2011 at 7:33 AM, Stonde  wrote:

> I want to preserve a certain part of the opening package's layout. Like in
> the webpages a frame like part in the left side of the layout.
>

Yeah, you can't do that.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] AlerDialog inside onRecieve

2011-04-25 Thread TreKing
On Mon, Apr 25, 2011 at 2:15 PM, Alaeddine Ghribi  wrote:

> So when you receive call, a status bar notification appears and from there
> you can choose to answer the call or not ?
>

In this case, I think a popup window makes sense. An incoming call already
by default pops up a window so this is behavior a user would be used to.


> And please how can i launch an activity themed as a dialog in the manifest
> ?
>

Look in the docs for themes. A dialog theme is one a built in option.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] What does the icon means on status bar?

2011-04-25 Thread Mark Murphy
Mute, AFAIK.

Note that this list is for developing applications with the Android SDK.

On Sun, Apr 24, 2011 at 5:51 AM, Nathan  wrote:
> Any body know what does this icon means?
> https://lh3.googleusercontent.com/_k2xQF2gMLNo/TbPwA-4EQoI/CT0/Ml2uGzyIEbc/s800/20110424_IconMean_1.png

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

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

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


Re: [android-developers] What is the minimum hardware requirements to run the Android emulator

2011-04-25 Thread Mark Murphy
On Mon, Apr 25, 2011 at 5:19 AM, Phuc Nguyen Dinh
 wrote:
> I want to develop Android game for different version of Android
> platform, so I must use the Emulator. However, it turned out very slow
> even I booted it before installing the application on it relatively.
> It's really slow when running applications.
>
> Hence, I wonder if there exists a minimum hardware requirements for
> running the emulator "quickly enough".

There are no formal requirements. The emulator is slower for newer
versions of Android and for larger screen sizes. Also, the emulator
uses only one core of your CPU, so having multiple cores may not help
you much.

So, for example, a dual-core 2.5GHz CPU with 4GB of RAM can run the
Android 1.5-2.2 emulators just fine, 2.3.3 emulator OK, and 3.0
emulator poorly. A quad-core 2.66GHz CPU with 4GB of RAM has much the
same experience.

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

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

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


Re: [android-developers] Re: Why my maps api didn't work?

2011-04-25 Thread Mark Murphy
I suspect that your tablet has an unlicensed copy of Google Maps on
it, one that is not completely compatible with the rest of the OS.

On Mon, Apr 25, 2011 at 1:06 PM, Théo Bassan  wrote:
> The problem is that it didn't crash on emulator..
> but in my tablet it "force close"
>
> this is the logcat of the tablet
>
> 04-19 10:59:15.510 I/ActivityManager(  720): Starting activity: Intent
> { act=android.intent.action.MAIN
> cat=[android.intent.category.LAUNCHER] flg=0x1020
> cmp=com.br.sysmarine/.SysmarineMaps }
> 04-19 10:59:15.580 I/ActivityManager(  720): Start proc
> com.br.sysmarine for activity com.br.sysmarine/.SysmarineMaps:
> pid=2762 uid=10042 gids={3003}
> 04-19 10:59:15.640 I/dalvikvm( 2762): Debugger thread not active,
> ignoring DDM send (t=0x41504e4d l=38)
> 04-19 10:59:15.690 I/dalvikvm( 2762): Debugger thread not active,
> ignoring DDM send (t=0x41504e4d l=36)
> 04-19 10:59:15.910 D/ViewFlipper(  820): updateRunning()
> mVisible=false, mStarted=true, mUserPresent=true, mRunning=false
> 04-19 10:59:16.200 I/MapActivity( 2762): Handling network change
> notification:CONNECTED
> 04-19 10:59:16.200 E/MapActivity( 2762): Couldn't get connection
> factory client
> 04-19 10:59:16.440 D/dalvikvm( 2762): GC freed 4423 objects / 272712
> bytes in 92ms
> 04-19 10:59:16.660 D/dalvikvm( 2762): Total arena pages for JIT: 2
> 04-19 10:59:16.760 D/dalvikvm( 2762): GC freed 6977 objects / 417384
> bytes in 89ms
> 04-19 10:59:16.900 I/ActivityManager(  720): Displayed activity
> com.br.sysmarine/.SysmarineMaps: 1335 ms (total 1335 ms)
> 04-19 10:59:17.170 D/dalvikvm( 2762): GC freed 5470 objects / 524120
> bytes in 126ms
> 04-19 10:59:17.300 D/dalvikvm( 2762): GC freed 120 objects / 49376
> bytes in 95ms
> 04-19 10:59:17.480 D/dalvikvm( 2762): GC freed 496 objects / 109600
> bytes in 83ms
> 04-19 10:59:18.320 D/NetStatService(  720): >>> UpdateNote: netType:1
> thisday:15083 uptime:1768560 rxbytes:13859623 txbytes:855188
> 04-19 10:59:19.160 D/dalvikvm( 2762): GC freed 3448 objects / 245392
> bytes in 98ms
> 04-19 10:59:20.760 D/dalvikvm( 2762): GC freed 593 objects / 134800
> bytes in 83ms
> 04-19 10:59:21.220 D/dalvikvm( 2762): GC freed 54 objects / 5560 bytes
> in 80ms
> 04-19 10:59:22.120 D/dalvikvm( 2762): GC freed 95 objects / 4560 bytes
> in 91ms
> 04-19 10:59:22.300 D/dalvikvm( 2762): GC freed 63 objects / 3888 bytes
> in 81ms
> 04-19 10:59:25.100 D/dalvikvm(  820): GC freed 2652 objects / 149064
> bytes in 255ms
> 04-19 10:59:28.530 D/NetStatService(  720): >>> UpdateNote: netType:1
> thisday:15083 uptime:1778770 rxbytes:14093103 txbytes:867258
> 04-19 10:59:33.940 D/dalvikvm( 2762): GC freed 4173 objects / 355256
> bytes in 96ms
> 04-19 10:59:35.790 D/dalvikvm( 2762): GC freed 2025 objects / 420824
> bytes in 182ms
> 04-19 10:59:36.940 D/dalvikvm(  720): GC freed 23260 objects / 1347912
> bytes in 247ms
> 04-19 10:59:38.680 D/NetStatService(  720): >>> UpdateNote: netType:1
> thisday:15083 uptime:1788920 rxbytes:14746976 txbytes:902298
> 04-19 10:59:38.870 D/dalvikvm( 2762): GC freed 2825 objects / 882808
> bytes in 92ms
> 04-19 10:59:41.380 D/dalvikvm( 2762): GC freed 305 objects / 32896
> bytes in 171ms
> 04-19 10:59:41.700 D/dalvikvm( 2762): GC freed 35 objects / 1040 bytes
> in 137ms
> 04-19 10:59:43.050 D/dalvikvm( 2762): GC freed 666 objects / 38720
> bytes in 146ms
> 04-19 10:59:44.640 D/dalvikvm( 2762): GC freed 1623 objects / 411624
> bytes in 84ms
> 04-19 10:59:45.600 D/dalvikvm( 2762): GC freed 153 objects / 6488
> bytes in 87ms
> 04-19 10:59:46.550 D/dalvikvm( 2762): GC freed 328 objects / 14504
> bytes in 93ms
> 04-19 10:59:46.730 D/AndroidRuntime( 2762): Shutting down VM
> 04-19 10:59:46.730 W/dalvikvm( 2762): threadid=3: thread exiting with
> uncaught exception (group=0x4001b168)
> 04-19 10:59:46.740 E/AndroidRuntime( 2762): Uncaught handler: thread
> main exiting due to uncaught exception
> 04-19 10:59:46.750 E/AndroidRuntime( 2762):
> java.lang.IncompatibleClassChangeError: interface not implemented
> 04-19 10:59:46.750 E/AndroidRuntime( 2762): at
> com.google.googlenav.map.Map.checkPaintTimeExceeded(Unknown Source)
> 04-19 10:59:46.750 E/AndroidRuntime( 2762): at
> com.google.googlenav.map.Map.drawMapBackground(Unknown Source)
> 04-19 10:59:46.750 E/AndroidRuntime( 2762): at
> com.google.googlenav.map.Map.drawMap(Unknown Source)
> 04-19 10:59:46.750 E/AndroidRuntime( 2762): at
> com.google.android.maps.MapView.drawMap(MapView.java:1029)
> 04-19 10:59:46.750 E/AndroidRuntime( 2762): at
> com.google.android.maps.MapView.onDraw(MapView.java:468)
> 04-19 10:59:46.750 E/AndroidRuntime( 2762): at
> android.view.View.draw(View.java:6535)
> 04-19 10:59:46.750 E/AndroidRuntime( 2762): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1531)
> 04-19 10:59:46.750 E/AndroidRuntime( 2762): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
> 04-19 10:59:46.750 E/AndroidRuntime( 2762): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1529)
> 04-19 10:59:46.750 E/AndroidRunti

Re: [android-developers] Private Clipboard per Activity and/or App?

2011-04-25 Thread Mark Murphy
On Mon, Apr 25, 2011 at 7:49 AM, Paul Bennett  wrote:
> Is it possible to define a private clipboard area per activity and/or
> application?  I'm looking for a solution that is supported in 1.5+.

Not via the OS. You are welcome to implement your own copy/paste
stuff, but bear in mind that users may be confused when they cannot
copy and paste between your app and others.

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

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

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


Re: [android-developers] ScSI

2011-04-25 Thread Mark Murphy
On Mon, Apr 25, 2011 at 1:00 AM, suhas  wrote:
> Can we send ScSI commands from Application in Android 3.0 (honey comb)
> to external hard drives(for eg SD Card )

There is no support for SCSI in Android. Considering that SCSI has
been dead for a decade or so, AFAIK, I'll be stunned if it is ever
added.

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

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

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


Re: [android-developers] Gingerbread build error

2011-04-25 Thread Mark Murphy
On Sun, Apr 24, 2011 at 1:53 AM, Milton  wrote:
> I am trying to build latest GB source code on Ubuntu 10.04.

This list is for developing applications with the Android SDK. Please
visit http://source.android.com and find a more suitable group for
your questions.

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

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

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


  1   2   3   >