Re: [android-developers] How to create program on server side code java and client side code in android?

2012-11-28 Thread sree android
you can write server side code in JEE or PHP or .NET and using webservice
concept we can use in android.
these is the link,it is use full you.

http://javatutorialspoint.blogspot.in/2012/02/simple-java-web-service-client-using.html

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

[android-developers] How to create program on server side code java and client side code in android?

2012-11-28 Thread Tom
Hi,
How to create program on server side code java and client side code in 
android?

Does any one know the sample application or any link to refer this 
concept please share with me..

Thanks,
Tamilarasi.S
  

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

Re: [android-developers] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-28 Thread Johan Appelgren
You'd probably want to persist data even if you have a confirmation dialog on 
back since the user might task switch or press home. 

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

2012-11-28 Thread Etienne
Originally posted here : 
http://stackoverflow.com/questions/13523350/android-alarm-clock-ui/13523970#comment18608151_13523970

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

[android-developers] Android Alarm Clock UI

2012-11-28 Thread Etienne


[image: enter image description here]

I am trying to figure out how the UI was designed for the Android Alarm 
Clock app. This appears to be using the Holo Dark Theme.

The screenshot included is the Create/Edit Alarm Activity screen. It looks 
similar to Android 
Settings. 
Is this case? Because the "Turn the alarm on" & "Vibrate" rows look like
ChexboxPreferences. The "Ringtone" row looks like a RingtonePreference. 
What about the "Time" row?

As @eric mentioned in the comments to one of the answers below, I am trying 
to recreate a similar interface to the alarm clock app. I do not want to 
send an intent to start the Alarm Manager from my app.

What about the "Label" row? That functions a lot like an EditText view. Can 
you have a combination of Views and Preferences inside a PreferenceScreen xml 
tag?

Also the ActionBar has a vertical pipe, I am not sure how this was created 
but is the "Done" view anImageButton?

I am not completely convinced that it is a combination of Preferences, 
since the Alarm app can have multiple alarms and not just one alarm. If 
there are multiple alarms and you don't use multipleSharedPreferences files, 
it would naturally make sense to create a content provider to store the 
information related to multiple alarms.

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

2012-11-28 Thread Gopi Krishnan T
Hi Guys,

Check with this link, This helped me add the exchange account.Setting up 
email account in 
emulator

Thanks.


On Saturday, July 21, 2012 2:35:57 AM UTC+5:30, rlrhett wrote:
>
> This workaround does not seem to by working.  I am getting the following 
> error from the emulator:
>
> *You have typed an incorrect server address or the server requires a 
> protocol version that Email doesn't support.*
> *
> *
> Can anyone suggest what I might be doing wrong?
>
> Thanks.
>
> On Friday, November 4, 2011 7:55:26 PM UTC-7, Brian wrote:
>>
>> As a workaround, you can add your Google account as an activesync 
>> account.  Use your gmail.com address at first, but you'll need to 
>> change the server to be m.google.com when it complains it can't 
>> connect.  See here: 
>>
>>
>> http://www.google.com/support/mobile/bin/answer.py?hl=en&answer=138636&topic=14299
>>  
>>
>> On Oct 31, 5:02 am, arnouf  wrote: 
>> > Hello, 
>> > 
>> > Now, in the emulator, to see calendar or add event I have to set an 
>> > Exchange account. Does it exist a solution avoiding this ? I don't have 
>> an 
>> > Exchange server ! 
>> > 
>> > 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

Re: [android-developers] Read data from android app and want to display on Web

2012-11-28 Thread TreKing
On Wed, Nov 21, 2012 at 7:16 AM, Ashish Jain wrote:

> I am trying to read data from an android app and want to display on the
> web.
>

I think you need to explain what you mean by that you are trying to read
data from an Android app. Read it how?


> Also let me how to consume this webservice from a WebApplication. Any
> example will be helpful.
>

This component of your application has nothing to do with Android
development specifically. Google is your friend in this case.

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

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

Re: [android-developers] Android OS lag

2012-11-28 Thread TreKing
On Fri, Nov 23, 2012 at 7:37 PM, Björn Morén  wrote:

> I assume that for the Android OS this is the equivalent of minimizing an
> application in Windows. The desktop process is already running in the
> background and the process of whatever app I was using is not terminated;
> it continues to run.


It's more like minimizing all applications to show the Desktop. There's no
gaurantee that the desktop process is already running, as it may have been
booted out of memory when you opened a bunch of apps. In which case, it
would have to reload, along with all the widgets you may have installed.
Similarly, the app you were running could potentially be terminated if
there is no space to keep it around. It could also be doing some shut down
logic that slows things down.


> So what is actually happening in the OS during this time that I have to
> wait for?


A million little things that add up. No way to really know in your specific
case other than to run logcat and look at the output in verbose mode.


> One strange thing is that the phone returns slightly quicker to the start
> screen when I use the back button. I assume that in some scenarios this
> action will terminate the current process, so it should be slower, not
> quicker.


When you use Home, most apps will save their current state. Depending on
the app, this could be significantly slower than just exiting.

-
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] GoogleTV USB Access

2012-11-28 Thread Ankur Avlani
Hi All,

I am trying to develop a Image explorer in Google TV.  I want to find out a
way to access the USB contents (maybe File IO), once the USB is connected.
 I did a lot of google search but couldnt find relevant answers.
 USBManager and USBDevice class in the API didnt help me much to find the
path of USB.  Can i safely use /mnt/media path, I am not confident that
this path is same for "ALL" devices.

Any help is appreciated.

Thanks and regards,
Ankur.

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

Re: [android-developers] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-28 Thread TreKing
On Wed, Nov 28, 2012 at 5:30 PM, Subodh Nijsure wrote:

> Some of my screens have 5-8 items that users enter stuff like name,
> address, some other data. I just don't want users to enter say 80% of data
> and loose that data just because they hit back button one two many times..
> Is there another UI pattern one should follow in that case?
>
> [ Something like what gmail does regarding auto-saving your draft
> messages, but do that in android app.. ]
>

IMO, based on what you've shared, an "are you sure you want to exit this
page" check seems warranted. This is how Gmail works. If you press back, it
asked if you want to discard your message. The Messaging app, if you
entered text but no recipients, warns you that your message will be
discarded.

It's really up to you and what you think makes sense for your app. But
remember that if you get rid of the dialog confirmation and instead just
persist the information for them to continue next time, you also have to
provide a facility to clear the form, like discarding an email draft.
Otherwise people might hit back on purpose as a "cancel" action and expect
the data to be gone. To me, the dialog check seems like the quickest and
cleanest way to verify the user intention for your case.

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

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

Re: [android-developers] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-28 Thread Kristopher Micinski
Instead of asking the user if they'd like to quit, I'd simply save the data
and then restore it, but maybe that's just me.

For lightweight things like this you can persist them in a
SharedPreferences.

This sort of depends on your use case, but I think you've confused people,
because you're not really "quitting" the app (as is typical of people
asking this question), you're merely clearing the form.

(That being said, I think the proper thing to do UI wise is to persist the
information unless the user comes back to it.)

Kris


On Wed, Nov 28, 2012 at 6:30 PM, Subodh Nijsure wrote:

> I had no idea I would spark such a discussion.
>
> Only reason I was considering adding 'are you sure you want to exit'
> button was
>
> Some of my screens have 5-8 items that users enter stuff like name,
> address, some other data. I just don't want users to enter say 80% of data
> and loose that data just because they hit back button one two many times..
> Is there another UI pattern one should follow in that case?
>
> [ Something like what gmail does regarding auto-saving your draft
> messages, but do that in android app.. ]
>
> -Subodh
>
>
>
> On Wed, Nov 28, 2012 at 10:09 AM, Kristopher Micinski <
> krismicin...@gmail.com> wrote:
>
>> To add, the "exit" button also has the effect of turning off GPS updates,
>> so "exiting" also has a feature that implies something else: that you quit
>> draining the user's battery.
>>
>>
>> On Wed, Nov 28, 2012 at 12:38 PM, Latimerius wrote:
>>
>>> On Wed, Nov 28, 2012 at 6:24 PM, TreKing  wrote:
>>> > On Wed, Nov 28, 2012 at 11:18 AM, TreKing 
>>> wrote:
>>> >>
>>> >> On Wed, Nov 28, 2012 at 11:02 AM, Latimerius 
>>> wrote:
>>> >>>
>>> >>> Yeah, well, it's probably not by Google, or one that Google had any
>>> >>> say in. None of the built-in apps on my devices have an exit button,
>>> >>> not even games (that in general do include it AFAICT).
>>> >>
>>> >>
>>> >> Google Maps Navigation has "Exit Navigation" as an option in the menu
>>> (at
>>> >> least on my device running 2.3.4).
>>> >
>>> >
>>> > Oh, and in reference to the original point of this thread, if you press
>>> > back, it asks you "Exit Navigation? This will end all route guidance".
>>> If
>>> > this check wasn't there, and you exited the app accidentally, you
>>> would have
>>> > to re-enter the app and re-input your route guidance parameters and
>>> restart
>>> > the process, which would be a pain in the ass if you're in the middle
>>> of
>>> > driving. So seems like there are some valid use cases for such
>>> validation.
>>>
>>> Interesting, thanks for pointing this out.  I'm guessing something
>>> about Navigation must be somehow expensive or slow so they had to put
>>> that check in.  Or otherwise, was the crusade against exit buttons I
>>> remember seeing all over the net back in 2009/2010 misguided?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: I am trying to set the Image for an ImageView any help would be great

2012-11-28 Thread Lew
bob wrote:

> There's a comma on this page that should not be:
> http://developer.android.com/reference/android/hardware/SensorManager.html
>
> This line
>
> public class SensorActivity extends Activity, implements SensorEventListener {
>
> should have no comma.
>
>
Oh, yeah, that completely kills the value of the Javadocs!

Not. Since you aren't entering that line anywhere, it has zero effect on 
your use of the class. 
Zero.

The claim was for docs that are wrong. Mere superficial typos don't count 
for much, though
I agree they shouldn't be there. Still, that isn't something that will 
mislead you about how to use
the type, so BFD.

I repeat, where are the docs actually wrong?

-- 
Lew
 

>
> Lew wrote:
>>
>> Piren wrote:
>>
>>> Without going into the subject at hand, i just want to mention that 
>>> sometimes the documentation is wrong... already came across a few functions 
>>> not doing what they say they would do.. so... should probably not rely on 
>>> that


>
>> Such as ...?
>>
>> -- 
>> Lew
>>  
>>
>

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

Re: [android-developers] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-28 Thread Subodh Nijsure
I had no idea I would spark such a discussion.

Only reason I was considering adding 'are you sure you want to exit' button
was

Some of my screens have 5-8 items that users enter stuff like name,
address, some other data. I just don't want users to enter say 80% of data
and loose that data just because they hit back button one two many times..
Is there another UI pattern one should follow in that case?

[ Something like what gmail does regarding auto-saving your draft messages,
but do that in android app.. ]

-Subodh



On Wed, Nov 28, 2012 at 10:09 AM, Kristopher Micinski <
krismicin...@gmail.com> wrote:

> To add, the "exit" button also has the effect of turning off GPS updates,
> so "exiting" also has a feature that implies something else: that you quit
> draining the user's battery.
>
>
> On Wed, Nov 28, 2012 at 12:38 PM, Latimerius  wrote:
>
>> On Wed, Nov 28, 2012 at 6:24 PM, TreKing  wrote:
>> > On Wed, Nov 28, 2012 at 11:18 AM, TreKing  wrote:
>> >>
>> >> On Wed, Nov 28, 2012 at 11:02 AM, Latimerius 
>> wrote:
>> >>>
>> >>> Yeah, well, it's probably not by Google, or one that Google had any
>> >>> say in. None of the built-in apps on my devices have an exit button,
>> >>> not even games (that in general do include it AFAICT).
>> >>
>> >>
>> >> Google Maps Navigation has "Exit Navigation" as an option in the menu
>> (at
>> >> least on my device running 2.3.4).
>> >
>> >
>> > Oh, and in reference to the original point of this thread, if you press
>> > back, it asks you "Exit Navigation? This will end all route guidance".
>> If
>> > this check wasn't there, and you exited the app accidentally, you would
>> have
>> > to re-enter the app and re-input your route guidance parameters and
>> restart
>> > the process, which would be a pain in the ass if you're in the middle of
>> > driving. So seems like there are some valid use cases for such
>> validation.
>>
>> Interesting, thanks for pointing this out.  I'm guessing something
>> about Navigation must be somehow expensive or slow so they had to put
>> that check in.  Or otherwise, was the crusade against exit buttons I
>> remember seeing all over the net back in 2009/2010 misguided?
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: Kudos to ADT package developers

2012-11-28 Thread Tor Norbye
We don't modify the general Java editor completion; you should report those
issues in the Eclipse issue tracker for JDT.

-- Tor


On Wed, Nov 28, 2012 at 3:04 PM, Παύλος-Πέτρος Τουρνάρης <
p.tourna...@gmail.com> wrote:

> In Java!
>
>
>
> On Thu, Nov 29, 2012 at 1:01 AM, Tor Norbye  wrote:
>
>> Autocompletion in Java or in XML?
>>
>>
>> On Wed, Nov 28, 2012 at 2:51 PM, Παύλος-Πέτρος Τουρνάρης <
>> p.tourna...@gmail.com> wrote:
>>
>>> The AutoCompletion is up to you to make it better or up to the Eclipse
>>> guys?
>>>
>>>
>>> On Thu, Nov 29, 2012 at 12:42 AM, Tor Norbye  wrote:
>>>
 You don't need to install the ADT bundle; we also continue to
 distribute the plugins so you can add them to your existing IDEs. The goal
 for the bundle is to make first time setup much simpler; in addition to the
 IDE with the plugins preconfigured, it also bundled the SDK tools, and
 finally makes the IDE aware of where to find the SDK tools such that
 everything works without any complicated setup.

 -- Tor


 On Wed, Nov 28, 2012 at 2:07 PM, Piren  wrote:

> My only issue with such a bundle is that it means that i have multiple
> instances of Eclipse on my computer, each of them needs to be configured
> from 0 to match my preferred style... the Android bundle, Motodev,
> SpringSource, JBOSS Studio and the list goes on...
>
>
> On Wednesday, November 28, 2012 8:00:45 AM UTC-5, Doug Gordon wrote:
>>
>> Having just bought a new PC, I wasn't particularly looking forward to
>> installing my Eclipse/Android development environment yet once again
>> and
>> could only hope to find my old notes on what to install, what
>> settings
>> to  make, etc. So I was pleasantly surprised to find that this has
>> been
>> packaged into a single download that almost instantly gets me back to
>> being productive. I think the only thing I needed to do was to tell
>> it
>> where the SDK was and download some earlier platforms.
>>
>> So thanks to whoever it was that did this work -- greatly
>> appreciated!
>>
>> Doug Gordon
>> GHCS Software
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to
> android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

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

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

Re: [android-developers] Re: Kudos to ADT package developers

2012-11-28 Thread Παύλος-Πέτρος Τουρνάρης
In Java!



On Thu, Nov 29, 2012 at 1:01 AM, Tor Norbye  wrote:

> Autocompletion in Java or in XML?
>
>
> On Wed, Nov 28, 2012 at 2:51 PM, Παύλος-Πέτρος Τουρνάρης <
> p.tourna...@gmail.com> wrote:
>
>> The AutoCompletion is up to you to make it better or up to the Eclipse
>> guys?
>>
>>
>> On Thu, Nov 29, 2012 at 12:42 AM, Tor Norbye  wrote:
>>
>>> You don't need to install the ADT bundle; we also continue to distribute
>>> the plugins so you can add them to your existing IDEs. The goal for the
>>> bundle is to make first time setup much simpler; in addition to the IDE
>>> with the plugins preconfigured, it also bundled the SDK tools, and finally
>>> makes the IDE aware of where to find the SDK tools such that everything
>>> works without any complicated setup.
>>>
>>> -- Tor
>>>
>>>
>>> On Wed, Nov 28, 2012 at 2:07 PM, Piren  wrote:
>>>
 My only issue with such a bundle is that it means that i have multiple
 instances of Eclipse on my computer, each of them needs to be configured
 from 0 to match my preferred style... the Android bundle, Motodev,
 SpringSource, JBOSS Studio and the list goes on...


 On Wednesday, November 28, 2012 8:00:45 AM UTC-5, Doug Gordon wrote:
>
> Having just bought a new PC, I wasn't particularly looking forward to
> installing my Eclipse/Android development environment yet once again
> and
> could only hope to find my old notes on what to install, what settings
> to  make, etc. So I was pleasantly surprised to find that this has
> been
> packaged into a single download that almost instantly gets me back to
> being productive. I think the only thing I needed to do was to tell it
> where the SDK was and download some earlier platforms.
>
> So thanks to whoever it was that did this work -- greatly appreciated!
>
> Doug Gordon
> GHCS Software
>
  --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

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

Re: [android-developers] Re: Kudos to ADT package developers

2012-11-28 Thread Tor Norbye
Autocompletion in Java or in XML?


On Wed, Nov 28, 2012 at 2:51 PM, Παύλος-Πέτρος Τουρνάρης <
p.tourna...@gmail.com> wrote:

> The AutoCompletion is up to you to make it better or up to the Eclipse
> guys?
>
>
> On Thu, Nov 29, 2012 at 12:42 AM, Tor Norbye  wrote:
>
>> You don't need to install the ADT bundle; we also continue to distribute
>> the plugins so you can add them to your existing IDEs. The goal for the
>> bundle is to make first time setup much simpler; in addition to the IDE
>> with the plugins preconfigured, it also bundled the SDK tools, and finally
>> makes the IDE aware of where to find the SDK tools such that everything
>> works without any complicated setup.
>>
>> -- Tor
>>
>>
>> On Wed, Nov 28, 2012 at 2:07 PM, Piren  wrote:
>>
>>> My only issue with such a bundle is that it means that i have multiple
>>> instances of Eclipse on my computer, each of them needs to be configured
>>> from 0 to match my preferred style... the Android bundle, Motodev,
>>> SpringSource, JBOSS Studio and the list goes on...
>>>
>>>
>>> On Wednesday, November 28, 2012 8:00:45 AM UTC-5, Doug Gordon wrote:

 Having just bought a new PC, I wasn't particularly looking forward to
 installing my Eclipse/Android development environment yet once again
 and
 could only hope to find my old notes on what to install, what settings
 to  make, etc. So I was pleasantly surprised to find that this has been
 packaged into a single download that almost instantly gets me back to
 being productive. I think the only thing I needed to do was to tell it
 where the SDK was and download some earlier platforms.

 So thanks to whoever it was that did this work -- greatly appreciated!

 Doug Gordon
 GHCS Software

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

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

2012-11-28 Thread Παύλος-Πέτρος Τουρνάρης
The AutoCompletion is up to you to make it better or up to the Eclipse guys?


On Thu, Nov 29, 2012 at 12:42 AM, Tor Norbye  wrote:

> You don't need to install the ADT bundle; we also continue to distribute
> the plugins so you can add them to your existing IDEs. The goal for the
> bundle is to make first time setup much simpler; in addition to the IDE
> with the plugins preconfigured, it also bundled the SDK tools, and finally
> makes the IDE aware of where to find the SDK tools such that everything
> works without any complicated setup.
>
> -- Tor
>
>
> On Wed, Nov 28, 2012 at 2:07 PM, Piren  wrote:
>
>> My only issue with such a bundle is that it means that i have multiple
>> instances of Eclipse on my computer, each of them needs to be configured
>> from 0 to match my preferred style... the Android bundle, Motodev,
>> SpringSource, JBOSS Studio and the list goes on...
>>
>>
>> On Wednesday, November 28, 2012 8:00:45 AM UTC-5, Doug Gordon wrote:
>>>
>>> Having just bought a new PC, I wasn't particularly looking forward to
>>> installing my Eclipse/Android development environment yet once again and
>>> could only hope to find my old notes on what to install, what settings
>>> to  make, etc. So I was pleasantly surprised to find that this has been
>>> packaged into a single download that almost instantly gets me back to
>>> being productive. I think the only thing I needed to do was to tell it
>>> where the SDK was and download some earlier platforms.
>>>
>>> So thanks to whoever it was that did this work -- greatly appreciated!
>>>
>>> Doug Gordon
>>> GHCS Software
>>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: I am trying to set the Image for an ImageView any help would be great

2012-11-28 Thread bob


There's a comma on this page that should not be:
http://developer.android.com/reference/android/hardware/SensorManager.html

This line

public class SensorActivity extends Activity, implements SensorEventListener {

should have no comma.


On Wednesday, November 28, 2012 4:39:28 PM UTC-6, Lew wrote:
>
> Piren wrote:
>
>> Without going into the subject at hand, i just want to mention that 
>> sometimes the documentation is wrong... already came across a few functions 
>> not doing what they say they would do.. so... should probably not rely on 
>> that
>>>
>>>

> Such as ...?
>
> -- 
> Lew
>  
>

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

2012-11-28 Thread Tor Norbye
You don't need to install the ADT bundle; we also continue to distribute
the plugins so you can add them to your existing IDEs. The goal for the
bundle is to make first time setup much simpler; in addition to the IDE
with the plugins preconfigured, it also bundled the SDK tools, and finally
makes the IDE aware of where to find the SDK tools such that everything
works without any complicated setup.

-- Tor


On Wed, Nov 28, 2012 at 2:07 PM, Piren  wrote:

> My only issue with such a bundle is that it means that i have multiple
> instances of Eclipse on my computer, each of them needs to be configured
> from 0 to match my preferred style... the Android bundle, Motodev,
> SpringSource, JBOSS Studio and the list goes on...
>
>
> On Wednesday, November 28, 2012 8:00:45 AM UTC-5, Doug Gordon wrote:
>>
>> Having just bought a new PC, I wasn't particularly looking forward to
>> installing my Eclipse/Android development environment yet once again and
>> could only hope to find my old notes on what to install, what settings
>> to  make, etc. So I was pleasantly surprised to find that this has been
>> packaged into a single download that almost instantly gets me back to
>> being productive. I think the only thing I needed to do was to tell it
>> where the SDK was and download some earlier platforms.
>>
>> So thanks to whoever it was that did this work -- greatly appreciated!
>>
>> Doug Gordon
>> GHCS Software
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: I am trying to set the Image for an ImageView any help would be great

2012-11-28 Thread Lew
Piren wrote:

> Without going into the subject at hand, i just want to mention that 
> sometimes the documentation is wrong... already came across a few functions 
> not doing what they say they would do.. so... should probably not rely on 
> that
>>
>>
>>>
Such as ...?

-- 
Lew
 

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

2012-11-28 Thread bob
You could always use a java.net.Socket.

That's probably what I would do.



On Thursday, November 22, 2012 3:58:52 AM UTC-6, Ryan Bateman wrote:
>
> I'm attempting to write a simple API management class and running into an 
> issue when using HttpUrlConnection to POST content on a Galaxy Nexus 
> recently upgraded to 4.2. 
> In effect, attempting to post content fails on the first attempt with an 
> EOFException:
>
> java.io.EOFException
>> at libcore.io.Streams.readAsciiLine(Streams.java:203)
>> at libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:573)
>> at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:821)
>> at 
>> libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:283)
>> at 
>> libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:495)
>> at com.murts.network.APIClient.post(APIClient.java:126)
>> at com.murts.network.APIManager$1.doInBackground(APIManager.java:49)
>
>
> The second attempt to post (with the same data) will work fine, as will 
> every alternate attempt to do so after that. 
>
> The code is as follows:
>
> URL url = new URL(urlString);
>> connection = (HttpURLConnection) url.openConnection();
>> connection.setUseCaches(false);
>> connection.setDoOutput(true);
>> connection.setRequestProperty("Content-type", "application/json; 
>> charset=utf-8");
>> connection.setFixedLengthStreamingMode(postContent.getBytes().length);
>>
>> output = connection.getOutputStream();
>> output.write(postContent.getBytes());
>> if (connection.getResponseCode()  / 100 == 2) {
>> Ln.d("Seemed to work: " + connection.getResponseCode());
>> return new NetworkResponse(NetworkStatus.OKAY, 
>> connection.getResponseCode(), "");
>> } else {
>> String errorResponse = new 
>> String(readStream(connection.getErrorStream()));
>> Ln.e(TAG , "Error: " + errorResponse);
>>
>> String statusLine;
>> if (connection.getHeaderFields().get(null) != null && (statusLine = 
>> connection.getHeaderFields().get(null).get(0)) != null && 
>> TextUtils.split(statusLine, " ").length > 2) {
>> int potentialStatusCode = Integer.parseInt(TextUtils.split(statusLine, " 
>> ")[1]);
>> Ln.d("Parsed out empty response to reveal: " + potentialStatusCode);
>> return new NetworkResponse(NetworkStatus.OKAY, potentialStatusCode, "");
>> }
>> }
>> } catch (IOException e) {
>> Ln.e(e);
>> } finally {
>> if (connection != null) {
>> connection.disconnect();
>> }
>> }
>
>
> Testing on a 4.2 image on an emulator seems to work well, as does testing 
> on previous versions of Android on an emulator (2.3+).  
> I can't see any immediate issues with the code (it may looks hackish in 
> parts, but that's due more to being churned over thanks to endless 
> frustration with this issue) but perhaps I've missed something? 
> Anyone have any thoughts with this, on either a Galaxy Nexus in general or 
> with 4.2 specifically?
>
> Thanks in advance for any assistance (or even thoughts at all.)
>
> 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

Re: [android-developers] Re: HttpURLConnection on Galaxy Nexus 4.2

2012-11-28 Thread Piren
That's cause he's using the wrong field... that field is in fact a String, 
but was deprecated a long long while ago.

He should be using SDK_INT

On Wednesday, November 28, 2012 9:25:04 AM UTC-5, Ralph Bergmann wrote:
>
> Am 27.11.12 11:40, schrieb Fritjof: 
> > Integer.parseInt(Build.VERSION.SDK) > 13) 
>
> why you parse a int to Integer and let it automatically convert 
> (unboxing) to int? 
>
>
> http://javarevisited.blogspot.de/2012/07/auto-boxing-and-unboxing-in-java-be.html
>  
>
>
> Ralph 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: I am trying to set the Image for an ImageView any help would be great

2012-11-28 Thread Piren
Without going into the subject at hand, i just want to mention that 
sometimes the documentation is wrong... already came across a few functions 
not doing what they say they would do.. so... should probably not rely on 
that

On Wednesday, November 28, 2012 4:48:43 PM UTC-5, bob wrote:
>
>
> Just to clarify, here is the method you are calling with a bad input 
> stream:
>
> public static Bitmap decodeStream (InputStream is)
> Added in API level 1
> Decode an input stream into a bitmap. If the input stream is null, or 
> cannot be used to decode a bitmap, the function returns null. The stream's 
> position will be where ever it was after the encoded data was read.
> Parameters
> is
> The input stream that holds the raw data to be decoded into a bitmap.
> Returns
> The decoded bitmap, or null if the image data could not be decoded.
>
>
> It must return null.
>
> In other words, it does not throw an exception.
>
> Neither does setImageBitmap when you do setImageBitmap(null);
>
>
> On Monday, November 26, 2012 7:45:05 PM UTC-6, Gabriel Higareda wrote:
>>
>> Sorry to be posting but I can't see my posts on the group page: This is 
>> the code that is giving me trouble: 
>>
>> try{
>> URL url = new URL("
>> http://en.wikipedia.org/wiki/File:Polar_Bear_-_Alaska.jpg";);
>> HttpURLConnection connection  = (HttpURLConnection) 
>> url.openConnection();
>>
>> InputStream is = connection.getInputStream();
>> Bitmap img = BitmapFactory.decodeStream(is);  
>> 
>> animalPhoto.setImageBitmap(img );
>> }catch(Exception e){
>> Toast.makeText(this,"IO Exception", 
>> Toast.LENGTH_LONG).show(); 
>> }
>>
>> But when i run my app, no picture is shown and my catch message shows... 
>> Not sure what is going on. 
>>
>

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

Re: [android-developers] android version problem

2012-11-28 Thread Piren
it does make it more fun ... we can play 21 ^support* questions

On Sunday, November 25, 2012 11:21:12 PM UTC-5, TreKing wrote:
>
> On Sun, Nov 25, 2012 at 10:31 PM, Sadhna Upadhyay 
> 
> > wrote:
>
>> when i am testing the app on 1ndroid 2.3.4 some functionality is not 
>> working why it is so?
>
>
> "some functionality" is not working? Are we supposed to guess at what the 
> functionality is?
>
>
> -
> 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: Kudos to ADT package developers

2012-11-28 Thread Piren
My only issue with such a bundle is that it means that i have multiple 
instances of Eclipse on my computer, each of them needs to be configured 
from 0 to match my preferred style... the Android bundle, Motodev, 
SpringSource, JBOSS Studio and the list goes on...


On Wednesday, November 28, 2012 8:00:45 AM UTC-5, Doug Gordon wrote:
>
> Having just bought a new PC, I wasn't particularly looking forward to 
> installing my Eclipse/Android development environment yet once again and 
> could only hope to find my old notes on what to install, what settings 
> to  make, etc. So I was pleasantly surprised to find that this has been 
> packaged into a single download that almost instantly gets me back to 
> being productive. I think the only thing I needed to do was to tell it 
> where the SDK was and download some earlier platforms. 
>
> So thanks to whoever it was that did this work -- greatly appreciated! 
>
> Doug Gordon 
> GHCS Software 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: I am trying to set the Image for an ImageView any help would be great

2012-11-28 Thread bob

Just to clarify, here is the method you are calling with a bad input stream:

public static Bitmap decodeStream (InputStream is)
Added in API level 1
Decode an input stream into a bitmap. If the input stream is null, or 
cannot be used to decode a bitmap, the function returns null. The stream's 
position will be where ever it was after the encoded data was read.
Parameters
is
The input stream that holds the raw data to be decoded into a bitmap.
Returns
The decoded bitmap, or null if the image data could not be decoded.


It must return null.

In other words, it does not throw an exception.

Neither does setImageBitmap when you do setImageBitmap(null);


On Monday, November 26, 2012 7:45:05 PM UTC-6, Gabriel Higareda wrote:
>
> Sorry to be posting but I can't see my posts on the group page: This is 
> the code that is giving me trouble: 
>
> try{
> URL url = new URL("
> http://en.wikipedia.org/wiki/File:Polar_Bear_-_Alaska.jpg";);
> HttpURLConnection connection  = (HttpURLConnection) 
> url.openConnection();
>
> InputStream is = connection.getInputStream();
> Bitmap img = BitmapFactory.decodeStream(is);  
> 
> animalPhoto.setImageBitmap(img );
> }catch(Exception e){
> Toast.makeText(this,"IO Exception", Toast.LENGTH_LONG).show(); 
> }
>
> But when i run my app, no picture is shown and my catch message shows... 
> Not sure what is going on. 
>

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

Re: [android-developers] Re: Save photo in 320x426 resolution with high quality

2012-11-28 Thread bob
 

Also, make sure you set fullPath as the path to the image, not just the 
path to the directory containing the image.

On Wednesday, November 28, 2012 3:25:55 PM UTC-6, Ricardo Cardoso wrote:
>
> I forgot to write the variables in the code that put the fullpath
>
> public final static String APP_PATH_SD_CARD = "/directory/";
>
> But how not to use the "System.currentTimeMillis ()"?
>
>
> Without replacing the photo taken next to a picture?
>
>
>
> 2012/11/28 bob >
>
>> Well, the code where you set fullPath is obviously wrong.
>>
>> Also, be careful saving it with this file name:
>>
>>  System.currentTimeMillis () + ". Jpg"
>>
>> If you construct that file name at a different time, it may not open.
>>
>>
>>
>> On Wednesday, November 28, 2012 2:31:01 PM UTC-6, Ricardo Cardoso wrote:
>>>
>>> I'm taking a picture with my application and saving to the phone 
>>> directory 
>>> But when I ask to save with this resolution in pixels is giving 
>>> nullpointerexeption:
>>> 11-28 18:01:47.593: E / AndroidRuntime (19992): Caused by: 
>>> java.lang.NullPointerException
>>> 11-28 18:01:47.593: E / AndroidRuntime (19992): at 
>>> android.graphics.Bitmap.**createScaledBitmap (Bitmap.java: 461)
>>>
>>> I'm doing this:
>>> btn_camera.setOnClickListener (new View.OnClickListener () {
>>>
>>>
>>> @ Override
>>>
>>> public void onClick (View v) {
>>>
>>> Intent intent = new Intent ("android.media.action.IMAGE_**CAPTURE");
>>>
>>> startActivityForResult (intent, TIRA_FOTO);
>>>
>>> }
>>>
>>> });
>>>
>>>
>>>
>>> And then I caught the activityResult
>>>
>>> @ Override
>>>
>>> protected void onActivityResult (int requestCode, int resultCode, 
>>> Intent data) {
>>>
>>> super.onActivityResult (requestCode, resultCode, data);
>>>
>>>  if (requestCode == TIRA_FOTO && resultCode == RESULT_OK) {
>>>
>>> Bitmap photo = (Bitmap) data.getExtras (.) Get ("date");
>>>
>>> saveImageToExternalStorage (photo);
>>>
>>> } Else if (resultCode == RESULT_CANCELED) {
>>>
>>> Toast.makeText (this, "Cancelled", Toast.LENGTH_SHORT.) Show ();
>>>
>>> Else {}
>>>
>>> Toast.makeText (this, "Left", Toast.LENGTH_SHORT.) Show ();
>>>
>>> }
>>>
>>> }
>>>
>>>
>>>
>>> The function to save the image:
>>>
>>>
>>>
>>> public boolean saveImageToExternalStorage (Bitmap image) {
>>>
>>> 
>>>
>>> Environment.**getExternalStorageDirectory fullpath = (). 
>>> getAbsolutePath () + APP_PATH_SD_CARD;
>>>
>>>
>>>
>>> / / Image = BitmapFactory.decodeFile (FullPath);
>>>
>>> / / Image = Bitmap.createScaledBitmap (image, 320, 426, true);
>>>
>>> try {
>>>
>>> File dir = new File (FullPath);
>>>
>>> if (! dir.exists ()) {
>>>
>>> dir.mkdirs ();
>>>
>>> }
>>>
>>>
>>>
>>> OutputStream fout = null;
>>>
>>> File file = new File (fullpath, System.currentTimeMillis () + ". 
>>> Jpg");
>>>
>>> file.createNewFile ();
>>>
>>> fout = new FileOutputStream (file);
>>>
>>>
>>>
>>> / / 100 means the compression, the lower you go, the stronger the 
>>> compression
>>>
>>> image.compress (Bitmap.CompressFormat.JPEG, 100, fout);
>>>
>>> 
>>>
>>> fOut.flush ();
>>>
>>> fOut.close ();
>>>
>>> 
>>>
>>>
>>>
>>> / / MediaStore.Images.Media.**insertImage (getContentResolver (), 
>>> file.getAbsolutePath (), file.getName (), file.getName ());
>>>
>>> return true;
>>>
>>>
>>>
>>> } Catch (Exception e) {
>>>
>>> Log.e ("saveToExternalStorage ()", e.getMessage ());
>>>
>>> return false;
>>>
>>> }
>>>
>>> }
>>>
>>>
>>> If I uncomment these lines
>>> / / Image = BitmapFactory.decodeFile (FullPath);
>>>
>>> / / Image = Bitmap.createScaledBitmap (image, 320, 426, true);
>>>
>>> From the nullpointer error, the problem is that you are saving with 
>>> 121x162 resolution and is getting very bad image ...
>>>
>>> Can anyone 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-d...@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>

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

Re: [android-developers] Re: Save photo in 320x426 resolution with high quality

2012-11-28 Thread bob
 

Maybe use a counter and, if the file exists, increment it?

On Wednesday, November 28, 2012 3:25:55 PM UTC-6, Ricardo Cardoso wrote:
>
> I forgot to write the variables in the code that put the fullpath
>
> public final static String APP_PATH_SD_CARD = "/directory/";
>
> But how not to use the "System.currentTimeMillis ()"?
>
>
> Without replacing the photo taken next to a picture?
>
>
>
> 2012/11/28 bob >
>
>> Well, the code where you set fullPath is obviously wrong.
>>
>> Also, be careful saving it with this file name:
>>
>>  System.currentTimeMillis () + ". Jpg"
>>
>> If you construct that file name at a different time, it may not open.
>>
>>
>>
>> On Wednesday, November 28, 2012 2:31:01 PM UTC-6, Ricardo Cardoso wrote:
>>>
>>> I'm taking a picture with my application and saving to the phone 
>>> directory 
>>> But when I ask to save with this resolution in pixels is giving 
>>> nullpointerexeption:
>>> 11-28 18:01:47.593: E / AndroidRuntime (19992): Caused by: 
>>> java.lang.NullPointerException
>>> 11-28 18:01:47.593: E / AndroidRuntime (19992): at 
>>> android.graphics.Bitmap.**createScaledBitmap (Bitmap.java: 461)
>>>
>>> I'm doing this:
>>> btn_camera.setOnClickListener (new View.OnClickListener () {
>>>
>>>
>>> @ Override
>>>
>>> public void onClick (View v) {
>>>
>>> Intent intent = new Intent ("android.media.action.IMAGE_**CAPTURE");
>>>
>>> startActivityForResult (intent, TIRA_FOTO);
>>>
>>> }
>>>
>>> });
>>>
>>>
>>>
>>> And then I caught the activityResult
>>>
>>> @ Override
>>>
>>> protected void onActivityResult (int requestCode, int resultCode, 
>>> Intent data) {
>>>
>>> super.onActivityResult (requestCode, resultCode, data);
>>>
>>>  if (requestCode == TIRA_FOTO && resultCode == RESULT_OK) {
>>>
>>> Bitmap photo = (Bitmap) data.getExtras (.) Get ("date");
>>>
>>> saveImageToExternalStorage (photo);
>>>
>>> } Else if (resultCode == RESULT_CANCELED) {
>>>
>>> Toast.makeText (this, "Cancelled", Toast.LENGTH_SHORT.) Show ();
>>>
>>> Else {}
>>>
>>> Toast.makeText (this, "Left", Toast.LENGTH_SHORT.) Show ();
>>>
>>> }
>>>
>>> }
>>>
>>>
>>>
>>> The function to save the image:
>>>
>>>
>>>
>>> public boolean saveImageToExternalStorage (Bitmap image) {
>>>
>>> 
>>>
>>> Environment.**getExternalStorageDirectory fullpath = (). 
>>> getAbsolutePath () + APP_PATH_SD_CARD;
>>>
>>>
>>>
>>> / / Image = BitmapFactory.decodeFile (FullPath);
>>>
>>> / / Image = Bitmap.createScaledBitmap (image, 320, 426, true);
>>>
>>> try {
>>>
>>> File dir = new File (FullPath);
>>>
>>> if (! dir.exists ()) {
>>>
>>> dir.mkdirs ();
>>>
>>> }
>>>
>>>
>>>
>>> OutputStream fout = null;
>>>
>>> File file = new File (fullpath, System.currentTimeMillis () + ". 
>>> Jpg");
>>>
>>> file.createNewFile ();
>>>
>>> fout = new FileOutputStream (file);
>>>
>>>
>>>
>>> / / 100 means the compression, the lower you go, the stronger the 
>>> compression
>>>
>>> image.compress (Bitmap.CompressFormat.JPEG, 100, fout);
>>>
>>> 
>>>
>>> fOut.flush ();
>>>
>>> fOut.close ();
>>>
>>> 
>>>
>>>
>>>
>>> / / MediaStore.Images.Media.**insertImage (getContentResolver (), 
>>> file.getAbsolutePath (), file.getName (), file.getName ());
>>>
>>> return true;
>>>
>>>
>>>
>>> } Catch (Exception e) {
>>>
>>> Log.e ("saveToExternalStorage ()", e.getMessage ());
>>>
>>> return false;
>>>
>>> }
>>>
>>> }
>>>
>>>
>>> If I uncomment these lines
>>> / / Image = BitmapFactory.decodeFile (FullPath);
>>>
>>> / / Image = Bitmap.createScaledBitmap (image, 320, 426, true);
>>>
>>> From the nullpointer error, the problem is that you are saving with 
>>> 121x162 resolution and is getting very bad image ...
>>>
>>> Can anyone 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-d...@googlegroups.com
>> To unsubscribe from this group, 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] missing method in android.graphics.SurfaceTexture

2012-11-28 Thread bob
 

Am I the only one who thinks there is a missing method in 
android.graphics.SurfaceTexture?


Shouldn't there be a way to get the integer texture ID for the texture?


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

2012-11-28 Thread Ricardo Cardoso
I forgot to write the variables in the code that put the fullpath

public final static String APP_PATH_SD_CARD = "/directory/";

But how not to use the "System.currentTimeMillis ()"?


Without replacing the photo taken next to a picture?



2012/11/28 bob 

> Well, the code where you set fullPath is obviously wrong.
>
> Also, be careful saving it with this file name:
>
>  System.currentTimeMillis () + ". Jpg"
>
> If you construct that file name at a different time, it may not open.
>
>
>
> On Wednesday, November 28, 2012 2:31:01 PM UTC-6, Ricardo Cardoso wrote:
>>
>> I'm taking a picture with my application and saving to the phone
>> directory 
>> But when I ask to save with this resolution in pixels is giving
>> nullpointerexeption:
>> 11-28 18:01:47.593: E / AndroidRuntime (19992): Caused by:
>> java.lang.NullPointerException
>> 11-28 18:01:47.593: E / AndroidRuntime (19992): at
>> android.graphics.Bitmap.**createScaledBitmap (Bitmap.java: 461)
>>
>> I'm doing this:
>> btn_camera.setOnClickListener (new View.OnClickListener () {
>>
>>
>> @ Override
>>
>> public void onClick (View v) {
>>
>> Intent intent = new Intent ("android.media.action.IMAGE_**CAPTURE");
>>
>> startActivityForResult (intent, TIRA_FOTO);
>>
>> }
>>
>> });
>>
>>
>>
>> And then I caught the activityResult
>>
>> @ Override
>>
>> protected void onActivityResult (int requestCode, int resultCode,
>> Intent data) {
>>
>> super.onActivityResult (requestCode, resultCode, data);
>>
>> if (requestCode == TIRA_FOTO && resultCode == RESULT_OK) {
>>
>> Bitmap photo = (Bitmap) data.getExtras (.) Get ("date");
>>
>> saveImageToExternalStorage (photo);
>>
>> } Else if (resultCode == RESULT_CANCELED) {
>>
>> Toast.makeText (this, "Cancelled", Toast.LENGTH_SHORT.) Show ();
>>
>> Else {}
>>
>> Toast.makeText (this, "Left", Toast.LENGTH_SHORT.) Show ();
>>
>> }
>>
>> }
>>
>>
>>
>> The function to save the image:
>>
>>
>>
>> public boolean saveImageToExternalStorage (Bitmap image) {
>>
>>
>>
>> Environment.**getExternalStorageDirectory fullpath = ().
>> getAbsolutePath () + APP_PATH_SD_CARD;
>>
>>
>>
>> / / Image = BitmapFactory.decodeFile (FullPath);
>>
>> / / Image = Bitmap.createScaledBitmap (image, 320, 426, true);
>>
>> try {
>>
>> File dir = new File (FullPath);
>>
>> if (! dir.exists ()) {
>>
>> dir.mkdirs ();
>>
>> }
>>
>>
>>
>> OutputStream fout = null;
>>
>> File file = new File (fullpath, System.currentTimeMillis () + ".
>> Jpg");
>>
>> file.createNewFile ();
>>
>> fout = new FileOutputStream (file);
>>
>>
>>
>> / / 100 means the compression, the lower you go, the stronger the
>> compression
>>
>> image.compress (Bitmap.CompressFormat.JPEG, 100, fout);
>>
>>
>>
>> fOut.flush ();
>>
>> fOut.close ();
>>
>>
>>
>>
>>
>> / / MediaStore.Images.Media.**insertImage (getContentResolver (),
>> file.getAbsolutePath (), file.getName (), file.getName ());
>>
>> return true;
>>
>>
>>
>> } Catch (Exception e) {
>>
>> Log.e ("saveToExternalStorage ()", e.getMessage ());
>>
>> return false;
>>
>> }
>>
>> }
>>
>>
>> If I uncomment these lines
>> / / Image = BitmapFactory.decodeFile (FullPath);
>>
>> / / Image = Bitmap.createScaledBitmap (image, 320, 426, true);
>>
>> From the nullpointer error, the problem is that you are saving with
>> 121x162 resolution and is getting very bad image ...
>>
>> Can anyone 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] I am trying to set the Image for an ImageView any help would be great

2012-11-28 Thread TreKing
On Mon, Nov 26, 2012 at 7:45 PM, Gabriel Higareda wrote:

> But when i run my app, no picture is shown and my catch message shows...
> Not sure what is going on.


You might consider printing the actual error message from the exception,
instead of writing out "IO Exception", which it might not even be.
This will probably give you a better idea what your issues are.
Also, the debugger is your friend.

-
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] External data storage - Best practise

2012-11-28 Thread TreKing
On Fri, Nov 23, 2012 at 8:47 AM, Alexander Hoffmann <
alexanderh...@googlemail.com> wrote:

> My first question is: The Website should only show the data for the user
> who entered the data so i need any login system and that what I don't know
> how to do. I saw on other apps with website that say use the google account
> login. Maybe that is a possiblity. I'm not sure which technology i should
> use for that. ( I know some basics for php und jsp on a jboss server )
>

This is not really an Android question. You'll have to do some research
into what your options are for server side that meet your requirements.

The second question is: Should I connect directly to the database with the
> android application or should a create webservices on the server which save
> the data in the database and which I call from the Android application.
>

Probably the second.

-
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: Save photo in 320x426 resolution with high quality

2012-11-28 Thread bob
 

Well, the code where you set fullPath is obviously wrong.

Also, be careful saving it with this file name:

 System.currentTimeMillis () + ". Jpg"

If you construct that file name at a different time, it may not open.



On Wednesday, November 28, 2012 2:31:01 PM UTC-6, Ricardo Cardoso wrote:
>
> I'm taking a picture with my application and saving to the phone directory 
> 
> But when I ask to save with this resolution in pixels is giving 
> nullpointerexeption:
> 11-28 18:01:47.593: E / AndroidRuntime (19992): Caused by: 
> java.lang.NullPointerException
> 11-28 18:01:47.593: E / AndroidRuntime (19992): at 
> android.graphics.Bitmap.createScaledBitmap (Bitmap.java: 461)
>
> I'm doing this:
> btn_camera.setOnClickListener (new View.OnClickListener () {
>
>
> @ Override
>
> public void onClick (View v) {
>
> Intent intent = new Intent ("android.media.action.IMAGE_CAPTURE");
>
> startActivityForResult (intent, TIRA_FOTO);
>
> }
>
> });
>
>
>
> And then I caught the activityResult
>
> @ Override
>
> protected void onActivityResult (int requestCode, int resultCode, 
> Intent data) {
>
> super.onActivityResult (requestCode, resultCode, data);
>
> if (requestCode == TIRA_FOTO && resultCode == RESULT_OK) {
>
> Bitmap photo = (Bitmap) data.getExtras (.) Get ("date");
>
> saveImageToExternalStorage (photo);
>
> } Else if (resultCode == RESULT_CANCELED) {
>
> Toast.makeText (this, "Cancelled", Toast.LENGTH_SHORT.) Show ();
>
> Else {}
>
> Toast.makeText (this, "Left", Toast.LENGTH_SHORT.) Show ();
>
> }
>
> }
>
>
>
> The function to save the image:
>
>
>
> public boolean saveImageToExternalStorage (Bitmap image) {
>
> 
>
> Environment.getExternalStorageDirectory fullpath = (). getAbsolutePath 
> () + APP_PATH_SD_CARD;
>
>
>
> / / Image = BitmapFactory.decodeFile (FullPath);
>
> / / Image = Bitmap.createScaledBitmap (image, 320, 426, true);
>
> try {
>
> File dir = new File (FullPath);
>
> if (! dir.exists ()) {
>
> dir.mkdirs ();
>
> }
>
>
>
> OutputStream fout = null;
>
> File file = new File (fullpath, System.currentTimeMillis () + ". Jpg");
>
> file.createNewFile ();
>
> fout = new FileOutputStream (file);
>
>
>
> / / 100 means the compression, the lower you go, the stronger the 
> compression
>
> image.compress (Bitmap.CompressFormat.JPEG, 100, fout);
>
> 
>
> fOut.flush ();
>
> fOut.close ();
>
> 
>
>
>
> / / MediaStore.Images.Media.insertImage (getContentResolver (), 
> file.getAbsolutePath (), file.getName (), file.getName ());
>
> return true;
>
>
>
> } Catch (Exception e) {
>
> Log.e ("saveToExternalStorage ()", e.getMessage ());
>
> return false;
>
> }
>
> }
>
>
> If I uncomment these lines
> / / Image = BitmapFactory.decodeFile (FullPath);
>
> / / Image = Bitmap.createScaledBitmap (image, 320, 426, true);
>
> From the nullpointer error, the problem is that you are saving with 
> 121x162 resolution and is getting very bad image ...
>
> Can anyone 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] Save photo in 320x426 resolution with high quality

2012-11-28 Thread Ricardo Cardoso
I'm taking a picture with my application and saving to the phone directory

But when I ask to save with this resolution in pixels is giving
nullpointerexeption:
11-28 18:01:47.593: E / AndroidRuntime (19992): Caused by:
java.lang.NullPointerException
11-28 18:01:47.593: E / AndroidRuntime (19992): at
android.graphics.Bitmap.createScaledBitmap (Bitmap.java: 461)

I'm doing this:
btn_camera.setOnClickListener (new View.OnClickListener () {


@ Override

public void onClick (View v) {

Intent intent = new Intent ("android.media.action.IMAGE_CAPTURE");

startActivityForResult (intent, TIRA_FOTO);

}

});



And then I caught the activityResult

@ Override

protected void onActivityResult (int requestCode, int resultCode,
Intent data) {

super.onActivityResult (requestCode, resultCode, data);

if (requestCode == TIRA_FOTO && resultCode == RESULT_OK) {

Bitmap photo = (Bitmap) data.getExtras (.) Get ("date");

saveImageToExternalStorage (photo);

} Else if (resultCode == RESULT_CANCELED) {

Toast.makeText (this, "Cancelled", Toast.LENGTH_SHORT.) Show ();

Else {}

Toast.makeText (this, "Left", Toast.LENGTH_SHORT.) Show ();

}

}



The function to save the image:



public boolean saveImageToExternalStorage (Bitmap image) {



Environment.getExternalStorageDirectory fullpath = (). getAbsolutePath
() + APP_PATH_SD_CARD;



/ / Image = BitmapFactory.decodeFile (FullPath);

/ / Image = Bitmap.createScaledBitmap (image, 320, 426, true);

try {

File dir = new File (FullPath);

if (! dir.exists ()) {

dir.mkdirs ();

}



OutputStream fout = null;

File file = new File (fullpath, System.currentTimeMillis () + ". Jpg");

file.createNewFile ();

fout = new FileOutputStream (file);



/ / 100 means the compression, the lower you go, the stronger the
compression

image.compress (Bitmap.CompressFormat.JPEG, 100, fout);



fOut.flush ();

fOut.close ();





/ / MediaStore.Images.Media.insertImage (getContentResolver (),
file.getAbsolutePath (), file.getName (), file.getName ());

return true;



} Catch (Exception e) {

Log.e ("saveToExternalStorage ()", e.getMessage ());

return false;

}

}


If I uncomment these lines
/ / Image = BitmapFactory.decodeFile (FullPath);

/ / Image = Bitmap.createScaledBitmap (image, 320, 426, true);

>From the nullpointer error, the problem is that you are saving with 121x162
resolution and is getting very bad image ...

Can anyone 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] Re: android e book

2012-11-28 Thread Kristopher Micinski
So use any HTML parser to read it, rather than an XML or JSON parser.

kris


On Mon, Nov 26, 2012 at 6:40 PM, Salih Gündüz wrote:

> http://www.mevzuat.adalet.gov.tr/html/388.html
>
>
> On Tue, Nov 27, 2012 at 1:39 AM, Salih Gündüz wrote:
>
>> thanks mario. but I can not reach any xml or database. It is a government
>> page. I can only read html.
>>
>>
>> On Tue, Nov 27, 2012 at 1:27 AM, Mário César Mancinelli de Araújo <
>> mandaproma...@gmail.com> wrote:
>>
>>> Maybe you won't need any of this. But, first, questions:
>>> - The data you want is only in that HTML page? If so, how is it formated?
>>> - Or is it in a database? If this is the case, can't you access directly
>>> the db?
>>>
>>> Anyway, you can access it with xml, or directly the database. And it
>>> isn't so hard to do that with xml. There are a lot of examples over the
>>> internet about that.
>>>
>>> I, personaly, had never used xml until now (I'm creating a small app for
>>> the blog of a nonprofit organization I created). Still, I was able to find
>>> an example and change it to get the "featured image" of each post and so on.
>>>
>>> All you have to do is look the source code of the page (you can see it
>>> with your bronser) and try to find a pattern in it. ;-)
>>>
>>> Best regards.
>>> Em 26/11/2012 15:11, "Salih Gündüz"  escreveu:
>>>
>>> webview is a good solution thanks. But the web page is not good
 formatted for mobile devices.It is a government page so I can not reach the
 database but I and to develope my own user interface.

 On Mon, Nov 26, 2012 at 7:03 PM, Michael Banzon wrote:

> You must include a caching layer in your app.
>
> Everything you need to do this can be found in the SDK manual on
> WebViews: http://developer.android.com/guide/webapps/webview.html
>
>
> On Mon, Nov 26, 2012 at 5:31 PM, Salih Gündüz 
> wrote:
>
>> İt can be used. but I want to store the data in phone so they can
>> read when they dont have internet.this is my problem :)
>>
>> 26 Kasım 2012 Pazartesi 18:28:11 UTC+2 tarihinde bob yazdı:
>>
>>> Sounds like you will want to use a WebView.
>>>
>>> On Monday, November 26, 2012 10:09:30 AM UTC-6, Salih Gündüz wrote:

 I want to develope an e book for android. My data is in internet
 but not a json or a xml only html page.(http://www.mevzuat.**
 adalet.gov.tr/html/388.html).
 the data changes often. so data must be update often and must be saved 
 on
 phone so people can read without internet.How can I parse data from 
 html?
 can I convert the page json?can you suggest me some ways or methods?
>>>
>>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to
>> android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Michael Banzon
> http://michaelbanzon.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
>

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

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

Re: [android-developers] Re: Write to another application's internal memory

2012-11-28 Thread Kristopher Micinski
This is the right advice, and this is the Android way to do it.



On Wed, Nov 28, 2012 at 9:45 AM, Streets Of Boston
wrote:

> You can't do that.
>
> If you want 2 separate apps (i.e. apps with a different package name and
> therefore different user-ids) to share data, you'd have to device other
> measures:
>
>1. Write your own ContentProvider that is public/exported.
>
>http://developer.android.com/guide/topics/providers/content-providers.html
>
>Both apps can read and write from this and exchange info this way.
>You can implement this ContentProvider in a Project Library used by
>both your apps.
>
>2. If one app is always sending and the other is always receiving,
>write your own public/exported Service or a BroadcastReceiver for the
>receiving app. The sending app can invoke these by sending an Intent
>(startService/bind or sendBroadcast)
>For extra security, I'd suggest using a BroadcastReceiver using your
>own homegrown permission.
>
>3. Have the receiving app setup a simple 'Web' Server (listening
>sockets).
>Have the other app send data to this socket.
>
>
> On Tuesday, November 27, 2012 2:56:27 AM UTC-5, Android Test wrote:
>>
>> Hi All,
>>
>> I have 2 applications with different package names. E.g. App1 and App2.
>>
>> App1 needs to write some files to App2's internal memory so that it could
>> be uploaded to the backend.
>>
>> I have used the following in App1 to do so:
>>
>> filePath = getPackageManager().**getPackageInfo("app2.package.**name 
>> ", 0).applicationInfo.dataDir;
>>
>> I can get the correct path but could not write to it. I checked the
>> logcat, it is showing "Permission denied".
>>
>> Am I missing something? What's else needs to be done?
>>
>> Thanks in Advance
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] EffectFactory effects

2012-11-28 Thread bob
 

Does anyone know if there is an easy way to apply the 
android.media.effect.EffectFactory effects to a video?


Thanks.


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

[android-developers] Re: Write to another application's internal memory

2012-11-28 Thread G. Blake Meike
 
http://en.wikipedia.org/wiki/Bob's_your_uncle

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

2012-11-28 Thread Harri Smått
Hi,

Not only across multiple CPUs but also a way to produce near to NDK speed code 
over different devices. Ideally lots of RenderScript code can be ran on GPU 
which makes it even faster than CPU.

--
H

On Nov 28, 2012, at 6:38 PM, bob  wrote:

> I'm trying to understand RenderScript.  The docs are s confusing.
> 
> Can someone explain it in layman's terms?  Is it basically just to help 
> distribute your code across multiple CPUs (or multiple cores)?

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

2012-11-28 Thread bob
 

I am not his uncle.

On Wednesday, November 28, 2012 12:39:08 PM UTC-6, G. Blake Meike wrote:
>
> I think that the fact that this question is about "writing to internal 
>> memory" is confusing people.  I think that all you want to do is allow App2 
>> access to a file owned by App1.  That is probably pretty easy:
>>
>> App1 will own the file(s).  They will be in its sandbox files directory 
>> and not visible to any other app including App2.  App1 must contain a 
>> ContentProvider that supports  
>> android:grantUriPermissions
>> .  When App1 wants to pass a file to App2 it will fire an intent to a 
>> service in App2, with a URI that identifies, to its own (App1's) content 
>> provider, the file it wants to share.  A Service in App2 catches the intent 
>> and makes a request for an {In, Out}putStream, for the URI, to the content 
>> provider in App1.  App1's ContentProvider.openFIle method decodes the URI 
>> and opens and returns a ParcelFileDescriptor for the file to which it 
>> corresponds. (fyi, don't try this with assets!).
>>
>> Bob's your uncle.
>>
>> -blake
>> The 2nd Edition of Programming Android is now available!:
>> http://shop.oreilly.com/product/0636920023005.do
>>
>

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

[android-developers] Re: Write to another application's internal memory

2012-11-28 Thread G. Blake Meike

>
> I think that the fact that this question is about "writing to internal 
> memory" is confusing people.  I think that all you want to do is allow App2 
> access to a file owned by App1.  That is probably pretty easy:
>
> App1 will own the file(s).  They will be in its sandbox files directory 
> and not visible to any other app including App2.  App1 must contain a 
> ContentProvider that supports  
> android:grantUriPermissions
> .  When App1 wants to pass a file to App2 it will fire an intent to a 
> service in App2, with a URI that identifies, to its own (App1's) content 
> provider, the file it wants to share.  A Service in App2 catches the intent 
> and makes a request for an {In, Out}putStream, for the URI, to the content 
> provider in App1.  App1's ContentProvider.openFIle method decodes the URI 
> and opens and returns a ParcelFileDescriptor for the file to which it 
> corresponds. (fyi, don't try this with assets!).
>
> Bob's your uncle.
>
> -blake
> The 2nd Edition of Programming Android is now available!:
> http://shop.oreilly.com/product/0636920023005.do
>

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

Re: [android-developers] Re: Kudos to ADT package developers

2012-11-28 Thread bob
 

This sounds like MOTODEV Studio but not from Motorola.

On Wednesday, November 28, 2012 10:36:14 AM UTC-6, Paul-Peter Tournaris 
wrote:
>
> http://developer.android.com/sdk/index.html 
>
> Where it says "Download Android SDK" -> ADT Bundle for Windows!!
>
>
> On Wed, Nov 28, 2012 at 6:08 PM, bob 
> > wrote:
>
>> Where is this single download you speak of?
>>
>> On Wednesday, November 28, 2012 7:00:45 AM UTC-6, Doug Gordon wrote:
>>>
>>> Having just bought a new PC, I wasn't particularly looking forward to 
>>> installing my Eclipse/Android development environment yet once again and 
>>> could only hope to find my old notes on what to install, what settings 
>>> to  make, etc. So I was pleasantly surprised to find that this has been 
>>> packaged into a single download that almost instantly gets me back to 
>>> being productive. I think the only thing I needed to do was to tell it 
>>> where the SDK was and download some earlier platforms. 
>>>
>>> So thanks to whoever it was that did this work -- greatly appreciated! 
>>>
>>> Doug Gordon 
>>> GHCS Software 
>>>
>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to 
>> android-d...@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

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

Re: [android-developers] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-28 Thread Kristopher Micinski
To add, the "exit" button also has the effect of turning off GPS updates,
so "exiting" also has a feature that implies something else: that you quit
draining the user's battery.


On Wed, Nov 28, 2012 at 12:38 PM, Latimerius  wrote:

> On Wed, Nov 28, 2012 at 6:24 PM, TreKing  wrote:
> > On Wed, Nov 28, 2012 at 11:18 AM, TreKing  wrote:
> >>
> >> On Wed, Nov 28, 2012 at 11:02 AM, Latimerius 
> wrote:
> >>>
> >>> Yeah, well, it's probably not by Google, or one that Google had any
> >>> say in. None of the built-in apps on my devices have an exit button,
> >>> not even games (that in general do include it AFAICT).
> >>
> >>
> >> Google Maps Navigation has "Exit Navigation" as an option in the menu
> (at
> >> least on my device running 2.3.4).
> >
> >
> > Oh, and in reference to the original point of this thread, if you press
> > back, it asks you "Exit Navigation? This will end all route guidance". If
> > this check wasn't there, and you exited the app accidentally, you would
> have
> > to re-enter the app and re-input your route guidance parameters and
> restart
> > the process, which would be a pain in the ass if you're in the middle of
> > driving. So seems like there are some valid use cases for such
> validation.
>
> Interesting, thanks for pointing this out.  I'm guessing something
> about Navigation must be somehow expensive or slow so they had to put
> that check in.  Or otherwise, was the crusade against exit buttons I
> remember seeing all over the net back in 2009/2010 misguided?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Informing Google about permission to build and post branded app

2012-11-28 Thread TreKing
On Mon, Nov 26, 2012 at 3:57 PM, capps  wrote:

> Do I need to get a written letter of permission from the copyright holder
> to Google before the app can be approved and upload to Google Play?


Apps don't get approved before being uploaded - they get retroactively
disapproved and then yanked if they're found to violate some term(s).

You would have to ask here (http://developer.android.com/support.html) for
questions regarding Google Play, but don't expect to get much of an answer.

You might have to resort to putting your app up and including in the
description that all work is used with permission, and just hoping you
don't get yanked.

Welcome to Google Play!

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

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

Re: [android-developers] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-28 Thread TreKing
On Wed, Nov 28, 2012 at 11:38 AM, Latimerius  wrote:

> I'm guessing something about Navigation must be somehow expensive or slow
> so they had to put
> that check in.
>

The check if you really want to exit, in the google navigation case, I *
think* is for convenience and safety. Like I stated before, if you exit
accidentally while driving, getting back to the state you were in is
cumbersome at best, and dangerous at worst, so it makes sense to verify
that the action is really wanted. The extra button tap more than makes up
for the time it would take to get back to where you were if it indeed was a
mistake.

As for the dedicated exit button, that makes no sense to me and does seem
redundant and "anti-android".


> Or otherwise, was the crusade against exit buttons I remember seeing all
> over the net back in 2009/2010 misguided?
>

I think the issue is with apps that do this for the sake of doing it. Where
a "Quit" button does nothing more than call finish() or, worse yet,
System.exit(). In this case it's pointless and just adding to the user
confusion. In some cases, it might be more justifiable, like a music player
like Pandora. They have a quit option that stops the song and closes the
app. This makes sense to me as it's different from just stopping the song
but leaving the player open (i.e., I don't want this song, but I want to
keep looking around) or using back (i.e., I want to close the app itself
but keep the music playing).

Like most software development patterns, it's not the use of it that's the
problem, it's the *ab*use of it that's the problem.

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

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

[android-developers] GCMBroadcast Receiver Enable/Disable

2012-11-28 Thread Paul-Peter Tournaris
Hello guys. In my application i have a gcmbroadcast receiver registered, so 
that i can receive PushNotifications.
 
It is the Basic GCMReceiver Class provided by Google and i have an element 
 in my Manifest for it. 

I added a CheckBox in my Preferences Screen in order to enable/disable it 
but i had issues with it. The behaviour i want is to enable and disable the 
Receiver based on the value of the CheckBox.

So when the App starts i added a new method to check the value and trigger 
it as needed using the ComponentName object and its methods.

Although at first it worked like a charm, in the Preferences Screen, when i 
restarted the App it stopped working.

Is there any appropriate way to enable/disable such a Receiver across the 
Application?

Thank you in advance.



Receivers registration inside Manifest.

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

Re: [android-developers] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-28 Thread Latimerius
On Wed, Nov 28, 2012 at 6:24 PM, TreKing  wrote:
> On Wed, Nov 28, 2012 at 11:18 AM, TreKing  wrote:
>>
>> On Wed, Nov 28, 2012 at 11:02 AM, Latimerius  wrote:
>>>
>>> Yeah, well, it's probably not by Google, or one that Google had any
>>> say in. None of the built-in apps on my devices have an exit button,
>>> not even games (that in general do include it AFAICT).
>>
>>
>> Google Maps Navigation has "Exit Navigation" as an option in the menu (at
>> least on my device running 2.3.4).
>
>
> Oh, and in reference to the original point of this thread, if you press
> back, it asks you "Exit Navigation? This will end all route guidance". If
> this check wasn't there, and you exited the app accidentally, you would have
> to re-enter the app and re-input your route guidance parameters and restart
> the process, which would be a pain in the ass if you're in the middle of
> driving. So seems like there are some valid use cases for such validation.

Interesting, thanks for pointing this out.  I'm guessing something
about Navigation must be somehow expensive or slow so they had to put
that check in.  Or otherwise, was the crusade against exit buttons I
remember seeing all over the net back in 2009/2010 misguided?

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


Re: [android-developers] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-28 Thread TreKing
On Wed, Nov 28, 2012 at 11:18 AM, TreKing  wrote:

> On Wed, Nov 28, 2012 at 11:02 AM, Latimerius  wrote:
>
>> Yeah, well, it's probably not by Google, or one that Google had any
>> say in. None of the built-in apps on my devices have an exit button,
>> not even games (that in general do include it AFAICT).
>>
>
> Google Maps Navigation has "Exit Navigation" as an option in the menu (at
> least on my device running 2.3.4).
>

Oh, and in reference to the original point of this thread, if you press
back, it asks you "Exit Navigation? This will end all route guidance". If
this check wasn't there, and you exited the app accidentally, you would
have to re-enter the app and re-input your route guidance parameters and
restart the process, which would be a pain in the ass if you're in the
middle of driving. So seems like there are some valid use cases for such
validation.

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

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

Re: [android-developers] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-28 Thread TreKing
On Wed, Nov 28, 2012 at 11:02 AM, Latimerius  wrote:

> Yeah, well, it's probably not by Google, or one that Google had any
> say in. None of the built-in apps on my devices have an exit button,
> not even games (that in general do include it AFAICT).
>

Google Maps Navigation has "Exit Navigation" as an option in the menu (at
least on my device running 2.3.4).

-
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] Abridged summary of android-developers@googlegroups.com - 100 Messages in 78 Topics

2012-11-28 Thread Bobbie Stump


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

Re: [android-developers] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-28 Thread Latimerius
Yeah, well, it's probably not by Google, or one that Google had any
say in.  None of the built-in apps on my devices have an exit button,
not even games (that in general do include it AFAICT).

One would think users would be used to not having to exit explicitly
their phone, SMS, camera apps, plus web browser, PDF reader, music
player etc. etc. so they wouldn't miss an exit button in other apps.
Apparently though, they consider built-in apps that enable basic
functions of a device a different kind of animal - they probably don't
realise everything is an app, pretty much, just some are pre-installed
and others are not?

On Wed, Nov 28, 2012 at 4:31 PM, bob  wrote:
> My car navigation app has an Exit button.  In the upper right corner.  I
> think it's the built-in app too.
>
>
>
> On Wednesday, November 28, 2012 5:04:29 AM UTC-6, latimerius wrote:
>>
>> On Tue, Nov 27, 2012 at 10:31 PM, RichardC
>>  wrote:
>> > This sounds like an Android anti-pattern.  I would suggest you design
>> > your
>> > app so that is does not need a "do you want to quit".
>> >
>> > 1) onDestroy is not guaranteed to be called.
>> > 2) end-users do not expect apps to ask them I they should quit.
>>
>> Your point 2) is unfortunately not universally true.  We got a 2-star
>> rating just yesterday, with one of the points the user made being
>> "There isn't any exit button, (that I can find), so everytime you want
>> to quit the app, you must hit home button then task manager to close
>> out app.".
>>
>> Now, you don't need to explain to me how exit buttons on Android make
>> no sense - I understand all that and agree with you completely.  My
>> point is, users don't.  There's probably quite a bunch of people who
>> got an Android device recently after spending 15 years on Windows, I'm
>> not even surprised they are confused.
>>
>> If we get more reviews like this we'll consider adding an exit button,
>> however bogus it might be, I'm sorry.  A lot of third party apps on
>> Market do have those I notice...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Navigation Apps

2012-11-28 Thread Jack Harvard
On Mon, Nov 26, 2012 at 9:58 PM, TreKing  wrote:

> This does not seem like it has anything to do with this list, which is for
> developing apps with the SDK. However ...
>

As many Android developers, perhaps like yourself, subscribe to this
mailing list, there should be someone who is on navigation/map app
development. The question may not be related to developing apps using SDK,
if that's the only allowed topic on this, I'm in the wrong place.

My goal is to use the most popular apps on the Android platform to
understand the components that popular apps stress, and figure out whether
those components in Android can be improved.

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

[android-developers] GCMBroadcast Receiver Enable/Disable

2012-11-28 Thread Παύλος-Πέτρος Τουρνάρης
Hello guys. In my application i have a gcmbroadcast receiver registered, so
that i can receive PushNotifications.

It is the Basic GCMReceiver Class provided by Google and i have an element
 in my Manifest for it.

I added a CheckBox in my Preferences Screen in order to enable/disable it
but i had issues with it. The behaviour i want is to enable and disable the
Receiver based on the value of the CheckBox.

So when the App starts i added a new method to check the value and trigger
it as needed using the ComponentName object and its methods.

Although at first it worked like a charm, in the Preferences Screen, when i
restarted the App it stopped working.

Is there any appropriate way to enable/disable such a Receiver across the
Application?

Thank you in advance.



Receivers registration inside Manifest.

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

[android-developers] RenderScript

2012-11-28 Thread bob
 

I'm trying to understand RenderScript.  The docs are s confusing.


Can someone explain it in layman's terms?  Is it basically just to help 
distribute your code across multiple CPUs (or multiple cores)?


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

2012-11-28 Thread Παύλος-Πέτρος Τουρνάρης
Below it there is for Linux and Mac too!



On Wed, Nov 28, 2012 at 6:36 PM, Παύλος-Πέτρος Τουρνάρης <
p.tourna...@gmail.com> wrote:

> http://developer.android.com/sdk/index.html
>
> Where it says "Download Android SDK" -> ADT Bundle for Windows!!
>
>
> On Wed, Nov 28, 2012 at 6:08 PM, bob  wrote:
>
>> Where is this single download you speak of?
>>
>> On Wednesday, November 28, 2012 7:00:45 AM UTC-6, Doug Gordon wrote:
>>>
>>> Having just bought a new PC, I wasn't particularly looking forward to
>>> installing my Eclipse/Android development environment yet once again and
>>> could only hope to find my old notes on what to install, what settings
>>> to  make, etc. So I was pleasantly surprised to find that this has been
>>> packaged into a single download that almost instantly gets me back to
>>> being productive. I think the only thing I needed to do was to tell it
>>> where the SDK was and download some earlier platforms.
>>>
>>> So thanks to whoever it was that did this work -- greatly appreciated!
>>>
>>> Doug Gordon
>>> GHCS Software
>>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

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

Re: [android-developers] Re: Kudos to ADT package developers

2012-11-28 Thread Παύλος-Πέτρος Τουρνάρης
http://developer.android.com/sdk/index.html

Where it says "Download Android SDK" -> ADT Bundle for Windows!!


On Wed, Nov 28, 2012 at 6:08 PM, bob  wrote:

> Where is this single download you speak of?
>
> On Wednesday, November 28, 2012 7:00:45 AM UTC-6, Doug Gordon wrote:
>>
>> Having just bought a new PC, I wasn't particularly looking forward to
>> installing my Eclipse/Android development environment yet once again and
>> could only hope to find my old notes on what to install, what settings
>> to  make, etc. So I was pleasantly surprised to find that this has been
>> packaged into a single download that almost instantly gets me back to
>> being productive. I think the only thing I needed to do was to tell it
>> where the SDK was and download some earlier platforms.
>>
>> So thanks to whoever it was that did this work -- greatly appreciated!
>>
>> Doug Gordon
>> GHCS Software
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: how to connect server into client

2012-11-28 Thread bob
 

Maybe it is because you are infected with *incredibar* malware?

On Tuesday, November 27, 2012 1:54:33 AM UTC-6, Tom wrote:
>
> Hi,
>
> Now I ran the server local address with port using tomcat server.The 
> server code is developed by servlet. in the first time the server code is 
> ran successfully 
>and client code also ran suceesfully( client code is developed by 
>  android ). But the i ran the second time the server side code displays 
> "address already in use   :bind" and client side is not 
> connect it displays the "connection refused" error. SO i don't have any 
> idea to fix that. 
> If u that reason of this error or u have any idea... pls share with me..
>
>
> And also i was attached the outputs of server side and client side
>
> 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: Kudos to ADT package developers

2012-11-28 Thread bob
 

Where is this single download you speak of?

On Wednesday, November 28, 2012 7:00:45 AM UTC-6, Doug Gordon wrote:
>
> Having just bought a new PC, I wasn't particularly looking forward to 
> installing my Eclipse/Android development environment yet once again and 
> could only hope to find my old notes on what to install, what settings 
> to  make, etc. So I was pleasantly surprised to find that this has been 
> packaged into a single download that almost instantly gets me back to 
> being productive. I think the only thing I needed to do was to tell it 
> where the SDK was and download some earlier platforms. 
>
> So thanks to whoever it was that did this work -- greatly appreciated! 
>
> Doug Gordon 
> GHCS Software 
>

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

2012-11-28 Thread bob
 

Why not just write it to the SD card temporarily?  And encrypt it?



On Tuesday, November 27, 2012 7:57:58 PM UTC-6, Android Test wrote:
>
> Hi Bob,
>
> Because, I don't want it to be visible to users. At the same time do no 
> want other unauthorized applications to be able to access the info.
>
>
> On Wed, Nov 28, 2012 at 12:04 AM, bob 
> > wrote:
>
>> Why not just write it to the SD card?
>>
>>
>>
>> On Tuesday, November 27, 2012 1:56:27 AM UTC-6, Android Test wrote:
>>>
>>> Hi All,
>>>
>>> I have 2 applications with different package names. E.g. App1 and App2.
>>>
>>> App1 needs to write some files to App2's internal memory so that it 
>>> could be uploaded to the backend.
>>>
>>> I have used the following in App1 to do so:
>>>
>>> filePath = getPackageManager().**getPackageInfo("app2.package.**name 
>>> ", 0).applicationInfo.dataDir;
>>>
>>> I can get the correct path but could not write to it. I checked the 
>>> logcat, it is showing "Permission denied".
>>>
>>> Am I missing something? What's else needs to be done?
>>>
>>> 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-d...@googlegroups.com
>> To unsubscribe from this group, 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] Kudos to ADT package developers

2012-11-28 Thread Παύλος-Πέτρος Τουρνάρης
I had the exact same experience and i was so happy too, to find that budle.
Also made the Eclipse response faster and the emulator run more smooth, in
my opinion.

Congratulations guys. You did it once again.

P.S.: The only thing that's missing from Eclipse at the moment is a NICE
GUI Designer!


On Wed, Nov 28, 2012 at 3:00 PM, Doug Gordon  wrote:

> Having just bought a new PC, I wasn't particularly looking forward to
> installing my Eclipse/Android development environment yet once again and
> could only hope to find my old notes on what to install, what settings to
>  make, etc. So I was pleasantly surprised to find that this has been
> packaged into a single download that almost instantly gets me back to being
> productive. I think the only thing I needed to do was to tell it where the
> SDK was and download some earlier platforms.
>
> So thanks to whoever it was that did this work -- greatly appreciated!
>
> Doug Gordon
> GHCS Software
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to 
> android-developers@**googlegroups.com
> To unsubscribe from this group, 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] google map problem

2012-11-28 Thread bob
 

Maybe you forgot INTERNET permission in the first project?

On Wednesday, November 28, 2012 8:49:06 AM UTC-6, doğan wrote:
>
> I dont understand this situation.Problem solved  when I create a new 
> project.
>
> On Wednesday, November 28, 2012 4:15:57 PM UTC+2, Ralph Bergmann wrote:
>>
>> Am 20.11.12 15:14, schrieb doğan: 
>> > I want to use google map api .But i have problem about show the 
>> > coordinates.I added a screencast and some part of codes.Any idea this 
>> > problem? 
>>
>> do you use the right Maps Api key? 
>>
>> https://developers.google.com/android/maps-api-signup 
>>
>> You need one for development and one for the release build. 
>>
>>
>> Ralph 
>>
>

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

2012-11-28 Thread bob
 

The original APKs seem to be located in the /data/app directory.



On Wednesday, November 28, 2012 6:52:41 AM UTC-6, Ibrahim wrote:
>
>  Hi Friends i want to know where the installed file is located on android 
> phones.
>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] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-28 Thread bob
 

My car navigation app has an Exit button.  In the upper right corner.  I 
think it's the built-in app too.



On Wednesday, November 28, 2012 5:04:29 AM UTC-6, latimerius wrote:
>
> On Tue, Nov 27, 2012 at 10:31 PM, RichardC 
> > wrote: 
> > This sounds like an Android anti-pattern.  I would suggest you design 
> your 
> > app so that is does not need a "do you want to quit". 
> > 
> > 1) onDestroy is not guaranteed to be called. 
> > 2) end-users do not expect apps to ask them I they should quit. 
>
> Your point 2) is unfortunately not universally true.  We got a 2-star 
> rating just yesterday, with one of the points the user made being 
> "There isn't any exit button, (that I can find), so everytime you want 
> to quit the app, you must hit home button then task manager to close 
> out app.". 
>
> Now, you don't need to explain to me how exit buttons on Android make 
> no sense - I understand all that and agree with you completely.  My 
> point is, users don't.  There's probably quite a bunch of people who 
> got an Android device recently after spending 15 years on Windows, I'm 
> not even surprised they are confused. 
>
> If we get more reviews like this we'll consider adding an exit button, 
> however bogus it might be, I'm sorry.  A lot of third party apps on 
> Market do have those I notice... 
>

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

2012-11-28 Thread TreKing
On Tue, Nov 27, 2012 at 1:48 AM, Christofer  wrote:

> He said that my app was removed because it contains the logo of SVT Play
> which is untrue. Only time the logo is shown is when the app shows the
> official SVT Play website. The logo is not in my app.


Well, your second screenshot clearly shows "SVT Play" logo at the top.

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

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

Re: [android-developers] Re: Automate update every x secs get data from myUrl

2012-11-28 Thread TreKing
On Wed, Nov 21, 2012 at 12:58 PM, fernando arellano
wrote:

> I think the easy way to resolve it is create a service which always are
> running and notifying to the activity, this service should run a thread to
> check periodically the data from the web service.


Having a service which "always are running" is not only not really
possible, but a terrible drain on resources. Your app will appear to be
running all the time. Again, you should use AlarmManager to schedule work
that occurs periodically.

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

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

Re: [android-developers] Re: android version problem

2012-11-28 Thread TreKing
On Sun, Nov 25, 2012 at 9:59 PM, gowtham kumar  wrote:

> when you developed your application in 2.2 ..you are allowed to run that
> app in 2.2... So if you want to run it in 2.3.3 or  newer version you have
> to change settings of that app
>

What? That's just completely wrong.

-
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] google map problem

2012-11-28 Thread doğan
I dont understand this situation.Problem solved  when I create a new 
project.

On Wednesday, November 28, 2012 4:15:57 PM UTC+2, Ralph Bergmann wrote:
>
> Am 20.11.12 15:14, schrieb doğan: 
> > I want to use google map api .But i have problem about show the 
> > coordinates.I added a screencast and some part of codes.Any idea this 
> > problem? 
>
> do you use the right Maps Api key? 
>
> https://developers.google.com/android/maps-api-signup 
>
> You need one for development and one for the release build. 
>
>
> Ralph 
>

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

2012-11-28 Thread Streets Of Boston
You can't do that.

If you want 2 separate apps (i.e. apps with a different package name and 
therefore different user-ids) to share data, you'd have to device other 
measures:

   1. Write your own ContentProvider that is public/exported.
   
   http://developer.android.com/guide/topics/providers/content-providers.html 
   Both apps can read and write from this and exchange info this way.
   You can implement this ContentProvider in a Project Library used by both 
   your apps.
   
   2. If one app is always sending and the other is always receiving, write 
   your own public/exported Service or a BroadcastReceiver for the receiving 
   app. The sending app can invoke these by sending an Intent 
   (startService/bind or sendBroadcast)
   For extra security, I'd suggest using a BroadcastReceiver using your own 
   homegrown permission.
   
   3. Have the receiving app setup a simple 'Web' Server (listening 
   sockets). 
   Have the other app send data to this socket. 


On Tuesday, November 27, 2012 2:56:27 AM UTC-5, Android Test wrote:
>
> Hi All,
>
> I have 2 applications with different package names. E.g. App1 and App2.
>
> App1 needs to write some files to App2's internal memory so that it could 
> be uploaded to the backend.
>
> I have used the following in App1 to do so:
>
> filePath = getPackageManager().getPackageInfo("app2.package.name", 
> 0).applicationInfo.dataDir;
>
> I can get the correct path but could not write to it. I checked the 
> logcat, it is showing "Permission denied".
>
> Am I missing something? What's else needs to be done?
>
> 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] LEFT JOIN and ORDER BY modified behavior between android 4 and lower versions?

2012-11-28 Thread RichardC
Can you include datesets.date in the output so we can see the value of the 
field you are sorting on.

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


Re: [android-developers] Re: HttpURLConnection on Galaxy Nexus 4.2

2012-11-28 Thread Ralph Bergmann | the4thFloor.eu

Am 27.11.12 11:40, schrieb Fritjof:

Integer.parseInt(Build.VERSION.SDK) > 13)


why you parse a int to Integer and let it automatically convert 
(unboxing) to int?


http://javarevisited.blogspot.de/2012/07/auto-boxing-and-unboxing-in-java-be.html


Ralph

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


Re: [android-developers] google map problem

2012-11-28 Thread Ralph Bergmann | the4thFloor.eu

Am 20.11.12 15:14, schrieb doğan:

I want to use google map api .But i have problem about show the
coordinates.I added a screencast and some part of codes.Any idea this
problem?


do you use the right Maps Api key?

https://developers.google.com/android/maps-api-signup

You need one for development and one for the release build.


Ralph

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

2012-11-28 Thread Live Happy
if ur phone is rooted install the  application root explorer u can find all
file located
data/data/packagename



On Wed, Nov 28, 2012 at 2:52 PM, Ibrahim Sada wrote:

>  Hi Friends i want to know where the installed file is located on android
> phones.
>Thanks in advance..
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Push me baby ( or 3rd-party Application Server simulator) like app for android GCM

2012-11-28 Thread giles ian
Is there a push me baby like app for android which will basically work as
server simulator for testing client.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] I am trying to set the Image for an ImageView any help would be great

2012-11-28 Thread Marina Cuello
That's not the link to the image, but to the image info. The link to
the high res image is
http://upload.wikimedia.org/wikipedia/commons/0/09/Polar_Bear_-_Alaska.jpg
You could have found it as I did... just following your own link.

Marina

On Mon, Nov 26, 2012 at 10:45 PM, Gabriel Higareda  wrote:
> Sorry to be posting but I can't see my posts on the group page: This is the
> code that is giving me trouble:
>
> try{
> URL url = new
> URL("http://en.wikipedia.org/wiki/File:Polar_Bear_-_Alaska.jpg";);
> HttpURLConnection connection  = (HttpURLConnection)
> url.openConnection();
>
> InputStream is = connection.getInputStream();
> Bitmap img = BitmapFactory.decodeStream(is);
>
> animalPhoto.setImageBitmap(img );
> }catch(Exception e){
> Toast.makeText(this,"IO Exception", Toast.LENGTH_LONG).show();
> }
>
> But when i run my app, no picture is shown and my catch message shows... Not
> sure what is going on.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 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] Kudos to ADT package developers

2012-11-28 Thread Doug Gordon
Having just bought a new PC, I wasn't particularly looking forward to 
installing my Eclipse/Android development environment yet once again and 
could only hope to find my old notes on what to install, what settings 
to  make, etc. So I was pleasantly surprised to find that this has been 
packaged into a single download that almost instantly gets me back to 
being productive. I think the only thing I needed to do was to tell it 
where the SDK was and download some earlier platforms.


So thanks to whoever it was that did this work -- greatly appreciated!

Doug Gordon
GHCS Software

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


[android-developers] hi.

2012-11-28 Thread Ibrahim Sada
 Hi Friends i want to know where the installed file is located on android
phones.
   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] LEFT JOIN and ORDER BY modified behavior between android 4 and lower versions?

2012-11-28 Thread saex
 

i have an app that makes this SQL query to a database with two tables, a 
table with items and a table with datesets. Each dataset can be from a 
item, and it is a set of dates ( :) )

SELECT distinct items.date from items left join datesets on 
items.inicio=datesets.capoID and items.capoID=datesets.capoID ORDER BY 
datesets.date

I am ordering by datesets.date because date is a integer representing the 
date, for example: 1357340400

On android 4.X phones the query gives me correctly ordered result. The 
result of the query is:

11-28 13:24:09.457: I/System.out(9148): 16-03-201211-28 13:24:09.457: 
I/System.out(9148): 01-06-201211-28 13:24:09.457: I/System.out(9148): 
22-06-201211-28 13:24:09.457: I/System.out(9148): 21-07-201211-28 13:24:09.457: 
I/System.out(9148): 26-09-201211-28 13:24:09.457: I/System.out(9148): 
30-10-201211-28 13:24:09.457: I/System.out(9148): 05-12-201211-28 13:24:09.457: 
I/System.out(9148): 08-12-201211-28 13:24:09.457: I/System.out(9148): 
27-12-201211-28 13:24:09.457: I/System.out(9148): 05-01-201311-28 13:24:09.457: 
I/System.out(9148): 25-02-201311-28 13:24:09.457: I/System.out(9148): 
10-03-201311-28 13:24:09.457: I/System.out(9148): 23-04-201311-28 13:24:09.457: 
I/System.out(9148): 27-04-201311-28 13:24:09.457: I/System.out(9148): 
11-05-201311-28 13:24:09.457: I/System.out(9148): 23-06-201311-28 13:24:09.457: 
I/System.out(9148): 01-07-201311-28 13:24:09.457: I/System.out(9148): 
15-08-201311-28 13:24:09.457: I/System.out(9148): 11-09-201311-28 13:24:09.457: 
I/System.out(9148): 21-09-2013

In Android 3.2, 2.3, etc (lower versions than 4), the result is incorrect, 
is not properly ordered:

11-28 13:22:50.734: I/System.out(3181): 01-06-201211-28 13:22:50.734: 
I/System.out(3181): 16-03-201211-28 13:22:50.734: I/System.out(3181): 
21-07-201211-28 13:22:50.734: I/System.out(3181): 26-09-201211-28 13:22:50.734: 
I/System.out(3181): 22-06-201211-28 13:22:50.734: I/System.out(3181): 
30-10-201211-28 13:22:50.734: I/System.out(3181): 08-12-201211-28 13:22:50.734: 
I/System.out(3181): 27-12-201211-28 13:22:50.734: I/System.out(3181): 
05-01-201311-28 13:22:50.734: I/System.out(3181): 05-12-201211-28 13:22:50.734: 
I/System.out(3181): 25-02-201311-28 13:22:50.734: I/System.out(3181): 
10-03-201311-28 13:22:50.734: I/System.out(3181): 23-04-201311-28 13:22:50.734: 
I/System.out(3181): 27-04-201311-28 13:22:50.734: I/System.out(3181): 
11-05-201311-28 13:22:50.734: I/System.out(3181): 23-06-201311-28 13:22:50.734: 
I/System.out(3181): 01-07-201311-28 13:22:50.734: I/System.out(3181): 
15-08-201311-28 13:22:50.734: I/System.out(3181): 11-09-201311-28 13:22:50.734: 
I/System.out(3181): 21-09-2013

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

2012-11-28 Thread Tamil Arasi
 Thanks for ur reply.. If u know "how to close the port or suggest any
examples for port function..

Thanks,

On Wed, Nov 28, 2012 at 5:01 PM, Karunakaran Vikash wrote:

> just close when the port function is over..
>  Once a port is initilaized ,it cant be create once again till it is
> closed...
>
>
>
> On Tuesday, November 27, 2012 2:52:45 PM UTC+5:30, Tom wrote:
>>
>> Thanks for ur reply. but  i have used different ip and port that
>> connection. But that is worked first time correctly more than one time i
>> ran the same port that is not working on that time. how to configure the
>> same port will run more than one time..
>>
>>  if u know that pls reply me...
>>
>> On Tuesday, 27 November 2012 14:26:20 UTC+5:30, Mulsaniya Bhadresh wrote:
>>>
>>> you have to changet the http port because it is already used by some
>>> server or application
>>>
>>> and on client side testing u have to use 10.0.0.2 instead of localhost
>>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: FM radio Android Application Developement

2012-11-28 Thread Karunakaran Vikash
Sorry Bob... 
  U r rite,,, without an FM radio module in device.. we can 
implement it... 
But we can add a new device  and writing a driver in kernel to work with 
the android . am i rite ?? 

On Monday, November 26, 2012 9:01:19 PM UTC+5:30, bob wrote:
>
> Well, the first step would be to buy it and see if it actually works.
>
> If it does, *then* you might ask how he made it.
>
>
> On Wednesday, November 21, 2012 11:07:12 PM UTC-6, Karunakaran Vikash 
> wrote:
>>
>> ya ,, this is an External Application only na.. then how he can made 
>> it... ??
>> Is there any other way for it... ?
>>
>>
>>
>>
>> On Wednesday, November 21, 2012 10:57:52 AM UTC+5:30, Karunakaran Vikash 
>> wrote:
>>>
>>> Hi ,
>>>  I need to create a FM radio android application , is there any api 
>>> or methods for developing this...  anything available means ,just drop me a 
>>> mail ..
>>> Any useful links , please update me... 
>>>
>>> THanks in Advance ... 
>>>
>>> Regards,
>>> V.Karunkaran
>>>
>>>

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

2012-11-28 Thread Karunakaran Vikash
just close when the port function is over..
 Once a port is initilaized ,it cant be create once again till it is 
closed... 

  

On Tuesday, November 27, 2012 2:52:45 PM UTC+5:30, Tom wrote:
>
> Thanks for ur reply. but  i have used different ip and port that 
> connection. But that is worked first time correctly more than one time i 
> ran the same port that is not working on that time. how to configure the 
> same port will run more than one time..
>
>  if u know that pls reply me...
>
> On Tuesday, 27 November 2012 14:26:20 UTC+5:30, Mulsaniya Bhadresh wrote:
>>
>> you have to changet the http port because it is already used by some 
>> server or application 
>>
>> and on client side testing u have to use 10.0.0.2 instead of localhost 
>>
>

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

Re: [android-developers] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-28 Thread Latimerius
On Tue, Nov 27, 2012 at 10:31 PM, RichardC
 wrote:
> This sounds like an Android anti-pattern.  I would suggest you design your
> app so that is does not need a "do you want to quit".
>
> 1) onDestroy is not guaranteed to be called.
> 2) end-users do not expect apps to ask them I they should quit.

Your point 2) is unfortunately not universally true.  We got a 2-star
rating just yesterday, with one of the points the user made being
"There isn't any exit button, (that I can find), so everytime you want
to quit the app, you must hit home button then task manager to close
out app.".

Now, you don't need to explain to me how exit buttons on Android make
no sense - I understand all that and agree with you completely.  My
point is, users don't.  There's probably quite a bunch of people who
got an Android device recently after spending 15 years on Windows, I'm
not even surprised they are confused.

If we get more reviews like this we'll consider adding an exit button,
however bogus it might be, I'm sorry.  A lot of third party apps on
Market do have those I notice...

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


[android-developers] Wi-Fi option is disabled in Samsung Tablet 10.1

2012-11-28 Thread Reddy
Hi All,

I am facing an issue in Samsung Galaxy Tab 10.1. In Wi-Fi settings, Wi-Fi 
option is disabled, so i am not able to select or unselect the wi-fi. 
Please let me know if anyone is facing the same issue and resolved. OS 
version running in the tablet is 3.2.

Regards,
Murali

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

[android-developers] Reading images/files from another apps resources

2012-11-28 Thread Russell Wheeler
I am writing an app that will want to read images and audio files from another 
'data' app, that I'm writing.

I have found a couple of examples of how to grab the resources using 
packagemanager, but was wondering if this was the best/most secure, way.

Can everyone read my resources or do they need to know the package name? (I 
expect this is easily found)
What about rooted users using a file manager app?
Why use resources over assets?
What is internal storage? Is it diff to ass/res? Is that unreadable? If so, how 
would I access the files from the other app? Content provider?

Thanks

Russ

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

2012-11-28 Thread Ehsan Ghasisin
Hi antklim .

No I don't  release API  key for google map . i just  created a key for the
first time in my system. how can  I release a  new key when release my
application .

On Tue, Nov 27, 2012 at 4:18 PM, antklim  wrote:

> Do you have a release API Key for Google Map.
> As I know during developing you can use only developer API Key. When
> you release your application you should use another (release) API Key.
>
> On 26 ноя, 15:58, Narendra Singh Rathore 
> wrote:
> > On Mon, Nov 26, 2012 at 12:11 AM, Ehsan Ghasisin  >wrote:
> >
> > > Hi Every one .  I created  Google map in android   and  test with
> > >  emulator and it worked currently , but when install  in my phone
> > > (Samsung galaxy ) my program didn't show anything  just  show a simple
> page
> > > .
> >
> > > Tnx
> >
> > Hi Ehsan, is internet working on your phone?
> > May be thats the problem.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] How to use demo archives from developer training site

2012-11-28 Thread gunther123

Beginner question...  I'm going through the developer training at 
http://developer.android.com/training/index.html.  I am just starting on 
the "Managing the Activity Lifecycle" topic.  I have downloaded the 
"Download the demo" archive file.  How do I use this file?  Is it possible 
to run the code to see the results?  Or do I have to import the code into 
an existing, runnable project?

-Mike

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

2012-11-28 Thread gowtham kumar
hello sadhana ...when you developed your application in 2.2 ..you are 
allowed to run that app in 2.2... So if you want to run it in 2.3.3 or 
 newer version you have to change settings of that app 

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

[android-developers] Need Help to resolve : W/System.err(791): java.net.SocketException: Interrupted system call

2012-11-28 Thread Geo Manickam
Hello there, 

I am been battling this issue for 4 days now. i tried all the suggestion in 
the web. Still not able to fix this. Any help on this is appreciated.
the crash happen in device and emulator when i press the back 
or orientation is changed. Attached is my manifest file

thanks
Geo

https://code.google.com/p/android/issues/detail?id=2373 
https://code.google.com/p/android/issues/detail?id=26658

I am using the following. 

1. Sencha 2.1 with jsonp store.
2. Android ( Target 4.2, targeted API 17)


11-25 13:06:10.701: I/Web Console(791): exception firing destroy event from 
native at :1
11-25 13:06:10.701: D/DroidGap(791): onMessage(onPageStarted,about:blank)
11-25 13:06:10.831: W/System.err(791): java.net.SocketException: 
Interrupted system call
11-25 13:06:10.831: W/System.err(791): at 
org.apache.harmony.luni.platform.OSNetworkSystem.acceptSocketImpl(Native 
Method)
11-25 13:06:10.831: W/System.err(791): at 
org.apache.harmony.luni.platform.OSNetworkSystem.accept(OSNetworkSystem.java:69)
11-25 13:06:10.841: W/System.err(791): at 
org.apache.harmony.luni.net.PlainSocketImpl.accept(PlainSocketImpl.java:126)
11-25 13:06:10.841: W/System.err(791): at 
java.net.ServerSocket.implAccept(ServerSocket.java:281)
11-25 13:06:10.841: W/System.err(791): at 
java.net.ServerSocket.accept(ServerSocket.java:165)
11-25 13:06:10.881: W/System.err(791): at 
org.apache.cordova.CallbackServer.run(CallbackServer.java:195)
11-25 13:06:10.881: W/System.err(791): at 
java.lang.Thread.run(Thread.java:1096)

My On Create.

*public void onCreate(Bundle savedInstanceState) {*

* super.onCreate(savedInstanceState);*

* /*if (!isTaskRoot()) {*

* final Intent intent = getIntent();*

* final String intentAction = intent.getAction();*

* if (intent.hasCategory(Intent.CATEGORY_LAUNCHER) &&*

* intentAction != null && 
intentAction.equals(Intent.ACTION_MAIN)) {*

* finish();*

* }*

* }*/*

*  /*ActivityManager manager = (ActivityManager) this.getSystemService( 
ACTIVITY_SERVICE );*

* List tasks =  
manager.getRunningTasks(Integer.MAX_VALUE);*

*
*

* for (RunningTaskInfo taskInfo : tasks) {*

* Log.w("Example", (taskInfo.baseActivity.getClassName()) + ":" 
+ taskInfo.numActivities);*

* 
if(taskInfo.baseActivity.getClassName().equals(this.getClass().getName()) 
&& (taskInfo.numActivities > 1)){*

* finish();*

* }*

* }*/*

* //setContentView(R.layout.activity_tamil_recipes_main);*

* *

*  setIntegerProperty("loadUrlTimeoutValue", 3);*

* super.loadUrl("file:///android_asset/www/index.html");*

*  *

**

* // Create the adView *

*//adView = new AdView(this, AdSize.BANNER, ""); *

**

*// Lookup your LinearLayout assuming it's been given *

*//LinearLayout layout =  
(LinearLayout)findViewById(R.id.mainLayout);*

*// the attribute android:id="@+id/mainLayout" *

*//LinearLayout layout = this.root;  // this is the only change 
from the sample *

*
*

*// Add the adView to it *

*//layout.addView(adView); *

*
*

*// Initiate a generic request to load it with an ad *

*//AdRequest request = new AdRequest(); *

*//request.addTestDevice(AdRequest.TEST_EMULATOR);*

*   
//layout.setHorizontalGravity(android.view.Gravity.CENTER_HORIZONTAL);*

*   //adView.loadAd(request); *

* *

* }*

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

AndroidManifest.xml
Description: XML document


[android-developers] I am trying to set the Image for an ImageView any help would be great

2012-11-28 Thread Gabriel Higareda
Sorry to be posting but I can't see my posts on the group page: This is the 
code that is giving me trouble: 

try{
URL url = new 
URL("http://en.wikipedia.org/wiki/File:Polar_Bear_-_Alaska.jpg";);
HttpURLConnection connection  = (HttpURLConnection) 
url.openConnection();

InputStream is = connection.getInputStream();
Bitmap img = BitmapFactory.decodeStream(is);  

animalPhoto.setImageBitmap(img );
}catch(Exception e){
Toast.makeText(this,"IO Exception", Toast.LENGTH_LONG).show(); 
}

But when i run my app, no picture is shown and my catch message shows... 
Not sure what is going on. 

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

Re: [android-developers] Re: android e book

2012-11-28 Thread Salih Gündüz
thanks mario. but I can not reach any xml or database. It is a government
page. I can only read html.

On Tue, Nov 27, 2012 at 1:27 AM, Mário César Mancinelli de Araújo <
mandaproma...@gmail.com> wrote:

> Maybe you won't need any of this. But, first, questions:
> - The data you want is only in that HTML page? If so, how is it formated?
> - Or is it in a database? If this is the case, can't you access directly
> the db?
>
> Anyway, you can access it with xml, or directly the database. And it isn't
> so hard to do that with xml. There are a lot of examples over the internet
> about that.
>
> I, personaly, had never used xml until now (I'm creating a small app for
> the blog of a nonprofit organization I created). Still, I was able to find
> an example and change it to get the "featured image" of each post and so on.
>
> All you have to do is look the source code of the page (you can see it
> with your bronser) and try to find a pattern in it. ;-)
>
> Best regards.
> Em 26/11/2012 15:11, "Salih Gündüz"  escreveu:
>
> webview is a good solution thanks. But the web page is not good formatted
>> for mobile devices.It is a government page so I can not reach the database
>> but I and to develope my own user interface.
>>
>> On Mon, Nov 26, 2012 at 7:03 PM, Michael Banzon wrote:
>>
>>> You must include a caching layer in your app.
>>>
>>> Everything you need to do this can be found in the SDK manual on
>>> WebViews: http://developer.android.com/guide/webapps/webview.html
>>>
>>>
>>> On Mon, Nov 26, 2012 at 5:31 PM, Salih Gündüz wrote:
>>>
 İt can be used. but I want to store the data in phone so they can read
 when they dont have internet.this is my problem :)

 26 Kasım 2012 Pazartesi 18:28:11 UTC+2 tarihinde bob yazdı:

> Sounds like you will want to use a WebView.
>
> On Monday, November 26, 2012 10:09:30 AM UTC-6, Salih Gündüz wrote:
>>
>> I want to develope an e book for android. My data is in internet but
>> not a json or a xml only html page.(http://www.mevzuat.**
>> adalet.gov.tr/html/388.html).
>> the data changes often. so data must be update often and must be saved on
>> phone so people can read without internet.How can I parse data from html?
>> can I convert the page json?can you suggest me some ways or methods?
>
>  --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

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

[android-developers] Why "WebView lost JavaScript update contents after called goBack()" was deleted

2012-11-28 Thread BaronZhao
https://groups.google.com/forum/?fromgroups=#!topic/android-developers/254Ya4cRzts

Did anyone come up with an anwser for this issue?

Thanks!

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

[android-developers] Display contents of a database in a listview

2012-11-28 Thread Giannis Sarridis
I would like to display the contents of a database in a listview...and I am 
new at this..so if there's anyone who could show me the way how to do this 
I would really appreciate it :)

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

[android-developers] adb uninstall failure

2012-11-28 Thread K2G
Hi,
  I am writing sample apps for learning. I have tried these apps on my 
samsung S2 mobile. Now  Uninstall button in manage application is disabled 
and when i do Adb uninstall then also i get failure.
what could be the reason behind this? It is not system app.

I have seen its entry in  /data/app/com.k2g.leaveDemo-1.apk

Thanks for help
K2G

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

2012-11-28 Thread Rui Cunha
Hi all,

I think I know what the question is and actually I have the same issue.
In my case what I need to do is overlay a picture of a building's plans 
over google maps. The problem is that I need to align, rotate and stretch 
the image so that it fits right over the building. I have the coordinates 
of the 4 corners of the plans. the principle is similar to Google Floor 
Plans .

Anyone know how to do that?

Thanks,
Rui

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

2012-11-28 Thread Salih Gündüz
http://www.mevzuat.adalet.gov.tr/html/388.html

On Tue, Nov 27, 2012 at 1:39 AM, Salih Gündüz wrote:

> thanks mario. but I can not reach any xml or database. It is a government
> page. I can only read html.
>
>
> On Tue, Nov 27, 2012 at 1:27 AM, Mário César Mancinelli de Araújo <
> mandaproma...@gmail.com> wrote:
>
>> Maybe you won't need any of this. But, first, questions:
>> - The data you want is only in that HTML page? If so, how is it formated?
>> - Or is it in a database? If this is the case, can't you access directly
>> the db?
>>
>> Anyway, you can access it with xml, or directly the database. And it
>> isn't so hard to do that with xml. There are a lot of examples over the
>> internet about that.
>>
>> I, personaly, had never used xml until now (I'm creating a small app for
>> the blog of a nonprofit organization I created). Still, I was able to find
>> an example and change it to get the "featured image" of each post and so on.
>>
>> All you have to do is look the source code of the page (you can see it
>> with your bronser) and try to find a pattern in it. ;-)
>>
>> Best regards.
>> Em 26/11/2012 15:11, "Salih Gündüz"  escreveu:
>>
>> webview is a good solution thanks. But the web page is not good formatted
>>> for mobile devices.It is a government page so I can not reach the database
>>> but I and to develope my own user interface.
>>>
>>> On Mon, Nov 26, 2012 at 7:03 PM, Michael Banzon wrote:
>>>
 You must include a caching layer in your app.

 Everything you need to do this can be found in the SDK manual on
 WebViews: http://developer.android.com/guide/webapps/webview.html


 On Mon, Nov 26, 2012 at 5:31 PM, Salih Gündüz 
 wrote:

> İt can be used. but I want to store the data in phone so they can read
> when they dont have internet.this is my problem :)
>
> 26 Kasım 2012 Pazartesi 18:28:11 UTC+2 tarihinde bob yazdı:
>
>> Sounds like you will want to use a WebView.
>>
>> On Monday, November 26, 2012 10:09:30 AM UTC-6, Salih Gündüz wrote:
>>>
>>> I want to develope an e book for android. My data is in internet but
>>> not a json or a xml only html page.(http://www.mevzuat.**
>>> adalet.gov.tr/html/388.html).
>>> the data changes often. so data must be update often and must be saved 
>>> on
>>> phone so people can read without internet.How can I parse data from 
>>> html?
>>> can I convert the page json?can you suggest me some ways or methods?
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to
> android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



 --
 Michael Banzon
 http://michaelbanzon.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

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

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

[android-developers] Re: Automate update every x secs get data from myUrl

2012-11-28 Thread fernando arellano
I think the easy way to resolve it is create a service which always are 
running and notifying to the activity, this service should run a thread to 
check periodically the data from the web service.

public class ViewSlideService extends Service {

public static final String TAG = "ViewSlideService";

Updater updater;

private final int DELAY = 3000;


private boolean isRunning = false;

Messenger outMessenger;

@Override
public void onCreate() {
super.onCreate();
updater = new Updater();
Log.v(TAG, "onCreate");
}

@Override
public void onStart(Intent intent, int startId) {
super.onStart(intent, startId);
Log.v(TAG, "onStart");
licenseSeat = QwizdomCommon.licenseSeat;
isRunning = true;
updater.start();

}

@Override
public void onDestroy() {
super.onDestroy();
isRunning = false;
updater.interrupt();
updater = null;
// QwizdomWS.releaseSessionSeat(QwizdomCommon.licenseSeat.getSeatKey()); // 
May be to finish we must release the session seat.
Log.v(TAG, "onDestroy");
}

@Override
public IBinder onBind(Intent intent) {
Log.v(TAG, "onBind");
Bundle extras = intent.getExtras();
if (extras != null) {
outMessenger = (Messenger) extras.get("MESSENGER");
}
return null;
}

private class Updater extends Thread {

@Override
public void run() {
super.run();
while (isRunning) {
UpdateResult update;
try {
//Get data from web service
Thread.sleep(DELAY);
} catch (Exception e1) {
e1.printStackTrace();
}
}
}

}

}

you can see this link for more info about how create a service:
http://stackoverflow.com/questions/4300291/example-communication-between-activity-and-service-using-messaging

El miércoles, 21 de noviembre de 2012 10:40:03 UTC-8, Antonis Kanaris 
escribió:
>
> Hello.I am new developer android and i want to make an application read 
> data from my webserver and control my arduino board...
> I start with this example .for get data...ok work but only when click 
> buttoni want to convert to automatic update.How i make this?.
>
> public class ReadWebpageAsyncTask extends Activity {
>   private TextView textView;
>
>   
> /** Called when the activity is first created. */
>
>   @Override
>   public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.activity_read_webpage_async_task);
> textView = (TextView) findViewById(R.id.textView1);
>   }
>
>   private class DownloadWebPageTask extends AsyncTask String> {
> @Override
> protected String doInBackground(String... urls) {
>   String response = "";
>   for (String url : urls) {
> DefaultHttpClient client = new DefaultHttpClient();
> HttpGet httpGet = new HttpGet(url);
> try {
>   HttpResponse execute = client.execute(httpGet);
>   InputStream content = execute.getEntity().getContent();
>
>   BufferedReader buffer = new BufferedReader(new 
> InputStreamReader(content));
>   String s = "";
>   while ((s = buffer.readLine()) != null) {
> response += s;
>   }
>
> } catch (Exception e) {
>   e.printStackTrace();
> }
>   }
>   return response;
> }
>
> @Override
> protected void onPostExecute(String result) {
>   textView.setText(result);
> }
>   }
>
>   public void readWebpage(View view) {
> DownloadWebPageTask task = new DownloadWebPageTask();
> task.execute(new String[] { "http://www.mysite.net/LEDstate.txt"; });
>
>   }
> } 
>
>
>

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

[android-developers] Airplane mode setting moved from Settings.System to Settings.Global and read-only by 3rd party apps in Jelly Bean 4.2

2012-11-28 Thread Fabio Motoki
Hi! I'm a user of Battery Widget Reborn, which I set to put my Samsung 
Galaxy Nexus in airplane mode during certain hours to save battery. The 
problem is that Google messed up with the API, and now it cannot set 
airplane mode anymore. Whenever the developer tries, the systems throws an 
exception:

Settings.Global.putInt(context.getContentResolver(), 
Settings.Global.AIRPLANE_MODE_ON, setMode)

11-14 13:39:51.649: E/AndroidRuntime(3509): java.lang.SecurityException: 
Permission denial: writing to secure settings requires 
android.permission.WRITE_SECURE_SETTINGS

The problem is that WRITE_SECURE_SETTINGS is a signature|system permission, 
which can only be held by apps that are signed with the firmware's signing key 
or reside on the system partition, thus making it impractical for a 3rd party 
app to turn on or off airplane mode. It makes no sense to me. Why should a 3rd 
party shouldn't be able to perform such a trivial task?

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

[android-developers] read files (.doc .pdf .ppt)

2012-11-28 Thread Firman Charles
hi mates... please help me

How to read/open files .doc .ppt .pdf without downloading.

my files in localhost, so i have to caled the files first and then chose 
one and than read/open the file.

sorry for my bad english

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

[android-developers] Reduce Battery Usage via Airplane Mode

2012-11-28 Thread Javo

I've never created an android app, however I am a computer science major 
(sophomore), so I am relatively familiar with some java code. However, I'm 
still new to programming so forgive me if I say anything ignorant.

I have noticed that the less service I have, the more battery power that is 
used to search for service.
My ultimate goal is to create an app that will put my phone on Airplane 
mode when it is locked and periodically turn off Airplane mode every X 
minutes.
The purpose of putting the phone on Airplane Mode when it is locked is to 
prevent the phone from using battery searching for service when I am not 
using it.
The purpose of turning off Airplane Mode every X minutes is to allow my 
phone to "update," by searching and hopefully connecting to a network so 
that I can be alerted of any missed text messages and/or calls that I have 
received since being on airplane mode.
If the phone is unlocked, I would like Airplane mode to be turned off.

Ideally, I would rather not have to write this code at all. I would really 
appreciate it if someone else could write it for me, not because I am lazy, 
but because this is an app that my phone desperately needs because I spend 
a lot of time in areas where I have too little service for the phone to 
effectively use the networks to send information, but just enough service 
that my phone can still receive information from senders (texts/emails).
-Thank you to whomever may be able 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

[android-developers] Re: https://dl-ssl.google.com/android/eclipse/ not reachable

2012-11-28 Thread Sadri Ercan
https is not necessary try only http


Regards Sadri ERCAN

http://www.androidyukle.net

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

2012-11-28 Thread Fritjof
 

This appears to have solved the problem for me:


 if (Build.VERSION.SDK != null && Integer.parseInt(Build.VERSION.SDK) > 13) 
{ 

  urlConnection.setRequestProperty("Connection", "close"); //disables 
connection reuse

}

On Friday, November 23, 2012 11:34:12 AM UTC+1, b0b wrote:
>
>
>
> On Friday, 23 November 2012 11:23:45 UTC+1, Ryan Bateman wrote:
>>
>> That's not right
>
>
> You are right.  What I said was for DELETE requests. Of course POST 
> requests have a body. 
>

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