Re: [android-developers] How to stop terminate the Android application when using the native code

2012-07-19 Thread Clark kent
I know, i can disable it, so it will work, but i'd like to let the app can 
run many times again. So i disable the exit(), but when call the second 
times, it generates errors.

Could you help?

Thanks
Clark

On Sunday, July 15, 2012 5:52:38 AM UTC+7, Dianne Hackborn wrote:
>
> You just need to fix your native code so it doesn't do this.  Anyone 
> giving you a native library that is calling exit() in it is an evil sadist. 
> :p
>
> On Fri, Jul 13, 2012 at 3:02 AM, Clark kent  wrote:
>
>> Hello every body
>>
>> I have this problem which can not resolve it. 
>>
>> I'm calling the native code(*C code*) from the android application. But 
>> in the native code, they call function "*exit(0)*" so it makes the app 
>> on Android terminate. Could any one know how to stop this one, because 
>> after i called one method from native code , after it finished, it will 
>> terminate the Android application.
>>
>> I found a way is disable the method "*exit(0)*", so it will not 
>> terminate the Android app, but it meet error when i called the native 
>> method second time, some error kind like this: "*Invalid heap address in 
>> internal_realloc*". I think that came from the re allocation the memory. 
>> So if any one know how to free all memory of native call, please let me 
>> know. Thanks for any comments
>>
>> Thanks
>>
>> Clark
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> -- 
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to 
> provide private support, and so won't reply to such e-mails.  All such 
> questions should be posted on public forums, where I and others can see and 
> answer them.
>
>

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

Re: [android-developers] NFC Application

2012-07-19 Thread Raunaque Quaiser
What kind of Application you need to develop.

You can donwload some exmaple applicaiton from the path

http://developer.android.com/tools/samples/index.html and also go through

http://developer.android.com/guide/topics/connectivity/nfc/nfc.html

Which is the protocol you will be supporting with NFC . I wanted to know ,
if it NDEF category or ISO 15693 or ISO 14443.  If the card does not
support NDEF then you need to do bit differently

Regards
Raunaque



On Thu, Jul 19, 2012 at 11:45 PM, TreKing  wrote:

> On Tue, Jul 17, 2012 at 1:59 AM, Amarnath Choudhary <
> amarnathchoudh...@gmail.com> wrote:
>
>> I want to develop a NFC based application and don’t know where to start.
>> Can you give me some suggestions / help, any useful links.
>
>
> http://developer.android.com/guide/index.html
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Accessing Android Transceiver Info.

2012-07-19 Thread Be Tox
Does anyone know how to access the transceiver information (MIB?) on 
an Android phone in order to create a Sonar type App?

Kind Regards, Be Tox

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

[android-developers] Usage of DisplayMetrics

2012-07-19 Thread Agus
What are the uses cases in which width and height values of DisplayMetrics
used ?

Is it just for games ?

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

[android-developers] onPreviewFrame method not called

2012-07-19 Thread mkerim
Hello,

I have seen these kinds of topics stating a similar issue on stackoverflow 
or some other forums, but I wanted to give it another shot of my own to 
finalize this.

My app is currently processing every frame coming from the camera using 
onPreviewFrame. I pass the frames to a native code, which processes them. 
I'd like to enable video recording as well. My aim is to process the frames 
and save the video at the same time. I don't need to alter the video frames 
of any kind, I just need the information coming out from the process. 

But whenever I start video recording, onPreviewFrame is not called. I can't 
process the frames while video recording. I am using SDK 2.2 and HTC Desire 
S as the platform.

>From what I have heard, whenever MediaRecorder starts recording, it takes 
over the frames and prevents access. However, I want this verified by 
people who are more into these kind of apps. Is this true or is there any 
other way around to tackle this via SDK? 

Thanks a lot.

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

[android-developers] Re: Someone stole my sound effects

2012-07-19 Thread mike


среда, 18 июля 2012 г., 2:05:57 UTC+5 пользователь lbendlin написал:
>
> The only way to protect your sounds is not to have them on the device and 
> not to transfer them to the device speaker from an online source either. 
>  "little tricks" are just that, to repulse the less determined thieves. 

How about byte array+decoding Stream+true Stream +tire+ client itself  on 
the same device 0o.

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

2012-07-19 Thread Matt Clark
Also, how would I request permission to use the account manager only when I 
click the button to add the account?

On Thursday, July 19, 2012 8:35:22 PM UTC-4, Matt Clark wrote:
>
> I created an app that connects to my schools network and authenticates the 
> device when in range, using the users pre-configured username/password and 
> the schools web based authentication. Several people have also approached 
> me wondering how to configure their school email account on their device, 
> so would it be possible to, using my app, create a new account on the 
> device? If so, how would one go about doing this? The type is exchange, if 
> that makes a difference.

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

[android-developers] Add Email/Sync Account from an App

2012-07-19 Thread Matt Clark
I created an app that connects to my schools network and authenticates the 
device when in range, using the users pre-configured username/password and 
the schools web based authentication. Several people have also approached 
me wondering how to configure their school email account on their device, 
so would it be possible to, using my app, create a new account on the 
device? If so, how would one go about doing this? The type is exchange, if 
that makes a difference.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: File IO works on Emulator but not my snowball board

2012-07-19 Thread marcpolo
I can copy a file onto sdcard using an "adb push" command, however this is 
effectively as a root user.

On Thursday, 19 July 2012 23:31:05 UTC+1, bob wrote:
>
> Try uploading a file into the /mnt/sdcard dir (or maybe /sdcard?) using 
> Eclipse's File Explorer window.
>
>
> This will tell us if you have permission.
>
>
>
> On Thursday, July 19, 2012 4:53:58 PM UTC-5, marcpolo wrote:
>>
>> Thanks for the suggestion. I have the following in my manifest file
>>
>> > android:name="android.permission.WRITE_INTERNAL_STORAGE"/>
>> 
>> > android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
>> 
>>
>> I am quite confident that I am writing to the write location because it 
>> works when I run on the emulator. I think it may be a permissions issue 
>> when running on my snowball board, or maybe due to a different versions of 
>> android.
>>
>> On Thursday, 19 July 2012 21:56:26 UTC+1, bob wrote:
>>>
>>> Make sure you have WRITE_EXTERNAL_STORAGE permission and you are writing 
>>> in the sd card directory (i.e. /mnt/sdcard/myfile.txt)
>>>
>>>
>>>
>>> On Thursday, July 19, 2012 2:06:40 PM UTC-5, marcpolo wrote:

 Hi,

 I am unable to get file IO working on my snowball board, with the log 
 reporting 

 I have tried writing to internal and external space using both Java and 
 Native C++ code but to no avail.

 I get the message : File open failed : EACCES (permission denied).

 When I run on the emulator the FileIO works okay.

 Do I have to establish root permission within my Android applications 
 perform FileIO on my device?

 Could this be related to the version of Android running on my Snowball 
 board, compared with the emulator?

 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: Make SlidingDrawer's content always visible?

2012-07-19 Thread Justin Anderson
I did look at the image you posted... and it didn't make sense.  Now that
you have explained it properly it makes more sense.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Jul 19, 2012 at 12:29 AM, user123  wrote:

> Please look at the image I posted. I want to use it like usual
> (open/collapse/slide) but with the difference that always a small part is
> visible.
>
> It's because the drawer is containing a list view and I want that the
> first item is always visible.
>
>
> On Monday, July 16, 2012 5:54:10 PM UTC+2, MagouyaWare wrote:
>>
>> So, you are using a sliding drawer and you never want it to collapse?
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/**magouyaware
>>
>>
>> On Mon, Jul 16, 2012 at 2:56 AM, user123  wrote:
>>
>>> Hi golf oo, your answer is empty.
>>>
>>>
>>> On Sunday, July 15, 2012 5:02:25 PM UTC+2, user123 wrote:

 I'm using android:bottomOffset to make the drawer stick out 100dip
 from the bottom. That works fine, but my content is not visible. It's only
 visible when I touch the drawer. How can I make that its always visible
 (the 100dip show the content)?

 I first thought it's a visibility issue, because the visibility of the
 content is set to GONE in onFinishInflate(), prepareContent(),
 closeDrawer()... copied the SlidingDrawer and removed these lines,
 didn't solve it. It seems that it is a position issue, currently I'm
 playing with the numbers but still don't find how to make the view appear
 where it should be... and don't have more time for this... any help is
 greatly appreciated.

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

2012-07-19 Thread bob
 

You should go with PHP and MySQL.  I'd get a virtual server account for 
$5/month or so.  That way someone else has gone thru the fuss of setting it 
up.


Plus, since PHP is thru the web, you don't have to worry so much about 
firewalls and such.


Plus, you can use phpMyAdmin to make all your databases easily.

On Thursday, July 12, 2012 2:50:39 PM UTC-5, dave wrote:
>
> is there a better backend for apps?
> i know php and mysql. should i just go with what i know?
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: File IO works on Emulator but not my snowball board

2012-07-19 Thread bob
 

Try uploading a file into the /mnt/sdcard dir (or maybe /sdcard?) using 
Eclipse's File Explorer window.


This will tell us if you have permission.



On Thursday, July 19, 2012 4:53:58 PM UTC-5, marcpolo wrote:
>
> Thanks for the suggestion. I have the following in my manifest file
>
> 
> 
> 
> 
>
> I am quite confident that I am writing to the write location because it 
> works when I run on the emulator. I think it may be a permissions issue 
> when running on my snowball board, or maybe due to a different versions of 
> android.
>
> On Thursday, 19 July 2012 21:56:26 UTC+1, bob wrote:
>>
>> Make sure you have WRITE_EXTERNAL_STORAGE permission and you are writing 
>> in the sd card directory (i.e. /mnt/sdcard/myfile.txt)
>>
>>
>>
>> On Thursday, July 19, 2012 2:06:40 PM UTC-5, marcpolo wrote:
>>>
>>> Hi,
>>>
>>> I am unable to get file IO working on my snowball board, with the log 
>>> reporting 
>>>
>>> I have tried writing to internal and external space using both Java and 
>>> Native C++ code but to no avail.
>>>
>>> I get the message : File open failed : EACCES (permission denied).
>>>
>>> When I run on the emulator the FileIO works okay.
>>>
>>> Do I have to establish root permission within my Android applications 
>>> perform FileIO on my device?
>>>
>>> Could this be related to the version of Android running on my Snowball 
>>> board, compared with the emulator?
>>>
>>> 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: File IO works on Emulator but not my snowball board

2012-07-19 Thread Mark Murphy
On Thu, Jul 19, 2012 at 5:53 PM, marcpolo  wrote:
> Thanks for the suggestion. I have the following in my manifest file
>
> 
> 

There are no such permissions in Android.

> I am quite confident that I am writing to the write location because it
> works when I run on the emulator. I think it may be a permissions issue when
> running on my snowball board, or maybe due to a different versions of
> android.

You may have better luck getting help on this from a suitable list
hosted at http://source.android.com, then.

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

_The Busy Coder's Guide to Android Development_ Version 3.8 Available!

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


[android-developers] Re: File IO works on Emulator but not my snowball board

2012-07-19 Thread marcpolo
Thanks for the suggestion. I have the following in my manifest file






I am quite confident that I am writing to the write location because it 
works when I run on the emulator. I think it may be a permissions issue 
when running on my snowball board, or maybe due to a different versions of 
android.

On Thursday, 19 July 2012 21:56:26 UTC+1, bob wrote:
>
> Make sure you have WRITE_EXTERNAL_STORAGE permission and you are writing 
> in the sd card directory (i.e. /mnt/sdcard/myfile.txt)
>
>
>
> On Thursday, July 19, 2012 2:06:40 PM UTC-5, marcpolo wrote:
>>
>> Hi,
>>
>> I am unable to get file IO working on my snowball board, with the log 
>> reporting 
>>
>> I have tried writing to internal and external space using both Java and 
>> Native C++ code but to no avail.
>>
>> I get the message : File open failed : EACCES (permission denied).
>>
>> When I run on the emulator the FileIO works okay.
>>
>> Do I have to establish root permission within my Android applications 
>> perform FileIO on my device?
>>
>> Could this be related to the version of Android running on my Snowball 
>> board, compared with the emulator?
>>
>> Thanks in advance.
>>
>

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

Re: [android-developers] Android SDK Error in AndroidManifest.xml

2012-07-19 Thread Lew
TreKing wrote:
>
> 11clock wrote:
>
>> The error is in the file AndroidManifest.xml. The error is, "The markup 
>> in the document following the root element must be well-formed." The code 
>> that gives this error is below.
>>
>> http://schemas.android.com/apk/res/android";
>>
>
> If that's exactly what your XML looks like, starting with an end tag (the 
> "") is probably a likely culprit.
>
>
11clock, you should be familiar with terms like "well formed" and "valid" 
when you deal with XML.

There are many resources on the Web to help with such things.

In an incomplete nutshell, "well formed" means that the XML syntax is 
right, 
that is, begin tags and end tags properly match up, sections don't "cross 
over" each other (where the end tag for the first begin tag precedes the 
end 
tag for the second begin tag, violating strict nesting), attributes are 
quote 
enclosed, and such rules.

"Valid" means that the XML document conforms to its declared schema.

The XML you showed in your post is blatantly ill formed.

Just like your error message says.

-- 
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] The purpose of resource name "mipmap"?!

2012-07-19 Thread Romain Guy
It's not an old way, it was added *after* drawable-hdpi, etc. It's useful
to provide an image at a larger resolution that would normally be computed
(for instance, on an mdpi device, Launcher might want the larger hdpi icon
to display large app shortcuts.)


On Thu, Jul 19, 2012 at 1:47 PM, Tim  wrote:

>
> >On 15/02/2011 10:33, Gary Wang wrote:
> > Dear all,
> >
> > I found the following resource folders are existing in Honeycomb-
> > version Borwser apk.
> >
> > mipmap-hdpi
> > mipmap-mdpi
> >
> > The meaning of "mipmap" resource is not listed in its SDK's
> > documentation.
>
> I also discovered this being used in the stock MMS (SMS) app. It appears
> to be an old way of providing prescaled images for different resolutions,
> before they added support for drawable-hdpi, drawable-mdpi and so on. There
> is some information about it here:
> http://source-android.frandroid.com/frameworks/base/graphics/java/android/graphics/drawable/MipmapDrawable.java
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




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

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

Re: [android-developers] Running App

2012-07-19 Thread Justin Anderson
Add ant to your path environment variable...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Jul 19, 2012 at 12:26 PM, TreKing  wrote:

> On Thu, Jul 19, 2012 at 6:47 AM, John Hearfield <
> ilovecailey.j...@gmail.com> wrote:
>
>> i changed the directory of the command line to my Android Project (which
>> was the path when i made it )
>> and i did
>>
>> ant debug
>>
>> and it says the command isnt internal/external or not found.
>>
>
> Riveting story, thanks for sharing.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Jelly bean swiping task away from task list kills service

2012-07-19 Thread Andy dev
I've got a service running (an accessibility service called 
MainRunningService) and also use an alarmmanager within my app.
 
On ICS when a user pulled up the task list and swiped the app away the 
service kept running, but the user interface was cleared from the stack.
 
On jelly bean I'm finding this to be a little different. It seems like it 
kills off the service and then restarts it even if I've got an icon in the 
notification bar and I've got the app set to run in the foreground. This is 
killing off all my current app state and causing it to stop working.
 
I'm seeing this in the logs
 
07-19 21:47:42.213: I/ActivityManager(307): Killing 
834:com.example.android.appname/u0a72: remove task
07-19 21:47:42.236: W/AudioService(307):   AudioFocus   audio focus client 
died
07-19 21:47:42.236: I/AudioService(307):  AudioFocus  abandonAudioFocus(): 
removing entry for 
android.media.AudioManager@41a42020com.example.android.appname.service.MainRunningService$1@41963ec0
07-19 21:47:42.244: W/ActivityManager(307): Scheduling restart of crashed 
service com.rageconsulting.android.appname/.service.MainRunningService in 
5000ms
 
For the persistent Icon I'm doing the following:
Notification foregroundNotification;
foregroundNotification = new Notification(R.drawable.iconx,"Example 
starting notification",System.currentTimeMillis());
Intent i=new Intent(this, MainUIActivity.class);
i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_SINGLE_TOP);
foregroundNotification.flags|=Notification.FLAG_NO_CLEAR;
startForeground(9642, foregroundNotification);

 

Is there something I'm doing wrong? I've never had a problem in the past 
with this code, but it's not very good on jelly bean.

 

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

2012-07-19 Thread bob
 

I would suggest you get a real device and not mess with the Emulator SD 
Card (or the Emulator at all, quite frankly).



On Thursday, July 19, 2012 6:25:00 AM UTC-5, srikanth wrote:
>
> Dear all,
> thanks for previous answers,
> now i am trying to write a code on music player ...,
> i don't know how to SD Card in Android Emulator and copy files into, in 
> Eclipse, Emulator and 
> DDMS"
>  
> ...
> so please help me how to solve this 
>
>
> Thanks&Regards
> Srikanth
>
>

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

2012-07-19 Thread bob
Or maybe just call requestFocus() in onCreate()?


On Thursday, July 19, 2012 5:17:22 AM UTC-5, Piren wrote:
>
> Its an issue with the WebView not recognizing the field focus.
>
> add a touchListner to your WebView and give it focus (requestFocus() ) on 
> ACTION_DOWN
>
> On Tuesday, July 17, 2012 5:40:04 PM UTC+3, Daniel Garcia Sanchez wrote:
>>
>> Hi friends, this isn't a question about api of androidbut I need help 
>> and I don't know where I can obtain help :(
>> I hope you can help me in someway...
>> I have a html form with these input fields:
>>
>> *
>> *
>> *
>> *
>> **
>>
>> The form works fine, but I visit it with Samsung Galaxy S i 9000 and I 
>> can't introduce values in these input fields...
>> it's strange...when I try introduce values, nothing happens...
>> I tested with Samsung Galaxy S II and it works fine, tested with iPhone 
>> and it works fine...
>> And in all desktop browsers it works fine too..
>> Hope some information please...If you need some information say to me...
>> Best regards, Daniel
>>
>

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

2012-07-19 Thread Mark Murphy
On Thu, Jul 19, 2012 at 5:00 PM, Andrew
 wrote:
> So, basically the limit is ANR limit, correct?

That's my guess. It's a guess, though.

And, bear in mind that the ANR limit is merely the limit where Android
will take action to stop the bleeding. Your UI should be completely
frozen during these "several seconds", which is very bad for UX.
Anything taking that amount of time needs to be done in a background
thread (e.g., AsyncTask).

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

_The Busy Coder's Guide to Android Development_ Version 3.8 Available!

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


[android-developers] Re: Sole Trader in Germany?

2012-07-19 Thread bob
 

Why not get your own bank account in Romania and use that?

On Thursday, July 19, 2012 7:09:04 AM UTC-5, kaciula wrote:
>
> Is anyone here a developer who sells Android apps via Google Checkout and 
> is located in Germany?
>
> I need some basic info regarding the tax system in Germany. I am a Sole 
> Trader located in Romania and, in order to sell Android apps, I've linked 
> my Google Checkout with a German bank account owned by someone else. I've 
> started making some money and I have no clue if I should declare something 
> in Germany or pay my taxes in Romania etc. Any help would be much 
> appreciated.
>

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

2012-07-19 Thread bob
 

Make sure you have INTERNET permission.

On Tuesday, July 17, 2012 8:35:10 AM UTC-5, Minnie wrote:
>
> Hi guys, 
> I am trying to write an application that downloads pictures from amazon s3 
> server and presents the pictures as a slideshow on the application. The 
> application will be bundled to a tablet device specifically for this 
> purpose. The device will use wifi connection to check the S3 server for 
> pictures and download them for slideshow. The main problem is making a 
> connection to the s3 server and download the pictures. I have read the 
> documentation of the aws android sdk up and down and still could not figure 
> out how to download the data, i think th simle code of downloading data 
> from th s3 shoul look like this: 
>
> AmazonS3 s3 = new AmazonS3Client(AWSCredentials);
> S3Object object = s3.getObject(bucketName, pictureId);
> object.getObjectContent();
>
> which seems fairly easy. The thing is I am not sure what to do? Any ideas 
> on how to go about it?
>

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

[android-developers] Re: Email Attachment

2012-07-19 Thread bob
It's something like this:

Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("image/*");
shareIntent.putExtra(Intent.EXTRA_STREAM, 
Uri.parse("file:///sdcard/your_path_in_the_sd_card/your_image.png"));
startActivity(shareIntent);


On Wednesday, July 18, 2012 6:39:22 AM UTC-5, Velu wrote:
>
> hello sir,
>I am new to android.but i am a fast learner.Now day's i am 
> developing a new application like email attachment.Now i am capturing a 
> image via android camera intent.And now i want to attach this  image 
> directly to email via button click.
>
>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] onSaveInstanceState() killed by OS

2012-07-19 Thread Andrew
So, basically the limit is ANR limit, correct?
AFAIK this is ~3 seconds.
This makes sense then.

Thanks Mark.


On Thursday, July 19, 2012 4:43:59 PM UTC-4, Mark Murphy (a Commons Guy) 
wrote:
>
> On Thu, Jul 19, 2012 at 3:53 PM, Andrew wrote: 
> > I'm experiencing an unexpected OS behaviour; mentioned at least on 
> Android 
> > 2.x, possible applicable to newer versions too. 
> > 
> > When OS calls onSaveInstanceState (for whatever reason) apparently 
> > application may be killed while within this call if it is run for rather 
> a 
> > long time (several seconds). 
> > 
> > Is there a known time limit for this call to run inside application? 
>
> That is called on the main application thread. It should not run for 
> more than a few milliseconds. Moreover, you should not need it to run 
> longer than a few milliseconds -- you should be copying data out of 
> widgets or data members and putting them in a Bundle. 
>
> > Is this a proper behaviour in general?  It is not mentioned in 
> > documentation. 
>
> Any time you take "several seconds" on the main application thread, 
> you can get an ANR or other behavior. 
>
> > Is this preventable? 
>
> Take much less time in onSaveInstanceState(). 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> _The Busy Coder's Guide to Android Development_ Version 3.8 Available! 
>

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

[android-developers] Re: File IO works on Emulator but not my snowball board

2012-07-19 Thread bob
 

Make sure you have WRITE_EXTERNAL_STORAGE permission and you are writing in 
the sd card directory (i.e. /mnt/sdcard/myfile.txt)



On Thursday, July 19, 2012 2:06:40 PM UTC-5, marcpolo wrote:
>
> Hi,
>
> I am unable to get file IO working on my snowball board, with the log 
> reporting 
>
> I have tried writing to internal and external space using both Java and 
> Native C++ code but to no avail.
>
> I get the message : File open failed : EACCES (permission denied).
>
> When I run on the emulator the FileIO works okay.
>
> Do I have to establish root permission within my Android applications 
> perform FileIO on my device?
>
> Could this be related to the version of Android running on my Snowball 
> board, compared with the emulator?
>
> 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] getOrientation wierd issue

2012-07-19 Thread bob
*This method is deprecated.*
use 
getRotation()

On Thursday, July 19, 2012 2:36:19 PM UTC-5, Vlad wrote:
>
> I did.. according to samsung kies, i have the latest firmware.. any other 
> ideas?
>
> בתאריך יום שלישי, 26 ביוני 2012 22:55:32 UTC+2, מאת MagouyaWare:
>>
>> Have you checked if there are any available updates for your Galaxy Tab?  
>> I have heard reports of some Samsung devices having this issue, and an 
>> update from Samsung fixed it...
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/magouyaware
>>
>>
>> On Tue, Jun 26, 2012 at 2:35 PM, Vlad  wrote:
>>
>>> GT-P1000
>>
>>
>>

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

2012-07-19 Thread Tim

>On 15/02/2011 10:33, Gary Wang wrote:
> Dear all,
>
> I found the following resource folders are existing in Honeycomb-
> version Borwser apk.
>
> mipmap-hdpi
> mipmap-mdpi
>
> The meaning of "mipmap" resource is not listed in its SDK's
> documentation.

I also discovered this being used in the stock MMS (SMS) app. It appears to 
be an old way of providing prescaled images for different resolutions, 
before they added support for drawable-hdpi, drawable-mdpi and so on. There 
is some information about it here: 
http://source-android.frandroid.com/frameworks/base/graphics/java/android/graphics/drawable/MipmapDrawable.java


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

Re: [android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-19 Thread matteo sisti sette


El dijous 19 de juliol de 2012 14:02:06 UTC+2, Mark Murphy (a Commons Guy) 
va escriure:
>
>
> POWER + VOLUME-UP + VOLUME-DOWN, simultaneously pressed, should slowly 
> generate a report that you can mail to wherever you want. 
>
>
Great! I thought you were making fun of me and that would reboot or 
something (lol) but that works :) 

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

2012-07-19 Thread Mark Murphy
You might consider posting this question to the MOTODEV support
forums, if you have not done so already. You might also consider
posting the code that you are using to take the picture.

On Thu, Jul 19, 2012 at 2:05 PM, paladin  wrote:
> I'm trying to fix a bug some customers are having only on Droid RAZRs, and I
> don't happen to have access to one. We're trying to take pictures as close
> to the size 1600x1200 as we can, to optimize the size/quality of the pic.
> However, whenever I setPictureSize on a RAZR (using available picture
> sizes), for some reason the pictures taken are tiny and unusable. I can't
> find anywhere that would explain why. Apparently the default is a 6MP
> widescreen picture -- could the fact that it's widescreen have anything to
> do with it? Can anyone with a RAZR try this out?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

_The Busy Coder's Guide to Android Development_ Version 3.8 Available!

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


Re: [android-developers] onSaveInstanceState() killed by OS

2012-07-19 Thread Mark Murphy
On Thu, Jul 19, 2012 at 3:53 PM, Andrew
 wrote:
> I'm experiencing an unexpected OS behaviour; mentioned at least on Android
> 2.x, possible applicable to newer versions too.
>
> When OS calls onSaveInstanceState (for whatever reason) apparently
> application may be killed while within this call if it is run for rather a
> long time (several seconds).
>
> Is there a known time limit for this call to run inside application?

That is called on the main application thread. It should not run for
more than a few milliseconds. Moreover, you should not need it to run
longer than a few milliseconds -- you should be copying data out of
widgets or data members and putting them in a Bundle.

> Is this a proper behaviour in general?  It is not mentioned in
> documentation.

Any time you take "several seconds" on the main application thread,
you can get an ANR or other behavior.

> Is this preventable?

Take much less time in onSaveInstanceState().

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

_The Busy Coder's Guide to Android Development_ Version 3.8 Available!

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


[android-developers] Re: Parse application/smil MMS MIME type on android

2012-07-19 Thread Erik
Here's where to start:

http://lmgtfy.com/?q=mms+smil

-Erik

On Thursday, July 19, 2012 1:37:15 AM UTC-7, Etienne wrote:
>
> So I have come across three categories of MMS message types:
>
> Plain Text - "text/plain" Image - "image/jpeg", "image/bmp", "image/gif", 
> "image/jpg", "image/png" SMIL (Synchronized Multimedia Integration 
> Language) - "application/smil"
>
> So i don't have an issue grabbing the data in an MMS that falls into the 
> first two categories. However i am having trouble grabbing the data from 
> MMS of message type "application/smil"
>
> Below i have included 5 different examples of application/smil MMS 
> messages that I have pulled from my phone.
>
> [31, 22, -1, application/smil, 123_1.smil, 106, null, null, <>, 0.smil, 
> null, null, null, 
>   
> 
>   
>width="100%"/>
>width="100%"/>
> 
>   
>   
> 
>   
> 
> 
>   
> 
>   
> ]
>
> .
>
> [22, 14, -1, application/smil, null, null, null, null, , smil.xml, 
> null, null, null, 
>   
> 
>   
>fit="meet"/>
>fit="meet"/>
> 
>   
>   
> 
>   
>   
> 
>   
> ]
>
> .
>
> [13, 11, -1, application/smil, 123_1.smil, null, null, null, <>, null, 
> null, null, null,  
>
>  
> 
>width="100%"/>  
>width="100%"/> 
>  
> 
>
>  
>
>  
>
> ]
>
> .
>
> [16, 13, -1, application/smil, mms.smil, null, null, null, , , 
> null, null, null, 
> 
> 
> 
>  fit="meet"/>
>  fit="meet"/>
> 
> 
> 
> 
> ]
>
> .
>
> [5, 5, -1, application/smil, smil.smil, 106, null, null, <>, smil, null, 
> null, null, 
>   
> 
>   
>width="100%"/>
>width="100%"/>
> 
>   
>   
> 
>   
>   
> 
>   
> ]
>
> How exactly do you go about parsing this type of MMS? Any help would be 
> greatly appreciated.
>

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

[android-developers] onSaveInstanceState() killed by OS

2012-07-19 Thread Andrew
Hello,

I'm experiencing an unexpected OS behaviour; mentioned at least on Android 
2.x, possible applicable to newer versions too.

When OS calls 
onSaveInstanceState(for
 whatever reason) apparently application may be killed while within 
this call if it is run for rather a long time (several seconds).

Is there a known time limit for this call to run inside application?
Is this a proper behaviour in general?  It is not mentioned in 
documentation.
Is this preventable?


BTW, there's something ambiguous mentioned in 
onPause
 method:

> When activity B is launched in front of activity A, this callback will be 
> invoked on A. B will not be created until A's onPause() returns, so be sure 
> to not do anything lengthy here.

*Lengthy* is not a measurable thing :)


TIA.
Andrew.

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

2012-07-19 Thread RichardC
That's a bit funny:

http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory()
 
returns a File and

http://developer.android.com/reference/java/io/File.html#getAbsolutePath() 
returns a String

Did you mean:
File root = new 
File(Environment.getExternalStorageDirectory().getAbsolutePath()); 

?

On Thursday, July 19, 2012 8:30:41 PM UTC+1, Joe wrote:
>
> Hi!
>
> I found the solution by changing 
>
> File root = Environment.getExternalStorageDirectory(); 
>
> for
>
> File root = Environment.getExternalStorageDirectory().getAbsolutePath(); 
>
> It works at last!
>

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

2012-07-19 Thread Vlad
I did.. according to samsung kies, i have the latest firmware.. any other 
ideas?

בתאריך יום שלישי, 26 ביוני 2012 22:55:32 UTC+2, מאת MagouyaWare:
>
> Have you checked if there are any available updates for your Galaxy Tab?  
> I have heard reports of some Samsung devices having this issue, and an 
> update from Samsung fixed it...
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Tue, Jun 26, 2012 at 2:35 PM, Vlad  wrote:
>
>> GT-P1000
>
>
>

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

2012-07-19 Thread Joe
Hi!

I found the solution by changing 

File root = Environment.getExternalStorageDirectory(); 

for

File root = Environment.getExternalStorageDirectory().getAbsolutePath(); 

It works at last!

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

2012-07-19 Thread user123
The documentation also says:

" * This version of the pager is more useful when there are a large 
number
 * of pages, working more like a list view.  When pages are not visible to
 * the user, their entire fragment may be destroyed, only keeping the saved
 * state of that fragment.  This allows the pager to hold on to much less
 * memory associated with each visited page as compared to
 * {@link FragmentPagerAdapter} at the cost of potentially more overhead 
when
 * switching between pages."

So why it keeps crashing because it tries to access destroyed fragments, if 
it's designed with the fact in mind, that the fragments might be 
destroyed...?

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

2012-07-19 Thread Jaison Brooks
Sweet, Thank You so much Treking
I really appreciate you giving me info you have.
Helped direct me to what i need to start on.

On Thu, Jul 19, 2012 at 12:36 PM, TreKing  wrote:
> On Thu, Jul 19, 2012 at 12:44 PM, Jaison Brooks 
> wrote:
>>
>> Do you know of any good RSS reader source code examples of any sort?
>
>
> I don't, but this is not that complicated.
> 1 - Connect to website, get input stream.
> 2 - Feed stream to XmlParser, parse the data.
> 3 - Convert the xml data to your business objects
> 4 - Display your list of business objects in a list with a custom adapter.
>
> You should be able to find plenty of examples for each piece on the
> interwebbies.
>
>
> -
> TreKing - Chicago transit tracking app for Android-powered devices
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Exception chaos using the FragmentStatePagerAdapter (support package)

2012-07-19 Thread user123
I'm using the FragmentStatePagerAdapter in a ViewPager, in order to provide 
mutable content (FragmentPagerAdapter didn't work, it was not possible to 
change the content after having set it the first time).

Mainly it works, but it crashes frequently because of 
IllegalStateExceptions: "Fragment no longer exists" / "No view found for id 
0xcf for fragment" / "Fragment is no longer in the fragment manager" (and 
forgot the 4th one). There's nothing directly related to my code in the 
stack trace, all I know, is that it's somehow related with saving / 
restoring state, and trying to access not existing fragments.

The documentation in 
http://developer.android.com/reference/android/support/v4/app/FragmentStatePagerAdapter.html
 doesn't 
give my any help, the description and example is very basic and don't say 
anything about having to care about saving / restoring fragment's state. 
And I don't have time to study all the source.

All the documentation says about requeriments is:

"When using FragmentPagerAdapter the host ViewPager must have a valid ID 
set.

Subclasses only need to implement 
getItem(int)
 and 
getCount()
 to 
have a working adapter."

I'm doing that. 

Can somebody help me out of this, at least giving me a logical background 
of these problems and what am I supposed to to? 

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

[android-developers] File IO works on Emulator but not my snowball board

2012-07-19 Thread marcpolo
Hi,

I am unable to get file IO working on my snowball board, with the log 
reporting 

I have tried writing to internal and external space using both Java and 
Native C++ code but to no avail.

I get the message : File open failed : EACCES (permission denied).

When I run on the emulator the FileIO works okay.

Do I have to establish root permission within my Android applications 
perform FileIO on my device?

Could this be related to the version of Android running on my Snowball 
board, compared with the emulator?

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: Google Maps API/ Custom Application that use Google Maps/Navigation

2012-07-19 Thread TreKing
On Thu, Jul 19, 2012 at 12:44 PM, Jaison Brooks wrote:

> Do you know of any good RSS reader source code examples of any sort?


I don't, but this is not that complicated.
1 - Connect to website, get input stream.
2 - Feed stream to XmlParser, parse the data.
3 - Convert the xml data to your business objects
4 - Display your list of business objects in a list with a custom adapter.

You should be able to find plenty of examples for each piece on the
interwebbies.

-
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] Running App

2012-07-19 Thread TreKing
On Thu, Jul 19, 2012 at 6:47 AM, John Hearfield
wrote:

> i changed the directory of the command line to my Android Project (which
> was the path when i made it )
> and i did
>
> ant debug
>
> and it says the command isnt internal/external or not found.
>

Riveting story, thanks for sharing.

-
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] Email Attachment

2012-07-19 Thread TreKing
On Wed, Jul 18, 2012 at 6:39 AM, Velu  wrote:

> And now i want to attach this  image directly to email via button click.


Since you're a fast learner:
http://lmgtfy.com/?q=android+attach+image+to+email

-
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] Upload Video on youtube

2012-07-19 Thread TreKing
On Wed, Jul 18, 2012 at 4:34 AM, Mahesh Chunkhade wrote:

> i tried it lot but i am not getting how to upload video on youtube ,can
> anyone help me??


Unless you're having issues with the Android side of things, uploading to
YouTube has nothing to do specifically with the Android SDK. Consult the
YouTube documentation or API for how to upload videos to their service.

-
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: Playback of MPEG v4 with more than one audio stream possible?

2012-07-19 Thread thiago_alencar
According to media info, its a LC AAC profile (more info below). Ideas 
anyone?

Audio #1
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 21s 739ms
Bit rate mode : Constant
Bit rate : 120 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 319 KiB (16%)
Language : English

Audio #2
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 21s 739ms
Bit rate mode : Constant
Bit rate : 77.5 Kbps
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 206 KiB (11%)
Language : English



On Thursday, July 19, 2012 11:58:30 AM UTC+2, thiago_alencar wrote:
>
> First, a little about the file:
>
> ffprobe video.mp4 
>
> ffprobe version 0.7.11, Copyright (c) 2007-2011 the FFmpeg developers
>   built on Mar 26 2012 12:49:08 with clang 3.0 (tags/Apple/clang-211.12)
>   configuration: --prefix=/opt/local --enable-gpl --enable-postproc 
> --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis 
> --enable-libtheora --enable-libdirac --enable-libschroedinger 
> --enable-libopenjpeg --enable-libxvid --enable-libx264 --enable-libvpx 
> --enable-libspeex --mandir=/opt/local/share/man --enable-shared 
> --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm
>   libavutil50. 43. 0 / 50. 43. 0
>   libavcodec   52.123. 0 / 52.123. 0
>   libavformat  52.111. 0 / 52.111. 0
>   libavdevice  52.  5. 0 / 52.  5. 0
>   libavfilter   1. 80. 0 /  1. 80. 0
>   libswscale0. 14. 1 /  0. 14. 1
>   libpostproc  51.  2. 0 / 51.  2. 0
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc6d904ac00] multiple edit list entries, a/v 
> desync might occur, patch welcome
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
>   Metadata:
> major_brand : isom
> minor_version   : 512
> compatible_brands: isomiso2avc1mp41
> encoder : Lavf54.11.100
>   Duration: 00:00:20.18, start: 0.00, bitrate: 643 kb/s
> Stream #0.0(eng): Audio: aac, 48000 Hz, stereo, s16, 125 kb/s
> Stream #0.1(eng): Audio: aac, 48000 Hz, mono, s16, 80 kb/s
> Stream #0.2(eng): Video: h264 (High), yuv420p, 352x240 [PAR 40:33 DAR 
> 16:9], 430 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 59.94 tbc
>
>
> If I play it on VLC for instance, its default behavior is to play both 
> audio streams, but I'd like to be able to select which audio stream to play 
> in the MediaPlayer. If I just open the file directly from the file manager 
> it won't play at all. In the device's simulator sometimes it plays the 
> audio but the video won't appear, although the used codecs are reported to 
> be supported according to documentation.
>
> I looked all over but didn't find any reference to this. Anyone knows if 
> this it is possible to programmatically select with the audio stream to 
> play, with Android's multimedia framework? Or perhaps one could guide me to 
> some documentation about it?
>
> 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] Call web service that returns an object

2012-07-19 Thread TreKing
On Wed, Jul 18, 2012 at 9:15 AM, Mohammed Zarqa  wrote:

> the error comes from this line C.CategoryId =
>  Integer.parseInt(response.getProperty(0).toString());
> and the error is java.lang.NumberFormatException: unable to parse
> 'anyType{CategoryId=10055; Name=my name;Description=my Desc;}' as integer
>

The error pretty much tells you exactly what the problem is. You can't
parse this "anyType" to an Integer. So don't do that.

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

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

Re: [android-developers] Android SDK Error in AndroidManifest.xml

2012-07-19 Thread TreKing
On Mon, Jul 16, 2012 at 7:31 PM, 11clock  wrote:

> The error is in the file AndroidManifest.xml. The error is, "The markup in
> the document following the root element must be well-formed." The code that
> gives this error is below.
>
> http://schemas.android.com/apk/res/android";
>

If that's exactly what your XML looks like, starting with an end tag (the
"") is probably a likely culprit.

-
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] The recommanded system version control for the adw launcher

2012-07-19 Thread TreKing
On Wed, Jul 18, 2012 at 6:32 AM, Carole MENITCHEU  wrote:

> hello, i am working with ADW launcher for a project .I want to know which
> system control version is recommanded;SVN or GitHub?


This has nothing to do with developing apps with the Android SDK, which is
what this list is for.

-
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 and AmazonS3

2012-07-19 Thread TreKing
On Tue, Jul 17, 2012 at 8:35 AM, Minnie  wrote:

> The main problem is making a connection to the s3 server and download the
> pictures.


This has nothing to do with this list.
For questions with external libraries and SDKs, contact the developers of
those SDKs.
I would imagine Amazon has a group or forum dedicated to their S3 Android
SDK.

-
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] NFC Application

2012-07-19 Thread TreKing
On Tue, Jul 17, 2012 at 1:59 AM, Amarnath Choudhary <
amarnathchoudh...@gmail.com> wrote:

> I want to develop a NFC based application and don’t know where to start.
> Can you give me some suggestions / help, any useful links.


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

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

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

Re: [android-developers] Animated ImageView within RelativeLayout Question

2012-07-19 Thread TreKing
On Tue, Jul 17, 2012 at 4:02 AM, chillydk147  wrote:

> Hi, I was wondering is the attached image possible to do when animating an
> image from left to right, that rather than stopping at the right, the image
> continues again from the left side, any insight would be great.


Looks like two separate images derived from the original, using a subset of
the drawing area based on the image's location. Create two images, do some
math, and draw where appropriate.

-
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] Use of fragments on android phone and on tablets.

2012-07-19 Thread TreKing
On Thu, Jul 19, 2012 at 2:42 AM, |-NK-|  wrote:

> How am I supposed to implement this functionality i.e use fragments
> for phone devices and not use fragments when using tablets ?
>

I think the idea is you use Fragments in both cases, just change the layout
based on the device properties.

What you described is pretty much exactly what is explained in the docs:
http://developer.android.com/guide/components/fragments.html
http://android-developers.blogspot.com/2011/02/android-30-fragments-api.html

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

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

[android-developers] setPictureSize on Droid RAZR

2012-07-19 Thread paladin
I'm trying to fix a bug some customers are having only on Droid RAZRs, and 
I don't happen to have access to one. We're trying to take pictures as 
close to the size 1600x1200 as we can, to optimize the size/quality of the 
pic. However, whenever I setPictureSize on a RAZR (using available picture 
sizes), for some reason the pictures taken are tiny and unusable. I can't 
find anywhere that would explain why. Apparently the default is a 6MP 
widescreen picture -- could the fact that it's widescreen have anything to 
do with it? Can anyone with a RAZR try this out?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Hardware accleration slow down every Canvas app. Why?

2012-07-19 Thread Piren
ahmm... i've got a couple of those and i'll have to check, but i'm pretty
sure the one i used to test on is actually the 9100G (the international
version), which has the SGX540 :)

Regarding the issue, the list i noticed the slowdown on just has a couple
of TextViews and and a couple of ImageViews nothing fancy. I do have a
customized fast scroll i wrote, but even when i disabled it i noticed the
same issue.
I couldn't find an explanation why that specific ListView was slowing down
with HA, so i just set it to be a software layer and thats it.

On Thu, Jul 19, 2012 at 8:37 PM, Romain Guy  wrote:

> The Samsung Galaxy S2 has a Mali 400 form ARM, Galaxy Nexus has an SGX540
> from IMG. These are two very different GPUs. Again, without knowing what
> the apps does I cannot say more about what's going on (also, all the apps
> we ship with the default build use hardware acceleration and perform better
> with it.)
>
>
> On Thu, Jul 19, 2012 at 10:33 AM, Piren  wrote:
>
>> Hi Guy, thanks for the reply
>>
>> Though it does make sense, i'm not seeing it happening.
>> I'm not using any special effects on that ListView and i've also tested
>> on a Samsung Galaxy S2 (i9100G), which has the same GPU and CPU (though a
>> slightly older chipset) and unlike the Nexus, it gets a major performance
>> improvement
>>
>>
>>
>>
>> On Thursday, July 19, 2012 8:02:49 PM UTC+3, Romain Guy (Google) wrote:
>>>
>>> So this isn't really an issue of "you're doing things that hurt
 performance when HA is used", since the exact same code works much better
 on other devices (HTC, Samsung and Motorola devices) except the Galaxy
 Nexus.

>>>
>>> Actually it is possible. Specific commands can run well on some GPUs and
>>> terribly on other GPUs. For instance, if you use the "edge fade" effect in
>>> your views, you can expect a significant performance hit on SGX GPUs like
>>> the one found in Galaxy Nexus.
>>>
>>> Once again, I cannot really help without knowing more about what exactly
>>> the app is doing. My personal phone is a Galaxy Nexus and every app I have
>>> currently installed runs faster with hardware acceleration than without.
>>>
>>> --
>>> Romain Guy
>>> Android framework engineer
>>> romain...@android.com
>>>
>>>   --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Application to start with

2012-07-19 Thread Justin Anderson
http://developer.android.com/training/index.html

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Jul 19, 2012 at 4:19 AM, tj  wrote:

> I am new to android development. I have worked before on java and .NET but
> am a bit confused with android programming. Can you plz suggest some ideas
> as to on what basic application should I start working on. I made basic
> TicTacToe game so I know the basic programming stuff. Thanks..
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Someone stole my sound effects

2012-07-19 Thread John Coryat

>
> Reportedly Google is working on a scheme to provide end-to-end 
> encryption for paid apps in Google Play. It might take a while to 
> become reality though. 
>

Wasn't that reported as "it would be a good idea if" rather than something 
Google is actively working on? What's your source for this?

-John Coryat 

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

Re: [android-developers] Re: Google Maps API/ Custom Application that use Google Maps/Navigation

2012-07-19 Thread Jaison Brooks
Thanks  Nobu Games  for the heads up, that makes my direction alot
clearer. I am going to use the intent format for the lap and long
data.

TreKing - Thanks for the answer, you answer my question just by saying
RSS reader, i need to know the best way of being able to pull data
from a website and display it. I havnt not wrote any code up just yet,
Do you know of any good RSS reader source code examples of any sort?
or any links that would point me in a good direction to start
developing this application.

On Thu, Jul 19, 2012 at 11:25 AM, Nobu Games  wrote:
> Just as a warning: the Google Maps terms of use state:
>
>> (c) No Navigation, Autonomous Vehicle Control, or Enterprise Applications.
>> You must not use the Service or Content with any products, systems, or
>> applications for or in connection with any of the following:
>>
>> (i) real time navigation or route guidance, including but not limited to
>> turn-by-turn route guidance that is synchronized to the position of a user's
>> sensor-enabled device.
>
>
> That means that you are not allowed to create your own navigation app using
> the Google Maps API.
>
> You have to use an Intent instead if you want to provide navigation based on
> Google Maps.
>
>
>
> On Wednesday, July 18, 2012 11:17:36 AM UTC-5, Jaison Brooks wrote:
>>
>> Hello Android Developers, I am creating this topic because i am
>> brainstorming a application i want to write and need to know what resources
>> are out there to help me complete or start this application. my idea is to
>> have a application with items (images with text about them) to be viewed
>> inside the application. upon clicking the image and viewing the text about
>> it. a option to navigate too. From there i know i can use a intent for the
>> lat and long however, however would using the google maps api be better?.
>> Also i am want to have this list to be a feed from like a website, so its
>> updates and imports more items as i create them on the website as well. I
>> know my vision may be a little blurry when typing this out. However the
>> basic is i am wanting to have a feed from a website with items display in a
>> list. like a listview, and inside those items a option to navigate too and
>> either intent the lat and long to the android system or use google api. I
>> have not decided which would be a better experience since i do not have any
>> experience with google maps api. Any input or recommendations would be
>> great.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Hardware accleration slow down every Canvas app. Why?

2012-07-19 Thread Romain Guy
The Samsung Galaxy S2 has a Mali 400 form ARM, Galaxy Nexus has an SGX540
from IMG. These are two very different GPUs. Again, without knowing what
the apps does I cannot say more about what's going on (also, all the apps
we ship with the default build use hardware acceleration and perform better
with it.)


On Thu, Jul 19, 2012 at 10:33 AM, Piren  wrote:

> Hi Guy, thanks for the reply
>
> Though it does make sense, i'm not seeing it happening.
> I'm not using any special effects on that ListView and i've also tested on
> a Samsung Galaxy S2 (i9100G), which has the same GPU and CPU (though a
> slightly older chipset) and unlike the Nexus, it gets a major performance
> improvement
>
>
>
>
> On Thursday, July 19, 2012 8:02:49 PM UTC+3, Romain Guy (Google) wrote:
>>
>> So this isn't really an issue of "you're doing things that hurt
>>> performance when HA is used", since the exact same code works much better
>>> on other devices (HTC, Samsung and Motorola devices) except the Galaxy
>>> Nexus.
>>>
>>
>> Actually it is possible. Specific commands can run well on some GPUs and
>> terribly on other GPUs. For instance, if you use the "edge fade" effect in
>> your views, you can expect a significant performance hit on SGX GPUs like
>> the one found in Galaxy Nexus.
>>
>> Once again, I cannot really help without knowing more about what exactly
>> the app is doing. My personal phone is a Galaxy Nexus and every app I have
>> currently installed runs faster with hardware acceleration than without.
>>
>> --
>> Romain Guy
>> Android framework engineer
>> romain...@android.com
>>
>>   --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




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

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

Re: [android-developers] Re: Hardware accleration slow down every Canvas app. Why?

2012-07-19 Thread Piren
Hi Guy, thanks for the reply

Though it does make sense, i'm not seeing it happening. 
I'm not using any special effects on that ListView and i've also tested on 
a Samsung Galaxy S2 (i9100G), which has the same GPU and CPU (though a 
slightly older chipset) and unlike the Nexus, it gets a major performance 
improvement




On Thursday, July 19, 2012 8:02:49 PM UTC+3, Romain Guy (Google) wrote:
>
> So this isn't really an issue of "you're doing things that hurt 
>> performance when HA is used", since the exact same code works much better 
>> on other devices (HTC, Samsung and Motorola devices) except the Galaxy 
>> Nexus.
>>
>
> Actually it is possible. Specific commands can run well on some GPUs and 
> terribly on other GPUs. For instance, if you use the "edge fade" effect in 
> your views, you can expect a significant performance hit on SGX GPUs like 
> the one found in Galaxy Nexus.
>
> Once again, I cannot really help without knowing more about what exactly 
> the app is doing. My personal phone is a Galaxy Nexus and every app I have 
> currently installed runs faster with hardware acceleration than without.
>
> -- 
> Romain Guy
> Android framework engineer
> romain...@android.com
>
>  

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

[android-developers] Re: Google Maps API/ Custom Application that use Google Maps/Navigation

2012-07-19 Thread Nobu Games
Just as a warning: the Google Maps terms of 
usestate:

*(c) No Navigation, Autonomous Vehicle Control, or Enterprise Applications.You 
must not use the Service or Content with any products, systems, or 
> applications for or in connection with any of the following:
>
> (i) real time navigation or route guidance, including but not limited to 
> turn-by-turn route guidance that is synchronized to the position of a 
> user's sensor-enabled device.
> *


That means that you are not allowed to create your own navigation app using 
the Google Maps API.

You *have* to use an Intent instead if you want to provide navigation based 
on Google Maps.


On Wednesday, July 18, 2012 11:17:36 AM UTC-5, Jaison Brooks wrote:
>
> Hello Android Developers, I am creating this topic because i am 
> brainstorming a application i want to write and need to know what resources 
> are out there to help me complete or start this application. my idea is to 
> have a application with items (images with text about them) to be viewed 
> inside the application. upon clicking the image and viewing the text about 
> it. a option to navigate too. From there i know i can use a intent for the 
> lat and long however, however would using the google maps api be better?. 
> Also i am want to have this list to be a feed from like a website, so its 
> updates and imports more items as i create them on the website as well. I 
> know my vision may be a little blurry when typing this out. However the 
> basic is i am wanting to have a feed from a website with items display in a 
> list. like a listview, and inside those items a option to navigate too and 
> either intent the lat and long to the android system or use google api. I 
> have not decided which would be a better experience since i do not have any 
> experience with google maps api. Any input or recommendations would be 
> great.

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

2012-07-19 Thread TreKing
On Thu, Jul 19, 2012 at 11:07 AM, JP  wrote:

> I'd try calling up the Google Maps app via Intent first. See if it
> fits the UI flow and provides what you need. If so, I would run with
> it. Reason: Except for being pulled though new API levels, the Maps
> API has been pretty much abandoned. By now, it is roughly a couple
> years behind what Google Maps can do.
>

Agreed. It's line one line of code to launch the intent so you can very
quickly see if it fits the bill or not.

I do have still this question however, would do i go about making this
> feed that i need to.
> All i want is something that i can add too on a website, the
> application will refresh and pull it and display it in a listview with
> the option of click the item and see more info about it
> and having the lat and long to be able to click to navigate too.
>

What you describe is very broad and generic. You're basically asking "How
do I make a RSS reader app?" The answer is "Write the code to do it".
What have you tried so far? Where are you stuck? Where *specifically* do
you need help?

-
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: Hardware accleration slow down every Canvas app. Why?

2012-07-19 Thread Romain Guy
>
> So this isn't really an issue of "you're doing things that hurt
> performance when HA is used", since the exact same code works much better
> on other devices (HTC, Samsung and Motorola devices) except the Galaxy
> Nexus.
>

Actually it is possible. Specific commands can run well on some GPUs and
terribly on other GPUs. For instance, if you use the "edge fade" effect in
your views, you can expect a significant performance hit on SGX GPUs like
the one found in Galaxy Nexus.

Once again, I cannot really help without knowing more about what exactly
the app is doing. My personal phone is a Galaxy Nexus and every app I have
currently installed runs faster with hardware acceleration than without.

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

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

Re: [android-developers] static broadcast receiver to check internet state throughout the application

2012-07-19 Thread Robert Greenwalt
Shouldn't your intent filter be a child node of your activity in the
manifest?  See:

http://stackoverflow.com/questions/5444639/broadcast-receiver-android


On Thu, Jul 19, 2012 at 12:55 AM, sesamos  wrote:

> Hello , I am trying to develop an application , which will use the
> internet throughout the application .The user will be informed when the
> internet disconnects or connects . I have searched a lot of codes and tried
> running them but I couldn't get them worked .Could anyone give me a hand to
> use static broadcast receivers? I am totally new to android .Any help is
> appreciated .Thank you ..
>
> Here one of the examples is :
>
> 
> http://schemas.android.com/apk/res/android";
> package="com.example.broadcastreceiver"
> android:versionCode="1"
> android:versionName="1.0" >
>  android:minSdkVersion="8"
> android:targetSdkVersion="15" />
>
>  android:icon="@drawable/ic_launcher"
> android:label="@string/app_name"
> android:theme="@style/AppTheme" >
>  android:name=".MainActivity"
> android:label="@string/title_activity_main" >
> 
> 
>  />
> 
> 
> 
>  
>   
>  
>  
> 
> 
>
>
> 
>
> package com.example.broadcastreceiver;
> import android.os.Bundle;
> import android.app.Activity;
> import android.content.Intent;
> import android.content.IntentFilter;
> import android.view.Menu;
>
> public class MainActivity extends Activity {
>
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
>
> setContentView(R.layout.activity_main);
> Intent intent=new Intent();
> intent.setAction("com.example.broadcastreceiver");
> sendBroadcast(intent);
> }
> }
>
> *
> package com.example.broadcastreceiver;
> import android.content.BroadcastReceiver;
> import android.content.Context;
> import android.content.Intent;
> import android.net.ConnectivityManager;
> import android.net.NetworkInfo;
> import android.widget.Toast;
>
> public class ConnectionChangeReceiver extends BroadcastReceiver
> {
>   @Override
>   public void onReceive( Context context, Intent intent )
>   {
> ConnectivityManager connectivityManager = (ConnectivityManager)
> context.getSystemService( Context.CONNECTIVITY_SERVICE );
> NetworkInfo activeNetInfo =
> connectivityManager.getActiveNetworkInfo();
> NetworkInfo mobNetInfo =
> connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE );
> if ( activeNetInfo != null )
> {
>   Toast.makeText( context, "Active Network Type : "+
> activeNetInfo.getTypeName(), Toast.LENGTH_SHORT ).show();
> }
> if( mobNetInfo != null )
> {
>   Toast.makeText( context, "Mobile Network Type : "+
> mobNetInfo.getTypeName(), Toast.LENGTH_SHORT ).show();
> }
>
>   }
>
> }
> **
> http://schemas.android.com/apk/res/android";
> xmlns:tools="http://schemas.android.com/tools";
> android:layout_width="match_parent"
> android:layout_height="match_parent" >
>  android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:layout_centerHorizontal="true"
> android:layout_centerVertical="true"
> android:padding="@dimen/padding_medium"
> android:text="@string/hello_world"
> tools:context=".MainActivity" />
> 
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Google Maps API/ Custom Application that use Google Maps/Navigation

2012-07-19 Thread Jaison Brooks
Oh ok, thats what i thought would be the best solution for my
application. I was looking into the Google Maps api and it did look
like a lot of stuff wasn't available.
I do have still this question however, would do i go about making this
feed that i need to.
All i want is something that i can add too on a website, the
application will refresh and pull it and display it in a listview with
the option of click the item and see more info about it
and having the lat and long to be able to click to navigate too.

On Thu, Jul 19, 2012 at 10:07 AM, JP  wrote:
> I'd try calling up the Google Maps app via Intent first. See if it
> fits the UI flow and provides what you need. If so, I would run with
> it. Reason: Except for being pulled though new API levels, the Maps
> API has been pretty much abandoned. By now, it is roughly a couple
> years behind what Google Maps can do.
>
>
> On Jul 19, 7:34 am, Jaison Brooks  wrote:
>> I want to build a application that will have a feed coming from my
>> website, in the feed simalar to like a news feed, a list of items to
>> click for more infomation. Once clicked i want to have a navigate/See
>> of map button and i want to know if i should use Google Maps API in
>> the application to display it on the map and navigate to if availble
>> or just use a intent with the LAT and LONG and have the user select
>> google maps or navigation depending on there preference.
>>
>> Sorry about the unclear Question.
>>
>>
>>
>>
>>
>>
>>
>> On Wed, Jul 18, 2012 at 10:30 PM, TreKing  wrote:
>> > On Wed, Jul 18, 2012 at 11:17 AM, Jaison Brooks 
>> > wrote:
>>
>> >> From there i know i can use a intent for the lat and long however, however
>> >> would using the google maps api be better?
>>
>> > Better than what? It's not very clear what your ultimate goal is with the
>> > map.
>>
>> > P.S. - Consider using paragraphs.
>>
>> > -
>> > TreKing - Chicago transit tracking app for Android-powered devices
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-07-19 Thread JP


On Jul 18, 6:19 am, Riley Porter  wrote:
> In an
> update you could post some new mp3's.

Reportedly Google is working on a scheme to provide end-to-end
encryption for paid apps in Google Play. It might take a while to
become reality though.

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

2012-07-19 Thread JP
I'd try calling up the Google Maps app via Intent first. See if it
fits the UI flow and provides what you need. If so, I would run with
it. Reason: Except for being pulled though new API levels, the Maps
API has been pretty much abandoned. By now, it is roughly a couple
years behind what Google Maps can do.


On Jul 19, 7:34 am, Jaison Brooks  wrote:
> I want to build a application that will have a feed coming from my
> website, in the feed simalar to like a news feed, a list of items to
> click for more infomation. Once clicked i want to have a navigate/See
> of map button and i want to know if i should use Google Maps API in
> the application to display it on the map and navigate to if availble
> or just use a intent with the LAT and LONG and have the user select
> google maps or navigation depending on there preference.
>
> Sorry about the unclear Question.
>
>
>
>
>
>
>
> On Wed, Jul 18, 2012 at 10:30 PM, TreKing  wrote:
> > On Wed, Jul 18, 2012 at 11:17 AM, Jaison Brooks 
> > wrote:
>
> >> From there i know i can use a intent for the lat and long however, however
> >> would using the google maps api be better?
>
> > Better than what? It's not very clear what your ultimate goal is with the
> > map.
>
> > P.S. - Consider using paragraphs.
>
> > -
> > TreKing - Chicago transit tracking app for Android-powered devices
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: sqlite database growing

2012-07-19 Thread RichardC
http://www.sqlite.org/limits.html 

On Wednesday, July 18, 2012 9:44:52 AM UTC+1, Atul Darne wrote:
>
> Hi,
>
> I have an app, which stores its data to sqlite db, and it keeps growing as 
> i insert records, i would like to know how much is the max limit for which 
> i can use db ? 
>
> is size will matter?
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-19 Thread Kostya Vasilyev
In one of the prior messages on this thread, Dianne Hackborn mentioned her
plans to implement a UI screen in Settings to enable READ_LOGS (for apps
that have it in their manifest).

One could hope that this screen, whenever it appears, will have a
documented launch action - so that apps like CatLog, aLogCat, etc can
prompt the user and bring this screen up.

This scheme already works for third party keyboards - out of the ones I
use, both Swype and Swift Key 3 (highly recommended) have a setup wizard
that

1) explains that the just installed keyboard needs to be enabled
2) brings up the system settings screen where this can be done

Very simple and it works.

-- K

2012/7/19 vt 

> On Thursday, July 19, 2012 7:54:35 AM UTC-7, Kristopher Micinski wrote:
>
>> On Thu, Jul 19, 2012 at 10:44 AM, vt wrote:
>>
>
>
>> > If a leaf falls to the ground in a forest and no one hears it, does it
>> make
>> > a sound?
>> >
>> > In other words, if your ADK app controls, say, an expensive aquarium
>> with
>> > fish and corals in it (which can easily run into five figures), and you
>> get
>> > back home after a week's vacation to find that a few days ago your app
>> ran
>> > amok and boiled everything and your fish is dead, how is my cool ADK
>> > contraption better than a terminally dim PIC hack?
>> >
>> > - How do I make the bug report span across an arbitrary length of time?
>> > - How do I trigger a bug report generation, say, on a regular basis, or
>> from
>> > inside an application?
>> >
>>
>> This is basically why things like ACRA were invented...,
>>
>> There's nothing stopping you from dumping your app's logs to a file
>> and then syncing that with your backend periodically..
>>
>
> App log is not enough. Earlier in this thread I mentioned that often, and
> in cases where hardware is involved, almost always, system logs contain
> information directly related to what is happening to your app.
>
> As for ACRA, isn't it also going to be crippled by READ_LOGS no longer
> granted?
>
> It starts looking like a security theater to me.
>
> All right, one can do all this if one gets the custom ROM to get the logs
> over WiFi (by extension: one can build a custom ROM which disregards
> READ_LOGS completely). Hence, a malicious party will be able to read logs
> no matter what *on device in their physical possession*.
>
> So, why is it not possible for a user to do the same on the production
> build, *on device in their physical possession*?
>
> kris
>>
>
> --vt
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Forcing lower resolution drawables on phones with big screens and small RAM

2012-07-19 Thread Francisco M. Marzoa Alonso
I used to use BitmapFactory.decodeStream for creating Bitmaps from raw
assets.

Just guessing, may be you can load each bit map, show it in the fly, and
recycle it before loading next one.
El 19/07/2012 04:12, "Matt Schoen"  escribió:
>
> Drat.
>
> I was able to get this to work, but now it just always runs out of
memory!  I guess this method is less memory-efficient?  Here's the code
being executed:
>
>>> for(int i = 0; i < total_animation_length; i++)
>>>
>>> imageResources[i] =
Drawable.createFromResourceStream(context.getResources(), new TypedValue(),
context.getAssets().open("flame_high/" + String.format(file_name, i)),
"test");
>
>
> On Wednesday, July 18, 2012 6:09:46 PM UTC-4, Fran wrote:
>>
>> Use they Assets folder instead. Take a look on AssetManager docs.
>>
>> El 17/07/2012 22:00, "Matt Schoen"  escribió:
>>>
>>> Unfortunately I've already done your last suggestion.  The images are
pretty small already.  I'm still not convinced that the streaming would
work.  For one thing, the flicker loops, and for another, the range of
frames changes quite often.  For example:
>>>
>>> If the phone starts upright, we play images 90, 91, 92, 93, 94, 95, 90,
91...
>>>
>>> Then, if you til it, it'll be like 90, 91, 92, 80, 81, 82, 60, 61, 62,
40, 41, 120, 121, 140, 141...
>>> ^
^   ^  ^^
>>>
>>> The carats signify where the accelerometer value has changed so that
the "first" frame is different.  This happens quite frequently (to make for
a smooth "bend") and is completely unpredictable.  As far as I can tell,
we'd always get a hiccup when the accelerometer value changed.
>>>
>>> I'm really hoping that I can do what I was originally asking for.  It
seems so simple to just force the loading of a different set of drawables.
>>>
>>> If I wanted to load the images some other way (not through the
drawables folder) how could I do that?
>>>
>>> On Tuesday, July 17, 2012 12:48:48 PM UTC-4, Nobu Games wrote:

 You still could go with the "streaming" idea. At any given time you
would have a fixed size amount of frames in memory (let's say 15 bitmaps,
just as an example). As the animation progresses you need to load the next
batch and discard older ones. In order to prevent loading hickups you could
proceed as follows:
 Your "window" of animation bitmaps has 15 items.
 As the animation counter reaches item #6 you would recycle the last 5
ones and load the next 5 ones that come after item #15
 Loading needs to be done in a background thread (AsyncTask)

 Of course you'd need to add special logic for your case, like allowing
to loop a certain amount of animation frames and starting playback from any
point of the sequence and so on. But this could be done with a fixed size
window of frames.

 I think that's the only sane way to do that based on that huge bitmap
sequence and you could even adjust the window size according to the
available memory. Play around with these numbers in order to get the best
result for your animation.

 By the way, I would just animate the flame itself and use a single,
static bitmap for the lighter. That way you could use a low-resolution
bitmap sequence of the flame and scale it up on devices with less memory.
Lights and shadows could be faked in real time, too, by drawing overlays on
the view's canvas.

 Maybe you can get away with that solution and don't need to implement
a streaming technique.


 On Tuesday, July 17, 2012 9:28:59 AM UTC-5, Matt Schoen wrote:
>
> Hey, thanks for the reply.
>
> I guess I should have explained more clearly.  This is a "lighter"
type animation, which responds to accelerometer input.  The flame flickers
(plays from a start frame on a short loop) and when you tilt the phone, the
start frame is "swept" through an animation of the flame bending from one
side to another.
>
> Because of this, I'm not sure I could really "stream" anything since
I might need any one frame of the animation at any point.  It just occurred
to me that maybe I could store only half the frames and flip them in
software (currently the "flip" is just rendered into the animation).
>
> This is why I'm just using a big image sequence (about 150 frames) as
drawables.  Any advice?
>
> On Saturday, July 14, 2012 12:26:13 PM UTC-4, Nobu Games wrote:
>>
>> How many items are in your animation list? If it is really, really
huge I'd add some "streaming" logic to your animation player, so older
frames get recycled while future frames are loaded in the background. That
way you have absolute control over a moving window of frames and you could
size that window according to the available amount of free memory. You
wouldn't risk OOM crashes on any device with that technique.
>>
>> Alternatively you could create a video based on your frames and play
that one back instead.
>>
>>
>> On Friday, July 1

[android-developers] LinearLayout divider broken in ICS?

2012-07-19 Thread Tomas Prochazka
I tried to use 
android:divider="@drawable/star_off"
android:showDividers="middle"

I spent half a day looking for the bug in my code. Than I trying to other 
android version.
On the Android 3.x everything is OK, the same on the 4.1, but on 4.0 it is 
broken, delimiter will draw not in the gap between view but more right or 
down.
So I found that it is broken only in ICS, 
Here is source code comparation (left is ICS, right Jelly Bean)






I think that you really should write information like this to the 
documentation or allow to users write notes to the API documentation, like 
information that it doesn't work :-(




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

2012-07-19 Thread Francisco M. Marzoa Alonso
Explain it better. You didn't even tell where these files are stored or how
do you access them.
El 19/07/2012 11:09, "Laras"  escribió:

> hi all, i have database and using mysql, in my database i store files, but
> only the file path, the file it self was moved to the folder i made...
> my problem in here, i want to open the file (that stored in database) in
> android using intent, i was trying so long but doesn't get any idea, or
> site that can help me...
> anybody can help me...or if my question is too hard to understand, at
> least reply, so i can explain it for more...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Android Development Issues

2012-07-19 Thread Francisco M. Marzoa Alonso
You will have better chance of getting an useful answer on that issue in
Eclipse ADT forum.
El 19/07/2012 11:09, "Riftwalker"  escribió:

> Hello,
>
> I have been trying to get into android development and I have experience
> programming with Java, so it's not too beyond what I already know. The
> issues I'm having are with getting Eclipse to work correctly for me. I
> installed all the necessary android additions to eclipse and downloaded the
> sdk etc just like every tutorial says. However, whenever I try to create a
> project, eclipse seems to be adding extra files that make it so I can never
> get the application, even the simple "Hello Android" style ones to work on
> an emulator. And when I try to simply import a completed project, a lot of
> times it won't run on an emulator and I can never get the project exported
> with a signature to see if I could transfer it to an extra android phone I
> have that I was planning on using for application development. My computer
> I am attempting this on is a macbook pro running OS X 10.6.8.
>
> Does anyone have any suggestions on anything? Every tutorial I look at
> (and I've looked at many) and attempt, ends up not working and I follow
> every step just as they say. It's really frustrating to try to get into
> android programming and not even get the simple Hello World style of
> program to work. Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] sqlite database growing

2012-07-19 Thread Francisco M. Marzoa Alonso
Afaik there is no explicit limit, so it can grow while there is space on
the device.
El 19/07/2012 11:09, "Atul Darne"  escribió:

> Hi,
>
> I have an app, which stores its data to sqlite db, and it keeps growing as
> i insert records, i would like to know how much is the max limit for which
> i can use db ?
>
> is size will matter?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] can we restart systemserver..............?

2012-07-19 Thread Kristopher Micinski
On Thu, Jul 19, 2012 at 11:05 AM, Abhilash baddam
 wrote:
> Hi,
> Thanks for the reply. So If want to reload all the applications,  what is
> the best solution.

There is no solution, you can't do this, what do you mean by "reload"
all the apps?

Why would a user ever want to do that, whatever that is?

That's not how the system works..,

> 1)Fr example, GoLauncher app is there if we press on launcher button user
> will get the refreshed Home screen.
>

What?

> 2)On click of button just I want to reload the complete apps like how home
> app is displayed immediately after booting... suggest me please.
>

To take the device back a refreshed state?  You can't do that in the
SDK, or anything but custom firmware.  Why are you asking here?
Android-developers is not the place, and frankly, it sounds like you
don't have the foresight to realize why such a feature would be useful
(I doubt it would), which implies that you also probably don't have
the necessary background to modify the firmware to do so..

kris

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-19 Thread Kristopher Micinski
>
> App log is not enough. Earlier in this thread I mentioned that often, and in
> cases where hardware is involved, almost always, system logs contain
> information directly related to what is happening to your app.
>
> As for ACRA, isn't it also going to be crippled by READ_LOGS no longer
> granted?
>

I don't think so?  I would highly highly highly doubt that.., someone
can confirm..

> It starts looking like a security theater to me.
>
> All right, one can do all this if one gets the custom ROM to get the logs
> over WiFi (by extension: one can build a custom ROM which disregards
> READ_LOGS completely). Hence, a malicious party will be able to read logs no
> matter what *on device in their physical possession*.
>

That's right, and that's why I always tell people that it's useless to
do things like "hide" their code from the user / other programs...,
Once you assume that your app can be run on things that aren't just
stock firmware, you have a more interesting situation..

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-19 Thread vt
On Thursday, July 19, 2012 7:54:35 AM UTC-7, Kristopher Micinski wrote:
>
> On Thu, Jul 19, 2012 at 10:44 AM, vt wrote: 
>
 

> > If a leaf falls to the ground in a forest and no one hears it, does it 
> make 
> > a sound? 
> > 
> > In other words, if your ADK app controls, say, an expensive aquarium 
> with 
> > fish and corals in it (which can easily run into five figures), and you 
> get 
> > back home after a week's vacation to find that a few days ago your app 
> ran 
> > amok and boiled everything and your fish is dead, how is my cool ADK 
> > contraption better than a terminally dim PIC hack? 
> > 
> > - How do I make the bug report span across an arbitrary length of time? 
> > - How do I trigger a bug report generation, say, on a regular basis, or 
> from 
> > inside an application? 
> > 
>
> This is basically why things like ACRA were invented..., 
>
> There's nothing stopping you from dumping your app's logs to a file 
> and then syncing that with your backend periodically.. 
>

App log is not enough. Earlier in this thread I mentioned that often, and 
in cases where hardware is involved, almost always, system logs contain 
information directly related to what is happening to your app.

As for ACRA, isn't it also going to be crippled by READ_LOGS no longer 
granted?

It starts looking like a security theater to me.

All right, one can do all this if one gets the custom ROM to get the logs 
over WiFi (by extension: one can build a custom ROM which disregards 
READ_LOGS completely). Hence, a malicious party will be able to read logs 
no matter what *on device in their physical possession*.

So, why is it not possible for a user to do the same on the production 
build, *on device in their physical possession*?

kris 
>

--vt

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

2012-07-19 Thread Abhilash baddam
Hi,
Thanks for the reply. So If want to reload all the applications,  what is
the best solution.
1)Fr example, GoLauncher app is there if we press on launcher button user
will get the refreshed Home screen.

2)On click of button just I want to reload the complete apps like how home
app is displayed immediately after booting... suggest me please.

On Tue, Jul 17, 2012 at 10:31 PM, Dianne Hackborn wrote:

> You can't.  Asking the same question again doesn't change the answer. :/
>
> And good ghod, no of course you can't restart the freaking activity
> manager without restarting all the apps.  I mean... come on!
>
> You haven't actually said what you are trying to do, but the path you are
> going down here is almost certainly wrong for whatever it is.  Restarting
> something like the activity manager is not in any way shape or form correct
> as a normal part of the system operation.
>
> On Tue, Jul 17, 2012 at 7:52 AM, Abhilash baddam <
> abhilash.androiddevelo...@gmail.com> wrote:
>
>> HiDianne Hackborn ,
>>
>> Thanks for the reply, still I am having some doubts,
>>
>> 1) I read that HeadsetObserver which is a systemservice, starts whenever
>> headset is detected and stops working whenever we removed the headdset.
>> Similarly I want to start or stop particular
>> systemservice(PackageManagerService,ActivityMAnagerService etc...) whenever
>> it's required.
>>
>> **
>>
>> ** **
>>
>> Why I want to do restart the systemservices means, whenever user presess
>> on a button I want reload all the applications, without rebooting complete
>> device. instead of that I am planning to 
>>
>> restart some systemservices like PackageManagerService and
>> ActivityManagerService because these are services which plays keyrole for
>> loading 
>>
>> apps(SystemApps and Market apps).
>>
>> ** **
>>
>> 2) If it's not possible to restart the systemservices then I am planning
>> to restart the SystemServer(SystemServer .java) so that all systemservices
>> will be restarted, eventually all
>>
>> **
>>
>> apps will be reloaded without rebooting complete device.
>>
>> ** **
>>
>> I dont know whether these are possible things or not just I am thinking.
>> I am ready to do Framework level changes.
>>
>>
>> Could you please suggest me as I am new to Application Framework.
>>
>>
>>
>> On Sun, Jul 15, 2012 at 1:01 PM, Dianne Hackborn wrote:
>>
>>> Not from a third party app.  You can stop/start it with "adb shell stop"
>>> and "adb shell start."  If it is stopped, all of the framework goes down,
>>> including all applications.  You can't stop/start individual system
>>> services.
>>>
>>> On Sat, Jul 14, 2012 at 10:17 PM, Abhilash baddam <
>>> abhilash.androiddevelo...@gmail.com> wrote:
>>>
 Hi,

 Generally SystemServer wiil start all systemservices
 (ActivityManagerService, PackageManager etc..)right.

 1)Is it possible  to restart the systemserver  so that all
 systemservices will be restarted.
 2) Similarly can we restart the particular systemservice for ex:
 PackageManagerService.

  --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
>>>
>>>
>>>
>>>
>>> --
>>> Dianne Hackborn
>>> Android framework engineer
>>> hack...@android.com
>>>
>>> Note: please don't send private questions to me, as I don't have time to
>>> provide private support, and so won't reply to such e-mails.  All such
>>> questions should be posted on public forums, where I and others can see and
>>> answer them.
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
>  --
> You received this message becaus

Re: [android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-19 Thread Kristopher Micinski
On Thu, Jul 19, 2012 at 10:44 AM, vt  wrote:
> On Thursday, July 19, 2012 5:02:06 AM UTC-7, Mark Murphy (a Commons Guy)
> wrote:
>>
>> On Tue, Jul 17, 2012 at 6:05 AM, matteo sisti sette wrote:
>> > So, now a very simple question.
>> >
>> > How do I, the user, the owner of my phone and a human being, see the
>> > logs
>> > and e.g. email them to myself for inspection, without rooting the device
>> > and/or connecting it to a computer and/or running complicated
>> > command-line
>> > stuff? I mean how do I do this in Jelly Bean?
>>
>> POWER + VOLUME-UP + VOLUME-DOWN, simultaneously pressed, should slowly
>> generate a report that you can mail to wherever you want.
>
>
> If a leaf falls to the ground in a forest and no one hears it, does it make
> a sound?
>
> In other words, if your ADK app controls, say, an expensive aquarium with
> fish and corals in it (which can easily run into five figures), and you get
> back home after a week's vacation to find that a few days ago your app ran
> amok and boiled everything and your fish is dead, how is my cool ADK
> contraption better than a terminally dim PIC hack?
>
> - How do I make the bug report span across an arbitrary length of time?
> - How do I trigger a bug report generation, say, on a regular basis, or from
> inside an application?
>

This is basically why things like ACRA were invented...,

There's nothing stopping you from dumping your app's logs to a file
and then syncing that with your backend periodically..

kris

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-19 Thread vt
On Thursday, July 19, 2012 5:02:06 AM UTC-7, Mark Murphy (a Commons Guy) 
wrote:
>
> On Tue, Jul 17, 2012 at 6:05 AM, matteo sisti sette wrote: 
> > So, now a very simple question. 
> > 
> > How do I, the user, the owner of my phone and a human being, see the 
> logs 
> > and e.g. email them to myself for inspection, without rooting the device 
> > and/or connecting it to a computer and/or running complicated 
> command-line 
> > stuff? I mean how do I do this in Jelly Bean? 
>
> POWER + VOLUME-UP + VOLUME-DOWN, simultaneously pressed, should slowly 
> generate a report that you can mail to wherever you want. 
>

If a leaf falls to the ground in a forest and no one hears it, does it make 
a sound?

In other words, if your ADK app controls, say, an expensive aquarium with 
fish and corals in it (which can easily run into five figures), and you get 
back home after a week's vacation to find that a few days ago your app ran 
amok and boiled everything and your fish is dead, how is my cool ADK 
contraption better than a terminally dim PIC hack?

- How do I make the bug report span across an arbitrary length of time?
- How do I trigger a bug report generation, say, on a regular basis, or 
from inside an application?

Mark Murphy (a Commons Guy) 


--vt 

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

2012-07-19 Thread Jaison Brooks
I want to build a application that will have a feed coming from my
website, in the feed simalar to like a news feed, a list of items to
click for more infomation. Once clicked i want to have a navigate/See
of map button and i want to know if i should use Google Maps API in
the application to display it on the map and navigate to if availble
or just use a intent with the LAT and LONG and have the user select
google maps or navigation depending on there preference.

Sorry about the unclear Question.

On Wed, Jul 18, 2012 at 10:30 PM, TreKing  wrote:
> On Wed, Jul 18, 2012 at 11:17 AM, Jaison Brooks 
> wrote:
>>
>> From there i know i can use a intent for the lat and long however, however
>> would using the google maps api be better?
>
>
> Better than what? It's not very clear what your ultimate goal is with the
> map.
>
> P.S. - Consider using paragraphs.
>
> -
> TreKing - Chicago transit tracking app for Android-powered devices
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Activity being started with old bundle data

2012-07-19 Thread Matt Schoen
Thanks for the help!  I actually ran with the previous response and chose 
FLAG_CANCEL_CURRENT.  Worked like a charm :)

On Thursday, July 19, 2012 9:45:12 AM UTC-4, Kostya Vasilyev wrote:
>
> The root of the issue is described here:
>
> http://developer.android.com/reference/android/app/PendingIntent.html
>
> >>
> If the creating application later re-retrieves the same kind of 
> PendingIntent (same operation, same Intent action, data, categories, and 
> components, and same flags), it will receive a PendingIntent representing 
> the same token
> <<
>
> Note that extras are not mentioned in as things that make a pending intent 
> unique.
>
> Since your intent contains extras, use PendingIntent.FLAG_UPDATE_CURRENT 
> so that any new values are picked up.
>
> Or use PendingIntent.FLAG_CANCEL_CURRENT as Dianne suggested to cancel the 
> current pending intent with the old extras and create a new one with new 
> values.
>
> Or use a unique requestId (the parameter that's documented as not used).
>
> Or use PendingIntent.FLAG_ONE_SHOT so the old pending intent is forgotten 
> after being fired, and the a pending intent is created the next time.
>
> Or use intent.setData(Uri.parse(intent.toUri(Intent.URI_INTENT_SCHEME))) 
> to give your intent a unique data Uri that contains the extras in an 
> encoded form.
>
> -- K
>
> 2012/7/19 Matt Schoen 
>
>> No, I did not.  Should I?  There are currently no flags on the intent.
>>
>>
>> On Wednesday, July 18, 2012 10:33:46 PM UTC-4, Dianne Hackborn wrote:
>>>
>>> Did you use PendingIntent.FLAG_CANCEL_**CURRENT?
>>>
>>> On Wed, Jul 18, 2012 at 7:55 AM, Matt Schoen  wrote:
>>>
 Hi there,

 I'm having an issue with an activity, which is started via a 
 notification, which is spawned by an alarm.

 I've added debug outputs to determine whether the right data is being 
 sent, and it is.  What's happening is this:

 The alarm fires, which picks a random entry from my database, and 
 creates a notification with an intent starts an activity with that ID 
 value 
 as a bundle extra.  When this activity starts, the notification is 
 cancelled.  The first time this all works like a charm.  However, the 
 second time this alarm fires, it creates a new notification, and adds a 
 different ID to the bundle extra (I'm sure of this since I print out the 
 value of the variable).  However, when the new activity starts, it reads 
 the OLD ID from the bundle extras.

 What gives?

 -- 
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to android-developers@**
 googlegroups.com 
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=en
>>>
>>>
>>>
>>>
>>> -- 
>>> Dianne Hackborn
>>> Android framework engineer
>>> hack...@android.com
>>>
>>> Note: please don't send private questions to me, as I don't have time to 
>>> provide private support, and so won't reply to such e-mails.  All such 
>>> questions should be posted on public forums, where I and others can see and 
>>> answer them.
>>>
>>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

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

Re: [android-developers] How to get friend's latitude info ?

2012-07-19 Thread Justin Anderson
>
> Can we get friend's latitude info ( already get access permission in
> google latitude ) in app?
> eg, we can find friend's latitude info in latitude app, can we get the
> data directly without open google latitude ?
>
I highly doubt it...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Jul 19, 2012 at 3:53 AM, Boki boki  wrote:

> Hi All,
>
> Can we get friend's latitude info ( already get access permission in
> google latitude ) in app?
>
> eg, we can find friend's latitude info in latitude app, can we get the
> data directly without open google latitude ?
>
> Thanks.
> BR,
> Boki.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Someone stole my sound effects

2012-07-19 Thread Francisco M. Marzoa Alonso
Well, if it were so easy the other guy could have recorded them by himself
instead of stole others work.

It depends on which birds and where. Is also rather difficult  to find the
place and time to record some of them and also avoiding other noises.

I would complain to Google at least. It is free.
El 18/07/2012 23:37, "bob"  escribió:

> I would say don't do anything.  The fact is there are birds outside giving
> away sounds for free.  It's time to find a new niche.
>
>
>
> On Wednesday, June 27, 2012 1:18:40 AM UTC-5, kekzilla wrote:
>>
>> Sorry if this isn't the right spot.
>>
>> I have an app on the market place (currently #1) it is a collection of
>> bird sounds. About half of them are mine and half are public domain.
>> There's a new app on the market that is in 3rd place. The guy basically
>> took my apk file and took the sounds out and put them in his. I don't care
>> about the public domain sounds, but the others I spent a while creating.
>> This isn't big time, but it is annoying. I was under the impression that
>> the work becomes copyright when it is created, but I have no proof that I
>> made any of them except that my app has been up since Feb. and his just
>> came up this month. Can I do anything? I thought about filling out the
>> google trademark form but I have no proof except my app is older.
>>
>> Anyone have experience with this? or should I just  forget about it. I'm
>> looking for a way to prevent him from stealing any new sounds I create, but
>> I am still new to app creation/programming.
>>
>> Thanks
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Power on Galaxy Nexus via USB

2012-07-19 Thread Todd Sjolander
Is it possible to turn on a Nexus from the USB port?  I'm developing a 
device which will have a sort of docking station for the Nexus, and I'd 
like to power it on with a single button to boot both the dock and the 
phone.  I've noticed that if the phone is off and it gets plugged into a 
power source, the screen turns on.  That leads me to believe there's some 
decision being made as to what should get powered on at that time.  Could a 
change in firmware to the power management chip modify that behavior to 
power on the entire phone?  This 
leads 
me to believe that the chip in question is the "Texas Instruments 
TWL6030 Fully 
Integrated Power Management with Switch Mode Charger".  

Thanks,
Todd

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

2012-07-19 Thread Kristopher Micinski
On Thu, Jul 19, 2012 at 6:41 AM, Harsh Vardhan  wrote:
> Well either its a revolutionary break-through or you haven't got what the
> problem is because its working now.
>

I would assume you've made a revolutionary breakthrough that has
evaded security experts in the Android community, this should be
immediately reported on android-platform, as they should be informed
of the security hole now.

> The crashing problem was with the eclipse IDE..it was crashing If I put a
> break point anywhere in my threads.
>

Ah, annoying,

> There is some stupid problem which vanishes if you remove "Unused Imports"
> from your code. And this happens on arbitrary basis, I have implemented and
> debugged my code earlier with loads of "Unused Imports".
>

This isn't the topic of this list, but which version of Eclipse are
you using?  I've found Eclipse to be buggy in general, which is too
bad, but really, there is a large developer community there, and if
you'd like to help out you can make sure you're running a version of
Eclipse that is supposed to work for you, and then capture stack
traces for them...

kris

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

2012-07-19 Thread Kostya Vasilyev
The root of the issue is described here:

http://developer.android.com/reference/android/app/PendingIntent.html

>>
If the creating application later re-retrieves the same kind of
PendingIntent (same operation, same Intent action, data, categories, and
components, and same flags), it will receive a PendingIntent representing
the same token
<<

Note that extras are not mentioned in as things that make a pending intent
unique.

Since your intent contains extras, use PendingIntent.FLAG_UPDATE_CURRENT so
that any new values are picked up.

Or use PendingIntent.FLAG_CANCEL_CURRENT as Dianne suggested to cancel the
current pending intent with the old extras and create a new one with new
values.

Or use a unique requestId (the parameter that's documented as not used).

Or use PendingIntent.FLAG_ONE_SHOT so the old pending intent is forgotten
after being fired, and the a pending intent is created the next time.

Or use intent.setData(Uri.parse(intent.toUri(Intent.URI_INTENT_SCHEME))) to
give your intent a unique data Uri that contains the extras in an encoded
form.

-- K

2012/7/19 Matt Schoen 

> No, I did not.  Should I?  There are currently no flags on the intent.
>
>
> On Wednesday, July 18, 2012 10:33:46 PM UTC-4, Dianne Hackborn wrote:
>>
>> Did you use PendingIntent.FLAG_CANCEL_**CURRENT?
>>
>> On Wed, Jul 18, 2012 at 7:55 AM, Matt Schoen  wrote:
>>
>>> Hi there,
>>>
>>> I'm having an issue with an activity, which is started via a
>>> notification, which is spawned by an alarm.
>>>
>>> I've added debug outputs to determine whether the right data is being
>>> sent, and it is.  What's happening is this:
>>>
>>> The alarm fires, which picks a random entry from my database, and
>>> creates a notification with an intent starts an activity with that ID value
>>> as a bundle extra.  When this activity starts, the notification is
>>> cancelled.  The first time this all works like a charm.  However, the
>>> second time this alarm fires, it creates a new notification, and adds a
>>> different ID to the bundle extra (I'm sure of this since I print out the
>>> value of the variable).  However, when the new activity starts, it reads
>>> the OLD ID from the bundle extras.
>>>
>>> What gives?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@**
>>> googlegroups.com 
>>> To unsubscribe from this group, send email to
>>> android-developers+**unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/**group/android-developers?hl=en
>>
>>
>>
>>
>> --
>> Dianne Hackborn
>> Android framework engineer
>> hack...@android.com
>>
>> Note: please don't send private questions to me, as I don't have time to
>> provide private support, and so won't reply to such e-mails.  All such
>> questions should be posted on public forums, where I and others can see and
>> answer them.
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

2012-07-19 Thread Tom / HyperBees
Dave,

It really depends on what you want, there are some very good platforms like 
StackMob (my favourite) or Parse where you can set up your API in minutes.
If you are looking for a backend for a game, we're working on a solution 
for gaming. 

Cheers,

Tom

On Thursday, 12 July 2012 20:50:39 UTC+1, dave wrote:
>
> is there a better backend for apps?
> i know php and mysql. should i just go with what i know?
>

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

2012-07-19 Thread Jim Graham
On Thu, Jul 19, 2012 at 06:49:22AM -0400, Mark Murphy wrote:
> On Mon, Jul 16, 2012 at 5:52 PM, Lara  wrote:

> > However when I click on File->New Project->Android, "Android Project" do not
> > appear in the list of option and I do not understand why..

> "Android Project" was replaced with "Android Application Project" as
> of the R20 ADT release.

When I upgraded from an old broken down laptop to my Mac Mini, and got
a newer version of Eclipse, I couldn't find
File-New-Android-->Android Project (no need to go to
File-->New-->Android-->etc.).  I thought I remembered a setting to change
that, and asked a friend.  The suggestion I got was to use the icon that
pulls up the wizard directly ... no need to fsck around with the menus.
It's in the third set of icons (from the left) and is the first icon
(assuming these don't change from release to release, and that you
haven't changed anything).  Just hover the mouse over it and it should
say something like "Open a wizard to help create a new Android project".

Or, as Mark says, use the menus with the new wording (which I haven't
seen, as I'm behind at least one version).  Whatever works best for you
is the right answer for you.  :-)

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running Mac OS X Lion >
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

  "'Wrong' is one of those concepts that depends on witnesses."
 --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)

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

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


[android-developers] Custom font for ActionBar

2012-07-19 Thread mx_joe
Hi,

how can I change the font of the ActionBar to a custom font I added to my 
project? I am searching for a solution for week now but I cannot find 
aclean solution.

Greetz and thanks in advance
joe

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

2012-07-19 Thread Matt Schoen
No, I did not.  Should I?  There are currently no flags on the intent.

On Wednesday, July 18, 2012 10:33:46 PM UTC-4, Dianne Hackborn wrote:
>
> Did you use PendingIntent.FLAG_CANCEL_CURRENT?
>
> On Wed, Jul 18, 2012 at 7:55 AM, Matt Schoen  wrote:
>
>> Hi there,
>>
>> I'm having an issue with an activity, which is started via a 
>> notification, which is spawned by an alarm.
>>
>> I've added debug outputs to determine whether the right data is being 
>> sent, and it is.  What's happening is this:
>>
>> The alarm fires, which picks a random entry from my database, and creates 
>> a notification with an intent starts an activity with that ID value as a 
>> bundle extra.  When this activity starts, the notification is cancelled. 
>>  The first time this all works like a charm.  However, the second time this 
>> alarm fires, it creates a new notification, and adds a different ID to the 
>> bundle extra (I'm sure of this since I print out the value of the 
>> variable).  However, when the new activity starts, it reads the OLD ID from 
>> the bundle extras.
>>
>> What gives?
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> -- 
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to 
> provide private support, and so won't reply to such e-mails.  All such 
> questions should be posted on public forums, where I and others can see and 
> answer them.
>
>

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

[android-developers] Re: ActionBar with gradient background

2012-07-19 Thread mx_joe
Hi,

now I have found a pretty easy way to get a gradient background myself! :-)

*Here is how it works*

Create a XML file in drawable folder, its content should look like this:

*
http://schemas.android.com/apk/res/android";
android:shape="rectangle"
android:useLevel="false" >

*

Second step, adjust your styles.xml file in values folder and add following 
line to your ActionBar style:

*@drawable/NAME_OF_CREATED_XML_FILE_WITHOUT_DOT_XML
*

Now you should have an ActionBar which is black at the top and white at the 
bottom and transitions the color between bottom and top.

Have fun!

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

2012-07-19 Thread mx_joe
Hi,

now I have found a pretty easy way to get a gradient background myself! :-)

*Here is how it works*

Create a XML file in drawable folder, its content should look like this:


http://schemas.android.com/apk/res/android";
android:shape="rectangle"
android:useLevel="false" >



Second step, adjust your styles.xml file in values folder and add following 
line to your ActionBar style:

@drawable/NAME_OF_CREATED_XML_FILE_WITHOUT_DOT_XML

Now you should have an ActionBar which is black at the top and white at the 
bottom and transitions the color between bottom and top.

Have fun!

Am Mittwoch, 18. Juli 2012 11:52:15 UTC+2 schrieb mx_joe:
>
> Hi,
>
> I started developing an App for Android 2 months ago but there is one 
> thing still annoying me:
>
> I still haven't found a way to use a gradient background in my ActionBar! 
> Is there any way to achieve this without using a background image?
>
> I am looking forward to your help.
>
> Greetz
> Joe
>

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

2012-07-19 Thread csyperski
Still no work around and still no real response from Google.  The bug is 
still present on 4.1.1.  

On Tuesday, June 12, 2012 1:47:52 PM UTC-5, Renan Ricci wrote:
>
> I'm looking for a work around as well, were you able to find anything?
> Google is taking their sweet time to work on this it seems. Almost 1 year 
> and nothing.
>
>
> On Wednesday, December 21, 2011 9:45:55 PM UTC-5, csyperski wrote:
>>
>> I  am having many users report that the there are gaps in the 
>> MediaPlayer's setLooping function where the loop isn't seamless. 
>> There is an example and details to the issues here: 
>>
>> http://code.google.com/p/android/issues/detail?id=18756 
>>
>> Does anyone know of a work around that doesn't require writing code to 
>> decode OGG Vorbis into a PCM stream? 
>>
>> Thanks
>
>

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

Re: [android-developers] Problems With The Use Of Java Native Libraries in Android !!

2012-07-19 Thread Mark Murphy
You use the Native Development Kit (NDK):

http://developer.android.com/tools/sdk/ndk/index.html

Also, please do not hardwire /sdcard as a path, as that may not work
on all devices. Please use appropriate methods on the Environment
class to find a place to write to on external storage.

On Mon, Jul 16, 2012 at 10:35 PM, Melissa Silverio
 wrote:
>
> I'm trying to implement the use of a Java native library called "JNetpCap"
> which works with the handling of network packets.
>
> I installed the libjnetpcap.so and the jnetpcap.jar in my application. Also
> I ran the application as root.
>
>
> After making the capturing of the packets with "tcpdump" and saving it to a
> "output.pcap" file, i tried to use to manipulate the packets jnetpcap ..
> This is the code i used:
>
> end = new ArrayList packets ArrayList ();
> Pcap.openOffline pcap packet = ("/ sdcard / output.pcap", errbuf);
>
> JPacketHandler handler = new JPacketHandler () {
>
> / / Defining the action That Will Be Performed Each time a packet is
> / / Read for the file.
> / / @ Override
> public void nextPacket (JPacket packet, String user) {
> packets.add (packet);
> }
> packet.dispatch (-1, handler, null);
> packet.close ();
>
> and here are the errors it returns:
>
> android.os.Looper.loop (Looper.java: 123)
> android.os.Handler.dispatchMessage (Handler.java: 99)
> jnetpcap.Pcap.dispatch (Unknown Source)
> 
>
> What are the steps for using Java native libraries in Android?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

Android Training in DC: http://marakana.com/training/android/

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


[android-developers] Sole Trader in Germany?

2012-07-19 Thread kaciula
Is anyone here a developer who sells Android apps via Google Checkout and 
is located in Germany?

I need some basic info regarding the tax system in Germany. I am a Sole 
Trader located in Romania and, in order to sell Android apps, I've linked 
my Google Checkout with a German bank account owned by someone else. I've 
started making some money and I have no clue if I should declare something 
in Germany or pay my taxes in Romania etc. Any help would be much 
appreciated.

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

2012-07-19 Thread Mark Murphy
On Wed, Jul 18, 2012 at 10:13 PM, Marc McDougall
 wrote:
> I'm wondering if there is any
> way to instead have one unique alarm set to update every time the activity
> sets the alarm (so that there are not hundreds of new alarms in the Android
> alarm application).

This does not add an alarm to the "Android alarm application". It adds
an alarm to whatever alarm clock application the user chooses, based
on what activities respond to ACTION_SET_ALARM.

Beyond that, there are no documented extras for this, and therefore
you cannot assume that any given alarm clock implementation will
support replacing an existing alarm.

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

Android Training in DC: http://marakana.com/training/android/

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


Re: [android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-19 Thread Mark Murphy
On Tue, Jul 17, 2012 at 6:05 AM, matteo sisti sette
 wrote:
> So, now a very simple question.
>
> How do I, the user, the owner of my phone and a human being, see the logs
> and e.g. email them to myself for inspection, without rooting the device
> and/or connecting it to a computer and/or running complicated command-line
> stuff? I mean how do I do this in Jelly Bean?

POWER + VOLUME-UP + VOLUME-DOWN, simultaneously pressed, should slowly
generate a report that you can mail to wherever you want.

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

Android Training in DC: http://marakana.com/training/android/

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


[android-developers] How to get friend's latitude info ?

2012-07-19 Thread Boki boki
Hi All,

Can we get friend's latitude info ( already get access permission in google 
latitude ) in app?

eg, we can find friend's latitude info in latitude app, can we get the data 
directly without open google latitude ?

Thanks.
BR,
Boki.

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

[android-developers] Configure Arduino UNo board in ADK2012_IDE

2012-07-19 Thread Kumar Maheswaran
Hi all,
I am new to this android ADK.I have downloaded android_accessories and 
ADK2012_IDE from the android developer site. I am using my own arduino 
board(arduino UNO ATMega328p) for the accessory development.but in my 
ADK2012_IDE i didn't find any *board* option like *arduino UNO* .I just 
fount *Google ADK2 on Tools-->board-->  * *Google ADK2 *option.

What i want is, my arduino UNO(with host_shield) board should be  
configured on the *board* option  ADK2012 IDE.and my programs should 
upload on the arduino board...using this ADK2012_IDE

Please help me 


Thanks,
Mahes.
+917411628944

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

[android-developers] Application to start with

2012-07-19 Thread tj
I am new to android development. I have worked before on java and .NET but 
am a bit confused with android programming. Can you plz suggest some ideas 
as to on what basic application should I start working on. I made basic 
TicTacToe game so I know the basic programming stuff. 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

  1   2   >