Re: [android-developers] When should I leave a service running?

2011-06-16 Thread appel
Ok, thanks. When the documentation says one thing and existing (popular and 
high rated) apps do something else it just makes me think I've missed 
something. Guess I haven't then. 

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

2011-06-16 Thread Yahel
The "Ice Cream Sandwich" Android team ???

These guys never stop, I eagerly wait of their "Tomorrow Lottery
Numbers" API. Such an helpful piece of coding.

Do you think they'll include a getCellPhoneNumberForStalkingPurposes()
and a howToGetInHerPantsToBeACelebrityToo() method in the celebrity
one ?

I sure could you use the fame :s

Yahel

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

2011-06-16 Thread Chi Kit Leung
do you mean install apk from internet?
On Fri, Jun 17, 2011 at 8:34 AM, Mark Murphy wrote:

> On Thu, Jun 16, 2011 at 11:44 AM, Robert Slama  wrote:
> > exist any way how I can get URL from what was apk installed direct in
> > instaled application?
>
> No, sorry.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version
> 1.9.9 Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards,
Michael Leung
http://www.itblogs.info
http://www.michaelleung.info

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

2011-06-16 Thread Yahel
That's what the first three lines of your stacktrace suggest.

Yahel

On 16 juin, 18:33, Felix Garcia Lainez 
wrote:
> Umm... So the error is on one of my touchevents implementations for
> textview objects (and subclass like edittext)?
>
> On 16 jun, 15:00, Yahel  wrote:
>
>
>
>
>
>
>
> > > really would be crazy, no?
>
> > Crazy ? Yes ! Tedious ? Yes !
>
> > But you can probably narrow it down since it is raised by a TextView
> > ontouch event.
>
> > Have fun :)
>
> > Yahel

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

2011-06-16 Thread Zsolt Vasvari
I believe this will be part of the upcoming Bollywood API:

http://groups.google.com/group/android-developers/browse_thread/thread/3e7d0716e2d29605#



On Jun 17, 1:43 pm, maliha  wrote:
> After implementing the facebook recommendation plugin on my website,
> the user gets a personalized experience wherein all the pages liked on
> my website are sorted based on his/her social graph. I want to access
> the personalized ordering of the links as the user sees and show them
> in my android application.
>
> Is there a direct way to integrate/implement the facebook
> recommendation plugin into android application? If not what is the
> work around?
>
> Cheerio!
> - Maliha.

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


[android-developers] Facebook social plugin in android.

2011-06-16 Thread maliha
After implementing the facebook recommendation plugin on my website,
the user gets a personalized experience wherein all the pages liked on
my website are sorted based on his/her social graph. I want to access
the personalized ordering of the links as the user sees and show them
in my android application.

Is there a direct way to integrate/implement the facebook
recommendation plugin into android application? If not what is the
work around?

Cheerio!
- Maliha.

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

2011-06-16 Thread Chris
I'm totally going to make a deadpool app using this api!  +1!

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

2011-06-16 Thread TreKing
On Thu, Jun 16, 2011 at 11:33 PM, Dianne Hackborn wrote:

> public class CelebrityInfo {
> String name;
> int fame;
> int health;
> }
>

This API looks awesome. Please consider including int mentalHealth, int
numIllegitimateChildren, int numSexTapes, and int numNudeTwitterPics which
shall be crucial in tracking today's modern celebrity.

-
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] Xperia play Hard button

2011-06-16 Thread Halsafar
I realize the Xperia play has hard buttons on it (dpad + standard
playstation controller buttons).  I also know these buttons just map
to KeyEvents of existing buttons.  What I'd like to know is what do
they map to?  How as a developer do I add support for this device
without actually having one to test on?  Is there a default mapping
like "Circle" maps to "Key.W", something to rely on.


Thanks,
Stephen Damm

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

2011-06-16 Thread Halsafar
Answer it myself, here is a list of buttons and their key code
mapping:
http://www.ixplora.com/develop-gaming-apps-xperia-play-gamepad/

On Jun 16, 10:40 pm, Halsafar  wrote:
> I realize the Xperia play has hard buttons on it (dpad + standard
> playstation controller buttons).  I also know these buttons just map
> to KeyEvents of existing buttons.  What I'd like to know is what do
> they map to?  How as a developer do I add support for this device
> without actually having one to test on?  Is there a default mapping
> like "Circle" maps to "Key.W", something to rely on.
>
> Thanks,
> Stephen Damm

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

2011-06-16 Thread Thomas
You could I suppose implement your own algorithms... but you'd
basically be making your own OpenGL implementation and reinventing the
wheel.

OpenGL ES is the way to go for hardware-accelerated 3D on Android
(unless you're a fan of renderscript).

If you don't already know OpenGL, there are plenty of places to learn
it from.

Thomas

On Jun 13, 9:04 pm, rysk  wrote:
> hi,
>       I am trying to develop a 3D user interface using 2D API? Is It
> possible or should  I use OPEN GL ES? If possible can you please give
> me some good links for the same?
>
> thanks in advance.

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


Re: [android-developers] android celebrites api

2011-06-16 Thread Dianne Hackborn
Ice Cream Sandwhich will have a new API for this.  It looks like this:

package android.glitz;

public class CelebrityInfo {
String name;
int fame;
int health;
}

public abstract class Celebrities {
public void getPublicCelebrities(List outCelebrities);
public void getPersonalCelebrities(String person, List
outCelebrities);

static Celebrities getLocalCelebrities(Location where);
}

If you make a Location in the bollywood or hollywood area, it will return
the appropriate Celebrities implementation for that location.

On Thu, Jun 16, 2011 at 9:24 PM, yanamala siddaiah <
siddaiahforj...@gmail.com> wrote:

> I want to know the celebrities in bolly wood and holly wood . and
> their information .
>
>
> pls provide api . if available .
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
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] android celebrites api

2011-06-16 Thread yanamala siddaiah
I want to know the celebrities in bolly wood and holly wood . and
their information .


pls provide api . if available .

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


Re: [android-developers] UUID in Bluetootht sample

2011-06-16 Thread wu mark
Dear Kris :

I don't see any error message from Eclipse console. So I add display
instruction to trace, so I know it fail in the below command :

BluetoothSocket socket = device.createRfcommSocketToServiceRecord(MY_UUID);

But I don't know why.

Thanks for your patience & kindly teaching.

Best Regards,
Mark

2011/6/16 Kristopher Micinski 

> Hrrm... and what did the exception tell you? The exception has a .text
> field that will tell you why it fails. What did that say?
>
>  On Jun 16, 2011 5:46 AM, "wu mark"  wrote:
>
> Dear Kris :
>
>  Thanks.
>
> I use a Viewpad & Acer A500 to communicate through the bluetooth.
>
> Mark
>
>  2011/6/15 Kristopher Micinski 
> >
> > Looks like you have the code right,  if y...
>
>   --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: Honeycomb: Intent-Call to show the Battery-Chart?

2011-06-16 Thread Chris
Its called job security.

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

[android-developers] Re: Is there a launchMode or an Intent flag for this?

2011-06-16 Thread Yong Ma

Set B's finishOnTaskLaunch true. It may help you.

On Jun 17, 2:23 am, Kostya Vasilyev  wrote:
> Does anyone know if there is a way to start a new activity into an existing
> task, so it becomes the new task root if it doesn't already exist within the
> task?
>
> It might look like this:
>
> Let's say, the package has two activities, A (which is a LAUNCHER / MAIN)
> and B (which is not).
>
> Now at some point, the task stack has either A, and B on top of it, or just
> B all by itself.
>
> I'd like to launch A from outside the task (a status bar notification, etc.)
> so that:
>
> - If A already exists with the task (A -> B), I'd like B to be finished.
>
> Settting FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TOP or
> clearTaskOnLaunch does this quite nicely.
>
> - If the task only has B, I'd like B to also be finished, and A to become
> the new task root.
>
> I'm having trouble finding anything that would let me implement this second
> case.
>
> It seems to me that clearTaskOnLaunch for A in the manifest should do this,
> but it doesn't: B stays within the task as its root, and A is launched on
> top of it.
>
> Am I missing something and it can be done, or is this really not possible
> with just something in the manifest / intent flags?
>
> Thanks,
> -- Kostya

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

2011-06-16 Thread Dianne Hackborn
Most games are fundamentally designed to run at one orientation, so locking
isn't an issue. :)

If you can actually allow the user to run at different orientations, you can
certainly rely on the screen lock setting to take care of that.  I can see
it also being useful to allow them to select an orientation in your specific
app as well -- possibly representing three rotations, regular and +90 and
-90 (180 is probably not that interesting), as well as a default setting to
use the orientation the system picks.

It would certainly be nice if everything on the Xoom ran at 60fps.  As it
stands, when a rotation is applied some parts of the UI can't achieve that.
 I'm not sure what more I can say to that point.  It's not like with a
rotation nothing can run at 60fps; it depends on how complicated the app's
rendering is.  For example Launcher's UI is crazy complicated -- between the
parallax wallpaper, and various layers in its UI, there were a lot of tricks
pulled out of the hat to get that to run generally at 60fps.  It turns out
that when the screen is rotated on the Tegra 2 some of those tricks can't be
used.

On Thu, Jun 16, 2011 at 7:13 PM, Robert Massaioli  wrote:

> You are right in that I would have locked them into the slow case, but I
> guess I just find it odd that there is a slow case at all when it comes to
> orientation. So yes, I will re-consider not locking the orientation based on
> your advice. However, what would you suggest if you game should have its
> orientation locked? Let the user lock it themselves in the settings menu? Or
> maybe making an ingame setting that lets them lock the orientation in-game
> at runtime?
>
> As for fragmentation, I did not think that I was complaining about
> fragmentation but I see the point you were making there too.
>
> Also, I was not trying to say that you lied at all, nothing could be
> further from the truth, I was just letting you know what it looked like from
> an outside perspective.
>
> Finally, I am not saying that 30fps is bad, for pretty much every game it
> is a good framerate. However, it is noticeable for a user when they jump
> from 60fps to 30fps and that was what I was trying to avoid. (And I'm not
> even going to get started talking about the iPad's flaws; needless to say
> (but I'll say it anyway) I am developing for Android because I am a fan of
> Android)
>
> Said with good intent towards productive discussion,
> Robert
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] Re: Honeycomb Lag Demonstrated and Explained

2011-06-16 Thread Zsolt Vasvari
The Xoom already has a user-selectable orientation lock.

On Jun 17, 10:13 am, Robert Massaioli 
wrote:
> You are right in that I would have locked them into the slow case, but I
> guess I just find it odd that there is a slow case at all when it comes to
> orientation. So yes, I will re-consider not locking the orientation based on
> your advice. However, what would you suggest if you game should have its
> orientation locked? Let the user lock it themselves in the settings menu? Or
> maybe making an ingame setting that lets them lock the orientation in-game
> at runtime?
>
> As for fragmentation, I did not think that I was complaining about
> fragmentation but I see the point you were making there too.
>
> Also, I was not trying to say that you lied at all, nothing could be further
> from the truth, I was just letting you know what it looked like from an
> outside perspective.
>
> Finally, I am not saying that 30fps is bad, for pretty much every game it is
> a good framerate. However, it is noticeable for a user when they jump from
> 60fps to 30fps and that was what I was trying to avoid. (And I'm not even
> going to get started talking about the iPad's flaws; needless to say (but
> I'll say it anyway) I am developing for Android because I am a fan of
> Android)
>
> Said with good intent towards productive discussion,
> Robert

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

2011-06-16 Thread Robert Massaioli
I also realise that in my last email I forgot to say thank you for 
responding with what the actual issue was about overlays not 
being rotatable. So thank you very much for taking the time to let me know 
what the root cause was.

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

2011-06-16 Thread patw
I got email from Google that my download count was fixed on Monday
11am PST.  I checked and it was fixed.  However it is broken again.  I
have not gotten any updates since Monday.  I have sent them another
request for help.  I wonder how everyone else is doing?  Have your
problem been fixed?

On Jun 10, 10:09 am, patw  wrote:
> Here's how I filed my problem report:
> developer console -> Help -> Publishing Issues -> Fill in the
> Publishing Issues Form.
>
> On Jun 10, 7:15 am, Adam Ratana  wrote:
>
> > If you don't mind, what facility did you use to contact them? I would
> > like to also ask some questions about some uncharged (and now expired)
> > authorizations that have happened, as well as add to their reports
> > about this problem.
>
> > On Thu, Jun 9, 2011 at 10:17 PM, patw  wrote:
> > > I contacted the Android Market Team.  They responded pretty quickly.
> > > They said they are aware of reports of this problem from some
> > > developers and
> > > are striving to resolve the problem as soon as possible.
>
> > > On Jun 9, 10:26 am, Stephen Damm  wrote:
> > >> On 6/9/2011 10:48 AM, Mike wrote:
>
> > >> > yes, I have one at 133%
>
> > >> > On Jun 9, 8:09 am, Adam Ratana  wrote:
> > >> >> Has anyone else notice the total # of downloads has beenstuckthe last 
> > >> >> few
> > >> >> days in the market stats?
>
> > >> >> Mine has stayed the same for my apps, while the # of active installs 
> > >> >> has
> > >> >> increased.  For example, for one app, the # of active installs is 
> > >> >> now>  than
> > >> >> the total # of downloads and the active install% is 101%.
>
> > >> Mine isstuckas well over the last week.
>
> > >> I'm expecting the numbers to flood in eventually with a flood of 
> > >> comments...
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Adam Ratana
> > adam.rat...@gmail.com

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


Re: [android-developers] Honeycomb Lag Demonstrated and Explained

2011-06-16 Thread Robert Massaioli
You are right in that I would have locked them into the slow case, but I 
guess I just find it odd that there is a slow case at all when it comes to 
orientation. So yes, I will re-consider not locking the orientation based on 
your advice. However, what would you suggest if you game should have its 
orientation locked? Let the user lock it themselves in the settings menu? Or 
maybe making an ingame setting that lets them lock the orientation in-game 
at runtime?

As for fragmentation, I did not think that I was complaining about 
fragmentation but I see the point you were making there too.

Also, I was not trying to say that you lied at all, nothing could be further 
from the truth, I was just letting you know what it looked like from an 
outside perspective.

Finally, I am not saying that 30fps is bad, for pretty much every game it is 
a good framerate. However, it is noticeable for a user when they jump from 
60fps to 30fps and that was what I was trying to avoid. (And I'm not even 
going to get started talking about the iPad's flaws; needless to say (but 
I'll say it anyway) I am developing for Android because I am a fan of 
Android)

Said with good intent towards productive discussion,
Robert

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

2011-06-16 Thread Dianne Hackborn
There's always more to do. :)

On Thu, Jun 16, 2011 at 3:57 PM, Devomat  wrote:

> Thanks, but sad :)
>
> On 16 Jun., 23:22, Dianne Hackborn  wrote:
> > See those magical string constants you have put in your code?  Don't do
> > that.
> >
> > There is currently no API for this, sorry.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Jun 16, 2011 at 8:39 AM, Devomat  wrote:
> > > Hello,
> >
> > > I want to show the Battery-Chart with a button click:
> >
> > >  Intent intent = new Intent(Intent.ACTION_MAIN);
> > >  intent.addCategory(Intent.CATEGORY_LAUNCHER);
> > >  intent.setComponent(new
> >
> > >
> ComponentName("com.android.settings","com.android.settings.BatteryHistory"));
> > >  intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> > > PendingIntent pendingIntent = PendingIntent.getActivity(context, 0,
> > > intent, 0);
> >
> > > But it doesn't work.
> >
> > > Any solutions?
> >
> > > 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
> >
> > --
> > 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

Re: [android-developers] Honeycomb Lag Demonstrated and Explained

2011-06-16 Thread Dianne Hackborn
I am not going to continue to argue this, but no.  It does not.  You are
tying your game to a particular device with a particular behavior.  As I
said, it is perfectly possible for someone to make a Tegra 2 tablet that is
portrait dominant and now what have you done?  Made sure your game would be
in the slow case.  With no way for the user to get out of it.  You don't get
to complain about fragmentation at that point. :p

Re:

On Thu, Jun 16, 2011 at 6:20 PM, Robert Massaioli  wrote:

> As for what you said about not having certain optimisations for various
> layouts, well, when you go from 60 fps down to 30 fps (as was demonstrated
> in the video) it starts to look much more like a bug and much less like a
> missing optimisation.
>

Well it isn't.  I just told you what it is.  So are you saying I lied to
you?  Thanks.

Btw, the first iPad generally ran at 30fps.  Just to keep this in
perspective.

-- 
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: Implementing Auto-Update of an Application

2011-06-16 Thread Nikolay Elenkov
On Fri, Jun 17, 2011 at 7:25 AM, William Ferguson
 wrote:
>
> On Jun 16, 11:38 pm, Kostya Vasilyev  wrote:
>> Putting a file with latest version number somewhere on your own server seems
>> easier to me - at the cost of having to update the file after each new
>> release.
>
> Which is what I have actually done, and it works well.
> But its on my TODO list to just use the Market API. Then I can remove
> the section of my build that populates and posts latest version
> details to my web server. Not that that that's tricky - after all I'm
> using Maven to build. But less is always more in my book.
>

The problem with this is that the API needs a *real* device ID to
work properly (otherwise some apps are not shown, etc.). Getting
the ID using code  is not possible (last time I checked, at least on
an unrooted device). Things also change/break without warning, so
it may not be too reliable. Checkout their Google group for details.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Extending RelativeLayout, overriding dispatchDraw() to create a zoomable ViewGroup - problem with child view clipping

2011-06-16 Thread Romain Guy
You are scaling the Canvas and not the View itself, the children have
absolutely no knowledge that you are doing so. When invalidate() is
invoked on the children, how could they know that you intend to scale
them? They can't (unless you use Android 3.0+ and the new scale()
method.) The problem is not in ViewGroup, it's in your code: you need
to take the scale factor into account when you invalidate the children
(call invalidate(left, top, right, bottom) on the parent instead.)

On Thu, Jun 16, 2011 at 6:08 PM, Trev16v  wrote:
> Hello,
>
> In my application I need to have a floor plan diagram which can be
> panned and zoomed. On this diagram are to be a series of small
> markers. Those little marker Views need to have invalidate() called
> frequently on them because the graphics drawn to their Canvas is being
> animated. I have been trying to implement an extended RelativeLayout,
> which I call ZoomableRelativeLayout, which would enable me to perform
> simultaneous zooming on all child Views of the ViewGroup. That is, the
> large floor plan graphic and its markers, all of which are child
> Views, will simultaneously zoom and pan together.
>
> In my ZoomableRelativeLayout, I have attempted to perform scaling
> (zooming) to the Canvas within the overridden dispatchDraw() method,
> like this:
>
> protected void dispatchDraw(Canvas canvas){
>    canvas.save(Canvas.MATRIX_SAVE_FLAG);
>    canvas.scale(mScaleFactor, mScaleFactor);
>    super.dispatchDraw(canvas);
>    canvas.restore();
> }
>
> The mScaleFactor is manipulated by a ScaleListener in the same class.
>
> It does actually work. I can pinch to zoom the ZoomableRelativeLayout,
> and all of the views held within properly rescale together.
>
> Except there's a problem. When the scale is 1, the animated child
> views are seen to redraw periodically perfectly fine. However, when
> the scale is other than 1, (e.g. when zooming in), those animated
> child views are only seen to update in a small clipped portion of
> their area - or not at all - depending on the zoom scale.
>
> The problem appears to be that the 'invalid area', or clipping area,
> for each view seems to remain as if no scaling had been applied to the
> Canvas in dispatchDraw(). If for example my ZoomableRelativeLayout
> were to contain a single, simple View that draws a filled rectangle,
> and it animated by flipping its colour every second via invalidate()
> and onDraw(), then at a zoom of 1 it'll appear as it should do.
> However, begin to gradually zoom in, the size of the square expands
> and moves away from its original position. The only part of the square
> that animates is whatever part of it still sits underneath that
> square's original 'area'.
>
> I have tried looking over the source for ViewGroup to see if I could
> spot any solution to this problem, and the best thing I could spot was
> to clear the FLAG_CLIP_CHILDREN via setClipChildren(false). Inspection
> of the source of ViewGroup seemed to suggest that clipping would no
> longer be applied, but unfortunately this change has had no visible
> effect and the problem persists.
>
> Probably worth mentioning is the fact that whenever I am actually
> zooming in and out, or when I'm panning the ViewGroup, all of the
> marker child View graphics *do* periodically redraw properly. So, for
> example, when I'm panning the floor plan around or zooming, my markers
> are seen to properly animate. Now when I'm zooming, invalidate() is
> being called on the ViewGroup itself, obviously; and presumably calls
> to scrollBy() to perform my panning lead to an invalidate() on the
> ViewGroup too. It seems that invalidation of the ViewGroup leads to an
> entire redraw which draws the child views with the clipping bounds
> scaled as well, so that the child Views' graphics are properly updated
> on the display. Calling invalidate() on the individual child Views
> still causes a call to the ViewGroup's dispatchDraw(), but for some
> reason the clipping area is then 'unscaled'.
>
> Am I on a bit of a loser with my zoomable ViewGroup strategy?
>
> Thanks,
>
> Trev
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

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

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

Re: [android-developers] Honeycomb Lag Demonstrated and Explained

2011-06-16 Thread Robert Massaioli
For the game that I am currently making if you look at it upside down or 
from any other perspective it does not affect your ability to play the game. 
Similar to how you can put a board game on a table and anybody from any 
direction can still play it. So, for me, it actually makes perfect sense to 
lock the screens orientation because it simply does not matter and it would 
actually annoy users more if the screen rotated with them because they might 
just want to look at it upside down.

If that does not work for your App then fine, don't do it.

As for what you said about not having certain optimisations for various 
layouts, well, when you go from 60 fps down to 30 fps (as was demonstrated 
in the video) it starts to look much more like a bug and much less like a 
missing optimisation.

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

[android-developers] Aligning tabs as center horizontal

2011-06-16 Thread Manish Garg
Hi All,

I want to align my tabs as center horizontal and want to use the side
space to place other buttons. Is it possible. I want that tab content
use complete space but tab title get aligned center horizontal.

Regards,
Manish

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] compile in NDK, 3rd party shared library linked error

2011-06-16 Thread 郭维江
thank you for receiving your response ! i will post this mail to
android-ndk .
 i have fixed the mistake you pointed , but still doesn't work. the console
displayed :

/home/apt/workspace/BCTI/jni/libstaticbcti.a: could not read symbols:
File in wrong format
collect2: ld returned 1 exit status

and i think may be because the 3rd party shared library is build by gcc
instead of NDK arm
i don't know whether the other compiler built shared library can be linked
by NDK

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

[android-developers] Extending RelativeLayout, overriding dispatchDraw() to create a zoomable ViewGroup - problem with child view clipping

2011-06-16 Thread Trev16v
Hello,

In my application I need to have a floor plan diagram which can be
panned and zoomed. On this diagram are to be a series of small
markers. Those little marker Views need to have invalidate() called
frequently on them because the graphics drawn to their Canvas is being
animated. I have been trying to implement an extended RelativeLayout,
which I call ZoomableRelativeLayout, which would enable me to perform
simultaneous zooming on all child Views of the ViewGroup. That is, the
large floor plan graphic and its markers, all of which are child
Views, will simultaneously zoom and pan together.

In my ZoomableRelativeLayout, I have attempted to perform scaling
(zooming) to the Canvas within the overridden dispatchDraw() method,
like this:

protected void dispatchDraw(Canvas canvas){
canvas.save(Canvas.MATRIX_SAVE_FLAG);
canvas.scale(mScaleFactor, mScaleFactor);
super.dispatchDraw(canvas);
canvas.restore();
}

The mScaleFactor is manipulated by a ScaleListener in the same class.

It does actually work. I can pinch to zoom the ZoomableRelativeLayout,
and all of the views held within properly rescale together.

Except there's a problem. When the scale is 1, the animated child
views are seen to redraw periodically perfectly fine. However, when
the scale is other than 1, (e.g. when zooming in), those animated
child views are only seen to update in a small clipped portion of
their area - or not at all - depending on the zoom scale.

The problem appears to be that the 'invalid area', or clipping area,
for each view seems to remain as if no scaling had been applied to the
Canvas in dispatchDraw(). If for example my ZoomableRelativeLayout
were to contain a single, simple View that draws a filled rectangle,
and it animated by flipping its colour every second via invalidate()
and onDraw(), then at a zoom of 1 it'll appear as it should do.
However, begin to gradually zoom in, the size of the square expands
and moves away from its original position. The only part of the square
that animates is whatever part of it still sits underneath that
square's original 'area'.

I have tried looking over the source for ViewGroup to see if I could
spot any solution to this problem, and the best thing I could spot was
to clear the FLAG_CLIP_CHILDREN via setClipChildren(false). Inspection
of the source of ViewGroup seemed to suggest that clipping would no
longer be applied, but unfortunately this change has had no visible
effect and the problem persists.

Probably worth mentioning is the fact that whenever I am actually
zooming in and out, or when I'm panning the ViewGroup, all of the
marker child View graphics *do* periodically redraw properly. So, for
example, when I'm panning the floor plan around or zooming, my markers
are seen to properly animate. Now when I'm zooming, invalidate() is
being called on the ViewGroup itself, obviously; and presumably calls
to scrollBy() to perform my panning lead to an invalidate() on the
ViewGroup too. It seems that invalidation of the ViewGroup leads to an
entire redraw which draws the child views with the clipping bounds
scaled as well, so that the child Views' graphics are properly updated
on the display. Calling invalidate() on the individual child Views
still causes a call to the ViewGroup's dispatchDraw(), but for some
reason the clipping area is then 'unscaled'.

Am I on a bit of a loser with my zoomable ViewGroup strategy?

Thanks,

Trev

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

2011-06-16 Thread Dianne Hackborn
Um.  Don't look the screen into landscape.  WTF.  Just don't.

On some hardware you may get different performance in different
orientations.  Looking into landscape isn't a magical fix, it just pisses
off your users.

There are optimizations on Tegra 2 that can be done when the screen isn't
rotated from its natural orientation (which on the Xoom is landscape, but
that is just the Xoom and other Tegra 2 devices may use portrait as their
natural orientation).  In this case I believe that overlays on Tegra 2 can't
be rotated, so when in the natural orientation they can be used for window
surfaces but can't be used in any other rotation.

On Thu, Jun 16, 2011 at 5:30 PM, Robert Massaioli  wrote:

> This is sort of a Dev community FYI based on the post I made here on
> reddit: http://redd.it/i0slo
>
> Essentially when most Tegra 2 based tablets, like the Xoom or Samsung
> Galaxy Tab 10.1 are put in any mode other than standard rotation then fps
> chokes.
>
> The Android issue is 
> here
> .
> To see romainguy talking about the issue watch this for about 60 
> seconds
> .
>
> Now if you want to actually avoid this issue completely then my only
> solution is to lock the screen orientation into standard 
> landscapefor
>  your games.
>
> If anybody knows more about this issue like:
>
>- If the problem is truly due to Android or Nvidia (or both)?
>- If it is due to Android, where the code is in the source that causes
>   the problem.
>- Where we can read more on the problem? (Or even better fixes)
>- When we can expect a fix?
>
> Then I would be really interested in reading it. I hope this helps some
> developers and keeps some games running faster until this problem is fixed,
> Robert
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] The multiple camera problem.

2011-06-16 Thread Kofi Jedamzik
Hi there!

I hope this is the right place for my post, please apologize if not.

If you try to open two cameras simultaneously you probably will get an
"lockIfMessageWanted" from CamerasService.

2009 Dianne Hackborn (Android framework engineer) wrote "Not currently
supported, sorry." (http://goo.gl/PpIfH)
hmm ... somewhat disappointing ... but that’s long time ago...

A brief look to the RN show:
API Level 9 (Android 2.3): Support for multiple cameras
/*
* Switching between front and back cameras is done by setting
* the "camera-id" parameter. Note the back camera is selected
* by using a value of 1, whereas the front camera is selected
* using a value of 2. 0 is not a valid selection.
*/
But this is for SELECTING multiple cameras ONLY!?
(http://goo.gl/rKPGd, http://goo.gl/ug7Hg)
Switching them is not really "multiple camera support"  ...except I
can switch about 60 times per second :-)
I need to open two cameras simultaneously!
I do not understand why the second camera is locked when only the first is used?
Is this an insufficiency of the API or of the hardware design? May be
both cameras are using the same LVCMOS "bus“???

Is it possible to make it work with a custom shared library, which
uses the cameraservice without making the "unnecessary" lock?

I am such as desperate considering the use of an external USB CAM!
API Level 12 (Android 3.1) Support for more varieties of input devices
such as [...] digital cameras [...]
I was not able to give it a try yet but in the Android API Differences
Report we'll find a USB class for video devices in
android.hardware.usb.UsbConstants. Is there anyone who was able to
capture video from an external Webcam on Honeycomb yet?

I really want this issue solved :(
Please help me to understand why this is not possible and may be how
to find a solution or workaround.

Kind regards

Kofi Jedamzik

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


[android-developers] Honeycomb Lag Demonstrated and Explained

2011-06-16 Thread Robert Massaioli
This is sort of a Dev community FYI based on the post I made here on 
reddit: http://redd.it/i0slo

Essentially when most Tegra 2 based tablets, like the Xoom or Samsung Galaxy 
Tab 10.1 are put in any mode other than standard rotation then fps chokes.

The Android issue is 
here
.
To see romainguy talking about the issue watch this for about 60 
seconds
.

Now if you want to actually avoid this issue completely then my only 
solution is to lock the screen orientation into standard 
landscapefor
 your games.

If anybody knows more about this issue like:

   - If the problem is truly due to Android or Nvidia (or both)?
   - If it is due to Android, where the code is in the source that causes 
  the problem.
   - Where we can read more on the problem? (Or even better fixes)
   - When we can expect a fix?

Then I would be really interested in reading it. I hope this helps some 
developers and keeps some games running faster until this problem is fixed,
Robert

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

[android-developers] How to get phonetic transcription from Android TTS API

2011-06-16 Thread Douglas Fonseca
Hi all!
I'm working in an app that needs the phonetic transcription of a text input
to use it to mouth movement of an animation.
Does someone know how to get this from Android TTS?
Thanks!
---
Douglas Fonseca
Computer Engineering 2010
State University of Campinas - Unicamp
http://www.ic.unicamp.br/

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

2011-06-16 Thread Devomat
Thanks, but sad :)

On 16 Jun., 23:22, Dianne Hackborn  wrote:
> See those magical string constants you have put in your code?  Don't do
> that.
>
> There is currently no API for this, sorry.
>
>
>
>
>
>
>
>
>
> On Thu, Jun 16, 2011 at 8:39 AM, Devomat  wrote:
> > Hello,
>
> > I want to show the Battery-Chart with a button click:
>
> >  Intent intent = new Intent(Intent.ACTION_MAIN);
> >  intent.addCategory(Intent.CATEGORY_LAUNCHER);
> >  intent.setComponent(new
>
> > ComponentName("com.android.settings","com.android.settings.BatteryHistory"));
> >  intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> > PendingIntent pendingIntent = PendingIntent.getActivity(context, 0,
> > intent, 0);
>
> > But it doesn't work.
>
> > Any solutions?
>
> > 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
>
> --
> 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: inflate Vs intent

2011-06-16 Thread New Developer
Fragments has some positive
Just calling the layout  it appears to render normally
orange selector colors, correct backgrounds etc..

My struggle now is  the layout has a button  how do I assign the onClickListener

This is called from the Main standard activity

FragmentManager   fragmentManager= 
getFragmentManager();
FragmentTransaction   fragmentTransaction= 
fragmentManager.beginTransaction();
myMenufragment   = new myMenu();
fragmentTransaction.add(R.id.menu2, fragment);
fragmentTransaction.commit();

Button  button;
button = (Button) findViewById(R.id.visit_function);


myMenu  extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle 
savedInstanceState) {
return inflater.inflate(R.layout.menu, container, false);
}

button is  null  and thus any button.  returns Null pointer errors
Also how would you fill in or read  text   setText and getText   from an  
EditText  also within the  layout opened by  myMenu's  onCreateView


thanks in advance



On Jun 16, 2011, at 6:25 AM, Droid wrote:

> 
> I think fragments can do that, but I have not got my head around them
> yet.
> Also, I have never changed 'part' of a layout just on its own without
> redrawing all of it. Sorry I am not much help.
> 
> 
> 
> On Jun 16, 2:46 am, New Developer  wrote:
>> create a simple layout.xml  with a Button and TextEdit
>> 
>> Then call that layout using  intent  and  then call the same layout using 
>> inflate
>> and see the difference.
>> 
>> Droid if you avoid inflate,  is there a way to call intent, but only use 
>> part of the screen
>> by that I mean I have a home page layout which has a framelayout as part of 
>> the screen
>> how can I use intent and fill just the framelayout with the new intent's 
>> layout ?
>> 
>> at present I only know that intent will change the whole screen.
>> 
>> So
>> Main layout.xml
>> 
>> |  layout  |layout 2|
>> |  1  |   |
>> |  |-|
>> |  |  layout 3  |
>> |  |  |
>> 
>> 
>> I just want to fill layout 3  with other layouts  using intent,  is this 
>> possible ??
>> 
>> thanks in advance
>> 
>> On Jun 15, 2011, at 8:00 PM, Dianne Hackborn wrote:
>> 
>> 
>> 
>>> My head is now exploding.  This discussion makes no sense at all. :p
>> 
>>> On Wed, Jun 15, 2011 at 3:34 PM, Droid  wrote:
>>> Yes, I noticed that inflate code has not so many attributes as in xml
>>> layout files.
>>> I generally avoid inflate for the reasons you stated. Not really sure
>>> what is going on behind the scenes.
>> 
>>> On Jun 15, 6:39 pm, New Developer  wrote:
 Thanks
>> 
 my OnCreate()  has nothing in it.
 The only thing different is the method of calling the exact same  layout
 1) using intentand2) using inflate
>> 
 The intent appears normal   the  the inflate appears transparent  even
 when the button is clicked, or text is select the  original highlight 
 color Orange is  gray  under  inflate.
>> 
 Thanks
>> 
 On Jun 15, 2011, at 10:47 AM, Marcin Orlowski wrote:
>> 
> You do not run the layout. You do not call it nor call it with the 
> intent. All you now comparing is bit nonsense as it is intent sent to 
> your application vs inflating xml file. Not much comparable. Check your 
> code in activity's onCreate() for anything extra you do there or check 
> your code around inflate() to see if you do not miss anything you do in 
> onCreate().
>> 
> Regards,
> Marcin Orlowski
>> 
> Tray Agenda - keep you daily schedule handy...
> Date In Tray - current date at glance...
> WebnetMobile on Facebook and Twitter
>> 
> On 15 June 2011 16:33, New Developer  wrote:
> I have a layout with a button and EditText  fields
>> 
> IF I call the layout using  intent
> intent.setClass(getApplicationContext(), eedsClientActivity.class...
> startActivity(
>> 
> The Buttons have a light gray background neat black text
> and the EditText a white background
>> 
> IF I call the layout using  inflate
> inflate.inflate(R.layout.client_single,parent);
>> 
> The Buttons have a dull gray background , Large white text
> and the EditText appear transparent, almost see through background 
> slightly grayish
>> 
> Why the Difference  it is the same .xml layout ??
>> 
> What additionally is called By intent  that inflate does not call ?
>> 
> thanks in advance
>> 
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.

Re: [android-developers] Broadcasts within an APK

2011-06-16 Thread Mark Murphy
Use setPackage() on the Intent, though I think this only showed up
with Android 2.2.

On Thu, Jun 16, 2011 at 11:57 AM, Alan  wrote:
> Hi,
>
> Is it possible to have broadcasts that are only sent within an APK?  I
> know that I can secure a broadcast using a custom permission string
> that I declare in the manifest.  However, I do not want the user to
> have to approve a random permission just for internal usage.  Also, I
> definitely don't want other APKs to have access to the broadcasts by
> using that permission.  The broadcasts will have very sensitive data
> in them.
>
> The only idea I have to get around this issue is to emulate broadcasts
> using service Intents and an observer pattern.  Any other ideas?
>
> Best,
> Alan
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

_The Busy Coder's Guide to *Advanced* Android Development_ Version
1.9.9 Available!

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


Re: [android-developers] installation URL in apk

2011-06-16 Thread Mark Murphy
On Thu, Jun 16, 2011 at 11:44 AM, Robert Slama  wrote:
> exist any way how I can get URL from what was apk installed direct in
> instaled application?

No, sorry.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version
1.9.9 Available!

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


[android-developers] Re: Implementing Auto-Update of an Application

2011-06-16 Thread William Ferguson

On Jun 16, 11:38 pm, Kostya Vasilyev  wrote:
> Putting a file with latest version number somewhere on your own server seems
> easier to me - at the cost of having to update the file after each new
> release.

Which is what I have actually done, and it works well.
But its on my TODO list to just use the Market API. Then I can remove
the section of my build that populates and posts latest version
details to my web server. Not that that that's tricky - after all I'm
using Maven to build. But less is always more in my book.

William

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

2011-06-16 Thread Kostya Vasilyev
By using the right coordinates (and a clip rectangle, if necessary).

And if you made the font small enough, you could just use a dotted line for
the list item divider instead :)

And speaking of list item dividers: this could be a problem. Worst case,
tell the list view to not use any, and put them in your item layout, so you
can draw over them.

--
Kostya Vasilyev
17.06.2011 2:17 пользователь "Zsolt Vasvari"  написал:
> Thanks, How can I make sure that the font is cut at the right place so
> that it looks whole?
>
> On Jun 16, 10:22 pm, Kostya Vasilyev  wrote:
>> Paint half the text on one item, and the other half on the other, by
using a
>> special view that would offset the text's position before drawing (so
it's
>> clipped).
>>
>> Other than that, use a special view type, just for the text, and have
your
>> adapter inject them as necessary. You might put the standard list item
>> separator halfway down this special view.
>>
>> -- Kostya
>> 2011/6/16 Zsolt Vasvari 
>>
>>
>>
>> > I would like to put a small-font text between 2 line items of a
>> > ListView.  Basically, I would like the top half of the text to be over
>> > one list item and the bottom half to be over the other item.
>>
>> > I cannot think of a simple way of doing this, but can anyone even
>> > think of a difficult way?
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to
android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> >http://groups.google.com/group/android-developers?hl=en- 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

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

2011-06-16 Thread Zsolt Vasvari
Thanks, How can I make sure that the font is cut at the right place so
that it looks whole?

On Jun 16, 10:22 pm, Kostya Vasilyev  wrote:
> Paint half the text on one item, and the other half on the other, by using a
> special view that would offset the text's position before drawing (so it's
> clipped).
>
> Other than that, use a special view type, just for the text, and have your
> adapter inject them as necessary. You might put the standard list item
> separator halfway down this special view.
>
> -- Kostya
> 2011/6/16 Zsolt Vasvari 
>
>
>
> > I would like to put a small-font text between 2 line items of a
> > ListView.  Basically, I would like the top half of the text to be over
> > one list item and the bottom half to be over the other item.
>
> > I cannot think of a simple way of doing this, but can anyone even
> > think of a difficult way?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en- 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: Sliding Drawer

2011-06-16 Thread Dan
Turns out its possible only to the put it on the right edge or bottom
edge of the layout. Additional features for top and left and handles
would be great in the future.

On Jun 16, 11:48 am, Dan  wrote:
> Can a SlidingDrawer's handle be placed anywhere in the window, not
> just the edge of the window?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Pan/Zoom (Seat Map View) Major Airline

2011-06-16 Thread Alexander Lucas
Hi Dennis-

The best way to approach this depends on what platforms you're targetting.

For Honeycomb and later (api level: 11), it's actually pretty 
straightforward:  View has two methods, setScaleX and setScaleY
http://developer.android.com/reference/android/view/View.html#setScaleX(float)
http://developer.android.com/reference/android/view/View.html#setScaleY(float)

When you use these methods, touch events will be transformed appropriately 
during dispatch.

For Gingerbread and earlier, it's a little more involved.
The parent needs to override onInterceptTouchEvent, return true for 
everything in that method, and perform its own dispatch in onTouchEvent.
The parent also needs to perform the necessary transformation of the 
MotionEvent.  

Unless you're on at least Gingerbread, there's no way to get the individual 
touch points out of the MotionEvent, so children of the view will really 
only be able to respond to mono touch events (single finger).  From your 
description it doesn't sound like this part will present problems (I don't 
imagine you'll be selecting a seat by two-finger tapping it, for instance), 
but it's something to be aware of.  Also, this only effects the children 
you're manually dispatching events to-  The parent view will still be able 
to pinch zoom.


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

2011-06-16 Thread Fred Niggle
Try here:
http://androidforums.com/developer-101/181868-how-stream-music-internet-radio-station.html


Hope this is of use,
Fred
On 16/06/2011, Ruddee  wrote:
>
> Hi Guys,
>
> I am looking for help with the build of a basic Internet Radio App
> that plays back an internet Radio station from an IPhone,Blackberry
> and Andriod, I will be very grateful if this can be developed for me.
>
> I am running on a tight Budget at the moment but all I am looking for
> is something quite basic as described above.
>
> Any pointers will be helpful.
>
> Thanks for your help in Advance
>
> Rudde
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Passing Touch Event to Parent

2011-06-16 Thread Dianne Hackborn
http://developer.android.com/reference/android/view/ViewGroup.html#onInterceptTouchEvent(android.view.MotionEvent)

On Thu, Jun 16, 2011 at 7:58 AM, zosq  wrote:

> I have a custom ViewSwitcher in which I implemented touch events so I
> am able to scroll through screens using the touchscreen.
>
> My layout hierarchy looks like this:
>
> 
>
>
>
>
>
>
>
>
>
> 
>
> Now, the problem is that the touch events are being consumed by the
> ListViews and I am not able to switch the views. It works fine when I
> don't have the ListViews. I need to be able to scroll through the
> views and scroll the ListView. How do I solve this?
>
> Thanks in advance!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
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] Honeycomb: Intent-Call to show the Battery-Chart?

2011-06-16 Thread Dianne Hackborn
See those magical string constants you have put in your code?  Don't do
that.

There is currently no API for this, sorry.

On Thu, Jun 16, 2011 at 8:39 AM, Devomat  wrote:

> Hello,
>
> I want to show the Battery-Chart with a button click:
>
>
>  Intent intent = new Intent(Intent.ACTION_MAIN);
>  intent.addCategory(Intent.CATEGORY_LAUNCHER);
>  intent.setComponent(new
>
> ComponentName("com.android.settings","com.android.settings.BatteryHistory"));
>  intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> PendingIntent pendingIntent = PendingIntent.getActivity(context, 0,
> intent, 0);
>
>
> But it doesn't work.
>
>
> Any solutions?
>
> 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
>



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

2011-06-16 Thread Bob Kerns
(I don't mean this to dump on you -- really! But you need to understand why 
your question is hopeless, and is not going to get you any useful answers.)

I sympathize, I want to use chewing gum as a 3G-enabled digital camera, and 
that's not working out so well, either. And nobody else seems to understand 
that it's urgent; they just look at me funny.

You do realize that the iPhone / MacOS plist format is an Apple thing, 
right?

You don't say what makes you want to do this. Chewing gum is cheap, readily 
available, and sticky. I can stick it on the whiteboard for a meeting, or on 
a light post for a street cam, and it comes with built-in intuitive controls 
for morphing images so I can post funny pictures of my friends.

So why do you want to use Plists?

The modern MacOS Plist format is XML; I presume the same is true for the 
iPhone. So you can read it with any XML parser, and extract the information 
you need. Or you can use XSLT to translate it to something the Android 
system can use more directly, depending on just what information you're 
looking to extract.

Probably, what you are trying to do is as silly as my chewing-gum camera. 
But if not, you'd have to be a whole lot more clear on what you are trying 
to do, and why. And even then, I don't see that this is the appropriate 
group, as how to use an XML parser or XSLT are not Android questions. But my 
starting recommendation is to seriously consider that your starting idea of 
 using PLists may be wildly inappropriate. If you cannot (after some more 
thought) articulate a clear motivation, and clearly describe what you are 
trying to do, then I am  certain it's just chewing gum, and you should look 
for other ways to hold information, not Apple-proprietary, such as SQL 
databases or XML files.

If you DO have a good reason, then a clear statement of the problem will 
lead you to the answer, when combined with basic information like how to use 
an XML parser. And if it leads you to an  Android question, I'm sure people 
here will be much more able to help.

On Thursday, June 16, 2011 3:10:38 AM UTC-7, DID wrote:
>
> Hello, 
>
> I want to use Iphone plist files in my android apps i tried so 
> many task but still not found any solution if have anybody solution 
> then please tell me just simple example give in example 
>  One plist file 
> One class where the applying plist file 
> and one textview or listview where the set the value of plist 
>
> Please Help me As soon as possible i needs urgently.. 
>
> 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

Re: [android-developers] Display tearing Issue on Gingerbread

2011-06-16 Thread Dianne Hackborn
This is the wrong group.  Look at android-porting.

On Thu, Jun 16, 2011 at 7:44 AM, Suneel  wrote:

> Hi All,
>
> I have a display tearing issue on gingerbread.
> Scenario - From home screen go to settings menu under portrait mode.
> Using a cap sensor home key, I directly get back to home screen. But
> for initial 2-3 sec the home screen has tearing effect, half of the
> screen is displayed with the image of the background wallpaper and
> sometimes blank screen.
> Request to help/suggest me to understand the surface flinger flow in
> this scenario and what could be the possible reasons for this issue. I
> have 2 framebuffers for display and use flip mechanism.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Save user options in reboot

2011-06-16 Thread Dianne Hackborn
Ultimately the only stuff that is going to be saved across a reboot is stuff
written to a file.  It doesn't matter how you do it -- with a SQLite
database, with SharedPreferences, by writing your own file -- you need to
put it in a file.

On Thu, Jun 16, 2011 at 11:31 AM, Amita Dev wrote:

> Hi,
> Is it possible to save user selected options even after reboot of
> device?
> I would like to not to write all of my data in a file and then read it
> back.
>
> How do all applications save data even after reboot?
>
> Thanks,
> -A
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.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: How r things

2011-06-16 Thread Streets Of Boston
No, you don't need to come by. All is ok. 

But thanks for the offer!
:-)

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

2011-06-16 Thread hectordu...@yahoo.com
hey Richard, thanks for helping ... in fact, i have installed SDK-NDK,
read the CPLUSPLUS-SUPPORT.html doc,  and preparing to compile my C++
STL stuff, but what i really am afraid is of JNI. There are interfaces
depending of the filed's types, and i dont realize how to pass STL
structures or pointers to them. I wonder if you have a kind of hello-
jni example which you can share in this thread ?

kriss, i agree with you, but development time is a  real constraint :-
(

On Jun 16, 3:25 pm, RichardC  wrote:
> Hi,
>
> I have a big "lump" of STL code that is building sucessfully using the
> latest release of the Android-ndk (r5c).  It just need a few tweaks.
> It is called from Java via JNI as needed.
>
> I sugguest you download the 
> NDK:http://developer.android.com/sdk/ndk/index.html
>
> and read the docs specifically "CPLUSPLUS-SUPPORT.html"
>
> If you have any questions I will try and help.
>
> On Jun 16, 4:55 pm, "hectordu...@yahoo.com" 
> wrote:
>
> > hi guys,
> > I would like to migrate a c/c++ (linux fedora 14) application to
> > android 2.2.
> > Because this will be my first migration, i have some questions about
> > the procedure:
>
> > 1. considering it has some STL stuff, i wonder if it will work. I
> > specially use vector, set, map and algoritms (set_union,
> > set_intersection, set_difference).
>
> > 2. as i understand i have to write -first- a Java-JNI application
> > which declares and interface my c functions and c++ methods. Those
> > methods willl be included into one (or many) shared libraries ... is
> > it ok ? ... may somebody advise me a good JNI tutorial ? ... i don
> > like the ones i've found :-(
>
> > 3- once ready, i must use the NDK toolset in order to generate the
> > android application ... hopefully i will works..
>
> > I am worried because the NDK info says to have a "A Minimal set of
> > headers for C++ support" ... and i wonder if  STL works or not ...
> > but, NDK r5 - android - suposse to also hav support for STLport ...
> > does any body has the hello-jni file modifyied for STL suppport ?
>
> > NDK Doc also says that "Applications that use native activities must
> > be run on Android 2.3 (API Level 9) or later", but as i understand, i
> > will also needs JNI .. may somebody make some comments about it ?
>
> > finally, may somebody share me a JNI example in order to pass some STL
> > functions between java and c++ ?
>
> > comments are wellcome.
>
> > regards, thanks in advance
>
> > hector

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

2011-06-16 Thread Kristopher Micinski
The only thing I see is that the framework is entirely different.  I used to
think that putting huge "lumps" of c++ and interfacing through the ndk might
be feasible, but if you've got a large batch of c++ code that *doesn't* need
the niceties of the Android SDK, what is it doing?  I've found that if
you're code isn't doing much external interaction (which you'll need some
android facilities for) you're probably doing something very CPU bound,
which doesn't always make sense in these types of environments anyway.
 (Though, of course, there are exceptions, we had a project last semester
that ran all UI stuff in an app, then a lot of signal processing code in c++
library.)  I guess my point is this:  the NDK isn't an excuse not to learn
Java and write your app the proper way.

Kris

On Thu, Jun 16, 2011 at 4:25 PM, RichardC wrote:

> Hi,
>
> I have a big "lump" of STL code that is building sucessfully using the
> latest release of the Android-ndk (r5c).  It just need a few tweaks.
> It is called from Java via JNI as needed.
>
> I sugguest you download the NDK:
> http://developer.android.com/sdk/ndk/index.html
>
> and read the docs specifically "CPLUSPLUS-SUPPORT.html"
>
> If you have any questions I will try and help.
>
> On Jun 16, 4:55 pm, "hectordu...@yahoo.com" 
> wrote:
> > hi guys,
> > I would like to migrate a c/c++ (linux fedora 14) application to
> > android 2.2.
> > Because this will be my first migration, i have some questions about
> > the procedure:
> >
> > 1. considering it has some STL stuff, i wonder if it will work. I
> > specially use vector, set, map and algoritms (set_union,
> > set_intersection, set_difference).
> >
> > 2. as i understand i have to write -first- a Java-JNI application
> > which declares and interface my c functions and c++ methods. Those
> > methods willl be included into one (or many) shared libraries ... is
> > it ok ? ... may somebody advise me a good JNI tutorial ? ... i don
> > like the ones i've found :-(
> >
> > 3- once ready, i must use the NDK toolset in order to generate the
> > android application ... hopefully i will works..
> >
> > I am worried because the NDK info says to have a "A Minimal set of
> > headers for C++ support" ... and i wonder if  STL works or not ...
> > but, NDK r5 - android - suposse to also hav support for STLport ...
> > does any body has the hello-jni file modifyied for STL suppport ?
> >
> > NDK Doc also says that "Applications that use native activities must
> > be run on Android 2.3 (API Level 9) or later", but as i understand, i
> > will also needs JNI .. may somebody make some comments about it ?
> >
> > finally, may somebody share me a JNI example in order to pass some STL
> > functions between java and c++ ?
> >
> > comments are wellcome.
> >
> > regards, thanks in advance
> >
> > hector
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: STL android

2011-06-16 Thread RichardC
Hi,

I have a big "lump" of STL code that is building sucessfully using the
latest release of the Android-ndk (r5c).  It just need a few tweaks.
It is called from Java via JNI as needed.

I sugguest you download the NDK:
http://developer.android.com/sdk/ndk/index.html

and read the docs specifically "CPLUSPLUS-SUPPORT.html"

If you have any questions I will try and help.

On Jun 16, 4:55 pm, "hectordu...@yahoo.com" 
wrote:
> hi guys,
> I would like to migrate a c/c++ (linux fedora 14) application to
> android 2.2.
> Because this will be my first migration, i have some questions about
> the procedure:
>
> 1. considering it has some STL stuff, i wonder if it will work. I
> specially use vector, set, map and algoritms (set_union,
> set_intersection, set_difference).
>
> 2. as i understand i have to write -first- a Java-JNI application
> which declares and interface my c functions and c++ methods. Those
> methods willl be included into one (or many) shared libraries ... is
> it ok ? ... may somebody advise me a good JNI tutorial ? ... i don
> like the ones i've found :-(
>
> 3- once ready, i must use the NDK toolset in order to generate the
> android application ... hopefully i will works..
>
> I am worried because the NDK info says to have a "A Minimal set of
> headers for C++ support" ... and i wonder if  STL works or not ...
> but, NDK r5 - android - suposse to also hav support for STLport ...
> does any body has the hello-jni file modifyied for STL suppport ?
>
> NDK Doc also says that "Applications that use native activities must
> be run on Android 2.3 (API Level 9) or later", but as i understand, i
> will also needs JNI .. may somebody make some comments about it ?
>
> finally, may somebody share me a JNI example in order to pass some STL
> functions between java and c++ ?
>
> comments are wellcome.
>
> regards, thanks in advance
>
> hector

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


[android-developers] How r things

2011-06-16 Thread Tim Jowers
Do I need to come by.  What else remains to be done.
Tim

On Thursday, June 16, 2011, Glenn Boothe  wrote:
> No problem at all.

>
> Thanks,
>
> GB
>
> -Original Message-
> From: Tim Jowers [mailto:timjow...@gmail.com]
> Sent: Thursday, June 16, 2011 10:24 AM
> To: Glenn Boothe
> Subject: Cannot be in this am
>
> Glenn, sorry I got backed up here. I will shoot fpr this aftwrnoon. My hpurs 
> are.a little over 32. Fell bad about my mixed up schedule but glad we got.it 
> done. And pleasure meeting you and your team.
>
> Timjowers
>
>

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

2011-06-16 Thread Kristopher Micinski
Java has a standard library that makes use of a constrained parametric
polymorphism in the form of "generics."

You can see tons of examples,

List, Set, etc...

This is pretty basic Java stuff, if you can write in C++, learning and using
Java should be easy.

Kris

On Thu, Jun 16, 2011 at 3:51 PM, hectordu...@yahoo.com <
hectordu...@yahoo.com> wrote:

> kris, what is the java equivalent to stl (c++) ?
> i agree, if easy, i would prefere to port it :-(...and to avooid
> JNI...
>
> On Jun 16, 2:28 pm, Kristopher Micinski 
> wrote:
> > Unfortunately if you're doing heavy computing, it might *not* make sense.
> >  This is typically the quickest way to kill the battery, and your
> > application probably is not structured to fit the android specifics.
>  (For
> > example, what happens if your app is killed after running for a while?
>  This
> > doesn't happen in linux, but certainly happens on Android.)
> >
> > You'll have to use the NDK-JNI if you want to keep any of your c++ code.
> >  How much do you have?  Rough estimate?
> >
> > You don't have access to the "old world" unix IPC, mostly because of
> > restrictions imposed for security reasons.
> >
> > Difficulty of porting c++/stl to Java should be minimal.  It will take
> time,
> > but the languages are fairly similar.  The thing that will really take
> time
> > is restructuring your application to work within the Android process
> model,
> > which might require a methodology change depending on your apps
> structure.
> >  I'm trusting that if your code is complex enough you won't give away
> what
> > it does, then you shouldn't have any trouble learning to port it :o)...
> >
> > Kris
> >
> > On Thu, Jun 16, 2011 at 3:17 PM, hectordu...@yahoo.com <
> >
> > hectordu...@yahoo.com> wrote:
> > > hello Kris, thanks for answering.
> > > Well ... in my case it makes sense :-( but i don want to go into
> > > functionality details. Fact is that i have a c/c++(STL) application
> > > which makes some computations :-( and i need it to communicate in any
> > > way with a java-androide aplication which will be the UI: one option
> > > is NDK-JNI but if possible, i would like to avoid JNI. I wonder, may i
> > > run my c++(STL) appl concurrently with the java UI and communicate
> > > both of them in order to change some basic information? .. sockets ...
> > > pipes ...  other .. without JNI ?
> >
> > > any way, a NDK-JNI-c++-STL example will be very welcome, if any one of
> > > you guys may share it ..
> >
> > > and, by the way, how can i port (easy) C++/STL to java ???
> >
> > > On Jun 16, 1:51 pm, Kristopher Micinski 
> > > wrote:
> > > > What application are you trying to migrate?
> >
> > > > Android is different enough, that you will probably be better off
> > > rewriting
> > > > the application in the SDK framework.
> >
> > > > The NDK wasn't designed to write whole applications, depending on how
> > > large
> > > > your app is it might be better to rewrite the whole thing.  But
> perhaps
> > > > another solution is to keep what you can, and change what you need.
> >
> > > > In any case, most of the time, dropping a few thousand lines of c++
> into
> > > a
> > > > mobile environment just doesn't make sense (i.e., the environment is
> > > > different enough that structuring your app different might really be
> > > needed,
> > > > and if it's a batch processing app it might not make sense to perform
> > > some
> > > > of the operations in a mobile environment...)
> >
> > > > Kris
> >
> > > > On Thu, Jun 16, 2011 at 11:55 AM, hectordu...@yahoo.com <
> >
> > > > hectordu...@yahoo.com> wrote:
> > > > > hi guys,
> > > > > I would like to migrate a c/c++ (linux fedora 14) application to
> > > > > android 2.2.
> > > > > Because this will be my first migration, i have some questions
> about
> > > > > the procedure:
> >
> > > > > 1. considering it has some STL stuff, i wonder if it will work. I
> > > > > specially use vector, set, map and algoritms (set_union,
> > > > > set_intersection, set_difference).
> >
> > > > > 2. as i understand i have to write -first- a Java-JNI application
> > > > > which declares and interface my c functions and c++ methods. Those
> > > > > methods willl be included into one (or many) shared libraries ...
> is
> > > > > it ok ? ... may somebody advise me a good JNI tutorial ? ... i don
> > > > > like the ones i've found :-(
> >
> > > > > 3- once ready, i must use the NDK toolset in order to generate the
> > > > > android application ... hopefully i will works..
> >
> > > > > I am worried because the NDK info says to have a "A Minimal set of
> > > > > headers for C++ support" ... and i wonder if  STL works or not ...
> > > > > but, NDK r5 - android - suposse to also hav support for STLport ...
> > > > > does any body has the hello-jni file modifyied for STL suppport ?
> >
> > > > > NDK Doc also says that "Applications that use native activities
> must
> > > > > be run on Android 2.3 (API Level 9) or later", but as i understand,
> i
> > > > > will

[android-developers] Re: STL android

2011-06-16 Thread hectordu...@yahoo.com
kris, what is the java equivalent to stl (c++) ?
i agree, if easy, i would prefere to port it :-(...and to avooid
JNI...

On Jun 16, 2:28 pm, Kristopher Micinski 
wrote:
> Unfortunately if you're doing heavy computing, it might *not* make sense.
>  This is typically the quickest way to kill the battery, and your
> application probably is not structured to fit the android specifics.  (For
> example, what happens if your app is killed after running for a while?  This
> doesn't happen in linux, but certainly happens on Android.)
>
> You'll have to use the NDK-JNI if you want to keep any of your c++ code.
>  How much do you have?  Rough estimate?
>
> You don't have access to the "old world" unix IPC, mostly because of
> restrictions imposed for security reasons.
>
> Difficulty of porting c++/stl to Java should be minimal.  It will take time,
> but the languages are fairly similar.  The thing that will really take time
> is restructuring your application to work within the Android process model,
> which might require a methodology change depending on your apps structure.
>  I'm trusting that if your code is complex enough you won't give away what
> it does, then you shouldn't have any trouble learning to port it :o)...
>
> Kris
>
> On Thu, Jun 16, 2011 at 3:17 PM, hectordu...@yahoo.com <
>
> hectordu...@yahoo.com> wrote:
> > hello Kris, thanks for answering.
> > Well ... in my case it makes sense :-( but i don want to go into
> > functionality details. Fact is that i have a c/c++(STL) application
> > which makes some computations :-( and i need it to communicate in any
> > way with a java-androide aplication which will be the UI: one option
> > is NDK-JNI but if possible, i would like to avoid JNI. I wonder, may i
> > run my c++(STL) appl concurrently with the java UI and communicate
> > both of them in order to change some basic information? .. sockets ...
> > pipes ...  other .. without JNI ?
>
> > any way, a NDK-JNI-c++-STL example will be very welcome, if any one of
> > you guys may share it ..
>
> > and, by the way, how can i port (easy) C++/STL to java ???
>
> > On Jun 16, 1:51 pm, Kristopher Micinski 
> > wrote:
> > > What application are you trying to migrate?
>
> > > Android is different enough, that you will probably be better off
> > rewriting
> > > the application in the SDK framework.
>
> > > The NDK wasn't designed to write whole applications, depending on how
> > large
> > > your app is it might be better to rewrite the whole thing.  But perhaps
> > > another solution is to keep what you can, and change what you need.
>
> > > In any case, most of the time, dropping a few thousand lines of c++ into
> > a
> > > mobile environment just doesn't make sense (i.e., the environment is
> > > different enough that structuring your app different might really be
> > needed,
> > > and if it's a batch processing app it might not make sense to perform
> > some
> > > of the operations in a mobile environment...)
>
> > > Kris
>
> > > On Thu, Jun 16, 2011 at 11:55 AM, hectordu...@yahoo.com <
>
> > > hectordu...@yahoo.com> wrote:
> > > > hi guys,
> > > > I would like to migrate a c/c++ (linux fedora 14) application to
> > > > android 2.2.
> > > > Because this will be my first migration, i have some questions about
> > > > the procedure:
>
> > > > 1. considering it has some STL stuff, i wonder if it will work. I
> > > > specially use vector, set, map and algoritms (set_union,
> > > > set_intersection, set_difference).
>
> > > > 2. as i understand i have to write -first- a Java-JNI application
> > > > which declares and interface my c functions and c++ methods. Those
> > > > methods willl be included into one (or many) shared libraries ... is
> > > > it ok ? ... may somebody advise me a good JNI tutorial ? ... i don
> > > > like the ones i've found :-(
>
> > > > 3- once ready, i must use the NDK toolset in order to generate the
> > > > android application ... hopefully i will works..
>
> > > > I am worried because the NDK info says to have a "A Minimal set of
> > > > headers for C++ support" ... and i wonder if  STL works or not ...
> > > > but, NDK r5 - android - suposse to also hav support for STLport ...
> > > > does any body has the hello-jni file modifyied for STL suppport ?
>
> > > > NDK Doc also says that "Applications that use native activities must
> > > > be run on Android 2.3 (API Level 9) or later", but as i understand, i
> > > > will also needs JNI .. may somebody make some comments about it ?
>
> > > > finally, may somebody share me a JNI example in order to pass some STL
> > > > functions between java and c++ ?
>
> > > > comments are wellcome.
>
> > > > regards, thanks in advance
>
> > > > hector
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to
> > android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr..

Re: [android-developers] Re: STL android

2011-06-16 Thread Kristopher Micinski
Unfortunately if you're doing heavy computing, it might *not* make sense.
 This is typically the quickest way to kill the battery, and your
application probably is not structured to fit the android specifics.  (For
example, what happens if your app is killed after running for a while?  This
doesn't happen in linux, but certainly happens on Android.)

You'll have to use the NDK-JNI if you want to keep any of your c++ code.
 How much do you have?  Rough estimate?

You don't have access to the "old world" unix IPC, mostly because of
restrictions imposed for security reasons.

Difficulty of porting c++/stl to Java should be minimal.  It will take time,
but the languages are fairly similar.  The thing that will really take time
is restructuring your application to work within the Android process model,
which might require a methodology change depending on your apps structure.
 I'm trusting that if your code is complex enough you won't give away what
it does, then you shouldn't have any trouble learning to port it :o)...

Kris


On Thu, Jun 16, 2011 at 3:17 PM, hectordu...@yahoo.com <
hectordu...@yahoo.com> wrote:

> hello Kris, thanks for answering.
> Well ... in my case it makes sense :-( but i don want to go into
> functionality details. Fact is that i have a c/c++(STL) application
> which makes some computations :-( and i need it to communicate in any
> way with a java-androide aplication which will be the UI: one option
> is NDK-JNI but if possible, i would like to avoid JNI. I wonder, may i
> run my c++(STL) appl concurrently with the java UI and communicate
> both of them in order to change some basic information? .. sockets ...
> pipes ...  other .. without JNI ?
>
> any way, a NDK-JNI-c++-STL example will be very welcome, if any one of
> you guys may share it ..
>
> and, by the way, how can i port (easy) C++/STL to java ???
>
>
> On Jun 16, 1:51 pm, Kristopher Micinski 
> wrote:
> > What application are you trying to migrate?
> >
> > Android is different enough, that you will probably be better off
> rewriting
> > the application in the SDK framework.
> >
> > The NDK wasn't designed to write whole applications, depending on how
> large
> > your app is it might be better to rewrite the whole thing.  But perhaps
> > another solution is to keep what you can, and change what you need.
> >
> > In any case, most of the time, dropping a few thousand lines of c++ into
> a
> > mobile environment just doesn't make sense (i.e., the environment is
> > different enough that structuring your app different might really be
> needed,
> > and if it's a batch processing app it might not make sense to perform
> some
> > of the operations in a mobile environment...)
> >
> > Kris
> >
> > On Thu, Jun 16, 2011 at 11:55 AM, hectordu...@yahoo.com <
> >
> > hectordu...@yahoo.com> wrote:
> > > hi guys,
> > > I would like to migrate a c/c++ (linux fedora 14) application to
> > > android 2.2.
> > > Because this will be my first migration, i have some questions about
> > > the procedure:
> >
> > > 1. considering it has some STL stuff, i wonder if it will work. I
> > > specially use vector, set, map and algoritms (set_union,
> > > set_intersection, set_difference).
> >
> > > 2. as i understand i have to write -first- a Java-JNI application
> > > which declares and interface my c functions and c++ methods. Those
> > > methods willl be included into one (or many) shared libraries ... is
> > > it ok ? ... may somebody advise me a good JNI tutorial ? ... i don
> > > like the ones i've found :-(
> >
> > > 3- once ready, i must use the NDK toolset in order to generate the
> > > android application ... hopefully i will works..
> >
> > > I am worried because the NDK info says to have a "A Minimal set of
> > > headers for C++ support" ... and i wonder if  STL works or not ...
> > > but, NDK r5 - android - suposse to also hav support for STLport ...
> > > does any body has the hello-jni file modifyied for STL suppport ?
> >
> > > NDK Doc also says that "Applications that use native activities must
> > > be run on Android 2.3 (API Level 9) or later", but as i understand, i
> > > will also needs JNI .. may somebody make some comments about it ?
> >
> > > finally, may somebody share me a JNI example in order to pass some STL
> > > functions between java and c++ ?
> >
> > > comments are wellcome.
> >
> > > regards, thanks in advance
> >
> > > hector
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, 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
> T

[android-developers] Re: STL android

2011-06-16 Thread hectordu...@yahoo.com
hello Kris, thanks for answering.
Well ... in my case it makes sense :-( but i don want to go into
functionality details. Fact is that i have a c/c++(STL) application
which makes some computations :-( and i need it to communicate in any
way with a java-androide aplication which will be the UI: one option
is NDK-JNI but if possible, i would like to avoid JNI. I wonder, may i
run my c++(STL) appl concurrently with the java UI and communicate
both of them in order to change some basic information? .. sockets ...
pipes ...  other .. without JNI ?

any way, a NDK-JNI-c++-STL example will be very welcome, if any one of
you guys may share it ..

and, by the way, how can i port (easy) C++/STL to java ???


On Jun 16, 1:51 pm, Kristopher Micinski 
wrote:
> What application are you trying to migrate?
>
> Android is different enough, that you will probably be better off rewriting
> the application in the SDK framework.
>
> The NDK wasn't designed to write whole applications, depending on how large
> your app is it might be better to rewrite the whole thing.  But perhaps
> another solution is to keep what you can, and change what you need.
>
> In any case, most of the time, dropping a few thousand lines of c++ into a
> mobile environment just doesn't make sense (i.e., the environment is
> different enough that structuring your app different might really be needed,
> and if it's a batch processing app it might not make sense to perform some
> of the operations in a mobile environment...)
>
> Kris
>
> On Thu, Jun 16, 2011 at 11:55 AM, hectordu...@yahoo.com <
>
> hectordu...@yahoo.com> wrote:
> > hi guys,
> > I would like to migrate a c/c++ (linux fedora 14) application to
> > android 2.2.
> > Because this will be my first migration, i have some questions about
> > the procedure:
>
> > 1. considering it has some STL stuff, i wonder if it will work. I
> > specially use vector, set, map and algoritms (set_union,
> > set_intersection, set_difference).
>
> > 2. as i understand i have to write -first- a Java-JNI application
> > which declares and interface my c functions and c++ methods. Those
> > methods willl be included into one (or many) shared libraries ... is
> > it ok ? ... may somebody advise me a good JNI tutorial ? ... i don
> > like the ones i've found :-(
>
> > 3- once ready, i must use the NDK toolset in order to generate the
> > android application ... hopefully i will works..
>
> > I am worried because the NDK info says to have a "A Minimal set of
> > headers for C++ support" ... and i wonder if  STL works or not ...
> > but, NDK r5 - android - suposse to also hav support for STLport ...
> > does any body has the hello-jni file modifyied for STL suppport ?
>
> > NDK Doc also says that "Applications that use native activities must
> > be run on Android 2.3 (API Level 9) or later", but as i understand, i
> > will also needs JNI .. may somebody make some comments about it ?
>
> > finally, may somebody share me a JNI example in order to pass some STL
> > functions between java and c++ ?
>
> > comments are wellcome.
>
> > regards, thanks in advance
>
> > hector
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] STL android

2011-06-16 Thread Kristopher Micinski
What application are you trying to migrate?

Android is different enough, that you will probably be better off rewriting
the application in the SDK framework.

The NDK wasn't designed to write whole applications, depending on how large
your app is it might be better to rewrite the whole thing.  But perhaps
another solution is to keep what you can, and change what you need.

In any case, most of the time, dropping a few thousand lines of c++ into a
mobile environment just doesn't make sense (i.e., the environment is
different enough that structuring your app different might really be needed,
and if it's a batch processing app it might not make sense to perform some
of the operations in a mobile environment...)

Kris

On Thu, Jun 16, 2011 at 11:55 AM, hectordu...@yahoo.com <
hectordu...@yahoo.com> wrote:

> hi guys,
> I would like to migrate a c/c++ (linux fedora 14) application to
> android 2.2.
> Because this will be my first migration, i have some questions about
> the procedure:
>
> 1. considering it has some STL stuff, i wonder if it will work. I
> specially use vector, set, map and algoritms (set_union,
> set_intersection, set_difference).
>
> 2. as i understand i have to write -first- a Java-JNI application
> which declares and interface my c functions and c++ methods. Those
> methods willl be included into one (or many) shared libraries ... is
> it ok ? ... may somebody advise me a good JNI tutorial ? ... i don
> like the ones i've found :-(
>
> 3- once ready, i must use the NDK toolset in order to generate the
> android application ... hopefully i will works..
>
> I am worried because the NDK info says to have a "A Minimal set of
> headers for C++ support" ... and i wonder if  STL works or not ...
> but, NDK r5 - android - suposse to also hav support for STLport ...
> does any body has the hello-jni file modifyied for STL suppport ?
>
> NDK Doc also says that "Applications that use native activities must
> be run on Android 2.3 (API Level 9) or later", but as i understand, i
> will also needs JNI .. may somebody make some comments about it ?
>
> finally, may somebody share me a JNI example in order to pass some STL
> functions between java and c++ ?
>
> comments are wellcome.
>
> regards, thanks in advance
>
> hector
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Sliding Drawer

2011-06-16 Thread Dan
Can a SlidingDrawer's handle be placed anywhere in the window, not
just the edge of the window?

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

2011-06-16 Thread Streets Of Boston
Writing to a file or db, as you mentioned, is one option.
Another option is to write it to your app's preferences (SharedPreferences).

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

2011-06-16 Thread André Coelho
Take a look at this 
http://developer.android.com/reference/android/content/SharedPreferences.html
and this 
http://saigeethamn.blogspot.com/2009/10/shared-preferences-android-developer.html

Those links will help you achieve what you want. SharedPreferences
does exactly what you want.

On Jun 16, 7:31 pm, Amita Dev  wrote:
> Hi,
>     Is it possible to save user selected options even after reboot of
> device?
> I would like to not to write all of my data in a file and then read it back.
>
> How do all applications save data even after reboot?
>
> Thanks,
> -A

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


[android-developers] Save user options in reboot

2011-06-16 Thread Amita Dev
Hi,
Is it possible to save user selected options even after reboot of
device?
I would like to not to write all of my data in a file and then read it back.

How do all applications save data even after reboot?

Thanks,
-A

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

[android-developers] Is there a launchMode or an Intent flag for this?

2011-06-16 Thread Kostya Vasilyev
Does anyone know if there is a way to start a new activity into an existing
task, so it becomes the new task root if it doesn't already exist within the
task?

It might look like this:

Let's say, the package has two activities, A (which is a LAUNCHER / MAIN)
and B (which is not).

Now at some point, the task stack has either A, and B on top of it, or just
B all by itself.

I'd like to launch A from outside the task (a status bar notification, etc.)
so that:


- If A already exists with the task (A -> B), I'd like B to be finished.

Settting FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TOP or
clearTaskOnLaunch does this quite nicely.


- If the task only has B, I'd like B to also be finished, and A to become
the new task root.

I'm having trouble finding anything that would let me implement this second
case.


It seems to me that clearTaskOnLaunch for A in the manifest should do this,
but it doesn't: B stays within the task as its root, and A is launched on
top of it.


Am I missing something and it can be done, or is this really not possible
with just something in the manifest / intent flags?

Thanks,
-- Kostya

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

[android-developers] getResourceAsStream fails on 2.1, works on 2.2+

2011-06-16 Thread Jason
Hi folks,

I have an Android Library project that I am packaging as a JAR file
for distribution.  The project has no resources, layouts, assets etc.,
but it does have some config files that are bundled with the src.
This is really just because (AFAIK) we can't distribute a library
project with assets unless we distribute the full source (?).

To access these resources, I am using:

Thread.currentThread().getContextClassLoader().getResourceAsStream(...)

This works as expected on Android 2.2+, but fails on 2.1-update1.
Does anyone have any clever ideas about how to reliably reference
config-style files (properties files, xml files etc) from within
Android when you can't (don't want to) use res or assets?

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: Place a RelativeLayout below a LinearLayout inside another LinearLayout

2011-06-16 Thread Sergi
Well I don't which one is the correct answer..haha

Either way I've finally solved it.

The result:


http://schemas.android.com/apk/res/
android" android:id="@+id/relative"
   android:layout_width="wrap_content"
android:layout_height="fill_parent">





















On 16 jun, 19:04, TreKing  wrote:
> On Thu, Jun 16, 2011 at 10:42 AM, Sergi  wrote:
> > Yes it shows a RelativeLayout(android:id="@+id/volumeBar") below
> > (android:layout_below="@+id/infoCanso") a LinearLayout(android:id="@
> > +id/infoCanso") which is nested inside another LinearLyout.
>
> No. Either I'm blind or you're seriously confused how layouts work.
>
> --- 
> --
> 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] Issue with In-app Billing

2011-06-16 Thread Kumar Bibek
Check for the Market app compatibility on HTC .

Item already purchased means, that it is a managed item, and can be
purchased only once.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Thu, Jun 16, 2011 at 9:49 PM, LostKid  wrote:

> Hi,
>
> I am trying to implement in-app billing with one of my apps. However
> while testing on devices i found a peculiar response.
>
> My problem with InApp implementation is concerned with its different
> behavior in different devices :
> 1. On devices on which my market account is not associated with the
> test account given in android market, a dialog 'Item is not available'
> is shown,
>   which I'm supposing is a normal behavior.
> 2. But on 2 devices where my market account is same as my test account
> I'm getting 2 different results :
>  a) On HTC Legend my app is unable to connect to Market application.
>  b) On Milestone I'm getting a dialog 'You have already purchased
> this item'.
>
> I'm unable to figure out these different behaviors.
>
> Can any one please help me as to what can be the reason for this and
> which is the correct behavior of the lot.
>
> 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] Display tearing Issue on Gingerbread

2011-06-16 Thread Suneel
Hi All,

I have a display tearing issue on gingerbread.
Scenario - From home screen go to settings menu under portrait mode.
Using a cap sensor home key, I directly get back to home screen. But
for initial 2-3 sec the home screen has tearing effect, half of the
screen is displayed with the image of the background wallpaper and
sometimes blank screen.
Request to help/suggest me to understand the surface flinger flow in
this scenario and what could be the possible reasons for this issue. I
have 2 framebuffers for display and use flip mechanism.

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


[android-developers] STL android

2011-06-16 Thread hectordu...@yahoo.com
hi guys,
I would like to migrate a c/c++ (linux fedora 14) application to
android 2.2.
Because this will be my first migration, i have some questions about
the procedure:

1. considering it has some STL stuff, i wonder if it will work. I
specially use vector, set, map and algoritms (set_union,
set_intersection, set_difference).

2. as i understand i have to write -first- a Java-JNI application
which declares and interface my c functions and c++ methods. Those
methods willl be included into one (or many) shared libraries ... is
it ok ? ... may somebody advise me a good JNI tutorial ? ... i don
like the ones i've found :-(

3- once ready, i must use the NDK toolset in order to generate the
android application ... hopefully i will works..

I am worried because the NDK info says to have a "A Minimal set of
headers for C++ support" ... and i wonder if  STL works or not ...
but, NDK r5 - android - suposse to also hav support for STLport ...
does any body has the hello-jni file modifyied for STL suppport ?

NDK Doc also says that "Applications that use native activities must
be run on Android 2.3 (API Level 9) or later", but as i understand, i
will also needs JNI .. may somebody make some comments about it ?

finally, may somebody share me a JNI example in order to pass some STL
functions between java and c++ ?

comments are wellcome.

regards, thanks in advance

hector

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


[android-developers] Join us for "Android Programming June 16th, 2011 Webinar - "Web services" Today 5pm-6pm EDT

2011-06-16 Thread Sang Shin





Android Programming June 16th, 2011 Webinar - "Web services"

Join us for a Webinar on June 16



*Space is limited.*
Reserve your Webinar seat now at:
https://www3.gotomeeting.com/register/112066910

In this Webinar, we are going to cover "Web services"

*Title:*Android Programming June 16th, 2011 Webinar - "Web services"
*Date:* Thursday, June 16, 2011
*Time:* 5:00 PM - 6:00 PM EDT

After registering you will receive a confirmation email containing 
information about joining the Webinar.


*System Requirements*
PC-based attendees
Required: Windows® 7, Vista, XP or 2003 Server

Macintosh®-based attendees
Required: Mac OS® X 10.4.11 (Tiger®) or newer






--
---
 Sang Shin, sangshinpass...@gmail.com
  Founder and Chief Instructor of JavaPassion.com
http://javapassion.com/portal/instructors/sang-shin-schedule (Bio)
 http://www.linkedin.com/in/javapassion (Linkedin)
@javapassion (Tweeter)
Life is worth living... with Passion!
--

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

[android-developers] [Problem] My themes and layout don't apply

2011-06-16 Thread Jorge Luis
I'm developign with Eclipse usind SDK 7 (Android 2.1), and my layout and
themes don't apply when i try to 'deploy' the app at my Xoom

is there anything i'm can do for then to apply?



Thx

-- 
Jorge Luis Ferrari Cé
Desenvolvedor / Web Designer
Siga @JLFerrari

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

[android-developers] installation URL in apk

2011-06-16 Thread Robert Slama
Hi guys,

exist any way how I can get URL from what was apk installed direct in
instaled application?

r^

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


[android-developers] Graphics Engines

2011-06-16 Thread Prem Nair
I want to make a graphical game for Android as my next project.
However, I haven't really heard a good comparison of all the different
graphics engines and SDKs available. Does anyone have a good
suggestion? Right now I am planning to use OpenGL, so whatever works
with that well.
My game is kind of like a tileset game, where objects occupy definite
grid coordinates, but moving of sprites requires smooth animation, and
there needs to be collision detection and gravity.
I've heard about AndEngine, Cocos2d, Box2d, and many others.

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


[android-developers] NFC APDU Issue using IsoDep Tag

2011-06-16 Thread chavezirl
Hi,

I am working on an Application using the IsoDep Tag Tech to issue APDU 
commands to an NFC enabled card.

I have followed the documentation explicitly and have a successful managed 
to implement the protocol.  However with mixed success I am experiencing 
some issues with the NFC lower level libraries beyond the control of my 
code.

I have implemented the following:

   1. Foreground dispatching of a Pending Intent.  The intent has a tech 
   filter for IsoDep.class and action: ACTION_TAG_DISCOVERED
   2. Once the I then extract the Tag from the Intent Extra
   3. Issue APDU commands and process the responses

The issue is that I have noticed a couple of things:


   1. On the Nexus S the position of the card is dependent on a successful 
   communication flow, if it is not in the sweet spot I will receive an 
   IOException
   2. If I get too many IOExceptions because the card has moved or not 
   remained in the RF field I start to see the following excpetions (see below)

I was wondering if anyone else had seen these issues? In my onResume method 
I don't have any logic to prevent multiple calls to the NFCAdapter instance 
of the method: enableForegroundDispatch, should I be doing this.

Thanks in advance for any help.

Exceptions:
   
06-16 12:08:43.351: ERROR/NFC(661): NFC service dead - attempting to recover
06-16 12:08:43.351: ERROR/NFC(661): android.os.DeadObjectException
06-16 12:08:43.351: ERROR/NFC(661): at 
android.os.BinderProxy.transact(Native Method)
06-16 12:08:43.351: ERROR/NFC(661): at 
android.nfc.INfcAdapter$Stub$Proxy.enableForegroundDispatch(INfcAdapter.java:528)
06-16 12:08:43.351: ERROR/NFC(661): at 
android.nfc.NfcAdapter.enableForegroundDispatch(NfcAdapter.java:494)
06-16 12:08:43.351: ERROR/NFC(661): at 
myClass.onResume(ConfirmPaymentScreen.java:406)
06-16 12:08:43.351: ERROR/NFC(661): at 
android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150)
06-16 12:08:43.351: ERROR/NFC(661): at 
android.app.Activity.performResume(Activity.java:3832)
06-16 12:08:43.351: ERROR/NFC(661): at 
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2110)
06-16 12:08:43.351: ERROR/NFC(661): at 
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2135)
06-16 12:08:43.351: ERROR/NFC(661): at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1668)
06-16 12:08:43.351: ERROR/NFC(661): at 
android.app.ActivityThread.access$1500(ActivityThread.java:117)
06-16 12:08:43.351: ERROR/NFC(661): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
06-16 12:08:43.351: ERROR/NFC(661): at 
android.os.Handler.dispatchMessage(Handler.java:99)
06-16 12:08:43.351: ERROR/NFC(661): at 
android.os.Looper.loop(Looper.java:130)
06-16 12:08:43.351: ERROR/NFC(661): at 
android.app.ActivityThread.main(ActivityThread.java:3683)
06-16 12:08:43.351: ERROR/NFC(661): at 
java.lang.reflect.Method.invokeNative(Native Method)
06-16 12:08:43.351: ERROR/NFC(661): at 
java.lang.reflect.Method.invoke(Method.java:507)
06-16 12:08:43.351: ERROR/NFC(661): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
06-16 12:08:43.351: ERROR/NFC(661): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
06-16 12:08:43.351: ERROR/NFC(661): at 
dalvik.system.NativeStart.main(Native Method)


06-16 12:08:18.316: ERROR/ConfirmPaymentScreen(661): IOException in APDU 
commands: transceive failed
06-16 12:08:18.316: WARN/System.err(661): java.io.IOException: transceive 
failed
06-16 12:08:18.324: WARN/System.err(661): at 
android.nfc.tech.BasicTagTechnology.transceive(BasicTagTechnology.java:144)
06-16 12:08:18.324: WARN/System.err(661): at 
android.nfc.tech.IsoDep.transceive(IsoDep.java:159)
06-16 12:08:18.328: WARN/System.err(661): at 
myClass.handleTagRead(ConfirmPaymentScreen.java:117)
06-16 12:08:18.328: WARN/System.err(661): at 
myClass.onNewIntent(ConfirmPaymentScreen.java:84)
06-16 12:08:18.332: WARN/System.err(661): at 
android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1119)
06-16 12:08:18.332: WARN/System.err(661): at 
android.app.ActivityThread.deliverNewIntents(ActivityThread.java:1722)
06-16 12:08:18.335: WARN/System.err(661): at 
android.app.ActivityThread.performNewIntents(ActivityThread.java:1734)
06-16 12:08:18.335: WARN/System.err(661): at 
android.app.ActivityThread.handleNewIntent(ActivityThread.java:1742)
06-16 12:08:18.339: WARN/System.err(661): at 
android.app.ActivityThread.access$2300(ActivityThread.java:117)
06-16 12:08:18.343: WARN/System.err(661): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:978)
06-16 12:08:18.343: WARN/System.err(661): at 
android.os.Handler.dispatchMessage(Handler.java:99)
06-16 12:08:18.347: WARN/System.err(661): at 
android.os.Looper.loop(Looper.java:130)
06-16 12:08:18.347: WARN/System.err(661): at 
an

[android-developers] Broadcasts within an APK

2011-06-16 Thread Alan
Hi,

Is it possible to have broadcasts that are only sent within an APK?  I
know that I can secure a broadcast using a custom permission string
that I declare in the manifest.  However, I do not want the user to
have to approve a random permission just for internal usage.  Also, I
definitely don't want other APKs to have access to the broadcasts by
using that permission.  The broadcasts will have very sensitive data
in them.

The only idea I have to get around this issue is to emulate broadcasts
using service Intents and an observer pattern.  Any other ideas?

Best,
Alan


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


[android-developers] Issue with In-app Billing

2011-06-16 Thread LostKid
Hi,

I am trying to implement in-app billing with one of my apps. However
while testing on devices i found a peculiar response.

My problem with InApp implementation is concerned with its different
behavior in different devices :
1. On devices on which my market account is not associated with the
test account given in android market, a dialog 'Item is not available'
is shown,
   which I'm supposing is a normal behavior.
2. But on 2 devices where my market account is same as my test account
I'm getting 2 different results :
  a) On HTC Legend my app is unable to connect to Market application.
  b) On Milestone I'm getting a dialog 'You have already purchased
this item'.

I'm unable to figure out these different behaviors.

Can any one please help me as to what can be the reason for this and
which is the correct behavior of the lot.

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] remoteView with separate instance of Layout for one widget definition?

2011-06-16 Thread Tony
Widget /RemoteView question.

I have one widget definition (AppWidgetProvider) in my project.

I assume that even with one single definition, I can have different
instances of the same widget class and the same widget layout
definition.

Now, I would like to be able to install the same widget several times
on the screen at the same time, to have different instances of it, and
every time when the user click one of these widgets on the screen , to
launch an activity and to pass the corresponding widget id to the
activity.

Example : when the first widget is created and widgetId is 1  (for
example), when the user press the widget, to see "calling widget id =
1" on the Activity screen. When the second widget is created and
widgetid is 2 for example, when the user press widget #2, to see
"calling widget id = 2" on the activity screen. If he press the first
widget again, should see "calling widget id = 1" on the Activity
screen

in onUpdate(), the very first time when the widget is created, I get
the widgetID, then I set OnClickListener and I put the widgetId in the
extras :

RemoteViews remoteViews = new RemoteViews(context.getPackageName(),
widgetLayout);

Intent startIntent = new Intent(context, TestActivity.class);
startIntent.setAction(START_ACTIVITY);
startIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, 
widgetId);
PendingIntent pendingIntent = 
PendingIntent.getActivity(context, 0,
startIntent, PendingIntent.FLAG_UPDATE_CURRENT);
remoteViews.setOnClickPendingIntent(R.id.last_image, 
pendingIntent);

appWidgetManager.updateAppWidget(localAppWidgetIds, remoteViews);

I expect that every time, when the widget instance is created and I
execute
remoteViews = new RemoteViews(context.getPackageName(),
widgetLayout);

,a new layout instance to be be inflated/created  and remoteView will
have the (new) corresponding layoutId.

However, this is not the case, remoteView every time has the very same
layoutId after execution of
 remoteViews = new RemoteViews(context.getPackageName(),
widgetLayout);

So when I apply the remoteViews.setOnClickPendingIntent, it overwrites
the previous OnClickPendingIntent and widgetId is always the last one.


What happens in the example : when user creates widget 1, press it,
see "calling widget  1". When he creates widget 2 and presses it, he
will see "calling widget 2", but if he press widget 1 again, he will
see "calling widget 2" instead "calling widget 1".

Does anybody knows how I can obtain a separate instance of inflated
layout for the same widget instance to RemoteView, with one widget
definition?
 Then I'll be able to apply the listener (or other changes) only to
the same layout instance created together with the same widget
instance.

P.S. I would like to do that, without using the Honeycomb API.

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


Re: [android-developers] Re: Place a RelativeLayout below a LinearLayout inside another LinearLayout

2011-06-16 Thread TreKing
On Thu, Jun 16, 2011 at 10:42 AM, Sergi  wrote:

> Yes it shows a RelativeLayout(android:id="@+id/volumeBar") below
> (android:layout_below="@+id/infoCanso") a LinearLayout(android:id="@
> +id/infoCanso") which is nested inside another LinearLyout.
>

No. Either I'm blind or you're seriously confused how layouts work.

-
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] Lost my app's keystore file and want to update app??

2011-06-16 Thread Mark Murphy
On Thu, Jun 16, 2011 at 8:41 AM, Arpit Hada  wrote:
> I want to publish updated version of my app but I've lost certificate/
> keystore file that I used while publishing the app's previous version.
> Is there any way I can upload my updated app and send the notification
> to it's active users?

No. You need to find that keystore file.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version
1.9.9 Available!

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


Re: [android-developers] How I can send a key event inside android service?

2011-06-16 Thread Mark Murphy
On Thu, Jun 16, 2011 at 6:32 AM, Antonio Manganelli
 wrote:
> how I can send a key event inside android service?

You can't. This would be a security hole.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version
1.9.9 Available!

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


Re: [android-developers] Build Android Source Code

2011-06-16 Thread TreKing
On Wed, Jun 15, 2011 at 1:16 PM, swathi.ep  wrote:

> I want to add one new class to android.widget package.


There are groups dedicated to building and modifying the platform source -
this isn't it.

-
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] Upgrade Error

2011-06-16 Thread TreKing
On Wed, Jun 15, 2011 at 8:59 AM, Takez  wrote:

> The apk must be signed with the same certificates as the previous
> version.  I get that message when upgrading.  My dev says it is the
> same any ideas?
>

Try re-signing and re-uploading the app. If you own the app and are paying
someone to develop it, I'd recommend learning how to do the building and
signing of the final APK yourself - it's not that difficult and relieves you
of being at the mercy of some developer that may or may not know what
they're doing in this part of the process.

-
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] about android keyboard application

2011-06-16 Thread TreKing
On Wed, Jun 15, 2011 at 5:44 AM, kablu mandal wrote:

> whenever i rum any application in android , process not supported wait or
> force close
>

In your post you left out the part where you explain what the hell you're
talking about and what it has to do with the subject of your post.

Here, try this page: http://www.catb.org/~esr/faqs/smart-questions.html

-
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] android context menu

2011-06-16 Thread TreKing
On Thu, Jun 16, 2011 at 12:13 AM, yanamala siddaiah <
siddaiahforj...@gmail.com> wrote:

> registerforContextMenu It gives null pointer exception .
>
> pls provide the answer
>

Answer: learn to program.

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

2011-06-16 Thread Felix Garcia Lainez
Umm... So the error is on one of my touchevents implementations for
textview objects (and subclass like edittext)?

On 16 jun, 15:00, Yahel  wrote:
> > really would be crazy, no?
>
> Crazy ? Yes ! Tedious ? Yes !
>
> But you can probably narrow it down since it is raised by a TextView
> ontouch event.
>
> Have fun :)
>
> Yahel

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

2011-06-16 Thread TreKing
On Thu, Jun 16, 2011 at 6:18 AM, Nasreen  wrote:

> I m Nasreen Ustad, i want know more about Web Service, Xml Parsing,
> plz send me some links and small demos related to web services.
>

Hello, have you heard of the "internet" or "Google"?

-
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: revoke permissions to access google auth tokens

2011-06-16 Thread Nikolay Elenkov
On Fri, Jun 17, 2011 at 12:47 AM, RS  wrote:
> community seemingly has no idea on this ... could anybody from google
> perhaps answer
>

Use your Google powers to google it. Hint: it's not done on the phone.

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


[android-developers] glib linker errors on gingerbread

2011-06-16 Thread arun_satya3
Hi,

While building bluez 4.94 on gingerbread, am getting the following
error -

prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/
4.4.3/../../../../arm-eabi/bin/ld: out/target/product/crespo/obj/
STATIC_LIBRARIES/libbuiltinattrib_intermediates/
libbuiltinattrib.a(gattrib.o): in function
g_attrib_cancel_all:external/bluetooth/bluez/attrib/gattrib.c:499:
error: undefined reference to 'g_queue_pop_head'

prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/
4.4.3/../../../../arm-eabi/bin/ld: out/target/product/crespo/obj/
STATIC_LIBRARIES/libbuiltinattrib_intermediates/
libbuiltinattrib.a(gattrib.o): in function
g_attrib_cancel_all:external/bluetooth/bluez/attrib/gattrib.c:513:
error: undefined reference to 'g_queue_push_head'

the definition is in glib/glib/galias.h & glib/glib/galiasdef.c

Is there a way to solve the problem.

Warm Regards,
Arun S.

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


[android-developers] Re: Place a RelativeLayout below a LinearLayout inside another LinearLayout

2011-06-16 Thread Sergi
Yes it shows a RelativeLayout(android:id="@+id/volumeBar") below
(android:layout_below="@+id/infoCanso") a LinearLayout(android:id="@
+id/infoCanso") which is nested inside another LinearLyout.

I already use the visual editor in eclipse.

On 16 jun, 00:08, TreKing  wrote:
> On Wed, Jun 15, 2011 at 11:48 AM, Sergi  wrote:
> > I'm trying to place a `RelativeLayout` below a `LinearLayout` that
> > is nested inside another `LinearLayout` and it's not working.
>
> That's not what your XML shows - your XML shows a RelativeLayout below a
> LinearLayout nested insided another *Relative*Layout.
>
> > Is there any way I can do that?
>
> Yes - do exactly as you described, with the right property settings. Without
> a clear visual indication of what you're trying to achieve, it's hard to say
> more than 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


[android-developers] Re: building android2.3.4 with bluez 4.94 - readline.h problems

2011-06-16 Thread arun_satya3
Hi,

I was able to solve it by adding -I directive in android.mk file.

Regards,
Arun S.


On Jun 15, 4:21 pm, arun_satya3  wrote:
> Hi,
>
> I am building android 2.3.4 with bluez 4.94 for samsung nexus S mobile
> device.
> I have added / changed the android.mk files where ever required. Now I
> am getting the following error
>
> external/bluetooth/bluez/attrib/interactive.c:32:31: error: readline/
> readline.h: No such file or directory
> external/bluetooth/bluez/attrib/interactive.c:33:30: error: readline/
> history.h: No such file or directory
>
> I have installed necessary libraries.
>
> Can anyone help me in resolving the errors.
>
> Thanks a lot.
>
> Warm Regards,
> Arun S.

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


[android-developers] Is it possible to make call while playing

2011-06-16 Thread Bharathiraja R
Hi All,
Is it possible to make call while playing song.
If so anyone please share the code.

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


[android-developers] Re: revoke permissions to access google auth tokens

2011-06-16 Thread RS
community seemingly has no idea on this ... could anybody from google
perhaps answer

hellooo..

On Jun 15, 10:48 am, RS  wrote:
> Once an app is allowed to access an account's auth token, how can a
> user revoke?
>
> android.permission.USE_CREDENTIALS
>
> Also once an app has been denied, where to go and allow?
>
> eg: Chrome-to-phone won't ask again on its own once denied even across
> uninstall, reboot, reinstalls. Just force closes. That might be bad
> implementation but still there must be a central control to allow/deny/
> revoke/change access to auth tokens on per app basis.
>
> Which app's clear data/cache is safe to go for a clean start without
> affecting stock apps?
>
> Thanks
> RS

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


[android-developers]how to get the right shortcut icon of an application

2011-06-16 Thread June_Hello
Dear All,
I use the following codes to get the icon of an apk which is on sdcard
String path = "***/demo.apk"; //the path of the apk
DisplayMetrics metrics = new DisplayMetrics();
PackageParser parser = new PackageParser("");
PackageParser.Package mPackage = parser
.parsePackage(new File(path), path, metrics, 0);
Resources resource = this.getResources();
AssetManager asset = new AssetManager();
asset.addAssetPath(path);
Resources res = new Resources(asset, resource.getDefaultMetrics(),
resource.getConfiguration());

// get the shortcut icon which is on Launcher after the apk is be
installed
Bitmap bitmap= null;
bitmap= BitmapFactory.decodeResource(res, info.icon);

How can I get the right one according to the phone pixel, since there
is hdpi, mdpi and ldpi, each of them have
the corresponding shortcut icon, and I find I will get the icon from
hdpi, but mdpi is the one I really want.

Thanks for your reading and any advice is welcomed.

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


[android-developers] Honeycomb: Intent-Call to show the Battery-Chart?

2011-06-16 Thread Devomat
Hello,

I want to show the Battery-Chart with a button click:


 Intent intent = new Intent(Intent.ACTION_MAIN);
 intent.addCategory(Intent.CATEGORY_LAUNCHER);
 intent.setComponent(new
ComponentName("com.android.settings","com.android.settings.BatteryHistory"));
 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0,
intent, 0);


But it doesn't work.


Any solutions?

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


Re: [android-developers] Re: App Widget considerations when enabling installLocation in manifest

2011-06-16 Thread Mark Carter
I wanted to make clear this was an Android limitation rather than something
specific to the app.

I'm guessing most users would have manually moved the app to SD so they know
where to go. But maybe that's not right if the installLocation is "auto"?

Maybe it's enough to include a button (in the dialog) that takes them to the
App details screen (i.e. where the Move to SD card button is) although I'm
not sure how this is done in 3.0+ (and it may not work for future SDK
levels).

On 16 June 2011 20:04, String  wrote:

> Here's mine, being used in several apps now:
>
> [app name]'s widgets are currently disabled because it has been installed
> to SD card. To re-enable widgets, click App settings > Move to phone, then
> restart [app name].
>
> Similar to yours, but I wanted to give (novice) users more explicit
> instructions on how to move the app off the SD card. Though there's a danger
> there too, because not all phones label that button the same way. Hopefully
> they'll get the gist.
>
> 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
>

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

[android-developers] New O'Reilly book for Motorola Xoom users

2011-06-16 Thread jacek
Please check out our eBook reader/bookstore for Honeycomb

https://market.android.com/details?id=com.ambrosoft.searchlib

In the "featured" section of the Bookstore you will find

"Motorola Xoom: The Missing Manual" by Preston Gralla.

eCarrel is a new, official digital distribution channel for O'Reilly,
specialized for developers.
BTW, the app itself was developed on the Xoom  :-)
It is funny to read a book about the Xoom on the Xoom itself.

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

2011-06-16 Thread Tor Norbye
The property sheet bug is a bug specific to Eclipse 3.6.2. In other
versions of Eclipse, it should just work, and in ADT 12 we've added a
workaround for 3.6.2 as well. You can download a preview build from
http://tools.android.com/download/ .

-- Tor

On Wed, Jun 15, 2011 at 9:23 PM, jesb  wrote:
> Hello group,
> I'm a beginner in developing in android. I'm used to using visual
> studio for my IDE.
>
> here is a problem i'm having. When i launched an app in AVD, it keeps
> on forcing me to close. i tried to debug it using the debug feature in
> eclipse.
>
> i don't know if it's just me because i still know very little, or
> what. so far,  I find the debugging feature in eclipse when debugging
> android app. well, very useless.
>
> this is an example:
> i have a button, and i'm trying to create a listener for the button.
>
> i name the button id "confirm" (Id      @+id/confirm)
>
> i spent hours trying to debug my code, with no useful info from logcat
> or the debugger itself. maybe there is a feature in this book i'm
> using that i haven't gotten to yet.
>
> after 2 hours, i find out that if i change the button id to something
> else like "confirm1" (Id        @+id/confirm1), everything works perfectly!!!
> if i change the id back to "confirm", it forces close again when i run
> the app. I can only assume that confirm is somehow a reserved word,
> and the debugger didn't tell me that.
>
> is confirm really a RESERVED word??
>
> another thing that annoy me A LOT is the "Properties" tab. When i'm
> building a layout, there is no way i'm going to remember all the XML
> attributes for every form widgets. therefore, i rely a lot on the GUI
> and the Properties tab to set the value of my widgets(i.e setting the
> text value of my button, color of my background, etc).
>
> i could never get this to work. say that i have 4 buttons on a layout.
> and i need to see the properties of button 4. logically, this is what
> you would do:
> click on the properties tab, and click on button 4.
>
> this does NOT work. I have to do the following:
> - click properties tab
> - click button 4 (properties display doesn't change)
> - i need to click on some other tab, like console, or log cat
> - click on properties tab again
> - click on button 4 again. still the properties is not updating.
> - click on different tab again
> - click on properties again
> - click on button 4 again, and the view magically switch to some other
> tab(unpredictable which tab it will land on)
> - click on properties again
> - click on button 4 again.. BINGO. Now i can see the
> properties.
>
> AM I CRAZY or JUST DUMB
>
> can a more seasoned android developer tell me more about the problems
> i describe above?
>
> I would really appreciate any input.
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Passing Touch Event to Parent

2011-06-16 Thread zosq
I have a custom ViewSwitcher in which I implemented touch events so I
am able to scroll through screens using the touchscreen.

My layout hierarchy looks like this:













Now, the problem is that the touch events are being consumed by the
ListViews and I am not able to switch the views. It works fine when I
don't have the ListViews. I need to be able to scroll through the
views and scroll the ListView. How do I solve this?

Thanks in advance!

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


Re: [android-developers] Problem in Searching a Location in Emulator using Google Map

2011-06-16 Thread TreKing
On Wed, Jun 15, 2011 at 11:25 PM, Md.Fazla Rabbi OPU <
md.fazlara...@gmail.com> wrote:

> If the message *"Couldn't get connection factory client" *is not a problem
> then why i don't get any output
>

Presumably because you have another problem.

Yes I tried this already But no results. In the try block* *after this line:
> * List foundAdresses = gc.getFromLocationName( addressInput, 5);
> *it can't show any result though i use Logcat or Toast.


That sounds like "the other" problem.

-
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] compile in NDK, 3rd party shared library linked error

2011-06-16 Thread David Turner
You should post this to android-ndk instead.

Use LOCAL_STATIC_LIBRARIES instead of LOCAL_STATIC_LIBRARY
Similarly, LOCAL_SHARED_LIBRARIES instead of LOCAL_SHARED_LIBRARY

Hope this helps

2011/6/16 维江 郭 

> i m trying to build shared library named "libbestv.so" by "ndk-build"
> this library uses functions from prebuilt shared library "libbcti.so"
> and "libbcti.a"
> i have tried 2 methods to build it but both are failed. call for help
>
> first. my  Android.mk file likes this:
>
> LOCAL_PATH:= $(call my-dir)
>
> ##
>
> include $(CLEAR_VARS)
> LOCAL_MODULE:= static-lib
> LOCAL_SRC_FILES := libstaticbcti.a
> LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/
> include $(PREBUILT_STATIC_LIBRARY)
>
> ##
>
> include $(CLEAR_VARS)
> LOCAL_MODULE:= shared-lib
> LOCAL_SRC_FILES := libsharedbcti.so
> LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/
> include $(PREBUILT_SHARED_LIBRARY)
>
> ##
>
> include $(CLEAR_VARS)
> LOCAL_MODULE := libbestv
> LOCAL_SRC_FILES  := bcti_jni.c
> LOCAL_STATIC_LIBRARY := static-lib
> LOCAL_SHARED_LIBRARY := shared-lib
> include $(BUILD_SHARED_LIBRARY)
>
> ##
>
> the console displayed "undefined reference" error like this:
> /home/apt/workspace/BCTI/obj/local/armeabi/objs/bestv/bcti_jni.o: In
> function `Java_com_example_hellojni_HelloJni_bcti_open':
> /home/apt/workspace/BCTI/jni/bcti_jni.c:2066: undefined reference to
> `bcti_open'
> /home/apt/workspace/BCTI/jni/bcti_jni.c:2070: undefined reference to
> `bcti_getresult'
> /home/apt/workspace/BCTI/jni/bcti_jni.c:2181: undefined reference to
> `bcti_freeresult'
>
>
> 
> second. my  Android.mk file likes this:
>
> LOCAL_PATH:= $(call my-dir)
>
> ##
>
> include $(CLEAR_VARS)
> LOCAL_MODULE:= static-lib
> LOCAL_SRC_FILES := libstaticbcti.a
> LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/
> include $(PREBUILT_STATIC_LIBRARY)
>
> ##
>
> include $(CLEAR_VARS)
> LOCAL_MODULE:= shared-lib
> LOCAL_SRC_FILES := libsharedbcti.so
> LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/
> include $(PREBUILT_SHARED_LIBRARY)
>
> ##
>
> include $(CLEAR_VARS)
> LOCAL_MODULE := libbestv
> LOCAL_SRC_FILES  := bcti_jni.c
> LOCAL_LDFLAGS:= $(LOCAL_PATH)/libstaticbcti.a
> LOCAL_LDLIBS := $(LOCAL_PATH)/libsharedbcti.so
> include $(BUILD_SHARED_LIBRARY)
>
> ##
>
> the console displayed "could not read symbols" error like this:
> /home/apt/CloudHost/besttv/JNI_Build/android-ndk-r5b/toolchains/arm-
> linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-
> androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: /home/apt/
> workspace/BCTI/jni/libstaticbcti.a(bcti_service.o): Relocations in
> generic ELF (EM: 3)
> /home/apt/CloudHost/besttv/JNI_Build/android-ndk-r5b/toolchains/arm-
> linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-
> androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: /home/apt/
> workspace/BCTI/jni/libstaticbcti.a(bcti_service.o): Relocations in
> generic ELF (EM: 3)
> /home/apt/workspace/BCTI/jni/libstaticbcti.a: could not read symbols:
> File in wrong format
> collect2: ld returned 1 exit status
> make: *** [/home/apt/workspace/BCTI/obj/local/armeabi/libbestv.so] 错误
> 1
>
> if i ignore "LOCAL_LDFLAGS := $(LOCAL_PATH)/libstaticbcti.a"  , the
> console displayed like this:
> /home/apt/workspace/BCTI/jni/libsharedbcti.so: could not read symbols:
> File in wrong format
> collect2: ld returned 1 exit status
> make: *** [/home/apt/workspace/BCTI/obj/local/armeabi/libbestv.so] 错误 1
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] UUID in Bluetootht sample

2011-06-16 Thread Kristopher Micinski
Hrrm... and what did the exception tell you? The exception has a .text field
that will tell you why it fails. What did that say?

On Jun 16, 2011 5:46 AM, "wu mark"  wrote:

Dear Kris :

Thanks.

I use a Viewpad & Acer A500 to communicate through the bluetooth.

Mark

2011/6/15 Kristopher Micinski 
>
> Looks like you have the code right,  if y...

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