Re: [android-developers] How will make an application for auto launch on install from market

2011-09-30 Thread TreKing
On Sat, Oct 1, 2011 at 12:26 AM, Dianne Hackborn wrote:

> That is used to request an install.
>

Whoops. Meant this one:
http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_ADDED

An app can't run immediately after install, by design.  Prior to 3.1 there
> were some tricks you could play to make it likely you would get launched
> soon after an install.  As of 3.1 this restriction is strongly enforced.
>

Word - I was thinking the OP wanted to run his app after another was
installed.

-
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] Thanks, Android Developers are the BEST! Another question about databases?

2011-09-30 Thread Marco Alexander Schmitz
Hi sam, yesterday I read something about couchdb and nosql db. Please try
your favourite search machine, I think this will point you into the right
direction. Gretings marco
Am 01.10.2011 08:32 schrieb "Sam Deleon" :
> Before my questionOnce again thanks for the help, I'm finding
> everyone around Android so helpful and kind :)
> I found a lot of info with the answers to my last question and have
> been reading even more :) I'm learning lots and I'm so happy that is
> it so far clicking with me, although its not easy, I thought I was
> going to have a much harder time. I just so glad I'm learning :)
>
> OK question time:
>
> I'm creating a app that is going to be storing lots of data. What I
> want to know is if there is a way to query (pull) this data and create
> a report/form, something I specifically make, I'm not looking for it
> to just list data in rows or something. I need the "report","form" to
> be specific (something I can create the look of and just have the data
> imported into the right places whenever someone asks the app to
> produce a report) Is there a way to program this, either within the
> same app that's going to be collecting the data, like in the
> background or can I make another app to do it. Like say a doc file or
> PDF (I'm sure I can't write from the database to a doc or PDF
> directly, but maybe export the data to some other file, that has my
> layout in place, and just puts the data where I want it then convert
> to doc or PDF, the doc and PDF are not important as long as I can just
> make a file with a specific look, that can be printed at some point)
>
> Example:
> Someone using the main app, which lets them document things like a
> patients name, birthday, vital signs, pain info, falls, and so on and
> so on
> Now either same person or another person whats to print a report about
> that patient data but instead of just creating a file of some
> human readable kind with rows of data.. it creates a nice looking file
> something I pre-created/programed that just imported that certain data
> in the right places
>
> Sorry that took so long to get out, I also kinda repeated myself, I'm
> just making sure my point get across right :)
> Thank you Thank you for reading and trying to help me!
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Want to extends Activity and TabActivity in Main.java file ?

2011-09-30 Thread Dianne Hackborn
TabActivity is a subclass of Activity, so if you inherit from TabActivity,
you are also getting everything from Activity as well.

On Thu, Sep 29, 2011 at 1:03 AM, Ashish Tiwari  wrote:

> Hi friends,
> I'm new to Android development(Android-2.3) and developing a sample
> application,
> I want to extends "TabActivity" and "Activity" class in my main class..to
> use their properties at one place..
>
> 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] Re: how to check if device has hardware search key

2011-09-30 Thread Dianne Hackborn
What do you mean by go to settings and map their buttons?  There is a
well-defined keycode for search; you shouldn't need to ask the user to map
that to anything.

Anyway, our recommendation is to assume the search button isn't there and
always have another way to start a search.  In practice many users won't be
aware they can search if you are only relying on the hardware button.  (Good
argument for that button going away...)

On Fri, Sep 30, 2011 at 4:51 AM, Latimerius wrote:

>
> On Fri, Sep 30, 2011 at 1:07 PM, Mark Murphy wrote:
>
>> On Fri, Sep 30, 2011 at 6:25 AM, Latimerius 
>> wrote:
>> > Having no way to check seems unfortunate to me.  I mean, a lot of people
>> > bemoan Android "fragmentation" and the need to check before you use a
>> > feature (and to provide a fall-back if you can't).  I don't mind any of
>> > that, but not even being able to check really takes the problem to the
>> next
>> > level ...
>>
>> You should not be relying up on the existence of SEARCH, CAMERA, or
>> other optional buttons. You should be having other means of
>> accomplishing those same ends.
>>
>
> Sure, I'm not relying upon it.  I do have other means.  I'm just saying
> being able to check for hardware would enable me to spare some users having
> to go to settings and map their buttons if they have any.
>
> Plus, to be honest I don't see much of a reason not to include a way to
> check for a button.
>
> SEARCH is supposed to invoke a search. When using SEARCH for search,
>> have an on-screen mechanism to invoke search (action bar button, menu
>> choice, etc.) in addition to supporting the SEARCH button for invoking
>> search. That's not only to benefit those who lack SEARCH but those who
>> forget there's a SEARCH button (I almost never use mine, for example).
>
>
> I'm not using the Search button to search in this case.  This is just part
> of a dev UI until on-screen  controls are finished.
>
> Having said that however, it will also say that using hardware buttons is
> likely to give a more pleasant user experience so it would be worth
> considering even for the end user interface.
>
> Anyway, things are the way they are so I guess this is mainly just idle
> talk ... ;-)
>
> 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] Thanks, Android Developers are the BEST! Another question about databases?

2011-09-30 Thread Sam Deleon
Before my questionOnce again thanks for the help, I'm finding
everyone around Android so helpful and kind :)
I found a lot of info with the answers to my last question and have
been reading even more :) I'm learning lots and I'm so happy that is
it so far clicking with me, although its not easy, I thought I was
going to have a much harder time. I just so glad I'm learning :)

OK question time:

I'm creating a app that is going to be storing lots of data. What I
want to know is if there is a way to query (pull) this data and create
a report/form, something I specifically make, I'm not looking for it
to just list data in rows or something. I need the "report","form" to
be specific (something I can create the look of and just have the data
imported into the right places whenever someone asks the app to
produce a report)  Is there a way to program this, either within the
same app that's going to be collecting the data, like in the
background or can I make another app to do it. Like say a doc file or
PDF (I'm sure I can't write from the database to a doc or PDF
directly, but maybe export the data to some other file, that has my
layout in place, and just puts the data where I want it then convert
to doc or PDF, the doc and PDF are not important as long as I can just
make a file with a specific look, that can be printed at some point)

Example:
Someone using the main app, which lets them document things like a
patients name, birthday, vital signs, pain info, falls, and so on and
so on
Now either same person or another person whats to print a report about
that patient data but instead of just creating a file of some
human readable kind with rows of data.. it creates a nice looking file
something I pre-created/programed that just imported that certain data
in the right places

Sorry that took so long to get out, I also kinda repeated myself, I'm
just making sure my point get across right :)
Thank you Thank you for reading and trying to help me!


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


Re: [android-developers]Application complatiblity with all android devices

2011-09-30 Thread Sam Neel
Thanks

On Sat, Oct 1, 2011 at 5:52 AM, TreKing  wrote:

>  On Thu, Sep 29, 2011 at 11:22 PM, Sam Neel  wrote:
>
>> I would like to know. Is it possible to make our application to run on all
>> android devices, it may be tablet or mobile or some thing else.
>
>
> Yes, it is possible. There have been numerous blog posts on this topic.
>
>
> -
> 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

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

2011-09-30 Thread Zsolt Vasvari
I didn't read the rest of your question when I saw this:

"40% of users have my application installed on more than one
device."

How do you know this?  If you go by the numbers given to you on the
Developer Console, those numbers are at least misleading, and probably
completely wrong.   I have very, very hard to believe that 40% of
Android users have multiple devices with the same Google Id tied to
the,



On Oct 1, 7:41 am, Phil H  wrote:
> I'm looking at the LVL code and had a question about user identity and
> the DeviceLimiter interface. I've one app in the Android Market that
> uses LVL in its recommended form, so users can install the application
> on any device they have set up their account on. Early indications are
> that the software is being repeat-installed at a higher rate than I'd
> expect - 40% of users have my application installed on more than one
> device. That seems a bit high but, for that application in particular,
> it is no more significant than some lost sales - there are no ongoing
> running costs for me to support.
>
> It is enough to make me concerned about my next app though, which
> requires a server in the cloud. Application sales should cover the
> cost of this but if the repeat installation rate is high, my
> application may not be sustainable in the medium to long term - server
> costs will eat into income and I could end up running at a significant
> loss - and the more popular the app becomes, the bigger that problem
> is. So this got me thinking. Repeat installations by one used are not
> a problem, but one core function will account for the majority of
> server load - both processing and bandwidth. So, my tentative thought
> is that if a user is currently using that core function on one of
> their devices, they will not be able to use that function on any other
> until they are done with it on the first device.
>
> To be able to implement this I need access to a piece of data that is
> common to all the installations, which brings me round to the
> DeviceLimiter interface. Is the userId supplied here the same for a
> given application, purchased by a single user, regardless of the
> device it is installed on? Or is it the ANDROID_ID for the device? I
> don't want any identifying information (like an email address), I just
> want to be able to spot, from my server code, when multiple instances
> of a single purchase are using my (relatively) expensive resources
> simultaneously.
>
> A fall back solution would involve the user putting in their Google
> Checkout order number to activate the application - is there a service
> exposed to securely obtain details about an order that my server could
> make use of? All I really need is to know is the application
> purchased.
>
> A bit rambling I know, but any suggestions on ways of tackling this
> issue are most welcome.

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


[android-developers] Re: how to check if device has hardware search key

2011-09-30 Thread Zsolt Vasvari
> Having said that however, it will also say that using hardware buttons is
> likely to give a more pleasant user experience so it would be worth
> considering even for the end user interface.

What's your definition of "hardware" buttons?  Do you consider the
buttons on the Nexus One to be hardware?  I don't -- they are
dedicated buttons, but there is nothing mechanical about them.  It
really is no different than using the button bar on Honeycomb.

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

2011-09-30 Thread Zsolt Vasvari
Look at the source code of the Contacts app.

On Sep 28, 5:19 pm, M J  wrote:
> Hey,
>
> I really need your help. All I want to do is adding a number to an
> existing contact with a specific label and the ability to remove
> numbers again.
>
> I really tried a lot of things, but none of it works for me. I want
> only support the contacts api > 2.0 and not 1.6. And I do not want to
> create an own Sync Adapter or any Sync Accounts like Skype Twitter and
> so on.
>
> I just want to add and remove numbers to the standard phone book. Is
> this really so hard? I cannot find any documentation for this.
>
> My problem is the raw contact id, I do not have this raw contact id, I
> only have the contact id of the agregated contact and the contact
> name. It seems that I need to add a number a raw contact id, but I how
> do I know to which raw contact id I should add the number? I think the
> best would be to make my own raw contact and add the number there, but
> how can I do this?
>
> I found out how to add a completely new Contact described in the
> ContactManager sample, but if I try this, there are two contacts with
> completely the same name. So this cannot be the right way, too.
>
> I hope any one can help me
> Thank you in advance!

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


Re: [android-developers] How will make an application for auto launch on install from market

2011-09-30 Thread Dianne Hackborn
That is used to request an install.

An app can't run immediately after install, by design.  Prior to 3.1 there
were some tricks you could play to make it likely you would get launched
soon after an install.  As of 3.1 this restriction is strongly enforced.

On Fri, Sep 30, 2011 at 5:06 PM, TreKing  wrote:

> On Thu, Sep 29, 2011 at 1:34 AM, jr_hamza  wrote:
>
>> I just want to make an security app, which sould scan the device
>> after install the app on the device from market.
>>
>
>
> http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_INSTALL
>
>
> -
> 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
>



-- 
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: Not able to access custom content provider.

2011-09-30 Thread Pradeep
Hello Mark,

I Have imported the class file, due to which I am not getting the
compile error and Moreover, by importing the class file, we should be
able to access the static variable.

How would other application know about the URI of this content
provider. So, I thought this Content_URI was introduced as a concept
for content provider, as done for other providers like contacts etc.

Accessing the URiI like "Content:// abc.com.provider/books"  looks a
wage usage i think. What do u say.

On Sep 30, 10:26 pm, Mark Murphy  wrote:
> On Thu, Sep 29, 2011 at 10:35 PM, Pradeep  wrote:
> > I am trying to access the content provider I created
> > "MyContentProvider" in another application(.apk) through
> > MyContentProvider.Content_URI. But I am getting an runtime  exception
> > like noClassDefFoundError.
>
> Of course. That class is not in your application. It should not even
> compile, let alone run.
>
> > If I use the complete URI like "Content://
> > abc.com.provider/books"  it works.
>
> That is the proper way to reference content Uri values from other 
> applications.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0
> Available!

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


[android-developers] Re: Direction help?

2011-09-30 Thread Studio LFP
First, welcome to the world of Android!

On your question, you can do pretty much anything you want with Android with 
enough time and effort.

Like MComputing Lab posted, you can use a client/server setup easily in 
Android via any number of ways. You can also do local storage via a database 
and just filter records based on who is logged in locally.

If you are looking to do client/server via a network, a simple route would 
be to use a web based service to store data and just pull from it in Android 
with the built-in HTTP protocol classes.

Here's a few starting points:

HTTP: 
http://developer.android.com/reference/org/apache/http/package-summary.html
JSON: http://developer.android.com/reference/org/json/package-summary.html
XML: 
http://developer.android.com/reference/javax/xml/parsers/package-summary.html

Those are some basic ways to pass data back and forth between a web service 
and Android. There's also a sockets layer if you like to talk more directly 
to a network device:

Sockets: http://developer.android.com/reference/java/net/Socket.html

If you haven't already read it all, you should check out the Android Guide 
section:

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

Here are a few I'd suggest if you haven't already checked them out:

http://developer.android.com/guide/topics/fundamentals.html
http://developer.android.com/guide/topics/fundamentals/activities.html
http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html
http://developer.android.com/guide/topics/fundamentals/processes-and-threads.html

Those should help you in understanding how activities live/grow/die and how 
to use processes/threads to make good responsive code.

Also, if you scroll down in Dev Guide section, there is a Best Practices 
section that will come in really handy.

Hope that helps.

Steven
Studio LFP
http://www.studio-lfp.com

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

[android-developers] Re: real time gps tracking

2011-09-30 Thread Thomas
I think also you would have to have some central server that would be
aware of your location and your friends location and then would be
able to inform the two of you that you areiwithn some speificated
distance.

Best Regards

Tom B

On Sep 28, 3:30 pm, natalka  wrote:
> Dear all I would like to develop and app that would allow me to locate
> nearby friends.
>
> Ideally i would like to create an and app that will show friend that
> are near me.
> Can someone please help me out with the technologies i would need to
> do this?
>
> Thank you

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


Re: [android-developers] Direction help?

2011-09-30 Thread MComputing Lab
Keep a centralized server where the data gets populated. The app retrieves
the data from the data server based on the profile of the user and displays.
On 30 Sep 2011 22:51, "Sam Deleon"  wrote:
> I’m new to android development, I have been reading tutorials online
> and also started reading a beginners book. I already have a app idea
> but I have a question that I searched for but can’t find.
>
> I’m wanting to build a app that when first launched will come to a
> login screen, once logged in, the Data displayed will be specific to
> that user login.
>
> Think of it like Bank Apps or an even better way to think of it is,
> say you have 3 nurses, each with their own device, they all launch the
> same app, when they log in, their screens look the same but the list
> of patients are different for each nurse, and let’s say the list was
> created by another person from another device, with a app that is tied
> to the nurses app but different in the way that is sets up scheduling
> and other stuff.
>
> I want to know if it’s possible and if so if I should be more focused
> on learning something more than other stuff? I know I have lots to
> learn but would doing this type of app have more to do with databases
> rather than android 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

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

[android-developers] Loading soundpool and music in activity A and calling in Activity B

2011-09-30 Thread R S
Hi!

Right now I am loading my tiny music clips in the same class that I am using
it in like this:

public static final int A1 = 1;
 public static final int A3 = 3;
private SoundPool soundPool;
private HashMap soundPoolMap;
 soundPool = new SoundPool(5, AudioManager.STREAM_MUSIC, 100);
 soundPoolMap = new HashMap();

soundPoolMap.put(A1,soundPool.load(GameScreen_bugfix.this, R.raw.a, 1));
 soundPoolMap.put(A3,soundPool.load(GameScreen_bugfix.this, R.raw.b, 1));
//etc

AudioManager mgr = (AudioManager)
GameScreen_bugfix.this.getSystemService(Context.AUDIO_SERVICE);
float streamVolumeCurrent = mgr.getStreamVolume(AudioManager.STREAM_MUSIC);
 float streamVolumeMax = mgr.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
float volume = streamVolumeCurrent / streamVolumeMax;

try {
soundPool.play(soundPoolMap.get(sound), volume, volume, 1, 0,
 1f);
} catch (Exception e) {
e.printStackTrace();
 }


Can someone please tell me how I can load all the soundclips in Activity A,
and then call them in Activity B?

Thanks!
Ryan

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

[android-developers] Re: Always-on GPS: widget or app?

2011-09-30 Thread Studio LFP
Correct.

Note that this may have been fixed somewhere along the way and they haven't 
taken time to mark that issue resolved. As you can see, the Droid and others 
I confirmed that on were Android 2.0.1, which is hardly in use today.

At the time of posting that issue, I spent a ton of time trying to figure 
out why I couldn't get a lock in another application at any speed while I 
had a background location request set at 15 minutes. Turned out it was my 
application causing the issue and prompted me to write that post.

I haven't revisited that part of our internal app yet, so feel free to test 
and see what results you get.

Hopefully that is fixed and we can all be happy about it!

Steven
Studio LFP
http://www.studio-lfp.com


On Friday, September 30, 2011 3:16:57 PM UTC-5, Pinheiro wrote:
>
> Just to clarify one thing: 
> > you don't want to use the requestLocationUpdates(). 
> I suppose you meant: "you don't want to call requestLocationUpdates() 
> for continuous updates", right?In the BroadcastReceiver activity, I'll 
> call the requestLocationUpdates() and then removeUpdate() as soon as 
> there is a fix. Also, the new alarm will be created only after a fix 
> so that there isn't a possibility of alarm conflict (one alarm is not 
> done with the GPS and then there's a new one).

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: When my app force closes, does it also close the associated service?

2011-09-30 Thread Emanuel Moecklin
Hi Ricardo

An IntentService is perfect for your purpose.
Wrap every notification in an Intent and send it to the IntentService
(startService(Intent)).
The service will start as needed and handles each Intent using a
worker thread to keep the ui thread responsive. If it runs out of work
it stops itself.
Should your app crash or should Android decide it needs to destroy the
service because it needs resources for other purposes, the service
will be restarted as soon as possible. To achieve this you must call
setIntentRedelivery(true) in your constructor.

IntentServices are not a solution for your problem if you want to
process several requests at a time, but you can easily extend Service
to handle multiple requests simultaneously.

Ah and RTM: 
http://developer.android.com/guide/topics/fundamentals/services.html.

Cheers
Emanuel Moecklin
1gravity LLC

On Sep 28, 8:48 pm, Ricardo Amaral  wrote:
> This app I'm developing is strong in notifications. I've done some
> testing with them and realized that when my activity closes, the
> notifications remain pretty much alive. But when the app itself force
> closes, the notifications disappear.
>
> I was looking into introducing a service to my app and handle all
> notifications through the service instead of an activity. But since
> the app and the service run on the same UI thread, will the service
> also close when my app force closes?
>
> If so, the notifications will be removed as they were before and the
> service is useless for what I'm trying to achieve... Is there any
> other way to solve this problem or I just have to do my best so my app
> doesn't force close?

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


[android-developers] chen potato wants to chat

2011-09-30 Thread chen potato
---

chen potato wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-7981ba847c-b9d8fc5c3d-oHKO77wSOPqP-hhxVRXCVyd1Z3c
You'll need to click this link to be able to chat with chen potato.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with chen potato, visit:
http://mail.google.com/mail/a-7981ba847c-b9d8fc5c3d-oHKO77wSOPqP-hhxVRXCVyd1Z3c

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into "conversations"
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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


Re: [android-developers]Application complatiblity with all android devices

2011-09-30 Thread TreKing
On Thu, Sep 29, 2011 at 11:22 PM, Sam Neel  wrote:

> I would like to know. Is it possible to make our application to run on all
> android devices, it may be tablet or mobile or some thing else.


Yes, it is possible. There have been numerous blog posts on this topic.

-
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] how to get the path of the directry which I will choose it when I click on a button

2011-09-30 Thread TreKing
On Thu, Sep 29, 2011 at 7:49 PM, Souad  wrote:

> I would like to get the path of the directry which I will choose it when
> I click on a button, of couse without finich my application. how can I do
> this?
>

Your questions is really not clear.

-
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] create edit text dynamically on enter

2011-09-30 Thread TreKing
On Thu, Sep 29, 2011 at 9:58 PM, Matt  wrote:

> i am coded to do almost anything after "enter" (ie; Toast,
> hideSoftInput), but cannot figure out how to create a new text.
>

Use a valid constructor.


>   I constantly get an error "The constructor
> EditText(new View.OnKeyListener(){}) is undefined"
>

That is not a valid constructor.


> Here is a snippet of the code.  FYI, editText1 that is referenced
> below was created programatticaly and i manually setId(601).  i would
> like the subsequesnt editTexts that are dynamically created to be ++
> the previous editText (ie; editText1 id=601, editText2 id=602, etc.)
>

See getId() and setId()

-
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] Need Help

2011-09-30 Thread TreKing
On Wed, Sep 28, 2011 at 8:18 AM, C S Azad  wrote:

> so i need code  to make search view in android. pl can any help me through
> that code.
>

Read the documentation - there is a section on Search.

-
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] intent problame

2011-09-30 Thread TreKing
On Thu, Sep 29, 2011 at 7:21 AM, kinjal shah  wrote:

> my application is stop forcefully when i m click on button.i m
> uninstall my application form android emulator.but the still problame
> i m facing.please give me some solution regarding to this problame.how
> can i fix this intent problame?give me some solution
>

The solution is to debug your application and fix the problem that causes
your app to crash.

-
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] When my app force closes, does it also close the associated service?

2011-09-30 Thread TreKing
On Wed, Sep 28, 2011 at 7:48 PM, Ricardo Amaral wrote:

> But since the app and the service run on the same UI thread, will the
> service also close when my app force closes?
>

Yes, but more because they run in the same process, not because of the same
UI thread.


> Is there any other way to solve this problem or I just have to do my best
> so my app doesn't force close?
>

The second one.

-
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] Want to extends Activity and TabActivity in Main.java file ?

2011-09-30 Thread TreKing
On Thu, Sep 29, 2011 at 3:03 AM, Ashish Tiwari  wrote:

> I want to extends "TabActivity" and "Activity" class in my main class..to
> use their properties at one place..


OK - so do it. This tells us nothing about what problem you're having.

-
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] How will make an application for auto launch on install from market

2011-09-30 Thread TreKing
On Thu, Sep 29, 2011 at 1:34 AM, jr_hamza  wrote:

> I just want to make an security app, which sould scan the device
> after install the app on the device from market.
>

http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_INSTALL

-
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] add friend facebook in android with facebook sdk

2011-09-30 Thread TreKing
2011/9/29 Nguyễn Trung Tài 

> I can add a friend using facebook dialog, but i can't add a friend
> without using it. (like facebook application for android )
>

Try a Facebook SDK support forum.

-
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] NEWBIE needs help with Android Tab Widget tutorial

2011-09-30 Thread TreKing
On Wed, Sep 28, 2011 at 11:30 PM, Chris Cullington-Johnson <
chriscj...@gmail.com> wrote:

> My app now doen't display errors but will not run it shows the following
> error
>
>  " The appication HelloTabWidget (process Tab.Widget) has stopped
> unexpectedly.."
>

You need to use the debugger and LogCat to determine what is throwing the
exception causing the app to crash.

-
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] real time gps tracking

2011-09-30 Thread TreKing
On Wed, Sep 28, 2011 at 2:30 PM, natalka  wrote:

> Can someone please help me out with the technologies i would need to do
> this?
>

There is documentation on getting the device location. That would be a good
starting point.

-
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] java.lang.ClassCastException: android.widget.CheckBox

2011-09-30 Thread TreKing
On Wed, Sep 28, 2011 at 3:28 AM, chen potato wrote:

> 09-28 08:21:01.750: ERROR/AndroidRuntime(791): Caused by:
> java.lang.ClassCastException: android.widget.CheckBox
>

You are apparently trying to cast a CheckBox to an EditText. Don't do that.

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

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

Re: [android-developers] about intents.

2011-09-30 Thread TreKing
On Wed, Sep 28, 2011 at 8:13 AM, aditi badwe  wrote:

> hi if i am building the basic application for android in main .java
> file in src folder then i have given a button in xml file...after
> clicking on the button how could i go to next screen i.e screen 2??
>

Read the documentation and go through the samples.

-
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] HTTP response Problem

2011-09-30 Thread TreKing
On Tue, Sep 27, 2011 at 5:44 PM, daniel_nyb...@hotmail.com <
daniel_nyb...@hotmail.com> wrote:

> I am trying to read the data from a web site, (in string format).
> The problem is that, after executed the row "response =
> client.execute(request);" it jumps directly to "}finally{"
> WHY
>

I would guess because it's throwing an exception. Sounds like you need to
read up on that topic. Also read the documentation section on debugging.

-
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: XML DOM Parser works in JAVA, Crashes Android App, Now XMLPullParser

2011-09-30 Thread Dancing Fingers
Thanks Kostya,
I changed the '0' to a '1' without success.  Actually Chars have only
2 fields: a char and an int, which I thought setters were for.  The
thing of it is that I keep getting an XMLPullParserException, saying
that I'm reading line -1, column -1.

Thanks.

Chris

On Sep 30, 6:18 pm, Kostya Vasilyev  wrote:
> I don't see your code ever assigning anything to myCh, so expect it to crash
> when trying to call setTheChar and setCount.
>
> Also, that charAt(0) should really be charAt(1), no?
>
> --
> Kostya Vasilyev
> 01.10.2011 2:03 пользователь "Dancing Fingers"  написал:
>
>
>
>
>
>
>
> > So I'm starting to suspect my XML file. Here it is:
>
> > 
> > 
> > 
> > "E"
> > 175391
> > 
>
> > 
> > "T"
> > 129899
> > 
>
> > 
> > "A"
> > 110693
> > 
>
> > 
> > "O"
> > 108786
> > 
> > 
>
> > I rewrote the method to use a XML pull parser:
>
> > public void parseCharXmlFile(){
> > Chars myCh = null;
> > String nameTag= "";
>
> > try {
> > InputStream iStrm = getResources().openRawResource(R.xml.chars);
> > XmlPullParser parser = Xml.newPullParser();
> > parser.setInput(iStrm, null);
> > int eventType = parser.getEventType();
> > boolean done = false;
>
> > while (eventType != XmlPullParser.END_DOCUMENT ){
> > switch (eventType){
> > case XmlPullParser.START_DOCUMENT:
> > chars.clear();
> > break;
> > case XmlPullParser.START_TAG:
> > nameTag = parser.getName();
> > if (nameTag.equalsIgnoreCase("ch") ) {
> > myCh.setTheChar(parser.nextText().charAt(0));
> > }else if (nameTag.equalsIgnoreCase("count")) {
> > myCh.setCount(Integer.parseInt(parser.nextText()));
> > chars.add(myCh);
> > }
> > break;
> > } // event switch end
> > eventType = parser.next();
> > }
> > } catch (Exception e) {
> > throw new RuntimeException(e);
> > }
>
> > }
>
> > Every thing that I've read indicate that this should work. Any
> > thoughts would be appreciated.
>
> > Chris
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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] android customization issue

2011-09-30 Thread TreKing
On Fri, Sep 30, 2011 at 8:28 AM, sourabh sahu  wrote:

> i want to customize os. ... any inputs is highly appreciated.


Ask in a forum that is dedicated to customizing the OS.

-
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] LVL, DeviceLimiter and userId

2011-09-30 Thread Phil H
I'm looking at the LVL code and had a question about user identity and
the DeviceLimiter interface. I've one app in the Android Market that
uses LVL in its recommended form, so users can install the application
on any device they have set up their account on. Early indications are
that the software is being repeat-installed at a higher rate than I'd
expect - 40% of users have my application installed on more than one
device. That seems a bit high but, for that application in particular,
it is no more significant than some lost sales - there are no ongoing
running costs for me to support.

It is enough to make me concerned about my next app though, which
requires a server in the cloud. Application sales should cover the
cost of this but if the repeat installation rate is high, my
application may not be sustainable in the medium to long term - server
costs will eat into income and I could end up running at a significant
loss - and the more popular the app becomes, the bigger that problem
is. So this got me thinking. Repeat installations by one used are not
a problem, but one core function will account for the majority of
server load - both processing and bandwidth. So, my tentative thought
is that if a user is currently using that core function on one of
their devices, they will not be able to use that function on any other
until they are done with it on the first device.

To be able to implement this I need access to a piece of data that is
common to all the installations, which brings me round to the
DeviceLimiter interface. Is the userId supplied here the same for a
given application, purchased by a single user, regardless of the
device it is installed on? Or is it the ANDROID_ID for the device? I
don't want any identifying information (like an email address), I just
want to be able to spot, from my server code, when multiple instances
of a single purchase are using my (relatively) expensive resources
simultaneously.

A fall back solution would involve the user putting in their Google
Checkout order number to activate the application - is there a service
exposed to securely obtain details about an order that my server could
make use of? All I really need is to know is the application
purchased.

A bit rambling I know, but any suggestions on ways of tackling this
issue are most welcome.

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

2011-09-30 Thread Mark Murphy
I suggest using their IntentIntegrator, as I did in this somewhat-old
sample project:

https://github.com/commonsguy/zxingdemo

Also, delete your  -- *you* are not *implementing* an
activity supporting com.google.zxing.client.android.SCAN. You are
*consuming* an activity from the Barcode Scanner application that
implements com.google.zxing.client.android.SCAN.

Beyond that, since you did not state what your problem is, it may be
difficult for people to assist you.

On Fri, Sep 30, 2011 at 7:30 PM, leigh8347  wrote:
> im having a little trouble with my app
>
> i want the barcode scanner to open on the click of a button(scan1),
> scan barcode, and return details to a edittext (barcode1).
>
> here is what i have so far..
>
> package com.android.app;
>
> import android.app.Activity;
> import android.content.Intent;
> import android.os.Bundle;
> import android.view.View;
> import android.widget.Button;
> import android.widget.EditText;
>
>        public class Scanner extends Activity {
>
>            /** Called when the activity is first created. */
>            @Override
>            public void onCreate(Bundle savedInstanceState) {
>                super.onCreate(savedInstanceState);
>                setContentView(R.layout.scanner);}
>
>            public Button.OnClickListener scan1 = new
> Button.OnClickListener() {
>                public void onClick(View v) {
>                    Intent intent = new
> Intent("com.google.zxing.client.android.SCAN");
>                    intent.setPackage("com.google.zxing.client.android");
>                    intent.putExtra("SCAN_MODE", "PRODUCT_MODE");
>                    startActivityForResult(intent, 0);
>                }
>        };
>
>            public void onActivityResult(int requestCode, int resultCode,
> Intent intent) {
>                if (requestCode == 0) {
>                    if (resultCode == RESULT_OK) {
>                        String contents =
> intent.getStringExtra("SCAN_RESULT");
>                        // Handle successful scan
>                        EditText editComment =
> (EditText)findViewById(R.id.barcode1);
>                                editComment.setText(contents);
>                    } else if (resultCode == RESULT_CANCELED) {
>                        // Handle cancel
>                    }
>                }
>            }
>
> }
>
>
> this is my manifest entry..
>
>                 android:label="@string/app_name" >
>                        
>        
>        
>      
>                
>
>
> any help would be great
>
> many 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
>



-- 
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 2.0
Available!

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


[android-developers] barcode scanner not launching

2011-09-30 Thread leigh8347
im having a little trouble with my app

i want the barcode scanner to open on the click of a button(scan1),
scan barcode, and return details to a edittext (barcode1).

here is what i have so far..

package com.android.app;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class Scanner extends Activity {

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.scanner);}

public Button.OnClickListener scan1 = new
Button.OnClickListener() {
public void onClick(View v) {
Intent intent = new
Intent("com.google.zxing.client.android.SCAN");
intent.setPackage("com.google.zxing.client.android");
intent.putExtra("SCAN_MODE", "PRODUCT_MODE");
startActivityForResult(intent, 0);
}
};

public void onActivityResult(int requestCode, int resultCode,
Intent intent) {
if (requestCode == 0) {
if (resultCode == RESULT_OK) {
String contents =
intent.getStringExtra("SCAN_RESULT");
// Handle successful scan
EditText editComment =
(EditText)findViewById(R.id.barcode1);
editComment.setText(contents);
} else if (resultCode == RESULT_CANCELED) {
// Handle cancel
}
}
}

}


this is my manifest entry..





  



any help would be great

many 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] DrawTextOnPath advice needed.

2011-09-30 Thread Nathan
It turns out the math wasn't good enough. My approximation of distances 
wasn't accurate enough; I have to do a few more square roots. 

With that in mind, I can space the text along the path. 

I haven't solved the other problem yet, but if I have several labels at 
intervals on a path, chances are at least one of them won't look hideous. 

Nathan  

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

[android-developers] Re: How to get pure UTC time?

2011-09-30 Thread RLScott
I also have a need for accurate NTP embedded into my app.  I am
writing a very accurate musical instrument tuner.  One of the things
that such an app needs to do is to calibrate the device to compensate
for variations in the sound system's quartz crystal time base.  On
another platform I did this by having the user call up the NIST's free
time and frequency standard service on a wired phone and let my app
listen to the 500 Hz or 600 Hz reference tones.  But that is a pain
for the user.  I would like to offer a alternative NTP method of doing
this for devices that have occasional broadband internet connection..
My idea is to sample NTP time at the same time that I start counting
audio packets coming in from the sound API.  Then after some time
(maybe 10 minutes) sample NTP again.  By knowing the difference in NTP
time and the number of audio packets processed I can find the
necessary calibration for that device.  The accuracy I am looking for
is 1 part in 200,000.  For a 10-minute sample interval that translates
to a total time accuracy of 3 msec.  If that is difficult to do with
NTP then I could extend my sample time to 100 minutes.  Then I would
only need 30 msec. time accuracy.  But the longer I make the sample
period the more of a pain it becomes for the user, even if he only has
to do this once when the app is first installed.  Can anyone tell me
if embedding NTP into my app is likely to serve this purpose?

On Sep 30, 2:48 pm, Jim Graham  wrote:
> On Wed, Sep 28, 2011 at 11:52:18AM -0700, cool_zack wrote:
>
> > I want to get UTC time. It should not change except for tiny
> > adjustments that happen from Network. User modifications to the time
> > on the device must not affect it.
>
> What you're asking for is SNTP (often abbreviated as NTP).  If all you
> need is an app, search in the market for NTP.  Most of the NTP apps
> will set your device's clock (requires root).
>
> There's an app, called "UTC Time" which displays local time and UTC
> side by side.  With a rooted device, it will also keep your device's
> time set to whichever SNTP server you have it configured for.
>
> If you need this for an app you're writing, let me know what you find,
> as I have some ideas along that line, myself..
>
> Later,
>    --jim
>
> --
> THE SCORE:  ME:  2  CANCER:  0
> 73 DE N5IAL (/4)        | Remember your spelling rules, including:
> spooky1...@gmail.com    |   I before E except after C
> < Running FreeBSD 7.0 > |
> ICBM / Hurricane:       |   BEING a native-born American, I don't
>    30.44406N 86.59909W  |   always notice our WEIRD spelling
>
> Android Apps Listing athttp://www.jstrack.org/barcodes.html

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


Re: [android-developers] Re: XML DOM Parser works in JAVA, Crashes Android App, Now XMLPullParser

2011-09-30 Thread Kostya Vasilyev
I don't see your code ever assigning anything to myCh, so expect it to crash
when trying to call setTheChar and setCount.

Also, that charAt(0) should really be charAt(1), no?

--
Kostya Vasilyev
01.10.2011 2:03 пользователь "Dancing Fingers"  написал:
> So I'm starting to suspect my XML file. Here it is:
>
> 
> 
> 
> "E"
> 175391
> 
>
> 
> "T"
> 129899
> 
>
> 
> "A"
> 110693
> 
>
> 
> "O"
> 108786
> 
> 
>
>
> I rewrote the method to use a XML pull parser:
>
>
> public void parseCharXmlFile(){
> Chars myCh = null;
> String nameTag= "";
>
> try {
> InputStream iStrm = getResources().openRawResource(R.xml.chars);
> XmlPullParser parser = Xml.newPullParser();
> parser.setInput(iStrm, null);
> int eventType = parser.getEventType();
> boolean done = false;
>
> while (eventType != XmlPullParser.END_DOCUMENT ){
> switch (eventType){
> case XmlPullParser.START_DOCUMENT:
> chars.clear();
> break;
> case XmlPullParser.START_TAG:
> nameTag = parser.getName();
> if (nameTag.equalsIgnoreCase("ch") ) {
> myCh.setTheChar(parser.nextText().charAt(0));
> }else if (nameTag.equalsIgnoreCase("count")) {
> myCh.setCount(Integer.parseInt(parser.nextText()));
> chars.add(myCh);
> }
> break;
> } // event switch end
> eventType = parser.next();
> }
> } catch (Exception e) {
> throw new RuntimeException(e);
> }
>
> }
>
>
> Every thing that I've read indicate that this should work. Any
> thoughts would be appreciated.
>
> Chris
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: XML DOM Parser works in JAVA, Crashes Android App, Now XMLPullParser

2011-09-30 Thread Dancing Fingers
So I'm starting to suspect my XML file.  Here it is:



  
  "E"
  175391
  

  
  "T"
  129899
  

  
  "A"
  110693
  

  
  "O"
  108786
  



I rewrote the method to use a XML pull parser:


public void parseCharXmlFile(){
Chars myCh = null;
String nameTag= "";

try {
InputStream iStrm = 
getResources().openRawResource(R.xml.chars);
XmlPullParser parser = Xml.newPullParser();
parser.setInput(iStrm, null);
int eventType = parser.getEventType();
boolean done = false;

while (eventType != XmlPullParser.END_DOCUMENT ){
switch (eventType){
case XmlPullParser.START_DOCUMENT:
chars.clear();
break;
case XmlPullParser.START_TAG:
nameTag = parser.getName();
if (nameTag.equalsIgnoreCase("ch") ) {
myCh.setTheChar(parser.nextText().charAt(0));
}else if 
(nameTag.equalsIgnoreCase("count")) {

myCh.setCount(Integer.parseInt(parser.nextText()));
chars.add(myCh);
}
break;
}  // event switch end
eventType = parser.next();
   }
} catch (Exception e) {
throw new RuntimeException(e);
}

   }


Every thing that I've read indicate that this should work.  Any
thoughts would be appreciated.

Chris

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


[android-developers] Accessory Kit and any other phone than a Nexus

2011-09-30 Thread John Windberg
Anyone ever get the accessory DemoKit to load on any other phone other
than a nexus?
I'm trying with a Galaxy tab and a t-mobile G2, both are running
android 2.3.4, which ought have everything.

Loading the apk gives me this error, and my android ide and libraries
are all up to date.

Package com.google.android.DemoKit requires unavailable shared library
com.android.future.usb.accessory; failing!

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


[android-developers] Bizarre jump in ratings/comments - just me?

2011-09-30 Thread Adam Ratana
Today I noticed one of my apps (and only one) got a strange jump in ratings. 
 Approximately +124 four star ratings and +124 comments (but there are no 
comments to go with this, in the console) - this actually brings the average 
rating of the app down half a star...  This is highly unusual as before this 
the app only had 57 ratings with ~18k total installs, 7k active, which 
follows the typical rating per user percentages I've seen with my other 
apps.  This is a live wallpaper, a free version.  The live wallpaper space 
seems pretty polluted right now with people stealing art from deviantart and 
other places and just putting tons and tons of them in the market, with 
useless updates to keep showing up in "just in," on older markets.  I'm not 
paranoid about it, but there's definitely people out there trying to game 
the system, and of course the market glitches we've all seen.  I do see one 
comment that appeared earlier today, that references a wallpaper other than 
mine, which confused me, before this happened.

Has anyone else seen this?  I don't really know of anywhere else to report 
this (other than the typical /dev/null), other than just throwing it out 
there that something strange happened and seeing who else experienced it!

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

Re: [android-developers] DrawTextOnPath advice needed.

2011-09-30 Thread Nathan


On Friday, September 30, 2011 2:10:03 PM UTC-7, Miguel Morales wrote:
>
> About your second question, 
> Try enabling anti-alias on your paint object
>

That's done already. 

Nathan 

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

2011-09-30 Thread Miguel Morales
About your second question,
Try enabling anti-alias on your paint object

On Fri, Sep 30, 2011 at 1:56 PM, Nathan  wrote:

> Hi,
>
> I'm using DrawtextOnPath.
>
> My first question is what does hOffset really mean? It says the distance
> along the path to add to the text's starting position. Is this Euclidean
> distance in pixels or what?
>
> There is no Canvas.measurePath() command that I can tell, so I have
> estimated the total length of the path by summing the length of its line
> segments.
>
> lengthsquared+=(x-lastx)*(x-lastx) + (y-lasty)*(y-lasty);
>
> totallength = Math.sqrt(lengthsquared)
>
> I think, using my excellent math skills, that I should then be able to
> divide totallength by canvas.measureText() to get a number of times I should
> repeat the text along the path, evenly spaced.
>
> But I am find that the totallength in most cases is smaller than it should
> be. So what should the true range of hOffset be?
> public void drawTextOnPath 
> (String
>  text, 
> Path path,
> float hOffset, float vOffset, 
> Paint
>  paint)
> Since: API Level 
> 1
>
> Draw the text, with origin at (x,y), using the specified paint, along the
> specified path. The paint's Align setting determins where along the path to
> start the text.
> ParameterstextThe text to be drawnpathThe path the text should follow for
> its baselinehOffsetThe distance along the path to add to the text's
> starting positionvOffsetThe distance above(-) or below(+) the path to
> position the textpaintThe paint used for the text (e.g. color, size,
> style)
> Second Question.
> The other problem is that it doesn't look so great.
> It does look okay in APIDemos where you know both the size of the text and
> have control over the path.
> But when you are data driven and you are using the Path to draw a, well,
> path, as in walking path and trying to stretch a label on it, it tends to
> look like graffiti rather easily. When going around a convex curve or
> corner, it stretches letters as if there were an ink spill. When going
> around a concave curve, words overlap like a broken typewriter.
>
> Has anyone done something to make it look better?
> I know some of this is art more than science.
>
> Nathan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




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

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

[android-developers] DrawTextOnPath advice needed.

2011-09-30 Thread Nathan
Hi,

I'm using DrawtextOnPath. 

My first question is what does hOffset really mean? It says the distance 
along the path to add to the text's starting position. Is this Euclidean 
distance in pixels or what?

There is no Canvas.measurePath() command that I can tell, so I have 
estimated the total length of the path by summing the length of its line 
segments. 

lengthsquared+=(x-lastx)*(x-lastx) + (y-lasty)*(y-lasty);

totallength = Math.sqrt(lengthsquared)

I think, using my excellent math skills, that I should then be able to 
divide totallength by canvas.measureText() to get a number of times I should 
repeat the text along the path, evenly spaced.

But I am find that the totallength in most cases is smaller than it should 
be. So what should the true range of hOffset be?
public void drawTextOnPath 
(String
 text, Path 
path, 
float hOffset, float vOffset, 
Paint
 paint)
Since: API Level 
1

Draw the text, with origin at (x,y), using the specified paint, along the 
specified path. The paint's Align setting determins where along the path to 
start the text.
ParameterstextThe text to be drawnpathThe path the text should follow for 
its baselinehOffsetThe distance along the path to add to the text's starting 
positionvOffsetThe distance above(-) or below(+) the path to position the 
textpaintThe paint used for the text (e.g. color, size, style)
Second Question. 
The other problem is that it doesn't look so great. 
It does look okay in APIDemos where you know both the size of the text and 
have control over the path. 
But when you are data driven and you are using the Path to draw a, well, 
path, as in walking path and trying to stretch a label on it, it tends to 
look like graffiti rather easily. When going around a convex curve or 
corner, it stretches letters as if there were an ink spill. When going 
around a concave curve, words overlap like a broken typewriter. 
 
Has anyone done something to make it look better?
I know some of this is art more than science. 

Nathan

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

2011-09-30 Thread Joao Braga
Have you tried to build a singleton that carries the data for every activity
- like a context holder ?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] ES File Explorer 1.6.0.6 does not return path in data.getPath() anymore...

2011-09-30 Thread Mark Murphy
On Fri, Sep 30, 2011 at 4:37 PM, Jean-Michel
 wrote:
> filepath used to conatin the path, now it looks like "/8067"
> In the debugger, the data it self contains this : 
> content://com.estrongs.files/8067

They switched to using a content provider, apparently.

> A lot of developper/apps seem to rely on this to select a file, that
> is going to be pretty embarassing...

You might want to point this out to them.

> Thanks for suggesting alternative options,

Somebody out there probably has a file-picker you can directly embed
in your app via a JAR or Android library project. If not, consider OI
File Manager:

http://www.openintents.org/en/filemanager

-- 
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 2.0
Available!

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


[android-developers] ES File Explorer 1.6.0.6 does not return path in data.getPath() anymore...

2011-09-30 Thread Jean-Michel
Hi guys,
I used to rely on ES File Explorer in my app to select files and open
them but it seems the last version of ES File Explorer has changed and
it does not reteurn the path in the calling activity anymore.

Any one noticed that ?

Any suggestion for an alternative ?

I do not need complex file manipulation, just choosing, but it is a
real pain that Android does not come with some emebeded component.

Here is my code :

public void doImport (View v) {
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("text/*");
startActivityForResult(intent, ACT_TARGET_SEL_FILE_FOR_IMPORT);
}


protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
// One activity that did start with "forResult" did finish
switch(requestCode){
case ACT_TARGET_SEL_FILE_FOR_IMPORT:
if(resultCode==RESULT_OK){
String filePath = data.getData().getPath();

// Code removed

break;
default:
Log.v(getString(R.string.debug_tag),String.format("%s: 
no valid
request code.",this.getClass().getSimpleName()));
}
}

filepath used to conatin the path, now it looks like "/8067"
In the debugger, the data it self contains this : 
content://com.estrongs.files/8067

A lot of developper/apps seem to rely on this to select a file, that
is going to be pretty embarassing...

Thanks for suggesting alternative options,
JM

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

2011-09-30 Thread jimmy kay
Thanks  Mark

Jim

On Friday, September 30, 2011, Mark Murphy  wrote:
> Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
> LogCat and look at the stack trace associated with your crash.
>
> On Tue, Sep 27, 2011 at 7:21 PM, jimmy kay  wrote:
>> Hi all,
>>
>> I am a newbie at android development. I have 6 activities and want to go
>> from 1st to 2nd, from there onwards 2 3 and 4 any one can be reached by
any
>> activity. But the data is passed only from 1st to 2nd. Right now when i
go
>> from 3rd to 2nd my code crashes.
>>
>> Any help will be highly appreciated.
>>
>> Thanks in advance,
>> Jim
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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 2.0
> Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Permission denial on ACCESS_FINE_LOCATION on Samsung Galaxy (other GPS apps work)

2011-09-30 Thread Jean-Michel
I did that and it worked Mark, thank you very much.

I am not even sure how it got there, probabl a mistake of myself in
the GUI...

Thanks again,
JM

On 30 sep, 19:08, Mark Murphy  wrote:
> Get rid of android:permission="android.permission.ACCESS_FINE_LOCATION"
> from  -- you are declaring that anything that tries to
> launch your application needs ACCESS_FINE_LOCATION.
>
> On Fri, Sep 30, 2011 at 12:54 PM, Jean-Michel
>
>
>
>
>
>
>
>
>
>  wrote:
> > Ok, I was able to reproduce the problem in the emaulator.
>
> > It only happens on 2.3.3 (or from) and only with an installed app (app
> > pushed from Eclipse is OK).
>
> > Still have no idea where it comes from...
>
> > Should I add the individual permissiopns on the activities?
>
> > Here is my permission file.
>
> > 
> > http://schemas.android.com/apk/res/android";
> >      android:versionCode="1"
> >      package="com.droidfa" android:versionName="0.1a">
> >    
> >     > android:name="android.permission.ACCESS_FINE_LOCATION" />
> >     > android:name="android.permission.ACCESS_COARSE_LOCATION" />
> >     > android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"> > uses-permission>
> >     > android:name="android.permission.WRITE_EXTERNAL_STORAGE"> > permission>
> >     > uses-permission>
>
> >     > android:permission="android.permission.ACCESS_FINE_LOCATION"
> > android:theme="@android:style/Theme.Black">
> >         > android:name="com.droidfa.ControlPanel"
> > android:launchMode="singleTask">
> >            
> >                
> >                 > android:name="android.intent.category.LAUNCHER" />
> >            
> >        
> >         > android:label="@string/nav_manager_notification_title">
> >        
> >         > activity>
> >        
> >         > android:name="com.droidfa.navigation.NavigationFPLoader">
> >         > activity>
> >                
> >         >                android:excludeFromRecents="true">
> >         >                android:theme="@android:style/Theme.Dialog"
> >                android:excludeFromRecents="true">
> >         > service>
>
> >    
> > 
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0
> Available!

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


[android-developers] Re: Always-on GPS: widget or app?

2011-09-30 Thread Pinheiro
Just to clarify one thing:
> you don't want to use the requestLocationUpdates().
I suppose you meant: "you don't want to call requestLocationUpdates()
for continuous updates", right?In the BroadcastReceiver activity, I'll
call the requestLocationUpdates() and then removeUpdate() as soon as
there is a fix. Also, the new alarm will be created only after a fix
so that there isn't a possibility of alarm conflict (one alarm is not
done with the GPS and then there's a new one).

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

2011-09-30 Thread Raziel23x
I have found that there is a issue with the host server of this git
not having the proper tagging that that original git has but is
currently down

for some off reason when the said admin who original ported the git
over merged all tags into on and completely renamed tagging system
which is inconclusive as far as i can tell

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

2011-09-30 Thread Joao Braga
Once you figure out what you want do to that you measure the time it will
take to be done :)

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

[android-developers] Your version is: /bin/bash: javac: command not found. after downgrading from 1.7 to 1.6 Cygwin

2011-09-30 Thread Raziel23x
I originally had java 1.7 and it told me i needed 1.6 so i completely
uninstalled java and deleted the java folder in my program files
folder and installed java from scratch.

as you can see when I run the java -version command in Cygwin I can
see that java is installed but when I go to compile now I get this
error

Checking build tools versions...

You are attempting to build with the incorrect version
of javac.

Your version is: /bin/bash: javac: command not found.
The correct version is: 1.6.

Please follow the machine setup instructions at
http://source.android.com/download

Here is my complete log of what is going on when I do the instructions
step by step



Administrator@SuesBaby_BeKind ~
$ java -version
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode, sharing)

Administrator@SuesBaby_BeKind ~
$ cd themes

Administrator@SuesBaby_BeKind ~/themes
$ source build/envsetup.sh
including device/htc/passion/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
including vendor/tmobile/vendorsetup.sh
including vendor/tmobile/products/themes/productsetup.sh

Administrator@SuesBaby_BeKind ~/themes
$ lunch themes_generic-eng
/bin/bash: prebuilt/windows/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
gcc.exe: No such file or directory
which: no javac in (/usr/local/bin:/usr/bin:/cygdrive/c/Program Files/
Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files/
NVIDIA Corp
oration/PhysX/Common:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/
cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/Common
Files/Intuit/
QBPOSSDKRuntime:/cygdrive/c/Program Files/QuickTime/QTSystem:/cygdrive/
c/Program Files/TortoiseSVN/bin:/cygdrive/c/Program Files/TortoiseHg:/
home/Admi
nistrator/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/
Windows Live:/usr/lib/lapack)

/bin/bash: prebuilt/windows/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
gcc.exe: No such file or directory
which: no javac in (/usr/local/bin:/usr/bin:/cygdrive/c/Program Files/
Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files/
NVIDIA Corp
oration/PhysX/Common:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/
cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/Common
Files/Intuit/
QBPOSSDKRuntime:/cygdrive/c/Program Files/QuickTime/QTSystem:/cygdrive/
c/Program Files/TortoiseSVN/bin:/cygdrive/c/Program Files/TortoiseHg:/
home/Admi
nistrator/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/
Windows Live:/usr/lib/lapack)
/bin/bash: prebuilt/windows/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
gcc.exe: No such file or directory
which: no javac in (/usr/local/bin:/usr/bin:/cygdrive/c/Program Files/
Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files/
NVIDIA Corp
oration/PhysX/Common:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/
cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/Common
Files/Intuit/
QBPOSSDKRuntime:/cygdrive/c/Program Files/QuickTime/QTSystem:/cygdrive/
c/Program Files/TortoiseSVN/bin:/cygdrive/c/Program Files/TortoiseHg:/
home/Admi
nistrator/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/
Windows Live:/usr/lib/lapack)
/bin/bash: prebuilt/windows/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
gcc.exe: No such file or directory
which: no javac in (/usr/lib/jvm/java-6-sun/bin:/usr/local/bin:/usr/
bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows
Live:/cygdrive
/c/Program Files/NVIDIA Corporation/PhysX/Common:/cygdrive/c/WINDOWS/
system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/
cygdrive/c/Progra
m Files/Common Files/Intuit/QBPOSSDKRuntime:/cygdrive/c/Program Files/
QuickTime/QTSystem:/cygdrive/c/Program Files/TortoiseSVN/bin:/cygdrive/
c/Program
 Files/TortoiseHg:/home/Administrator/bin:/cygdrive/c/Program Files/
Common Files/Microsoft Shared/Windows Live:/usr/lib/lapack:/home/
Administrator/the
mes/out/host/windows-x86/bin:/home/Administrator/themes/prebuilt/
windows/toolchain/arm-eabi-4.4.3/bin:/home/Administrator/themes/
development/emulator/
qtools:/home/Administrator/themes/prebuilt/windows/toolchain/arm-
eabi-4.4.3/bin:/home/Administrator/themes/prebuilt/windows/toolchain/
arm-eabi-4.4.3/b
in)

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.1
TARGET_PRODUCT=themes_generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=windows
HOST_BUILD_TYPE=release
BUILD_ID=GRH78

/bin/bash: prebuilt/windows/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
gcc.exe: No such file or directory
which: no javac in (/usr/lib/jvm/java-6-sun/bin:/usr/local/bin:/usr/
bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows
Live:/cygdrive
/c/Program Files/NVIDIA Corporation/PhysX/Common:/cygdrive/c/WINDOWS/
system32:/cygdrive/c/WI

Re: [android-developers] How to get pure UTC time?

2011-09-30 Thread Jim Graham
On Wed, Sep 28, 2011 at 11:52:18AM -0700, cool_zack wrote:
> 
> I want to get UTC time. It should not change except for tiny
> adjustments that happen from Network. User modifications to the time
> on the device must not affect it.

What you're asking for is SNTP (often abbreviated as NTP).  If all you
need is an app, search in the market for NTP.  Most of the NTP apps
will set your device's clock (requires root).

There's an app, called "UTC Time" which displays local time and UTC
side by side.  With a rooted device, it will also keep your device's
time set to whichever SNTP server you have it configured for.

If you need this for an app you're writing, let me know what you find,
as I have some ideas along that line, myself..

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| Remember your spelling rules, including:
spooky1...@gmail.com|   I before E except after C
< Running FreeBSD 7.0 > | 
ICBM / Hurricane:   |   BEING a native-born American, I don't
   30.44406N 86.59909W  |   always notice our WEIRD spelling

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


Re: [android-developers] Re: GridView shows only one row with layout_height=WRAP_CONTENT

2011-09-30 Thread Romain Guy
I did a 1 hour talk on this topic at Devoxx in 2010. The video and slides
are available at parleys.com

On Fri, Sep 30, 2011 at 11:39 AM, Paul  wrote:

> Romain, is there a good demo on making this kind of layout anywhere?
> I'm thinking along the lines of the world of listview google IO talk
> you did.  The Gotchas and weird edge cases always seem to make me shy
> away from doing this kind of thing from scratch.
>
> On Sep 4, 12:45 am, Romain Guy  wrote:
> > No, your best option is to create a custom layout. It's pretty easy to
> do,
> > and it will be easier than trying to change GridView's behavior.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Sat, Sep 3, 2011 at 11:38 PM, Shri Borde 
> wrote:
> > > TableLayout is for cases where you want a specific number of columns.
> > > However, I would like the number of columns to adjust based on the
> width of
> > > the screen/parent ViewGroup as done by GridLayout. And I do not
> actually
> > > want the grid to scroll - I want its height to expand as much as needed
> to
> > > display all the rows. So overriding GridView and modifying its behavior
> > > seems like the best option.
> >
> > > Thanks for the pointers and the discussion.
> >
> > > On Fri, Sep 2, 2011 at 5:28 PM, Mark Murphy  >wrote:
> >
> > >> On Fri, Sep 2, 2011 at 8:12 PM, Shri Borde 
> wrote:
> > >> > Actually, I am using a GridView in a ListView, not a LinearLayout.
> >
> > >> You cannot reliably put scrollable things in other scrollable things.
> >
> > >> > I am using the GridView as a table, and it seems
> > >> > reasonable to want to display the table in a ListView. There needs
> to be
> > >> > some way to accomplish this.
> >
> > >> Use a TableLayout.
> >
> > >> --
> > >> Mark Murphy (a Commons Guy)
> > >>http://commonsware.com|http://github.com/commonsguy
> > >>http://commonsware.com/blog|http://twitter.com/commonsguy
> >
> > >> Android 3.1 Programming Books:http://commonsware.com/books
> >
> > >> --
> > >> You received this message because you are subscribed to the Google
> > >> Groups "Android Developers" group.
> > >> To post to this group, send email to
> android-developers@googlegroups.com
> > >> To unsubscribe from this group, send email to
> > >> android-developers+unsubscr...@googlegroups.com
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/android-developers?hl=en
> >
> > >  --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Romain Guy
> > Android framework engineer
> > romain...@android.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
>



-- 
Romain Guy
Android framework engineer
romain...@android.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] Re: Techniques for real-time screen update...

2011-09-30 Thread Dianne Hackborn
There is absolutely no reason to use SurfaceView to achieve 10fps.  Or even
60fps in many cases.

On Thu, Sep 29, 2011 at 6:00 PM, gjs  wrote:

> Hi,
>
> Have a look at SurfaceView, Surface Holder see
> http://developer.android.com/guide/topics/graphics/index.html
>
> Regards
>
>
>
> On Sep 30, 7:08 am, Peter  wrote:
> > Folks,
> >
> > In my application, I need to display a line chart with some real-time
> > data. The chart needs to be updated 10 times within a second. To the
> > user, it should appear as if the line is scrolling to the left of the
> > screen. New data gets displayed to the right.
> >
> > I am trying to understand the best way to accomplish this under
> > Android. On each tick, do I simply redraw the canvas or is there a
> > better way?
> >
> > I would appreciate any thoughts/ideas that  you may have.
> >
> > Thank you in advance for your help.
> >
> > Regards,
> > Peter
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
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: GridView shows only one row with layout_height=WRAP_CONTENT

2011-09-30 Thread Paul
Romain, is there a good demo on making this kind of layout anywhere?
I'm thinking along the lines of the world of listview google IO talk
you did.  The Gotchas and weird edge cases always seem to make me shy
away from doing this kind of thing from scratch.

On Sep 4, 12:45 am, Romain Guy  wrote:
> No, your best option is to create a custom layout. It's pretty easy to do,
> and it will be easier than trying to change GridView's behavior.
>
>
>
>
>
>
>
>
>
> On Sat, Sep 3, 2011 at 11:38 PM, Shri Borde  wrote:
> > TableLayout is for cases where you want a specific number of columns.
> > However, I would like the number of columns to adjust based on the width of
> > the screen/parent ViewGroup as done by GridLayout. And I do not actually
> > want the grid to scroll - I want its height to expand as much as needed to
> > display all the rows. So overriding GridView and modifying its behavior
> > seems like the best option.
>
> > Thanks for the pointers and the discussion.
>
> > On Fri, Sep 2, 2011 at 5:28 PM, Mark Murphy wrote:
>
> >> On Fri, Sep 2, 2011 at 8:12 PM, Shri Borde  wrote:
> >> > Actually, I am using a GridView in a ListView, not a LinearLayout.
>
> >> You cannot reliably put scrollable things in other scrollable things.
>
> >> > I am using the GridView as a table, and it seems
> >> > reasonable to want to display the table in a ListView. There needs to be
> >> > some way to accomplish this.
>
> >> Use a TableLayout.
>
> >> --
> >> Mark Murphy (a Commons Guy)
> >>http://commonsware.com|http://github.com/commonsguy
> >>http://commonsware.com/blog|http://twitter.com/commonsguy
>
> >> Android 3.1 Programming Books:http://commonsware.com/books
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en
>
> >  --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com

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


[android-developers] Is anyone able to play HLS on Vizio Tablet running 2.3.2

2011-09-30 Thread Mrid
Hello All, 

I am trying to run HLS on Vizio Tablet running android 2.3.2 but not finding 
luck. 

In media player class, prepare method is failing  giving out 
java.io.IOException 

here is the complete error log 

09-30 11:11:22.610: ERROR/MediaPlayer(2280): error (1, -2147483648)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): error: Prepare failed.: 
status=0x1
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): java.io.IOException: 
Prepare failed.: status=0x1
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.media.MediaPlayer.prepare(Native Method)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
com.example.testhls.MediaPlayerDemo_Video.playVideo(MediaPlayerDemo_Video.java:79)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
com.example.testhls.MediaPlayerDemo_Video.surfaceCreated(MediaPlayerDemo_Video.java:133)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.view.SurfaceView.updateWindow(SurfaceView.java:556)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.view.SurfaceView.dispatchDraw(SurfaceView.java:351)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1644)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1644)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.view.View.draw(View.java:6883)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.widget.FrameLayout.draw(FrameLayout.java:363)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1646)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1644)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.view.View.draw(View.java:6883)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.widget.FrameLayout.draw(FrameLayout.java:363)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1862)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.view.ViewRoot.draw(ViewRoot.java:1522)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.view.ViewRoot.performTraversals(ViewRoot.java:1258)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.view.ViewRoot.handleMessage(ViewRoot.java:1859)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.os.Handler.dispatchMessage(Handler.java:99)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.os.Looper.loop(Looper.java:123)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
android.app.ActivityThread.main(ActivityThread.java:3647)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
java.lang.reflect.Method.invokeNative(Native Method)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
java.lang.reflect.Method.invoke(Method.java:507)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
09-30 11:11:22.610: ERROR/MediaPlayerDemo(2280): at 
dalvik.system.NativeStart.main(Native Method)


if anyone is having vizio tablet, please try to run a test program from 
apidemos and let me know. FYI, program is running fine on most of the 
devices like HTC phones and Xoom tablet.

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

2011-09-30 Thread New Developer

Thanks gjs
I'll try those forums

Thanks

On 09/30/2011 01:24 AM, gjs wrote:

Hi,

Hmm, otherwise you can examine a working PDF with picture in a hex/
binary editor&  try to guess the encoding / formatting.

You might also ask in one of the PDF forums -

http://forum.planetpdf.com/
http://itextpdf.com/index.php

BTW iText also has an Android PDF library, but I have not tried it
myself.

Regards


On Sep 29, 11:50 pm, New Developer  wrote:

Anyone know how to get PDF specification support ?  I have generated a
PDF  but the text shows (or works)  the Images do not

attached is the PDF  I have read the specs.  but can not see what I have
missed ?

Thanks in advance

On 09/27/2011 08:05 AM, New Developer wrote:








gjs  Thanks
I had read the 1.6 specs that is how I managed to generate what I have
now,  It completes and the PDF can be seen, but NO picture is in there.
The text I have put in the PDF is visible.  However, the picture is not ??
Thanks again
On 09/27/2011 03:55 AM, gjs wrote:

Hi
Read the PDF spec to see what sort of binary encoding is required for
the image data.
Regards
On Sep 27, 8:10 am, New Developerwrote:

Trying to add an Image to PDF
Can anyone Please let me know where I have gone wrong ?
Currently this is what I generate  using  bmp
ByteArrayOutputStream bos = new ByteArrayOutputStream();
bmp.compress(CompressFormat.JPEG, 100 , bos);
  "stream \n" +
  bos.toString() +  "\n" +
 "endstream \n" +
101  0  obj
<<  /Type  /XObject
  /Subtype /Image
  /Filter  /DCTDecode
  /Width  341
  /Height  256
  /ColorSpace  /DeviceRGB
  /BitsPerComponent  8
  /Length 87296
stream
^@^PJFIF^@^A^A^@^@^A^@^A^@^@??^@C^@^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A 
^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^ 
A^A^A^A$
^K??^@?^P^@^B^A^C^C^B^D^C^E^E^D^D^@^@^A}^A^B^C^@^D^Q^E^R!1A^F^SQa^G"q^T2??? 
^H#B??^UR??$3br?

?QU,?qXy?p??H??kz,??$
endstream
endobj
102 0 obj
<
stream
q
 1 0 0 1  100 100 cm
 341 0 0 256 cm
 /I103  Do
Q
endstream
endobj
105 0 obj
64
endobj
106 0 obj
<>
endobj
xref
0 6
00 65535 f
10 0 n
65 0 n
000156 0 n
000367 0 n
001015 0 n
trailer
<<
 /Size 5
 /Root 1 0 R
startxref
78802
%%EOF

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



  History-September, 29 2011 09:27:00.pdf
110KViewDownload


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

[android-developers] Force the whole main activity to redraw

2011-09-30 Thread New Developer
If I recall correctly from some of the Google I/O  presentations  they 
talked  about
a box going dirty and then flushing up that it needs to be redrawn and 
thus everything gets redrawn.


How can you trigger this?
I have an activity which has my own media class which extends ImageView  
with some special functions.

I use this to play a video frame by frame using MediaMetadataRetrieve
The problem is that it only shows the first frame even  though the code 
does step through and collect multiple frames and bitmaps and places 
them on the ImageView.


The code, does but visually only the first frame ever shows.  Show How 
can I force the whole Activity to redraw .


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] How do I report a bug to htc?

2011-09-30 Thread Kostya Vasilyev

Potentially, it could be a race condition.

Try surrounding access to status with synchronized(something), or pass 
it into the thread via a constructor argument.


-- Kostya

28.09.2011 3:23, sebastian_bugiu пишет:

I have an application in android market that does not work on htc
desire and I am positive the issue is not in my code. Basically I have
a private static final field that is initialized to a reference to an
object and yet whenever I access that object from another thread it
throws a NullPointerException even though it is initialized.

It works in the emulator but I have not tested the application on many
phones. But on those that I tested it works.

I am absolutely positive that the object is initialized before the
thread accessing it starts. I moved the initialization in the
constructor that completes before the thread starts. I removed static
final. Nothing. The thread UI calls surfaceCreated and in it I create
this object and start a thread that later accesses the object and
somehow accessing the field in the run() method causes
NullPointerException. If I access it from the UI thread it works. Can
a field be thread specific? And for everybody else be invisible? And
why only on HTC Desire (haven't tested other HTC phones). I thought it
might be some race condition or something since it has a faster CPU
but the code really looks like this:

status = new Status();
Thread thread = new Thread() {
  public void run() {
 if (status == null) {
  throw new NullPointerException();
  }

}.start();

And on HTC is always null.



--
Kostya Vasilyev

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

2011-09-30 Thread Mark Murphy
On Thu, Sep 29, 2011 at 10:35 PM, Pradeep  wrote:
> I am trying to access the content provider I created
> "MyContentProvider" in another application(.apk) through
> MyContentProvider.Content_URI. But I am getting an runtime  exception
> like noClassDefFoundError.

Of course. That class is not in your application. It should not even
compile, let alone run.

> If I use the complete URI like "Content://
> abc.com.provider/books"  it works.

That is the proper way to reference content Uri values from other applications.

-- 
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 2.0
Available!

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


[android-developers] Re: Android set(get) environmental variables in Java

2011-09-30 Thread gjs
Hi,

I sometimes use java System.getProperty() & System.setProperty() as an
alternative to environment variables eg -

System.setProperty("DEBUG", debug);

and

if (System.getProperty("DEBUG","0").equals("1")) Log.w("abc", "123");

They seem to be available across activities & threads within the same
process but do your own testing to be sure.

Regards

On Sep 30, 12:29 am, Mark Murphy  wrote:
> On Thu, Sep 29, 2011 at 10:11 AM, petr.maza...@mautilus.com
>
>  wrote:
> > I agree that environmental variables might not be the best approach,
> > but we are porting software, which is expected to use it.
>
> Then fix the software to not use environment variables.
>
> For example, if this is C/C++ code, as part of your work to modify
> this code to use the NDK and JNI, at worst you can wrap the
> environment variable logic in #ifdefs and replace them with data
> passed into your JNI API for Android. Better yet, implement some
> pluggable strategy for where this data comes from, to give you
> flexibility for whatever front ends you might need.
>
> > So, there is
> > no way for one process/thread to set environmental variables, which
> > can be read by other one?
>
> Environment variables are not part of the Android SDK. There are no
> guidelines for using environment variables on Android for SDK
> applications. Java itself does not have a means of setting environment
> variables.
>
> > What about calling from the java application
> > the .so library library, which sets the variables by calling some
> > Android functions on C level - can I read them then by System.getenv()
> > or by executing some process by Runtime.getRuntime().exec()?
>
> It would be more reliable for you to fix your software that you are
> porting to not use environment variables. For example, there is no
> guarantee that an environment variable set this way would be visible
> to the SDK application, and even if it is visible today, it may not be
> visible in some future Android release.
>
> > Anyway how it is done in general on Android with variables? I can
> > define in the shell, but when I start the application from the shell I
> > cannot access them even I exported them... But in any case I can read
> > the PATH variable, so there must be a way to set the variables...
>
> The firmware is welcome to do whatever it wants.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in NYC:http://marakana.com/training/android/

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


[android-developers] These import statement are occured an error pls send the correct format

2011-09-30 Thread MARRAKKAR IRSHAD
import java.util.*;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

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

[android-developers] Re: Scrolling in TableView

2011-09-30 Thread Mobil Tester
Hi moderators,

Did this post get blocked?

Regards,
Johan

On Wed, Sep 28, 2011 at 10:02 PM, Mobil Tester  wrote:

> Hello,
>
> I have a TableView that gets truncated, if it is larger than the
> screen. Most of the time, it is small enough to be shown on the
> screen, but in case it gets too big, I would like to be able to scroll
> vertically and horizontally.
> How do I do that?
>
> At one point, I tried to put the TableView inside a GridView (which
> should be scrollable both horizontally and vertically, right?) But it
> was crashing, so I abandonned that path.
>
> I also tried to put the TableView inside a ScrollView, and that worked
> fined, except that ScrollView only supports vertical scroll.
>
> If I can't get this to work, I will make LinearLayouts inside another
> LinearLayout, where I set one to have orientation vertical and the
> other to be horizontal. But the drawback of this solution is that the
> embedded LinearLayouts only scrolls independently.
>
> Regards,
> Johan
>

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

2011-09-30 Thread gjs
Hi,

Have a look at SurfaceView, Surface Holder see
http://developer.android.com/guide/topics/graphics/index.html

Regards



On Sep 30, 7:08 am, Peter  wrote:
> Folks,
>
> In my application, I need to display a line chart with some real-time
> data. The chart needs to be updated 10 times within a second. To the
> user, it should appear as if the line is scrolling to the left of the
> screen. New data gets displayed to the right.
>
> I am trying to understand the best way to accomplish this under
> Android. On each tick, do I simply redraw the canvas or is there a
> better way?
>
> I would appreciate any thoughts/ideas that  you may have.
>
> Thank you in advance for your help.
>
> Regards,
> Peter

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


[android-developers]Application complatiblity with all android devices

2011-09-30 Thread Sam Neel
Hi,


I would like to know. Is it possible to make our application to run on all
android devices, it may be tablet or mobile or some thing else.

can v make our app independent of the android platform?


Thanks in Advance

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

[android-developers] how to get the path of the directry which I will choose it when I click on a button

2011-09-30 Thread Souad
I created my own application and I have a problem in one step.I would
like to get the path of the directry which I will choose it when I
click on a button, of couse without finich my application. how can I
do this? the procedure seems difficut. I tried to do my best but
Ididin't found how to do this procedure :(
if it's possible, give me an idea or other thing can help me

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

2011-09-30 Thread Jegadeesan M
i want enable the text selection controls in web view like selecttext
in android 2.1 ?

http://stackoverflow.com/questions/7581131/how-to-enable-the-default-highlight-menus-in-android-webview

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


[android-developers] LVL - Checking licence validity from a server

2011-09-30 Thread Ben
I have an app that needs to request a key from a remote server. It
authenticates from the app with lvl, then communicates with the server
who also checks against the market (a second step in the chain to
prevent piracy). It authenticates using the responseData and signature

In test this all works a-ok. When I launched my app, this did not
work:

the app validated with lvl without issue and requested an api key from
the remote server

the remote server tries to check with lvl and returns false UNLESS the
email address is in test accounts.

I am testing with the following code:- 
http://code.google.com/p/android-market-license-verification/

Can anyone shed some light as to why it is not working? Do I need to
validate using a different key maybe?

Regards,
Ben

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


[android-developers] H.264 support android

2011-09-30 Thread Naveen
i have mp4 video file with extension mp4, that video is not playing on
surface using codec android. hen decoding video in form of h.264 then
it's play, give me guideline how to play video using h.264 support in
android framework.

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


[android-developers] Not able to access custom content provider.

2011-09-30 Thread Pradeep
Hi All Android Developers,

I am trying to access the content provider I created
"MyContentProvider" in another application(.apk) through
MyContentProvider.Content_URI. But I am getting an runtime  exception
like noClassDefFoundError. If I use the complete URI like "Content://
abc.com.provider/books"  it works. Anyone who know regarding this
please update.

I Have even tried adding the permissions and adding the app in the
project settings, which still not working.

Thanks in Advance.
Pradeep.

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

2011-09-30 Thread satheesh thinagaran
hi,
 I want to retrieve screen coordinates at runtime using OnClickListener
plz help me...

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

[android-developers] WiMAX support in Android

2011-09-30 Thread shaheeda
Hi All,

Can any one know, WiMAX supported in android or not.  I am not able to
find the APIs related to WiMAX in android developers guide.

Please let me know which version of the android supports WiMAX.

Thanks,
Shaheeda

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


[android-developers] Modifying Keys

2011-09-30 Thread Joel Gwynn
Hey all.  I'm working on an app that needs to use a basic Latin
keyboard with some custom popupCharacters.  I'm running the
SoftKeyboard tutorial and noticing that the vowel keys have special
popup characters, which are exactly the keys I want to customize, but
I'm not seeing where in the code this is being set.  Any help?

TIA,
Joel

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


[android-developers] Printing Documents from Application

2011-09-30 Thread Nirav Parmar
Hello Friends,

I want to add one feature in my app, by which i can print documents through
wireless printer from app.Is there any API which i can use?please give your
suggestions..Thanks :)

Nirav Parmar.

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

[android-developers] create edit text dynamically on enter

2011-09-30 Thread Matt
I am trying to add an EditText programmatically after the user keys
"enter" on the previous EditText.

i am coded to do almost anything after "enter" (ie; Toast,
hideSoftInput), but cannot figure out how to create a new text.  I
constantly get an error "The constructor EditText(new
View.OnKeyListener(){}) is undefined"

Here is a snippet of the code.  FYI, editText1 that is referenced
below was created programatticaly and i manually setId(601).  i would
like the subsequesnt editTexts that are dynamically created to be ++
the previous editText (ie; editText1 id=601, editText2 id=602, etc.)



editText1.setOnKeyListener(new OnKeyListener() {
public boolean onKey(View v, int keyCode, KeyEvent event)
{
// If the event is a key-down event on the "enter"
button
if ((event.getAction() == KeyEvent.ACTION_DOWN) &&
(keyCode == KeyEvent.KEYCODE_ENTER)) {
  //hide keyboard
  InputMethodManager imm =
(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
 
imm.hideSoftInputFromWindow(editText1.getWindowToken(), 0);
  EditText editText2=new EditText(this);
  return true;
}
return false;
}
});



Thanks in advance.

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


[android-developers] Re: Extracting RGB data from Bitmap

2011-09-30 Thread gjs
Hi,

Hmm, otherwise you can examine a working PDF with picture in a hex/
binary editor & try to guess the encoding / formatting.

You might also ask in one of the PDF forums -

http://forum.planetpdf.com/
http://itextpdf.com/index.php

BTW iText also has an Android PDF library, but I have not tried it
myself.

Regards


On Sep 29, 11:50 pm, New Developer  wrote:
> Anyone know how to get PDF specification support ?  I have generated a
> PDF  but the text shows (or works)  the Images do not
>
> attached is the PDF  I have read the specs.  but can not see what I have
> missed ?
>
> Thanks in advance
>
> On 09/27/2011 08:05 AM, New Developer wrote:
>
>
>
>
>
>
>
> > gjs  Thanks
> > I had read the 1.6 specs that is how I managed to generate what I have
> > now,  It completes and the PDF can be seen, but NO picture is in there.
> > The text I have put in the PDF is visible.  However, the picture is not ??
>
> > Thanks again
>
> > On 09/27/2011 03:55 AM, gjs wrote:
> >> Hi
>
> >> Read the PDF spec to see what sort of binary encoding is required for
> >> the image data.
>
> >> Regards
>
> >> On Sep 27, 8:10 am, New Developer  wrote:
> >>> Trying to add an Image to PDF
> >>> Can anyone Please let me know where I have gone wrong ?
> >>> Currently this is what I generate  using  bmp
>
> >>> ByteArrayOutputStream bos = new ByteArrayOutputStream();
> >>> bmp.compress(CompressFormat.JPEG, 100 , bos);
>
> >>>      "stream \n" +
> >>>      bos.toString() +  "\n" +
> >>>     "endstream \n" +
>
> >>> 101  0  obj
> >>> <<    /Type  /XObject
> >>>      /Subtype /Image
> >>>      /Filter  /DCTDecode
> >>>      /Width  341
> >>>      /Height  256
> >>>      /ColorSpace  /DeviceRGB
> >>>      /BitsPerComponent  8
> >>>      /Length 87296
>
> >>> stream
> >>> ^@^PJFIF^@^A^A^@^@^A^@^A^@^@??^@C^@^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A
> >>>  
> >>> ^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^
> >>>  A^A^A^A$
> >>> ^K??^@?^P^@^B^A^C^C^B^D^C^E^E^D^D^@^@^A}^A^B^C^@^D^Q^E^R!1A^F^SQa^G"q^T2???
> >>>  ^H#B??^UR??$3br?
> >>> 
> >>> ?QU,?qXy?p??H??kz,??$
> >>> endstream
> >>> endobj
>
> >>> 102 0 obj
> >>> <<  /Type /Page
> >>>      /Parent 1 0 R
> >>>      /MediaBox [0 0 341  256]
> >>>      /Contents 103 0 R
> >>>      /Resources 105 0 R
>
> >>> endobj
>
> >>> 104 0 obj
> >>> <>
> >>> stream
> >>> q
> >>>     1 0 0 1  100 100 cm
> >>>     341 0 0 256 cm
> >>>     /I103  Do
> >>> Q
> >>> endstream
> >>> endobj
>
> >>> 105 0 obj
> >>> 64
> >>> endobj
>
> >>> 106 0 obj
> >>> < >>> /XObject<>
>
> >>> endobj
>
> >>> xref
> >>> 0 6
> >>> 00 65535 f
> >>> 10 0 n
> >>> 65 0 n
> >>> 000156 0 n
> >>> 000367 0 n
> >>> 001015 0 n
> >>> trailer
> >>> <<
> >>>     /Size 5
> >>>     /Root 1 0 R
>
> >>> startxref
> >>> 78802
> >>> %%EOF
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
>
>
>  History-September, 29 2011 09:27:00.pdf
> 110KViewDownload

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


[android-developers] draw 3d room using opengl es 2.0

2011-09-30 Thread sunil thakor
hi guys i m new to opengl i want to draw a 3d room in android using
opengl es 2.0 can anybody help me ?

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] What is the code to close all activities currently in backstack

2011-09-30 Thread Mark Murphy
On Thu, Sep 29, 2011 at 9:23 AM, SumiGhosh  wrote:
>               We know that to close an activity we use finish();. Is
> there anyway to close entire app by calling finish()

Not really.

> i mean to close
> all the activities in the back stack by a single command.

Why?

-- 
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 2.0
Available!

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


[android-developers] Re: Always-on GPS: widget or app?

2011-09-30 Thread emeve
Many thanks for the helpful info, Steven .
I'm sure that will save me a lot of time.

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


Re: [android-developers] Android Project

2011-09-30 Thread midhun midhunvp
Android projects are done for multiple purposes example
games,industrial operations ,leave approval applications, with SAP in
the backend. You have to specify what type of project you are looking
for.

On Thu, Sep 29, 2011 at 11:17 PM, Joao Braga  wrote:
> The issue is not how to develop, but what for mostly everyone :p
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2011-09-30 Thread SumiGhosh


On Sep 29, 10:16 am, Rahul Soni  wrote:
> Hi
> Please tell me that in which programming language the programs developed and
> the source to learn about the programming language
>
> --
> Rahul Soni

Hi Rahul..

The resources are available at android developers site (http://
developer.android.com/guide/topics/fundamentals/activities.html) .
Before starting you must have some basic knowledge in Core
java

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


Re: [android-developers] How to get pure UTC time?

2011-09-30 Thread Appaholics
Have an online server with the time and have your app get it from that
server whenever you need it. You could use one of the servers already
available if you could find one that allows you to interface with it in such
a manner.

Thanks

On Thu, Sep 29, 2011 at 12:22 AM, cool_zack  wrote:

> I have a simple requirement:-
>
> I want to get UTC time. It should not change except for tiny
> adjustments that happen from Network. User modifications to the time
> on the device must not affect it. A big jump on phone bootup the very
> first time is OK, but after that I do not want any change beyond a few
> seconds and the leap second. The time should be maintained across
> power cycles.
>
> I looked everywhere on the internet, but didnt find a solution. Does
> anybody have advice?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
--
Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.in/

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

2011-09-30 Thread Mark Murphy
On Wed, Sep 28, 2011 at 5:21 PM, cool_zack  wrote:
> I was looking at SDK description of public static long elapsedRealtime
> ()
>
> There's no mention of rollover behavior. "long" here is 64 bit signed,
> correct? If so, does rollover to zero happen at (2^63 -1), or does it
> happen at (2^64 -1)?

Considering that this would imply a device having uptime for ~40 years
IIRC, I doubt it much matters all that much. You are welcome to poke
through the source code, though, in hopes of finding a definitive
answer.

-- 
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 2.0
Available!

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


Re: [android-developers] "scrolling" question

2011-09-30 Thread midhun midhunvp
In some android phones for scrolling sensor button will be
provided.Then we can use focusable or selected in the code.Also for
list view the scrolling will be set automatically but for a number of
buttons or something else we have to specify the scrolling in the XML.

On Thu, Sep 29, 2011 at 11:20 PM, Mark Murphy  wrote:
> On Thu, Sep 29, 2011 at 1:34 PM, John Goche  
> wrote:
>> Thank you for your replies. I am still wondering though how the user of a
>> mobile phone
>> makes use of the focus feature we have been discussing. Does the user press
>> the tab
>> key on the soft keypad to get it to work? How does it work?
>
> Focus is attained by tapping on the widget, or by using the pointer on
> the device (if any).
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in NYC: http://marakana.com/training/android/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Direction help?

2011-09-30 Thread Sam Deleon
I’m new to android development, I have been reading tutorials online
and also started reading a beginners book. I already have a app idea
but I have a question that I searched for but can’t find.

I’m wanting to build a app that when first  launched will come to a
login screen, once logged in, the Data displayed will be specific to
that user login.

Think of it like Bank Apps or an even better way to think of it is,
say you have 3 nurses, each with their own device, they all launch the
same app, when they log in, their screens look the same but the list
of patients are different for each nurse, and let’s say the list was
created by another person from another device, with a app that is tied
to the nurses app but different in the way that is sets up scheduling
and other stuff.

I want to know if it’s possible and if so if I should be more focused
on learning something more than other stuff? I know I have lots to
learn but would doing this type of app have more to do with databases
rather than android 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] Re: How to calculate the distance between two degree values? (for example: 350º to 15º = 25º / 250º to 190º = 60º)

2011-09-30 Thread Johannes Kingma
But if you mean distance in degrees it would be 'x mod 360'
Op 29 sep. 2011 17:42 schreef "JackN"  het volgende:

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

[android-developers] hello

2011-09-30 Thread kuek9118
i am computer science student ...
now i am going to do my final project is android application...
hope i can get some help at here...
any one can suggest some website for newbie(for me)?
i searched a software that can use vb to do the android application
which call "basic4android"
is it good for new learning people?

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


[android-developers] performance issue in scrolling when data is huge.

2011-09-30 Thread Sam Neel
Hi


In my application am storing message data along with its details into db and
while displaying am fetching data from the db and storing using array list

then by using ArrayAdapter am getting view to display into fragment.

Now the problem is when the number of messages are more ( more than 1000)
scrolling message and onclick response on each message is very slow

please help to solve this issue

Thanks in Advance.

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

[android-developers] video implementation html

2011-09-30 Thread Paweł Czyżowski
How to implement video html code, so that was displayed in smartphones
and Tablet PCs with Android.
I use this code:


  
  
  
  
  
  

  

is the ability to use the file flv, but only with accompanying player
then the video does not appear on other platforms
is there a way to get it working at all
thanks for your help

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


[android-developers] block text messaging...

2011-09-30 Thread thiru
Hi,
I need to block text messaging for a period of time(like 9Am to 2pm).
During that period, if user try to access the default message form
device, the user have to get toast like "need permission from admin".
How can I achieve it? Please suggest me the solution to solve this
problem.

Thanks & Regards,
Thiru k.

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

2011-09-30 Thread skink


On Sep 29, 10:13 am, AlexBonel  wrote:
> > On 28 сен, 15:22, Mark Murphy  wrote:
> > Why?
>
> Why, what? ))) Why don't I avoid using of R.java? Well in shorts,
> because it's generated by Android platform tools and this is really
> big problem for my application's idea.


The same applies to assets.

pskink

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


[android-developers] Re: How to pair Nexus S with some other Bluetooth Device using NFC

2011-09-30 Thread boomaco
Hey there,

I am craving to find examples for this on the web, apparently me web
searching skills are worse I used to think.

My question is: Is there a way to program an NFC tag in a way to
automatically establish a connection to an Bluetooth device with a
given MAC-address/ given friendly name without any additional software
installed on the phone? Is the same possible for WiFi and a given MAC-
address/ SSID, again on the OS level?

Given it is possible: How have these commands to be formed, which
intent has to be given and so on?

Would be most greatful if you could drop me an link or two on this.

Cheers,
boomaco



On 2 Aug., 08:27, Zsolt Vasvari  wrote:
> The same way as you can useNFCto establish a Wifi connection.
>
> On Aug 2, 2:04 pm, tarun sablok  wrote:
>
>
>
>
>
>
>
> > Can anyone suggest me the possible options as how to pair a Nexus S
> > phone with anybluetoothdevice  through  NFCie  by just  tapping the
> > Nexus S phone and theBluetoothdevice  theBluetoothconnection
> > should be established .

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

2011-09-30 Thread joking
The text on "http://developer.android.com/sdk/win-usb.html#Win7"; is
incorrect. In step 7 the USB folder is in
"/extrax/google/usb_driver"

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


[android-developers] Installing Samsung GALAXY TAB : restart ADB

2011-09-30 Thread joking
Hi I've no went through this three times but no progress. Every time
when I attempt to install the GALAXY Tab by Samsung Electronics,
Android API8, revision 1 I get a message: "A package taht depends on
ADB has been updated. Do you want to restart ADB now? I click the yes-
button and the following is visible in Installing Archives:


Downloading GALAXY Tab by Samsung Electronics., Android API 8,
revision 1
Installing GALAXY Tab by Samsung Electronics., Android API 8, revision
1
Installed GALAXY Tab by Samsung Electronics., Android API 8, revision
1
Updated ADB to support the USB devices declared in the SDK add-ons.
'adb kill-server' succeeded.
ADB: * daemon not running. starting it now on port 5037 *
'adb start-server' succeeded.
ADB: * daemon started successfully *


If I than close it and try again I get exactly the same process again.
Is something wrong with Samsung's package?

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

2011-09-30 Thread Mark Murphy
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
LogCat and look at the stack trace associated with your crash.

On Tue, Sep 27, 2011 at 7:21 PM, jimmy kay  wrote:
> Hi all,
>
> I am a newbie at android development. I have 6 activities and want to go
> from 1st to 2nd, from there onwards 2 3 and 4 any one can be reached by any
> activity. But the data is passed only from 1st to 2nd. Right now when i go
> from 3rd to 2nd my code crashes.
>
> Any help will be highly appreciated.
>
> Thanks in advance,
> Jim
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 2.0
Available!

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


[android-developers] Turn development documentations in a wiki

2011-09-30 Thread joking
The documentation contain quite a few little and blocking mistakes.
I'm currently reviewing the installation instructions and actually
found a blocking error. Wouldn't it make sense to change these into a
wiki so that registered users can make adjustements a corrections.?

For instance on "http://developer.android.com/sdk/win-usb.html#Win7";
step 3 suggests to select Devices this is incorrect. The correct
selection is called "Device Manager".

Just a suggestion

JK

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


  1   2   3   >